S390: Use DT_JUMPREL in prelink undo code.
[platform/upstream/glibc.git] / ChangeLog
1 2016-07-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
2
3         * sysdeps/s390/linkmap.h (struct link_map_machine):
4         Remove member gotplt and add member jmprel.
5         * sysdeps/s390/s390-32/dl-machine.h
6         (elf_machine_runtime_setup): Setup member jmprel with DT_JMPREL
7         instead of gotplt with &got[3].
8         (elf_machine_lazy_rel): Calculate address with reloc and jmprel.
9         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
10
11 2016-07-06  John David Anglin  <danglin@gcc.gnu.org>
12
13         * sysdeps/hppa/fpu/libm-test-ulps: Regenerate.
14
15 2016-07-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16
17         * libio/iofopncook.c (_IO_cookie_read, _IO_cookie_write,
18         _IO_cookie_seek, _IO_cookie_close, _IO_old_cookie_seek)
19         [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE.
20         (set_callbacks) [!PTR_MANGLE]: Do not call PTR_MANGLE.
21         * libio/libioP.h (IO_set_accept_foreign_vtables)
22         [!PTR_MANGLE]: Do not call PTR_MANGLE.
23
24 2016-07-05  H.J. Lu  <hongjiu.lu@intel.com>
25
26         [BZ #20314]
27         * Makeconfig (CXXFLAGS): Prepend -I$(common-objpfx).
28         * Makerules (before-compile): Add $(common-objpfx)cstdlib and
29         $(common-objpfx)cmath.
30         ($(common-objpfx)cstdlib): New target.
31         ($(common-objpfx)cmath): Likewise.
32
33 2016-07-05  Chris Metcalf  <cmetcalf@mellanox.com>
34
35         * malloc/tst-malloc-thread-fail.c (TIMEOUT): Bump up to 30s.
36
37 2016-07-05  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
38
39         [BZ #20327]
40         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Mask bits that
41         are not part of the string.
42
43 2016-07-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
44
45         * nptl/tst-cancel4-common.c (do_test): Add temporary fifo creation.
46         * nptl/tst-cancel4-common.h (fifoname): New variable.
47         (fifofd): Likewise.
48         (cl_fifo): New function.
49         * nptl/tst-cancel4.c (tf_sigpause): Replace SIGCANCEL usage by
50         SIGINT.
51         (tf_open): Add early cancel test.
52
53 2016-07-04  Andreas Schwab  <schwab@linux-m68k.org>
54
55         * sysdeps/m68k/Makefile (CFLAGS-mcount.c): Define.
56
57 2016-07-01  Maciej W. Rozycki  <macro@imgtec.com>
58
59         * sysdeps/generic/ldsodefs.h
60         (dl_symbol_visibility_binds_local_p): New inline function.
61         * elf/dl-addr.c (determine_info): Treat hidden and internal
62         symbols as local.
63         * elf/dl-lookup.c (do_lookup_x): Likewise.
64         * elf/dl-reloc.c (RESOLVE_MAP): Likewise.
65
66 2016-07-01  Aurelien Jarno  <aurelien@aurel32.net>
67
68         * sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
69         invalid exception for a sNaN input.
70         * sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
71         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
72         (__nearbyint_vis3): Likewise
73         * sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
74         (__nearbyintf_vis3): Likewise
75         * sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
76         * sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
77         * sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
78         Likewise.
79         * sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
80         Likewise.
81
82 2016-07-01  H.J. Lu  <hongjiu.lu@intel.com>
83
84         [BZ #20139]
85         * config.h.in (HAVE_AVX512_ASM_SUPPORT): Renamed to ...
86         (HAVE_AVX512DQ_ASM_SUPPORT): This.
87         * sysdeps/x86_64/configure.ac: Require assembler from binutils
88         2.24 or above.
89         (HAVE_AVX512_ASM_SUPPORT): Removed.
90         (HAVE_AVX512DQ_ASM_SUPPORT): New.
91         * sysdeps/x86_64/configure: Regenerated.
92         * sysdeps/x86_64/dl-trampoline.S: Make HAVE_AVX512_ASM_SUPPORT
93         check unconditional.
94         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
95         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
96         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
97         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
98         Likewise.
99         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
100         Likewise.
101         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
102         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
103         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
104         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
105         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
106         Likewise.
107         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
108         Likewise.
109         * sysdeps/x86_64/multiarch/memset.S: Likewise.
110         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
111         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Check
112         HAVE_AVX512DQ_ASM_SUPPORT instead of HAVE_AVX512_ASM_SUPPORT.
113         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S:
114         Likewise.
115         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S:
116         Likewise.
117         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S:
118         Likewise.
119         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S:
120         Likewise.
121         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.:
122         Likewise.
123         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S:
124         Likewise.
125         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S:
126         Likewise.
127         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S:
128         Likewise.
129         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S:
130         Likewise.
131         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx51:
132         Likewise.
133         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S:
134         Likewise.
135
136 2016-07-01  Andrew Senkevich  <andrew.senkevich@intel.com>
137
138         [BZ #20024]
139         * sysdeps/x86/fpu/test-math-vector-sincos.h: New.
140         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Fixed ABI
141         of this implementation of vector function.
142         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
143         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
144         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
145         Likewise.
146         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
147         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
148         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: Likewise.
149         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: Likewise.
150         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: Likewise.
151         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Likewise.
152         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
153         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S: Likewise.
154         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S: Likewise.
155         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S: Likewise.
156         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Use another wrapper
157         for testing vector sincos with fixed ABI.
158         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
159         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
160         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
161         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
162         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
163         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
164         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
165         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx.c: New test.
166         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx2.c: Likewise.
167         * sysdeps/x86_64/fpu/test-double-libmvec-sincos-avx512.c: Likewise.
168         * sysdeps/x86_64/fpu/test-double-libmvec-sincos.c: Likewise.
169         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx.c: Likewise.
170         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx2.c: Likewise.
171         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf-avx512.c: Likewise.
172         * sysdeps/x86_64/fpu/test-float-libmvec-sincosf.c: Likewise.
173         * sysdeps/x86_64/fpu/Makefile: Added new tests.
174
175 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
176
177         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Add _Qp_cmp.
178
179 2016-06-30  Anton Blanchard  <anton@samba.org>
180
181         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
182         [$(subdir) = math] (libm-sysdep_routines): Add s_sinf-power8 and
183         s_sinf-ppc64.
184         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: New file.
185         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
186         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
187         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
188
189 2016-06-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
190
191         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
192         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
193         [$(subdir) = math] (libm-sysdep_routines): Add e_expf-power8 and
194         e_expf-ppc64.
195         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: New file.
196         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
197         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
198         * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
199
200 2016-06-30  John David Anglin  <danglin@gcc.gnu.org>
201
202         [BZ #20277]
203         * sysdeps/hppa/start.S (_start): Correct loading of global pointer
204         when SHARED is defined.
205
206 2016-06-30  H.J. Lu  <hongjiu.lu@intel.com>
207
208         * sysdeps/x86/cpu-features.h (bit_arch_Prefer_ERMS): New.
209         (index_arch_Prefer_ERMS): Likewise.
210         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Return
211         __memcpy_erms for Prefer_ERMS.
212         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
213         (__memmove_erms): Enabled for libc.a.
214         * ysdeps/x86_64/multiarch/memmove.S (__libc_memmove): Return
215         __memmove_erms or Prefer_ERMS.
216         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Return
217         __mempcpy_erms for Prefer_ERMS.
218         * sysdeps/x86_64/multiarch/memset.S (memset): Return
219         __memset_erms for Prefer_ERMS.
220
221 2016-06-30  Andreas Schwab  <schwab@suse.de>
222
223         [BZ #20262]
224         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn): Return
225         NSS_STATUS_SUCCESS when done.  Return NSS_STATUS_TRYAGAIN when out
226         of memory.
227
228 2016-06-29  H.J. Lu  <hongjiu.lu@intel.com>
229
230         [BZ #18645]
231         * nptl/Makefile (extra-test-objs): Add tst-cleanupx4aux.o.
232         (test-extras): Add tst-cleanupx4aux.
233         (CFLAGS-tst-cleanupx4aux.c): New.  Set to -fexceptions.
234         ($(objpfx)tst-cleanupx4): Replace tst-cleanup4aux.o with
235         tst-cleanupx4aux.o.
236         * nptl/tst-cleanupx4aux.c: New file.
237
238 2016-06-30  Aurelien Jarno  <aurelien@aurel32.net>
239
240         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
241
242 2016-06-29  Andreas Schwab  <schwab@suse.de>
243
244         [BZ #20260]
245         * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
246         address before the beginning of the string as an integer to avoid
247         array-bounds warning.
248
249 2016-06-28  Richard Henderson  <rth@redhat.com>
250
251         * elf/elf.h (EM_BPF): New.
252         (EM_NUM): Update.
253         (R_BPF_NONE, R_BPF_MAP_FD): New.
254
255         * elf/elf.h (EM_IAMCU, EM_SPU, EM_PDP10, EM_PDP11, EM_ARC_COMPACT,
256         EM_VIDEOCORE, EM_TMM_GPP, EM_NS32K, EM_TPC, EM_SNP1K, EM_ST200,
257         EM_IP2K, EM_MAX, EM_CR, EM_F2MC16, EM_MSP430, EM_BLACKFIN, EM_SE_C33,
258         EM_SEP, EM_ARCA, EM_UNICORE, EM_EXCESS, EM_DXP, EM_ALTERA_NIOS2,
259         EM_CRX, EM_XGATE, EM_C166, EM_M16C, EM_DSPIC30F, EM_CE, EM_M32C,
260         EM_TSK3000, EM_RS08, EM_SHARC, EM_ECOG2, EM_SCORE7, EM_DSP24,
261         EM_VIDEOCORE3, EM_LATTICEMICO32, EM_SE_C17, EM_TI_C6000, EM_TI_C2000,
262         EM_TI_C5500, EM_TI_ARP32, EM_TI_PRU, EM_MMDSP_PLUS, EM_CYPRESS_M8C,
263         EM_R32C, EM_TRIMEDIA, EM_QDSP6, EM_8051, EM_STXP7X, EM_NDS32,
264         EM_ECOG1X, EM_MAXQ30, EM_XIMO16, EM_MANIK, EM_CRAYNV2, EM_RX,
265         EM_METAG, EM_MCST_ELBRUS, EM_ECOG16, EM_CR16, EM_ETPU, EM_SLE9X,
266         EM_L10M, EM_K10M, EM_AVR32, EM_STM8, EM_TILE64, EM_CUDA,
267         EM_CLOUDSHIELD, EM_COREA_1ST, EM_COREA_2ND, EM_ARC_COMPACT2,
268         EM_OPEN8, EM_RL78, EM_VIDEOCORE5, EM_78KOR, EM_56800EX, EM_BA1,
269         EM_BA2, EM_XCORE, EM_MCHP_PIC, EM_KM32, EM_KMX32, EM_EMX16, EM_EMX8,
270         EM_KVARC, EM_CDP, EM_COGE, EM_COOL, EM_NORC, EM_CSR_KALIMBA, EM_Z80,
271         EM_VISIUM, EM_FT32, EM_MOXIE, EM_AMDGPU, EM_RISCV, EM_BPF): New.
272         (EM_NUM): Update.
273
274 2016-06-28  Stefan Liebler  <stli@linux.vnet.ibm.com>
275
276         [BZ #18960]
277         * locale/localeinfo.h (_NL_CURRENT_DEFINE):
278         Set _nl_current_LC_CATEGORY_used to two instead of one.
279
280 2016-06-27  Aurelien Jarno  <aurelien@aurel32.net>
281
282         * sysdeps/mips/tst-mode-switch-1.c (main): Converted to ...
283         (do_test): ... this.
284         (TEST_FUNCTION): New macro.
285          Include test-skeleton.c.
286         * sysdeps/mips/tst-mode-switch-2.c (main): Likewise.
287         * sysdeps/mips/tst-mode-switch-3.c (main): Likewise.
288
289 2016-06-27  Joseph Myers  <joseph@codesourcery.com>
290
291         [BZ #15479]
292         * sysdeps/i386/fpu/s_trunc.S (__trunc): Save and restore
293         floating-point environment rather than just control word.
294         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
295         * sysdeps/i386/fpu/s_truncl.S (__truncl): Save and restore
296         floating-point environment, with "invalid" exceptions merged in,
297         rather than just control word.
298         * sysdeps/x86_64/fpu/s_truncl.S (__truncl): Likewise.
299         * math/libm-test.inc (trunc_test_data): Do not allow spurious
300         "inexact" exceptions.
301
302         [BZ #15479]
303         * sysdeps/i386/fpu/s_floor.S (__floor): Save and restore
304         floating-point environment rather than just control word.
305         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
306         * sysdeps/i386/fpu/s_floorl.S (__floorl): Save and restore
307         floating-point environment, with "invalid" exceptions merged in,
308         rather than just control word.
309         * sysdeps/x86_64/fpu/s_floorl.S (__floorl): Likewise.
310         * math/libm-test.inc (floor_test_data): Do not allow spurious
311         "inexact" exceptions.
312
313         [BZ #15479]
314         * sysdeps/i386/fpu/s_ceil.S (__ceil): Save and restore
315         floating-point environment rather than just control word.
316         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
317         * sysdeps/i386/fpu/s_ceill.S (__ceill): Save and restore
318         floating-point environment, with "invalid" exceptions merged in,
319         rather than just control word.
320         * sysdeps/x86_64/fpu/s_ceill.S (__ceill): Likewise.
321         * math/libm-test.inc (ceil_test_data): Do not allow spurious
322         "inexact" exceptions.
323
324 2016-06-21  Aurelien Jarno  <aurelien@aurel32.net>
325
326         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Rename into
327         __libc_vfork.
328         (__vfork) [IS_IN (libc)]: Remove alias.
329         (__libc_vfork) [IS_IN (libc)]: Define as an alias.
330         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
331         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
332
333 2016-06-24  Torvald Riegel  <triegel@redhat.com>
334
335         * nscd/cache.c (cache_add): Use new C11-like atomic operation instead
336         of atomic_compare_and_exchange_bool_rel.
337         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
338         * include/atomic.h (atomic_compare_and_exchange_bool_rel,
339         catomic_compare_and_exchange_bool_rel): Remove.
340         * sysdeps/aarch64/atomic-machine.h
341         (atomic_compare_and_exchange_bool_rel): Likewise.
342         * sysdeps/alpha/atomic-machine.h
343         (atomic_compare_and_exchange_bool_rel): Likewise.
344         * sysdeps/arm/atomic-machine.h
345         (atomic_compare_and_exchange_bool_rel): Likewise.
346         * sysdeps/mips/atomic-machine.h
347         (atomic_compare_and_exchange_bool_rel): Likewise.
348         * sysdeps/microblaze/atomic-machine.h
349         ( __arch_compare_and_exchange_bool_8_rel,
350         __arch_compare_and_exchange_bool_16_rel): Likewise.
351         * sysdeps/powerpc/atomic-machine.h
352         ( __arch_compare_and_exchange_bool_8_rel,
353         __arch_compare_and_exchange_bool_16_rel): Likewise.
354         * sysdeps/powerpc/powerpc32/atomic-machine.h
355         ( __arch_compare_and_exchange_bool_32_rel,
356         __arch_compare_and_exchange_bool_64_rel): Likewise.
357         * sysdeps/powerpc/powerpc64/atomic-machine.h
358         ( __arch_compare_and_exchange_bool_32_rel,
359         __arch_compare_and_exchange_bool_64_rel): Likewise.
360         * sysdeps/tile/atomic-machine.h
361         (atomic_compare_and_exchange_bool_rel): Likewise.
362
363 2016-06-23  Joseph Myers  <joseph@codesourcery.com>
364
365         [BZ #20296]
366         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Add arguments
367         when either argument is a NaN.
368         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
369         * math/libm-test.inc (scalb_test_data): Add sNaN tests.
370
371         * math/libm-test.inc (snan_value_ld): New macro.
372         (isgreater_test_data): Add sNaN tests.
373         (isgreaterequal_test_data): Likewise.
374         (isless_test_data): Likewise.
375         (islessequal_test_data): Likewise.
376         (islessgreater_test_data): Likewise.
377         (isunordered_test_data): Likewise.
378         (nextafter_test_data): Likewise.
379         (nexttoward_test_data): Likewise.
380         (remainder_test_data): Likewise.
381         (remquo_test_data): Likewise.
382         (significand_test_data): Likewise.
383         * math/gen-libm-test.pl (%beautify): Add snan_value_ld.
384
385 2016-06-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
386
387         * posix/getconf.c: Define ALL_ENVIRONMENTS_DEFINED if all
388         environment macros are defined.
389         (main): Avoid execve if ALL_ENVIRONMENTS_DEFINED is defined.
390
391 2016-06-23  Florian Weimer  <fweimer@redhat.com>
392
393         [BZ #20191]
394         Implement vtable verification in libio.
395         * Makerules (shlib.lds): Place __libc_IO_vtables section.
396         * debug/obprintf_chk.c (_IO_obstack_jumps): Define as vtable.
397         * debug/vdprintf_chk.c (__vdprintf_chk): Call
398         _IO_new_file_init_internal instead of _IO_file_init.
399         * debug/vsnprintf_chk.c (_IO_strn_jumps): Define as vtable.
400         * debug/vsprintf_chk.c (_IO_str_chk_jumps): Likewise.
401         * libio/Makefile (routines): Add vtables.
402         * libio/libioP.h (_IO_JUMPS_FUNC): Call IO_validate_vtable.
403         (_IO_init): Remove, not for internal use.
404         (_IO_init_internal): Declare, internal replacement for _IO_init.
405         (_IO_file_init): Remove, not for internal use.
406         (_IO_new_file_init): Remove, not for internal use.
407         (_IO_new_file_init_internal): Declare, internal replacement for
408         _IO_new_file_init.
409         (_IO_old_file_init): Remove, not for internal use.
410         (_IO_old_file_init_internal): Declare, internal replacement for
411         _IO_old_file_init.
412         (_IO_str_init_static, _IO_str_init_readonly): Remove, not for
413         internal use.
414         (__libc_IO_vtables, IO_accept_foreign_vtables, _IO_vtable_check):
415         Declare.
416         (libio_vtable): New macro.
417         (IO_set_accept_foreign_vtables, _IO_validate_vtable): New inline
418         functions.
419         * libio/fileops.c (_IO_new_file_init_internal): Rename from
420         _IO_new_file_init.
421         (_IO_new_file_init): New externally visible wrapper which disables
422         vtable verification.
423         (_IO_file_jumps, _IO_file_jumps_mmap, _IO_file_jumps_maybe_mmap):
424         Define as vtables.
425         * libio/genops.c (_IO_init_internal): Rename from _IO_init.
426         (_IO_init): New externally visible wrapper which disables
427         vtable verification.
428         * libio/iofdopen.c (_IO_new_fdopen): Call
429         _IO_new_file_init_internal instead of _IO_file_init.  Adjust
430         comment.
431         * libio/iofopen.c (__fopen_internal): Call
432         _IO_new_file_init_internal instead of _IO_file_init.
433         * libio/iofopncook.c (_IO_cookie_jumps, _IO_old_cookie_jumps):
434         Define as vtables.
435         (_IO_cookie_init): Call _IO_init_internal instead of _IO_init,
436         _IO_new_file_init_internal instead of _IO_file_init.
437         * libio/iopopen.c (_IO_new_popen): Likewise.
438         (_IO_proc_jumps): Define as vtable.
439         * libio/iovdprintf.c (_IO_vdprintf): Call
440         _IO_new_file_init_internal instead of _IO_file_init.
441         * libio/memstream.c (_IO_mem_jumps): Define as vtable.
442         (__open_memstream): Call _IO_init_internal instead of _IO_init.
443         * libio/obprintf.c (_IO_obstack_jumps): Define as vtable.
444         * libio/oldfileops.c (_IO_old_file_init_internal): Rename from
445         _IO_old_file_init.
446         (_IO_old_file_init): New externally visible wrapper which disables
447         vtable verification.
448         (_IO_old_file_jumps): Define as vtable.
449         * libio/oldiofdopen.c (_IO_old_fdopen): Call
450         _IO_old_file_init_internal instead of _IO_old_file_init.
451         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
452         * libio/oldiopopen.c (_IO_old_popen): Likewise.
453         (_IO_old_proc_jumps): Define as vtable.
454         * libio/strops.c (_IO_str_jumps, _IO_strn_jumps, _IO_wstrn_jumps):
455         Define as vtables.
456         * libio/vtables.c: New file.
457         * libio/wfileops.c (_IO_wfile_jumps, _IO_wfile_jumps_mmap)
458         (_IO_wfile_jumps_maybe_mmap): Define as vtables.
459         * libio/wmemstream.c (_IO_wmem_jumps): Define as vtable.
460         * libio/wstrops.c (_IO_wstr_jumps): Likewise.
461         * stdio-common/vfprintf.c (_IO_helper_jumps): Likewise.
462         * stdlib/strfmon_l.c (__vstrfmon_l): Call _IO_init_internal
463         instead of _IO_init.
464
465 2016-06-23  Florian Weimer  <fweimer@redhat.com>
466
467         * test-skeleton.c (xrealloc): Support deallocation with n == 0.
468
469 2016-06-23  Florian Weimer  <fweimer@redhat.com>
470
471         * test-skeleton.c (xmalloc, xcalloc, xrealloc): Mark as
472         potentially unused.
473
474 2016-06-22  Florian Weimer  <fweimer@redhat.com>
475
476         * test-skeleton.c (write_message): New function.
477         * malloc/tst-mallocfork2.c (write_message): Remove.
478         * debug/tst-longjmp_chk2.c (write_indented): New function.
479         (write_message): Remove.
480         (stackoverflow_handler): Call write_indented.
481
482 2016-06-22  Joseph Myers  <joseph@codesourcery.com>
483
484         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Do not mask
485         "inexact" exceptions after fnstenv.
486         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
487         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
488         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
489
490 2015-06-22  Zack Weinberg  <zackw@panix.com>
491
492         * sysdeps/generic/bits/hwcap.h: Moved to ...
493         * bits/hwcap.h: Here.
494
495 2016-06-22  Wilco Dijkstra  <wdijkstr@arm.com>
496
497         * sysdeps/aarch64/memcpy.S (memcpy):
498         Further tuning for performance.
499
500 2016-06-21  Florian Weimer  <fweimer@redhat.com>
501
502         [BZ #20284]
503         * malloc/arena.c (reused_arena): Do not return NULL if we start
504         out with a non-corrupted arena.
505
506 2016-06-21 Adhemerval Zanella  <adhemerval.zanella@linaro.org>
507
508         * misc/Makefile (tests): Add tst-preadvwritev and tst-preadvwritev64.
509         * misc/tst-preadvwritev.c: New file.
510         * misc/tst-preadvwritev64.c: Likewise.
511         * sysdeps/unix/sysv/linux/preadv.c (preadv): Remove SYSCALL_LL{64}
512         usage.
513         * sysdeps/unix/sysv/linux/preadv64.c (preadv64): Likewise.
514         * sysdeps/unix/sysv/linux/pwritev.c (pwritev): Likewise.
515         * sysdeps/unix/sysv/linux/pwritev64.c (pwritev64): Likewise.
516         * sysdeps/unix/sysv/linux/sysdep.h (LO_HI_LONG): New macro.
517
518 2016-06-20  Andrew Senkevich  <andrew.senkevich@intel.com>
519
520         [BZ #19654]
521         * sysdeps/x86_64/fpu/Makefile: Added new tests.
522         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-main.c: New.
523         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx-mod.c: Likewise.
524         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx.c: Likewise.
525         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-main.c: Likewise.
526         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2-mod.c: Likewise.
527         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx2.c: Likewise.
528         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-main.c: Likewise.
529         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512-mod.c: Likewise.
530         * sysdeps/x86_64/fpu/test-double-libmvec-alias-avx512.c: Likewise.
531         * sysdeps/x86_64/fpu/test-double-libmvec-alias-main.c: Likewise.
532         * sysdeps/x86_64/fpu/test-double-libmvec-alias-mod.c: Likewise.
533         * sysdeps/x86_64/fpu/test-double-libmvec-alias.c: Likewise.
534         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-main.c: Likewise.
535         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx-mod.c: Likewise.
536         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx.c: Likewise.
537         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-main.c: Likewise.
538         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2-mod.c: Likewise.
539         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx2.c: Likewise.
540         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-main.c: Likewise.
541         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512-mod.c: Likewise.
542         * sysdeps/x86_64/fpu/test-float-libmvec-alias-avx512.c: Likewise.
543         * sysdeps/x86_64/fpu/test-float-libmvec-alias-main.c: Likewise.
544         * sysdeps/x86_64/fpu/test-float-libmvec-alias-mod.c: Likewise.
545         * sysdeps/x86_64/fpu/test-float-libmvec-alias.c: Likewise.
546         * sysdeps/x86_64/fpu/test-libmvec-alias-mod.c: Likewise.
547
548 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
549
550         * sysdeps/aarch64/rawmemchr.S (__rawmemchr): New file.
551         * sysdeps/aarch64/strlen.S (__strlen): Change to __strlen to avoid PLT.
552
553 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
554
555         * sysdeps/aarch64/memcpy.S (memcpy):
556         Rewrite of optimized memcpy and memmove.
557         * sysdeps/aarch64/memmove.S (memmove): Remove
558         memmove code (merged into memcpy.S).
559
560 2016-06-20  Florian Weimer  <fweimer@redhat.com>
561
562         Consolidate machine-agnostic DTV definitions in <dl-dtv.h>.
563         * sysdeps/generic/dl-dtv.h: New file.
564         * sysdeps/aarch64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
565         * sysdeps/aarch64/nptl/tls.h: Include <dl-dtv.h>.
566         (dtv_t): Remove.
567         * sysdeps/alpha/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
568         * sysdeps/alpha/nptl/tls.h: Include <dl-dtv.h>.
569         (dtv_t): Remove.
570         * sysdeps/arm/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
571         * sysdeps/arm/nptl/tls.h: Include <dl-dtv.h>.
572         (dtv_t): Remove.
573         * sysdeps/hppa/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
574         * sysdeps/hppa/nptl/tls.h: Include <dl-dtv.h>.
575         (dtv_t): Remove.
576         * sysdeps/i386/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
577         * sysdeps/i386/nptl/tls.h: Include <dl-dtv.h>.
578         (dtv_t): Remove.
579         * sysdeps/ia64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
580         * sysdeps/ia64/nptl/tls.h: Include <dl-dtv.h>.
581         (dtv_t): Remove.
582         * sysdeps/m68k/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
583         * sysdeps/m68k/nptl/tls.h: Include <dl-dtv.h>.
584         (dtv_t): Remove.
585         * sysdeps/mach/hurd/i386/tls.h: Include <dl-dtv.h>.
586         (dtv_t): Remove.
587         * sysdeps/microblaze/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
588         * sysdeps/microblaze/nptl/tls.h: Include <dl-dtv.h>.
589         (dtv_t): Remove.
590         * sysdeps/mips/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
591         * sysdeps/mips/nptl/tls.h: Include <dl-dtv.h>.
592         (dtv_t): Remove.
593         * sysdeps/nios2/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
594         * sysdeps/nios2/nptl/tls.h: Include <dl-dtv.h>.
595         (dtv_t): Remove.
596         * sysdeps/powerpc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
597         * sysdeps/powerpc/nptl/tls.h: Include <dl-dtv.h>.
598         (dtv_t): Remove.
599         * sysdeps/s390/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
600         * sysdeps/s390/nptl/tls.h: Include <dl-dtv.h>.
601         (dtv_t): Remove.
602         * sysdeps/sh/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
603         * sysdeps/sh/nptl/tls.h: Include <dl-dtv.h>.
604         (dtv_t): Remove.
605         * sysdeps/sparc/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
606         * sysdeps/sparc/nptl/tls.h: Include <dl-dtv.h>.
607         (dtv_t): Remove.
608         * sysdeps/x86_64/dl-tls.h (TLS_DTV_UNALLOCATED): Remove.
609         * sysdeps/x86_64/nptl/tls.h: Include <dl-dtv.h>.
610         (dtv_t): Remove.
611
612 2016-06-20  Florian Weimer  <fweimer@redhat.com>
613
614         Revert symbol poisoning of  __malloc_initialize_hook.
615         * include/stdc-predef.h (__malloc_initialize_hook): Remove
616         poisoning.
617         * malloc/Makefile: Remove un-poisoning.
618         * malloc/arena.c (ptmalloc_init): Use __malloc_initialize_hook
619         instead of old__malloc_initialize_hook.
620         * malloc/malloc-hooks.h: Likewise.
621         * malloc/malloc.c: Likewise.
622         * malloc/mcheck-init.c: Likewise.
623
624 2016-06-19  Carlos O'Donell  <carlos@redhat.com>
625
626         * sysdeps/unix/sysv/linux/times.c (__times): Expand comments.
627
628 2016-06-18  Aurelien Jarno  <aurelien@aurel32.net>
629
630         * sysdeps/unix/sysv/linux/mips/vfork.S (__vfork): Conditionalize
631         hidden_def, weak_alias and strong_alias on [IS_IN (libc)].
632         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Likewise.
633         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Likewise.
634
635 2016-06-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
636
637         * NEWS: Mention addition of nextup and nextdown.
638         * manual/arith.texi: Document nextup and nextdown.
639         * manual/libm-err-tab.pl: Add nextup and nextdown.
640         * math/Makefile (libm-calls): Add s_nextdown and s_nextup.
641         * math/Versions (libm): Add GLIBC_2.24.
642         * math/bits/mathcalls.h: Add nextup and nextdown declaration.
643         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
644         Add new test.
645         (nextafter_test_data) [TEST_COND_binary32]: Likewise.
646         (nextafter_test_data) [TEST_COND_m68k96]: Likewise.
647         (nextafter_test_data) [TEST_COND_binary64]: Likewise.
648         (nextafter_test_data) [TEST_COND_binary128]: Likewise.
649         (nextup_test_data): Likewise.
650         (nextdown_test_data): Likewise.
651         * math/s_nextdown.c: New file.
652         * math/s_nextdownf.c: Likewise.
653         * math/s_nextdownl.c: Likewise.
654         * math/test-tgmath.c F(compile_test)): Add nextup and nextdown tests.
655         F(nextup): New function.
656         F(nextdown): Likewise.
657         * math/tgmath.h: Add nextup and nextdown.
658         * sysdeps/ieee754/flt-32/s_nextupf.c: New file.
659         * sysdeps/ieee754/dbl-64/s_nextup.c: Likewise.
660         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
661         * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
662         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
663         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls):
664         Add nextup and nextdown.
665         (CFLAGS-nldbl-nextup.c): New variable.
666         (CFLAGS-nldbl-nextdown.c): Likewise.
667         * sysdeps/ieee754/ldbl-opt/nldbl-nextdown.c: New file.
668         * sysdeps/ieee754/ldbl-opt/nldbl-nextup.c: Likewise.
669         * sysdeps/nacl/libm.abilist: Update.
670         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
671         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
672         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
673         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
674         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
675         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
676         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
677         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
678         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
679         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
680         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
681         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
682         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
683         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
684         Likewise.
685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
687         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
688         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
689         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
690         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
691         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
692         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Likewise.
693         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: Likewise.
694         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
695         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
696         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
697         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
698
699 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
700
701         * manual/pattern.texi: Fix typos & grammar errors.
702
703 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
704
705         * manual/search.texi: Fix typos & grammar errors.
706
707 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
708
709         * manual/message.texi: Fix typos & grammar errors.
710
711 2016-06-16  Mike Frysinger  <vapier@gentoo.org>
712
713         * manual/contrib.texi: Fix spelling typos.
714         * manual/crypt.texi: Likewise.
715         * manual/filesys.texi: Likewise.
716         * manual/locale.texi: Likewise.
717         * manual/message.texi: Likewise.
718         * manual/nss.texi: Likewise.
719         * manual/string.texi: Likewise.
720
721 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
722
723         * manual/locale.texi: Fix typos & grammar errors.
724
725 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
726
727         * manual/charset.texi: Fix typos & grammar errors.
728
729 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
730
731         * manual/string.texi: Fix typos.
732
733 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
734
735         * manual/ctype.texi: Fix typos.
736
737 2016-06-16  Rical Jasan  <ricaljasan@pacific.net>
738
739         * manual/memory.texi: Fix various typos & grammar errors.
740
741 2016-06-14  Joseph Myers  <joseph@codesourcery.com>
742
743         [BZ #20255]
744         * sysdeps/i386/fpu/s_fdim.c: New file.  Based on math/s_fdim.c.
745         * math/libm-test.inc (fdim_test_data): Add another test.
746
747         [BZ #6796]
748         [BZ #20255]
749         [BZ #20256]
750         * math/s_fdim.c: Include <math_private.h>.
751         (__fdim): Use math_narrow_eval on result.
752         * math/s_fdimf.c: Include <math_private.h>.
753         (__fdimf): Use math_narrow_eval on result.
754         * sysdeps/i386/fpu/s_fdim.S: Remove file.
755         * sysdeps/i386/fpu/s_fdimf.S: Likewise.
756         * sysdeps/i386/fpu/s_fdiml.S: Likewise.
757         * sysdeps/i386/i686/fpu/s_fdim.S: Likewise.
758         * sysdeps/i386/i686/fpu/s_fdimf.S: Likewise.
759         * sysdeps/i386/i686/fpu/s_fdiml.S: Likewise.
760         * sysdeps/powerpc/fpu/s_fdim.c: Likewise.
761         * sysdeps/powerpc/fpu/s_fdimf.c: Likewise.
762         * sysdeps/powerpc/powerpc32/fpu/s_fdim.c: Likewise.
763         * sysdeps/powerpc/powerpc64/fpu/s_fdim.c: Likewise.
764         * sysdeps/x86_64/fpu/s_fdiml.S: Likewise.
765         * math/libm-test.inc (fdim_test_data): Expect errno setting on
766         overflow.  Add sNaN tests.
767
768         * math/s_fdim.c (__fdim): Use islessequal and isinf instead of
769         fpclassify.
770         * math/s_fdimf.c (__fdimf): Likewise.
771         * math/s_fdiml.c (__fdiml): Likewise.
772
773 2016-06-14  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
774
775         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
776         (sysdep_routines): Add P8 and PPC64 strcasecmp/strncasecmp targets.
777         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
778         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
779         ifunc'ed strcasecmp/strncasecmp.
780         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S:
781         [EALIGN]: Removed.
782         [END]: Likewise.
783         [__strcasecmp]: Define instead of the above to control symbol name.
784         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Add IFUNC selector
785         for __strcasecmp_power8.
786         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Add IFUNC selector
787         for __strncasecmp_power8.
788         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: New File.
789         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-ppc64.c: Likewise.
790         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
791         * sysdeps/powerpc/powerpc64/multiarch/strncase-ppc64.c: Likewise.
792         * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Likewise.
793         * sysdeps/powerpc/powerpc64/power8/strncase.S: Likewise.
794
795 2016-06-13  Joseph Myers  <joseph@codesourcery.com>
796
797         [BZ #20252]
798         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
799         arguments when second argument is a NaN.
800         * math/libm-test.inc (atan2_test_data): Add sNaN tests and more
801         qNaN tests.
802
803         * math/libm-test.inc (cimag_test_data): Add sNaN tests.
804         (conj_test_data): Likewise.
805         (copysign_test_data): Likewise.
806         (creal_test_data): Likewise.
807         (fma_test_data): Likewise.
808         (fmod_test_data): Likewise.
809
810         [BZ #20250]
811         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Add non-finite input to
812         itself.
813         * sysdeps/ieee754/dbl-64/s_frexp.c (__frexp): Add non-finite or
814         zero input to itself.
815         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp):
816         Likewise.
817         * sysdeps/ieee754/flt-32/s_frexpf.c (__frexpf): Likewise.
818         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
819         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
820         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
821         * math/libm-test.inc (frexp_test_data): Add sNaN tests.
822
823 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
824
825         * nptl/Makefile (test): Add tst-cancel4_1 and tst-cancel4_2.
826         * nptl/tst-cancel4-common.c: New file.
827         * nptl/tst-cancel4-common.h: Likewise.
828         * nptl/tst-cancel4.c: Move common definitions to
829         tst-cancel4-common.{c,h} file.
830         * nptl/tst-cancel4_1.c: New test.
831         * nptl/tst-cancel4_2.c: New test.
832
833 2016-06-13  Florian Weimer  <fweimer@redhat.com>
834
835         [BZ #20248]
836         * debug/tst-longjmp_chk2.c (pass): Use volatile sig_atomic_t.
837         (write_message): New function.
838         (stackoverflow_handler): Call it instead of printf, to avoid
839         excessive stack usage by printf.
840         (do_test): Restore SIGSEGV, SIGBUS default handlers.
841
842 2016-06-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
843
844         * nptl/pthread_mutex_init.c [__ASSUME_FUTEX_LOCK_PI]
845         (prio_inherit_missing): Remove define.
846         * sysdeps/unix/sysv/linux/arm/kernel-features.h
847         (__ASSUME_FUTEX_LOCK_PI): Likewise.
848         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FUTEX_LOCK_PI):
849         Likewise.
850         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
851         (__ASSUME_FUTEX_LOCK_PI): Likewise.
852         * sysdeps/unix/sysv/linux/mips/kernel-features.h
853         (__ASSUME_FUTEX_LOCK_PI): Likewise.
854         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
855         (__ASSUME_FUTEX_LOCK_PI): Likewise.
856
857 2016-06-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
858
859         [BZ #19670]
860         [BZ #19672]
861
862         * io/test-lfs.c (do_prepare): Use xmalloc.
863         * io/tst-fcntl.c (do_prepare): Likewise.
864         * libio/tst-fopenloc.c (do_bz17916): Likewise.
865         * libio/tst-mmap2-eofsync.c (do_prepare): Likewise.
866         * login/tst-utmp.c (do_prepare): Likewise.
867         * posix/tst-exec.c (do_prepare): Likewise.
868         * posix/tst-pathconf.c (prepare): Likewise.
869         * posix/tst-spawn.c (do_prepare): Likewise.
870         * posix/tst-truncate.c (do_prepare): Likewise.
871         * rt/tst-aio.c (do_prepare): Likewise.
872         * rt/tst-aio64.c (do_prepare): Likewise.
873
874 2016-06-11  Florian Weimer  <fweimer@redhat.com>
875
876         [BZ #20237]
877         * nss/nss_db/db-XXX.c (set*ent): Reset entidx to NULL.
878         (get*ent): Set entidx to NULL during initialization.  If entidx is
879         NULL, start iteration from the beginning.
880
881 2016-06-11  Florian Weimer  <fweimer@redhat.com>
882
883         * malloc/malloc.c (musable): Return correct size for dumped fake
884         mmapped chunk.
885
886 2016-06-11  Florian Weimer  <fweimer@redhat.com>
887
888         [BZ #20222]
889         * libio/iofopncook.c (_IO_cookie_read): Demangle callback pointer.
890         (_IO_cookie_write): Likewise.
891         (_IO_cookie_seek): Likewise.
892         (_IO_cookie_close): Likewise.
893         (_IO_old_cookie_seek): Likewise.
894         (set_callbacks): New function.
895         (_IO_cookie_init): Call set_callbacks to copy callbacks.
896
897 2016-06-11  Marko Myllynen  <myllynen@redhat.com>
898
899         * locale/programs/localedef.c (oldstyle_tables): Remove.
900         * locale/programs/localedef.h (oldstyle_tables): Likewise.
901
902 2016-06-10  Joseph Myers  <joseph@codesourcery.com>
903
904         [BZ #20240]
905         * math/Makefile (CFLAGS-s_modf.c): New variable.
906         (CFLAGS-s_modff.c): Likewise.
907         (CFLAGS-s_modfl.c): Likewise.
908         * math/libm-test.inc (modf_test_data): Add sNaN tests.
909
910 2016-06-09  Carlos O'Donell  <carlos@redhat.com>
911
912         [BZ #20215]
913         * misc/sys/cdefs.h [__GNUC_PREREQ (3,2)]: Undef __always_inline first.
914         [!__GNUC_PREREQ (3,2)]: Likewise.
915
916 2016-06-10  Adhemerval Zanela  <adhemerval.zanella@linaro.org>
917
918         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Add xfail-.
919         (msghdr.msg_controllen): Likewise.
920         (cmsghdr.cmsg_len): Likewise.
921         * nptl/Makefile (libpthread-routines): Remove ptw-oldrecvmsg and
922         ptw-oldsendmsg.
923         (CFLAGS-oldrecvmsg.c): Remove rule.
924         (CFLAGS-oldsendmsg.c): Likewise.
925         (CFLAGS-recvmsg.c): Add rule.
926         (CFLAGS-sendmsg.c): Likewise.
927         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
928         oldrecvmsg, oldsendmsg, oldrecvmmsg, oldsendmmsg.
929         (CFLAGS-recvmsg.c): Remove rule.
930         (CFLAGS-sendmsg.c): Likewise.
931         (CFLAGS-oldrecvmsg.c): Likewise.
932         (CFLAGS-oldsendmsg.c): Likewise.
933         (CFLAGS-recvmmsg.c): Likewise.
934         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Revert
935         to kernel defined interfaces.
936         (msghdr.msg_controllen): Likewise.
937         (cmsghdr.cmsg_len): Likewise.
938         (msghdr.__glibc_reserved1): Remove member.
939         (msghdr.__glibc_reserved2): Likewise.
940         (cmsghdr.__glibc_reserved1): Likewise.
941         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: Remove file.
942         * sysdeps/unix/sysv/linux/oldrecvmsg.c: Likewise.
943         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
944         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
945         * sysdeps/unix/sysv/linux/recvmmsg.c: Revert back to previous
946         version.
947         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
948         * sysdeps/unix/sysv/linux/sendmmsg.c: Likewise.
949         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
950         * sysdeps/unix/sysv/linux/aarch64/Versions [libc] (GLIBC_2.24):
951         Remove recvmsg and sendmsg.
952         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24):
953         Likewise.
954         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
955         Likewise.
956         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
957         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
958         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
959         Likewise.
960         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
961         Likewise.
962         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions
963         [libc] (GLIBC_2.24): Likewise.
964         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
965         Likewise.
966         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
967         Likewise.
968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
969         [libc] (GLIBC_2.24): Likewise.
970         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
971         Likewise.
972         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
973         Likewise.
974         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
975         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
976         Likewise.
977         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
978         Likewise.
979         * sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
980         Likewise.
981         * sysdeps/unix/sysv/linux/x86_64/Versions [libc] (GLIBC_2.24):
982         Likewise.
983         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions: Remove file
984         * sysdeps/unix/sysv/linux/x86_64/64/Versions: Likewise.
985         * sysdeps/unix/sysv/linux/mips/mips64/n64/Versions: Likewise.
986         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Remove new 2.24
987         version for {recv,send,recm,sendm}msg.
988         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
989         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
990         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
991         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
992         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
993         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
994         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
995         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
996         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
997         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
998         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
999         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1000         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1001         Likewise.
1002         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1003         Likewise.
1004         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1006         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1007         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1008         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
1009         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1010         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1011         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1012         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
1013         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
1014         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1015         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1016         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1017
1018 2016-06-10  Florian Weimer  <fweimer@redhat.com>
1019
1020         [BZ #19564]
1021         Remove __malloc_initialize_hook from the API.
1022         * malloc/malloc.h (__malloc_initialize_hook): Remove.
1023         * include/stdc-predef.h (__malloc_initialize_hook): Poison with
1024         #pragma GCC poison.
1025         * malloc/malloc-hooks.h: New file.
1026         * malloc/arena.c (ptmalloc_init): Use old__malloc_initialize_hook.
1027         * malloc/malloc.c (HAVE_MALLOC_INIT_HOOK): New.
1028         (old__malloc_initialize_hook): Rename from
1029         __malloc_initialize_hook to evade poisoning.  Turn into compat
1030         symbol.
1031         * malloc/mcheck-init.c (old__malloc_initialize_hook): Rename from
1032         __malloc_initialize_hook.
1033         * malloc/Makefile (poisoned_apis, unpoisoned_api_defines): New.
1034         (mallo.c, mcheck-init.c): Compile with unpoisoned symbol.
1035         * manual/memory.texi (Hooks for Malloc): Remove
1036         __malloc_initialize_hook.  Adjust hook example.
1037
1038 2016-06-09  Joseph Myers  <joseph@codesourcery.com>
1039
1040         [BZ #20235]
1041         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Add NaN input to
1042         itself.
1043         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Likewise.
1044         * math/libm-test.inc (log2_test_data): Add sNaN tests.
1045
1046         [BZ #20234]
1047         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Add positive
1048         infinity or NaN input to itself.
1049
1050         [BZ #20233]
1051         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Add NaN input
1052         to itself.
1053
1054         [BZ #20232]
1055         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Add NaN input to
1056         itself.
1057
1058 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
1059
1060         * sysdeps/x86_64/start.S (_start): Always indirect branch to
1061         __libc_start_main via GOT.
1062
1063 2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
1064
1065         * sysdeps/x86_64/memcopy.h: New file.
1066         * sysdeps/x86_64/wordcopy.c: Likewise.
1067
1068 2016-06-09  Florian Weimer  <fweimer@redhat.com>
1069
1070         Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
1071         * stdlib/tst-quick_exit.cc: Include <stdlib.h> instead of
1072         <cstdlib>.
1073         (optimization_barrier): New.
1074         (do_test): Use it.  Call quick_exit in the global namespace.
1075         * stdlib/tst-thread-quick_exit.cc: Include <stdlib.h>, <pthread.h>
1076         instead of <cstdlib>, <thread>.
1077         (optimization_barrier): New.
1078         (non_main_thread): Adjust declaration.  Call optimization_barrier.
1079         Call quick_exit in the global namespace.
1080         (do_test): Call optimization_barrier.  Use pthread_create,
1081         pthread_join instead of std::thread.
1082
1083 2016-06-09  Andreas Schwab  <schwab@suse.de>
1084
1085         [BZ #19755]
1086         * nscd/pwdcache.c (cache_addpw): Lock prune_run_lock while adding
1087         new entries in auto-propagate mode.
1088         * nscd/grpcache.c (cache_addgr): Likewise.
1089
1090 2016-06-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
1091
1092         * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc):
1093         New functions.
1094         (add_temp_file): Use them.
1095
1096 2016-06-09  Samuel Thibault  <samuel.thibault@ens-lyon.org
1097
1098         * mach/mach/mach_traps.h (mach_print): Add syscall declaration.
1099
1100 2016-06-08  Joseph Myers  <joseph@codesourcery.com>
1101
1102         [BZ #20229]
1103         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Add NaN input to itself.
1104         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Likewise.
1105         * math/libm-test.inc (log1p_test_data): Add sNaN tests.
1106
1107         [BZ #20228]
1108         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Add NaN input to
1109         itself.
1110         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Likewise.
1111         * math/libm-test.inc (log10_test_data): Add sNaN tests.
1112
1113         [BZ #20227]
1114         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Add NaN input to
1115         itself.
1116         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
1117         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
1118         * math/libm-test.inc (log_test_data): Add sNaN tests.
1119
1120         [BZ #20226]
1121         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Add NaN argument to
1122         itself.
1123         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
1124         * math/libm-test.inc (exp_test_data): Add sNaN tests.
1125         (exp10_test_data): Likewise.
1126         (expm1_test_data): Likewise.
1127
1128         [BZ #20225]
1129         * math/s_ldexp.c (__ldexp): Add non-finite or zero argument to
1130         itself.
1131         * math/s_ldexpf.c (__ldexpf): Likewise.
1132         * math/s_ldexpl.c (__ldexpl): Likewise.
1133         * math/w_scalbln.c (__w_scalbln): Likewise.
1134         * math/w_scalblnf.c (__w_scalblnf): Likewise.
1135         * math/w_scalblnl.c (__w_scalblnl): Likewise.
1136         * math/libm-test.inc (scalbn_test_data): Add sNaN tests.
1137         (scalbln_test_data): Likewise.
1138
1139         [BZ #20224]
1140         * sysdeps/i386/fpu/s_cbrtl.S (__cbrtl): Add non-finite or zero
1141         argument to itself.
1142         * math/libm-test.inc (cbrt_test_data): Add sNaN tests.
1143
1144 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1145
1146         [BZ #19776]
1147         * sysdeps/x86_64/memcpy.S: Make it dummy.
1148         * sysdeps/x86_64/mempcpy.S: Likewise.
1149         * sysdeps/x86_64/memmove.S: New file.
1150         * sysdeps/x86_64/memmove_chk.S: Likewise.
1151         * sysdeps/x86_64/multiarch/memmove.S: Likewise.
1152         * sysdeps/x86_64/multiarch/memmove_chk.S: Likewise.
1153         * sysdeps/x86_64/memmove.c: Removed.
1154         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
1155         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
1156         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: Likewise.
1157         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
1158         Likewise.
1159         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
1160         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
1161         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1162         memcpy-sse2-unaligned, memmove-avx-unaligned,
1163         memcpy-avx-unaligned and memmove-sse2-unaligned-erms.
1164         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1165         (__libc_ifunc_impl_list): Replace
1166         __memmove_chk_avx512_unaligned_2 with
1167         __memmove_chk_avx512_unaligned.  Remove
1168         __memmove_chk_avx_unaligned_2.  Replace
1169         __memmove_chk_sse2_unaligned_2 with
1170         __memmove_chk_sse2_unaligned.  Remove __memmove_chk_sse2 and
1171         __memmove_avx_unaligned_2.  Replace __memmove_avx512_unaligned_2
1172         with __memmove_avx512_unaligned.  Replace
1173         __memmove_sse2_unaligned_2 with __memmove_sse2_unaligned.
1174         Remove __memmove_sse2.  Replace __memcpy_chk_avx512_unaligned_2
1175         with __memcpy_chk_avx512_unaligned.  Remove
1176         __memcpy_chk_avx_unaligned_2.  Replace
1177         __memcpy_chk_sse2_unaligned_2 with __memcpy_chk_sse2_unaligned.
1178         Remove __memcpy_chk_sse2.  Remove __memcpy_avx_unaligned_2.
1179         Replace __memcpy_avx512_unaligned_2 with
1180         __memcpy_avx512_unaligned.  Remove __memcpy_sse2_unaligned_2
1181         and __memcpy_sse2.  Replace __mempcpy_chk_avx512_unaligned_2
1182         with __mempcpy_chk_avx512_unaligned.  Remove
1183         __mempcpy_chk_avx_unaligned_2.  Replace
1184         __mempcpy_chk_sse2_unaligned_2 with
1185         __mempcpy_chk_sse2_unaligned.  Remove __mempcpy_chk_sse2.
1186         Replace __mempcpy_avx512_unaligned_2 with
1187         __mempcpy_avx512_unaligned.  Remove __mempcpy_avx_unaligned_2.
1188         Replace __mempcpy_sse2_unaligned_2 with
1189         __mempcpy_sse2_unaligned.  Remove __mempcpy_sse2.
1190         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Support
1191         __memcpy_avx512_unaligned_erms and __memcpy_avx512_unaligned.
1192         Use __memcpy_avx_unaligned_erms and __memcpy_sse2_unaligned_erms
1193         if processor has ERMS.  Default to __memcpy_sse2_unaligned.
1194         (ENTRY): Removed.
1195         (END): Likewise.
1196         (ENTRY_CHK): Likewise.
1197         (libc_hidden_builtin_def): Likewise.
1198         Don't include ../memcpy.S.
1199         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Support
1200         __memcpy_chk_avx512_unaligned_erms and
1201         __memcpy_chk_avx512_unaligned.  Use
1202         __memcpy_chk_avx_unaligned_erms and
1203         __memcpy_chk_sse2_unaligned_erms if if processor has ERMS.
1204         Default to __memcpy_chk_sse2_unaligned.
1205         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
1206         Change function suffix from unaligned_2 to unaligned.
1207         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Support
1208         __mempcpy_avx512_unaligned_erms and __mempcpy_avx512_unaligned.
1209         Use __mempcpy_avx_unaligned_erms and __mempcpy_sse2_unaligned_erms
1210         if processor has ERMS.  Default to __mempcpy_sse2_unaligned.
1211         (ENTRY): Removed.
1212         (END): Likewise.
1213         (ENTRY_CHK): Likewise.
1214         (libc_hidden_builtin_def): Likewise.
1215         Don't include ../mempcpy.S.
1216         (mempcpy): New.  Add a weak alias.
1217         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Support
1218         __mempcpy_chk_avx512_unaligned_erms and
1219         __mempcpy_chk_avx512_unaligned.  Use
1220         __mempcpy_chk_avx_unaligned_erms and
1221         __mempcpy_chk_sse2_unaligned_erms if if processor has ERMS.
1222         Default to __mempcpy_chk_sse2_unaligned.
1223
1224 2016-06-08  H.J. Lu  <hongjiu.lu@intel.com>
1225
1226         [BZ #19881]
1227         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Folded
1228         into ...
1229         * sysdeps/x86_64/memset.S: This.
1230         (__bzero): Removed.
1231         (__memset_tail): Likewise.
1232         (__memset_chk): Likewise.
1233         (memset): Likewise.
1234         (MEMSET_CHK_SYMBOL): New. Define only if MEMSET_SYMBOL isn't
1235         defined.
1236         (MEMSET_SYMBOL): Define only if MEMSET_SYMBOL isn't defined.
1237         * sysdeps/x86_64/multiarch/memset-avx2.S: Removed.
1238         (__memset_zero_constant_len_parameter): Check SHARED instead of
1239         PIC.
1240         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
1241         memset-avx2 and memset-sse2-unaligned-erms.
1242         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1243         (__libc_ifunc_impl_list): Remove __memset_chk_sse2,
1244         __memset_chk_avx2, __memset_sse2 and __memset_avx2_unaligned.
1245         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
1246         (__bzero): Enabled.
1247         * sysdeps/x86_64/multiarch/memset.S (memset): Replace
1248         __memset_sse2 and __memset_avx2 with __memset_sse2_unaligned
1249         and __memset_avx2_unaligned.  Use __memset_sse2_unaligned_erms
1250         or __memset_avx2_unaligned_erms if processor has ERMS.  Support
1251         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
1252         (memset): Removed.
1253         (__memset_chk): Likewise.
1254         (MEMSET_SYMBOL): New.
1255         (libc_hidden_builtin_def): Replace __memset_sse2 with
1256         __memset_sse2_unaligned.
1257         * sysdeps/x86_64/multiarch/memset_chk.S (__memset_chk): Replace
1258         __memset_chk_sse2 and __memset_chk_avx2 with
1259         __memset_chk_sse2_unaligned and __memset_chk_avx2_unaligned_erms.
1260         Use __memset_chk_sse2_unaligned_erms or
1261         __memset_chk_avx2_unaligned_erms if processor has ERMS.  Support
1262         __memset_chk_avx512_unaligned_erms and
1263         __memset_chk_avx512_unaligned.
1264
1265 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1266
1267         * math/gen-auto-libm-test.c (fp_format_desc): remove
1268         suffix member.
1269         (output_generic_value): Remove usage of suffix member,
1270         and the resulting unuse of the fp_format argument.
1271         (output_for_one_input_case): Remove unused fp_format
1272         parameter.
1273
1274         * math/auto-libm-test-out: Regenerate.
1275
1276         * math/libm-test.inc (TEST_COND_ldbl_128ibm): replace
1277         usage with TEST_COND_ibm128.
1278         (TEST_COND_flt_32): Remove.
1279         (TEST_COND_dbl_64): Remove.
1280         (TEST_COND_ldbl_96_intel): Remove.
1281         (TEST_COND_ldbl_96_m68k): Remove.
1282         (TEST_COND_ldbl_128): Remove.
1283
1284 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1285
1286         * auto-libm-test-in:
1287         Replace flt-32 usage with binary32.
1288         Replace dbl-64 usage with binary64.
1289         Replace ldbl-intel-96 usage with intel96.
1290         Replace ldbl-m68k-96 usage with m68k96.
1291         Replace ldbl-128ibm usage with ibm128.
1292         Replace ldbl-128 usage with binary128.
1293
1294         * auto-libm-test-out: Regenerate.
1295
1296 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1297
1298         * math/gen-libm-test.pl (all_floats_pfx): New lookup table.
1299         (parse_ulps): Dynamically generate type name matching
1300         string from all_floats.
1301         (get_ulps): Generate the ulps as an array instead.
1302         (output_ulps): Dynamically compose the type based
1303         on the number of supported formats, and print
1304         the indices as type specific helper macros.
1305
1306         * math/libm-test.inc: Remove comment about CHOOSE.
1307         (ulp_data): Generate the type in libm-test-ulps.h.
1308         (ULP_IDX): New macro.
1309         (find_ulps): Update usage of max_ulp.
1310
1311         * math/test-double-vlen2.h (CHOOSE): Remove.
1312         * math/test-double-vlen4.h (CHOOSE): Likewise.
1313         * math/test-double-vlen8.h (CHOOSE): Likewise.
1314         * math/test-float.c (CHOOSE): Likewise.
1315         * math/test-float-finite.c (CHOOSE): Likewise.
1316         * math/test-double.c (CHOOSE): Likewise.
1317         * math/test-double-finite.c (CHOOSE): Likewise.
1318         * math/test-idouble.c (CHOOSE): Likewise.
1319         * math/test-ifloat.c (CHOOSE): Likewise.
1320         * math/test-ildoubl.c (CHOOSE): Likewise.
1321         * math/test-ldouble-finite.c (CHOOSE): Likewise.
1322         * math/test-ldouble.c (CHOOSE): Likewise.
1323
1324         * math/test-float.h (TEST_FLOAT): Remove.
1325         * math/test-double.h (TEST_DOUBLE): Likewise.
1326         * math/test-ldouble.h (TEST_LDOUBLE): Likewise.
1327
1328 2016-06-08  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1329
1330         * math/gen-libm-test.pl: (apply_lit): New subroutine.
1331         (parse_args): Strip C suffix from floating point literals
1332         typed with 'f' and wrap them with LIT().
1333
1334         * math/libm-tests.inc (RUN_TEST_LOOP_fj_f): New macro.
1335         (test_ff_f_data_nexttoward): Rename to
1336         (test_fj_f_data): New struct.
1337         (nexttoward_test_data): Relabel tests as
1338         TEST_fj_f instead of TEST_ff_f.
1339
1340 2016-06-08  Florian Weimer  <fweimer@redhat.com>
1341
1342         Emacs bug 23726.
1343         * malloc/malloc.c (dumped_main_arena_start): Update comment.
1344         (__libc_realloc): Correct size computation for dumped fake mmapped
1345         chunks.
1346
1347 2016-06-07  Joseph Myers  <joseph@codesourcery.com>
1348
1349         [BZ #20219]
1350         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): Add NaN argument
1351         to itself.
1352         * math/libm-test.inc (atanh_test_data): Add sNaN tests.
1353
1354         [BZ #20218]
1355         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Add non-finite argument
1356         to itself.
1357         * math/libm-test.inc (asinh_test_data): Add sNaN tests.
1358
1359 2016-06-07  H.J. Lu  <hongjiu.lu@intel.com>
1360
1361         [BZ #20195]
1362         * sysdeps/x86/cpu-features.c (get_common_indeces): Move FMA4
1363         check to ...
1364         (init_cpu_features): Here.
1365
1366 2016-06-07  Carlos O'Donell  <carlos@redhat.com>
1367
1368         [BZ #20214]
1369         * sysdeps/unix/sysv/linux/bits/in.h
1370         [defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
1371          || defined _LINUX_IN6_H || defined _IPV6_H] (__USE_KERNEL_IPV6_DEFS):
1372         Define to 1.
1373         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H
1374          || defined _LINUX_IN6_H || defined _IPV6_H)] (__USE_KERNEL_IPV6_DEFS):
1375         Define to 0.
1376         [!__USE_KERNEL_IPV6_DEFS] (IPV6_ADD_MEMBERSHIP): Define.
1377         [!__USE_KERNEL_IPV6_DEFS] (IPV6_DROP_MEMBERSHIP): Define.
1378
1379 2016-06-06  Carlos O'Donell  <carlos@redhat.com>
1380
1381         [BZ #20198]
1382         * stdlib/Makefile (tests): Add tst-quick_exit, and
1383         tst-thread-quick_exit.
1384         [ifeq ($(have-cxx-thread_local),yes)]
1385         (CFLAGS-tst-quick_exit.o): Use -stdc=c++11.
1386         (CFLAGS-tst-thread-quick_exit.o): Likewise.
1387         (LDLIBS-tst-quick_exit): Use -lstdc++ for C++ program.
1388         (LDLIBS-tst-thread-quick_exit): Likewise.
1389         [ifneq ($(have-cxx-thread_local),yes)]
1390         (tests-unsupported): Add tst-quick_exit, and tst-thread-quick_exit.
1391         * stdlib/exit.c (__run_exit_handlers): Add run_dtors argument.
1392         If run_dtors is true call __call_tls_dtors.
1393         (exit): Call __run_exit_handlers with run_dtors set to true.
1394         * stdlib/exit.h: Add run_dtors argument to __run_exit_handlers
1395         definition.
1396         * stdlib/quick_exit.c (quick_exit): Remove function.
1397         (__new_quick_exit): New function.
1398         [SHLIB_COMPAT(libc, GLIBC_2_10, GLIBC_2_24)] (__old_quick_exit): New
1399         function.
1400         * stdlib/tst-quick_exit.cc: New file.
1401         * stdlib/tst-thread-quick_exit.cc: New file.
1402         * stdlib/Versions: Add quick_exit@GLIBC_2.24.
1403         * sysdeps/arm/nacl/libc.abilist: Add 'GLIBC_2.24 quick_exit F'.
1404         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise
1405         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise
1406         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise
1407         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise
1408         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise
1409         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise
1410         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise
1411         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise
1412         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise
1413         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise
1414         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise
1415         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise
1416         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise
1417         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
1418         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise
1419         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise
1420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise
1421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise
1422         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise
1423         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise
1424         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise
1425         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise
1426         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise
1427         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise
1428         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise
1429         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise
1430         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise
1431         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise
1432
1433 2016-06-06  H.J. Lu  <hongjiu.lu@intel.com>
1434
1435         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Fix
1436         a typo in comments.
1437
1438 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1439
1440         [BZ #20213]
1441         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Add NaN
1442         argument to itself.
1443         * math/libm-test.inc (asin_test_data): Add sNaN tests.
1444
1445 2016-06-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1446
1447         * misc/Makefile (CFLAGS-pwritev.c): New variable: add cancellation
1448         required flags.
1449         (CFLAGS-pwritev64.c): Likewise.
1450         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Remove file.
1451         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
1452         * sysdeps/unix/sysv/linux/mips/mips64/n64/pwritev64.c: Likewise.
1453         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
1454         * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.: Likwise.
1455         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (pwritev): Remove
1456         syscall from auto-generation.
1457         * sysdeps/unix/sysv/linux/pwritev.c: Rewrite implementation.
1458         [WORDSIZE == 64] (pwritev64): Remove macro.
1459         [!PWRITEV] (PWRITEV): Likewise.
1460         [!PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1461         [!PWRITEV] (PWRITE): Likewise.
1462         [!PWRITEV] (OFF_T): Likewise.
1463         [!__ASSUME_PWRITEV] (PWRITEV_REPLACEMENT): Likewise.
1464         (LO_HI_LONG): Remove macro.
1465         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (pwritev): Add function.
1466         * sysdeps/unix/sysv/linux/pwritev64.c: Rewrite implementation.
1467         (PWRITEV): Remove macro.
1468         (PWRITEV_REPLACEMENTE): Likewise.
1469         (PWRITE): Likewise.
1470         (OFF_T): Likewise.
1471         (pwritev64): New function.
1472         * nptl/tst-cancel4.c (tf_writev): Add test.
1473
1474         * misc/Makefile (CFLAGS-preadv.c): New variable: add cancellation
1475         required flags.
1476         (CFLAGS-preadv64.c): Likewise.
1477         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Remove file.
1478         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
1479         * sysdeps/unix/sysv/linux/mips/mips64/n64/preadv64.c: Likewise.
1480         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: Likewise.
1481         * sysdeps/unix/sysv/linux/wordsize-64/preadv64.: Likwise.
1482         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (preadv): Remove
1483         syscall from auto-generation.
1484         * sysdeps/unix/sysv/linux/preadv.c: Rewrite implementation.
1485         [WORDSIZE == 64] (preadv64): Remove macro.
1486         [!PREADV] (PREADV): Likewise.
1487         [!PREADV] (PREADV_REPLACEMENT): Likewise.
1488         [!PREADV] (PREAD): Likewise.
1489         [!PREADV] (OFF_T): Likewise.
1490         [!__ASSUME_PREADV] (PREADV_REPLACEMENT): Likewise.
1491         (LO_HI_LONG): Remove macro.
1492         [__WORDSIZE != 64 || __ASSUME_OFF_DIFF_OFF64] (preadv): Add function.
1493         * sysdeps/unix/sysv/linux/preadv64.c: Rewrite implementation.
1494         (PREADV): Remove macro.
1495         (PREADV_REPLACEMENTE): Likewise.
1496         (PREAD): Likewise.
1497         (OFF_T): Likewise.
1498         (preadv64): New function.
1499         * nptl/tst-cancel4.c (tf_preadv): Add test.
1500
1501 2016-06-06  Joseph Myers  <joseph@codesourcery.com>
1502
1503         [BZ #20212]
1504         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_acos): Add NaN
1505         argument to itself.
1506         * math/libm-test.inc (acos_test_data): Add sNaN tests.
1507
1508 2016-06-06  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1509
1510         * sysdeps/powerpc/powerpc64/power8/strcasestr.S (__strcasestr):
1511         New symbol defined as libc_hidden_def.
1512         (strcasestr): Became a weak alias to __strcasestr.
1513         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Handle memset calls
1514         according to multi-arch support.  Move __stpncpy hidden
1515         definition from here to...
1516         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: ...here.  Add
1517         symbol stpncpy.
1518         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Undefine
1519         libc_hidden_builtin_def.
1520         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Specify which
1521         memset symbol to use when multi-arch support is available.
1522
1523 2016-06-06  Stefan Liebler  <stli@linux.vnet.ibm.com>
1524
1525         * dlfcn/tst-rec-dlopen.c: Include string.h.
1526
1527 2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
1528
1529         * manual/install.texi: Remove mention of --without-tls
1530         * INSTALL: Regenerate.
1531
1532 2016-06-05  Florian Weimer  <fweimer@redhat.com>
1533
1534         * dlfcn/tst-rec-dlopen.c (custom_malloc_hook, old_malloc_hook):
1535         Remove.
1536         (call_function, interposed_malloc_called): New variables.
1537         (malloc): New function.
1538         (do_test): Do not change malloc hooks.  Initialize malloc.  Set
1539         and clear call_function as needed.
1540
1541 2016-06-04  Andreas Schwab  <schwab@linux-m68k.org>
1542
1543         * include/wchar.h (__wmemset): Use __typeof.
1544
1545 2016-06-03  Carlos O'Donell  <carlos@redhat.com>
1546
1547         * include/wchar.h (__wmemset): Declare function without typeof.
1548
1549 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
1550
1551         [BZ #20205]
1552         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Do not adjust
1553         exponent when incrementing negative subnormal with low mantissa
1554         word zero.
1555         * math/libm-test.inc (nextafter_test_data) [TEST_COND_intel96]:
1556         Add another test.
1557
1558 2016-06-03  Florian Weimer  <fweimer@redhat.com>
1559
1560         * libio/wstrops.c (_IO_wstr_overflow, enlarge_userbuf): Use
1561         __wmemset instead of wmemset.
1562
1563 2016-06-02  Carlos O'Donell  <carlos@redhat.com>
1564
1565         * sysdeps/unix/sysv/linux/bits/in.h [defined _UAPI_LINUX_IN6_H ||
1566         defined _UAPI_IPV6_H]: Define __USE_KERNEL_IPV6_DEFS to 1.
1567         [!(defined _UAPI_LINUX_IN6_H || defined _UAPI_IPV6_H)]: Define
1568         __USE_KERNEL_IPV6_DEFS to 0.
1569         * inet/netinet/in.h: Use '#if !__USE_KERNEL_IPV6_DEFS'.
1570         Update comment.
1571
1572 2016-06-01  Florian Weimer  <fweimer@redhat.com>
1573
1574         [BZ #19861]
1575         Do not use IFUNC resolver with potentially unrelocated symbol.
1576         * nptl/pt-fork.c [HAVE_IFUNC]: Remove.
1577         (DEFINE_FORK): Remove macro and inline definition.
1578         (fork_alias): Renamed from fork_ifunc.
1579         (__fork_alias): Renamed from __fork_ifunc.
1580
1581 2016-05-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
1582
1583         [BZ 19653]
1584         * inet/if_index.c (__protocol_available): Delete #if 0'd code.
1585         * inet/ruserpass.c (ruserpass): Delete #if 0'd code.
1586
1587 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1588
1589         * scripts/check-local-headers.sh (exclude): Add hurd/ihash.h, and
1590         include .*-.*/ in addition to .*-.*-.*/ (i.e. i386-gnu in addition to
1591         i386-linux-gnu).
1592         * sysdeps/mach/hurd/configure.ac (libc_cv_ld_gnu_indirect_function):
1593         Set to no.
1594         * sysdeps/mach/hurd/configure: Refresh.
1595
1596 2016-05-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1597
1598         [BZ #20178]
1599         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call _exit
1600         on failure instead of exit.
1601
1602 2016-05-30  Roland McGrath  <roland@hack.frob.com>
1603
1604         [BZ #3629]
1605         * manual/string.texi (Copying Strings and Arrays): stpcpy is part
1606         of POSIX.1-2008.
1607
1608 2016-05-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1609
1610         * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk) [PIC]:
1611           Use PLT entry for calling _hurd_self_sigstate.
1612
1613 2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
1614
1615         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Count number of
1616         available logical processors with SMT level type sharing L2
1617         cache for Intel processors.
1618
1619 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1620
1621         [BZ #20160]
1622         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Add NaN
1623         argument to itself before returning the result.
1624         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
1625         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
1626         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
1627         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
1628         Likewise.
1629         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
1630         Likewise.
1631         * sysdeps/powerpc/powerpc64/fpu/s_rint.S (__rint): Likewise.
1632         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S (__rintf): Likewise.
1633         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
1634         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
1635         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
1636         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
1637
1638         [BZ #20160]
1639         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Add NaN
1640         argument to itself before returning the result.
1641         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
1642         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
1643         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
1644         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint):
1645         Likewise.
1646         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
1647         Likewise.
1648         * sysdeps/powerpc/powerpc32/fpu/s_rint.S (__rint): Likewise.
1649         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S (__rintf): Likewise.
1650         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Likewise.
1651         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
1652         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
1653         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
1654
1655 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1656
1657         * libm-test.inc: Replace usage of M_El with
1658         (lit_e): New macro.
1659
1660 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1661
1662         * libm-test.inc: Replace usage of M_PI_4l with
1663         (lit_pi_4_d): New macro.
1664
1665 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1666
1667         * libm-test.inc: Replace usage of M_PIl with
1668         (lit_pi): New macro.
1669
1670 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1671
1672         * libm-test.inc: Replace usage of M_PI2l with
1673         (lit_pi_2_d): New macro.
1674
1675         * math/test-double.h (LITM): New macro.
1676         * math/test-float.h (LITM): Likewise.
1677         * math/test-ldouble.h (LITM): Likewise.
1678
1679 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1680
1681         * libm-test.inc (M_PI_34l): Rename to
1682         (lit_pi_3_m_4_d): New Macro.
1683         (M_PI_34_LOG10El): Rename to
1684         (lit_pi_3_m_4_ln10_m_d): New Macro.
1685         (M_PI2_LOG10El): Rename to
1686         (lit_pi_2_ln10_m_d):  New Macro.
1687         (M_PI4_LOG10El): Rename to
1688         (lit_pi_4_ln10_m_d):  New Macro.
1689         (M_PI_LOG10El): Rename to
1690         (lit_pi_ln10_d):  New Macro.
1691
1692 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1693
1694         [BZ #20157]
1695         * sysdeps/powerpc/powerpc32/fpu/s_fabsl.S (__fabsl): Use fsel to
1696         determine whether to negate low half if [_ARCH_PPCGR], and integer
1697         comparison otherwise.
1698         * sysdeps/powerpc/powerpc64/fpu/s_fabsl.S (__fabsl): Use fsel to
1699         determine whether to negate low half.
1700
1701         * math/libm-test.inc (NO_TEST_INLINE_FLOAT): Remove macro.
1702         (NO_TEST_INLINE_DOUBLE): Likewise.
1703         (TEST_COND_x86_64): Likewise.
1704         (TEST_COND_x86): Likewise.
1705         (M_PI_6l): Likewise.
1706
1707 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1708
1709         * math/libm-test.inc:
1710         (TEST_FLOAT): Change usage to TEST_COND_binary32.
1711         (TEST_DOUBLE): Change usage to TEST_COND_binary64.
1712         (TEST_LDOUBLE): Update usage to evaluate as true if
1713         the guarded tests match the property being tested.
1714         (LDBL_MAX_EXP): Change to MAX_EXP.
1715         (LDBL_MIN_EXP): Change to MIN_EXP.
1716         (LDBL_MANT_DIG): Change to MANT_DIG, except for
1717         nexttoward tests.
1718
1719 2016-05-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
1720
1721         * math/libm-test.inc:
1722         (TYPE_DECIMAL_DIG): Redefine using type supplied PREFIX macro.
1723         (TYPE_MIN): Likewise.
1724         (TYPE_TRUE_MIN): Likewise.
1725         (TYPE_MAX): Likewise.
1726         (MIN_EXP): Likewise.
1727         (MAX_EXP): Likewise.
1728         (MANT_DIG): Likewise.
1729
1730         (FSTR_MAX): New macro.
1731         (__CONCATX): Likewise.
1732         (QTYPE_STR): Likewise.
1733         (TEST_COND_binary32): Likewise.
1734         (TEST_COND_binary64): Likewise.
1735         (TEST_COND_binary128): Likewise.
1736         (TEST_COND_ibm128): Likewise.
1737         (TEST_COND_intel96): Likewise.
1738         (TEST_COND_m68k96): Likewise.
1739
1740         (TEST_COND_flt_32): Redefine as equivalent format test macro.
1741         (TEST_COND_dbl_64): Likewise.
1742         (TEST_COND_ldbl_96_intel): Likewise.
1743         (TEST_COND_ldbl_96_m68k): Likewise.
1744         (TEST_COND_ldbl_128): Likewise.
1745         (TEST_COND_ldbl_128ibm): Likewise.
1746
1747         (plus_zero): Redefine using LIT macro.
1748         (minus_zero): Likewise.
1749         (plus_infty): Redefine as (INF).
1750         (minux_infty): Redefine as (-INF).
1751         (max_value): Redefine as TYPE_MAX.
1752         (min_value): Redefine as TYPE_MIN.
1753         (min_subnorm_value): Redefine as TYPE_TRUE_MIN.
1754
1755         (print_float): Refactor to use snprintf to convert FLOAT values
1756         to string. This brings it closer to dropin replacement of strtof
1757         for the TS 18661 defined types.
1758         (update_stats): Likewise.
1759         (print_complex_function_ulps): Likewise.
1760         (print_max_error): Likewise.
1761         (print_complex_max_error): Likewise.
1762         (check_float_internal): Likewise.
1763
1764         * math/test-float.h (PREFIX): New macro.
1765         (LIT): Likewise.
1766         (TYPE_STR): Likewise.
1767         (FTOSTR): Likewise.
1768
1769         * math/test-double.h (PREFIX): New macro.
1770         (LIT): Likewise.
1771         (TYPE_STR): Likewise.
1772         (FTOSTR): Likewise.
1773
1774         * math/test-ldouble.h (PREFIX): New macro.
1775         (LIT): Likewise.
1776         (TYPE_STR): Likewise.
1777         (FTOSTR): Likewise.
1778
1779 2016-05-27  Joseph Myers  <joseph@codesourcery.com>
1780
1781         [BZ #20156]
1782         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Add high part
1783         to itself when zero or not finite.
1784         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Likewise.
1785         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
1786         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Likewise.
1787         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
1788
1789 2016-05-26  Joseph Myers  <joseph@codesourcery.com>
1790
1791         [BZ #20153]
1792         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Return
1793         x * x + x for infinities and NaNs.
1794
1795         [BZ #20151]
1796         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Add NaN
1797         argument to itself before returning result.
1798         (__ieee754_y0l): Likewise.
1799         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1800         (__ieee754_y1l).
1801
1802         * math/libm-test.inc (acosh_test_data): Add sNaN tests.
1803         (atan_test_data): Likewise.
1804         (ceil_test_data): Likewise.
1805         (cos_test_data): Likewise.
1806         (cosh_test_data): Likewise.
1807         (erf_test_data): Likewise.
1808         (exp2_test_data): Likewise.
1809         (fabs_test_data): Likewise.
1810         (floor_test_data): Likewise.
1811         (ilogb_test_data): Likewise.
1812         (j0_test_data): Likewise.
1813         (j1_test_data): Likewise.
1814         (jn_test_data): Likewise.
1815         (lgamma_test_data): Likewise.
1816         (lrint_test_data): Likewise.
1817         (llrint_test_data): Likewise.
1818         (logb_test_data): Likewise.
1819         (lround_test_data): Likewise.
1820         (llround_test_data): Likewise.
1821         (nearbyint_test_data): Likewise.
1822         (rint_test_data): Likewise.
1823         (round_test_data): Likewise.
1824         (sin_test_data): Likewise.
1825         (sincos_test_data): Likewise.
1826         (sinh_test_data): Likewise.
1827         (sqrt_test_data): Likewise.
1828         (tan_test_data): Likewise.
1829         (tanh_test_data): Likewise.
1830         (tgamma_test_data): Likewise.
1831         (trunc_test_data): Likewise.
1832         (y0_test_data): Likewise.
1833         (y1_test_data): Likewise.
1834         (yn_test_data): Likewise.
1835
1836         * math/libm-test.inc: Update comment about NaN testing.
1837         (TEST_SNAN): New macro.
1838         (snan_value): Likewise.
1839         (enable_test): Disable tests of sNaNs when SNAN_TESTS fails.
1840         (fpclassify_test_data): Add sNaN tests.
1841         (isfinite_test_data): Likewise.
1842         (isinf_test_data): Likewise.
1843         (isnan_test_data): Likewise.
1844         (isnormal_test_data): Likewise.
1845         (issignaling_test_data): Likewise.
1846         (signbit_test_data): Likewise.
1847         * math/gen-libm-test.pl (%beautify): Add snan_value.
1848         (show_exceptions): Add argument $test_snan.
1849         (parse_args): Handle snan_value as non-finite.  Update call to
1850         show_exceptions.
1851         * math/Makefile (libm-test-no-inline-cflags): Add
1852         -fsignaling-nans.
1853
1854 2016-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1855
1856         * nptl/Makefile (CFLAGS-oldrecvfrom.c): Remove rule.
1857         (CFLAGS-oldsendmsg.c): Add rule.
1858         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24):
1859         Correct recvmsg symbol name.
1860         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24):
1861         Likewise.
1862
1863 2016-05-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1864
1865         * sysdeps/unix/sysv/linux/Makefile
1866         [$(subdir) = socket] (sysdep_routines): Add oldrecvmmsg and
1867         oldsendmmsg.
1868         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add recvmmsg and
1869         sendmmsg.
1870         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1871         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1872         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1873         * sysdeps/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1875         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1876         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1877         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
1878         Likewise.
1879         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1880         * sysdeps/unix/sysv/linux/oldrecvmmsg.c: New file.
1881         * sysdeps/unix/sysv/linux/oldsendmmsg.c: Likewise.
1882         * sysdeps/unix/sysv/linux/recvmmsg.c (__recvmmsg): Adjust msghdr
1883         iovlen and controllen fields to adjust to POSIX specification.
1884         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
1885
1886         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Remove xfail-
1887         and change to correct expected type.
1888         (msghdr.msg_controllen): Likewise.
1889         (cmsghdr.cmsg_len): Likewise.
1890         * sysdeps/unix/sysv/linux/bits/socket.h (msghdr.msg_iovlen): Fix
1891         expected POSIX assumption about the size.
1892         (msghdr.msg_controllen): Likewise.
1893         (msghdr.__glibc_reserved1): Likewise.
1894         (msghdr.__glibc_reserved2): Likewise.
1895         (cmsghdr.cmsg_len): Likewise.
1896         (cmsghdr.__glibc_reserved1): Likewise.
1897         * nptl/Makefile (libpthread-routines): Remove ptw-recvmsg and ptw-sendmsg.
1898         Add ptw-oldrecvmsg and ptw-oldsendmsg.
1899         (CFLAGS-sendmsg.c): Remove rule.
1900         (CFLAGS-recvmsg.c): Likewise.
1901         (CFLAGS-oldsendmsg.c): Add rule.
1902         (CFLAGS-oldrecvmsg.c): Likewise.
1903         * sysdeps/unix/sysv/linux/alpha/Versions [libc] (GLIBC_2.24): Add
1904         recvmsg and sendmsg.
1905         * sysdeps/unix/sysv/linux/aarch64/Version [libc] (GLIBC_2.24):
1906         Likewise.
1907         * sysdeps/unix/sysv/linux/arm/Versions [libc] (GLIBC_2.24): Likewise.
1908         * sysdeps/unix/sysv/linux/hppa/Versions [libc] (GLIBC_2.24): Likewise.
1909         * sysdeps/unix/sysv/linux/i386/Versions [libc] (GLIBC_2.24): Likewise.
1910         * sysdeps/unix/sysv/linux/ia64/Versions [libc] (GLIBC_2.24): Likewise.
1911         * sysdeps/unix/sysv/linux/m68k/Versions [libc] (GLIBC_2.24): Likewise.
1912         * sysdeps/unix/sysv/linux/microblaze/Versions [libc] (GLIBC_2.24):
1913         Likewise.
1914         * sysdeps/unix/sysv/linux/mips/mips32/Versions [libc] (GLIBC_2.24):
1915         Likewise.
1916         * sysdeps/unix/sysv/linux/mips/mips64/n32/Versions [libc] (GLIBC_2.24):
1917         Likewise.
1918         * sysdeps/unix/sysv/linux/mips/mips64/Versions [libc] (GLIBC_2.24):
1919         Likewise.
1920         * sysdeps/unix/sysv/linux/nios2/Versions [libc] (GLIBC_2.24):
1921         Likewise.
1922         * sysdeps/unix/sysv/linux/powerpc/Versions [libc] (GLIBC_2.24):
1923         Likewise.
1924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions [libc]
1925         (GLIBC_2.24): Likewise.
1926         * sysdeps/unix/sysv/linux/s390/s390-32/Versions [libc] (GLIBC_2.24):
1927         Likewise.
1928         * sysdeps/unix/sysv/linux/s390/s390-64/Versions [libc] (GLIBC_2.24):
1929         Likewise.
1930         * sysdeps/unix/sysv/linux/sh/Versions [libc] (GLIBC_2.24): Likewise.
1931         * sysdeps/unix/sysv/linux/sparc/Versions [libc] (GLIBC_2.24):
1932         Likewise.
1933         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions [libc] (GLIBC_2.24):
1934         Likewise.
1935         ( sysdeps/unix/sysv/linux/tile/Versions [libc] (GLIBC_2.24):
1936         Likewise.
1937         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/Versions [libc]
1938         (GLIBC_2.24): Likewise.
1939         ( sysdeps/unix/sysv/linux/x86_64/64/Versions [libc] (GLIBC_2.24):
1940         Likewise.
1941         * sysdeps/unix/sysv/linux/x84_64/Versions [libc] (GLIBC_2.24):
1942         Likewise.
1943         * sysdeps/unix/sysv/linux/Makefile
1944         [$(subdir) = socket)] (sysdep_headers): Add oldrecvmsg and oldsendmsg.
1945         (CFLAGS-sendmsg.c): Add rule.
1946         (CFLAGS-recvmsg.c): Likewise.
1947         (CFLAGS-oldsendmsg.c): Likewise.
1948         (CFLAGS-oldrecvmsg.c): Likewise.
1949         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Fix msghdr
1950         initialization.
1951         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
1952         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
1953         * sysdeps/unix/sysv/linux/oldrecvmsg.c: New file.
1954         * sysdeps/unix/sysv/linux/oldsendmsg.c: Likewise.
1955         * sysdeps/unix/sysv/linux/recvmsg.c (__libc_recvmsg): Adjust msghdr
1956         iovlen and controllen fields to adjust to POSIX specification.
1957         * sysdeps/unix/sysv/linux/sendmsg.c (__libc_sendmsg): Likewise.
1958         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: New version and
1959         added recvmsg and sendmsg.
1960         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1961         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
1962         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
1963         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
1964         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
1965         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
1966         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
1967         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
1968         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
1969         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1970         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1971         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise
1972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
1973         Likewise.
1974         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
1975         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
1976         * sysdepe/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
1977         Likewise.
1978         Likewise.
1979         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1980         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1981         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
1982         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1983         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1984         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1985         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
1986         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
1987         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
1988         Likewise.
1989         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1990         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1991
1992         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg): Remove
1993         from auto-generation.
1994         (sendmsg): Likewise.
1995         * sysdeps/unix/sysv/linux/arm/syscalls.list (recvmsg): Likewise.
1996         (sendmsg): Likewise.
1997         * sysdeps/unix/sysv/linux/generic/syscalls.list (recvmsg): Likewise.
1998         (sendmsg): Likewise.
1999         * sysdeps/unix/sysv/linux/hppa/syscalls.list (recvmsg): Likewise.
2000         (sendmsg): Likewise.
2001         * sysdeps/unix/sysv/linux/ia64/syscalls.list (recvmsg): Likewise.
2002         (sendmsg): Likewise.
2003         * sysdeps/unix/sysv/linux/mips/syscalls.list (recvmsg): Likewise.
2004         (sendmsg): Likewise.
2005         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (recvmsg):
2006         Likewise.
2007         (sendmsg): Likewise.
2008         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (recvmsg): Likewise.
2009         (sendmsg): Likewise.
2010         * sysdeps/unix/sysv/linux/i386/kernel-features.h
2011         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2012         Remove.
2013         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2014         Likewise.
2015         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2016         Undefine.
2017         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2018         Likewise.
2019         * sysdeps/unix/sysv/linux/kernel-features.h
2020         (__ASSUME_SENDMSG_SYSCALL): Define.
2021         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2022         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2023         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2024         Remove.
2025         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2026         Likewise.
2027         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2028         Undefine.
2029         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2030         Likewise.
2031         * sysdeps/unix/sysv/linux/s390/kernel-features.h
2032         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2033         Remove.
2034         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2035         Likewise.
2036         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_SENDMSG_SYSCALL):
2037         Undefine.
2038         [__LINUX_KERNEL_VERSION < 0x040300] (__ASSUME_RECVMSG_SYSCALL):
2039         Likewise.
2040         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2041         (__ASSUME_SENDMSG_SYSCALL): Undefine.
2042         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2043         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2044         (__ASSUME_SENDMSG_SYSCALL): Likewise.
2045         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2046         * sysdeps/unix/sysv/linux/sh/kernel-features.h
2047         (__ASSUME_SENDMSG_SYSCALL): Likewise.
2048         (__ASSUME_RECVMSG_SYSCALL): Likewise.
2049
2050 2016-05-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2051
2052         * stdlib/gen-tst-strtod-round.c: Add backslash to
2053         compile command in comment.
2054         (printfp): Remove the literal suffix, and define an infinite
2055         value as INF to avoid expansion clash with INFINITY.
2056         (round_str): Remove the literal suffix.
2057         (round_for_all): Likewise, remove the now duplicate ldbl-64
2058         entry, and remove some magic constants.
2059
2060         * stdlib/tst-strtod-round.c: (TEST): Redefine to reduce
2061         duplication.  Remove duplicate dbl-64 and ldbl-64 entries.
2062         (ROUNDING_TESTS_long_double): Define as 0 for ibm128.
2063         (_CONCAT): New macro.
2064         (CONCAT): Likewise.
2065         (CHOOSE_ld): Likewise.
2066         (CHOOSE_f): Likewise.
2067         (CHOOSE_d): Likewise.
2068         (FTYPE_MEMBER): Likewise.
2069         (BOOL_MEMBER): Likewise.
2070         (STRUCT_FOREACH_FLOAT_FTYPE): Likewise.
2071         (STRUCT_FOREACH_FLOAT_BOOL): Likewise.
2072         (_XNTRY): Likewise.
2073         (XNTRY): Likewise.
2074         (_ENTRY): Likewise.
2075         (ENTRY): Likewise.
2076         (test_exactness): Generate members via macro.
2077         (test_results): Likewise.
2078         (test): Update members.
2079         (TEST): Redefine using new macros.
2080         (INF): New macro.
2081         (fetestmodes): New structure.
2082         (do_test): Refactor to be type generic.
2083         (test_in_one_mode): Refactor duplicate code into
2084         (GEN_ONE_TEST): New macro.
2085
2086         * stdlib/tst-strtod-round-data.h: Regenerate.
2087
2088         * stdlib/tst-strtod.h (GEN_TEST_STRTOD_FOREACH):
2089         Extend to pass additional arbitrary parameters to
2090         generators.
2091
2092 2016-05-25  Joseph Myers  <joseph@codesourcery.com>
2093
2094         [BZ #15479]
2095         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S (__ceil): Move save of
2096         floating-point state after first floating-point operation on
2097         input.  Restore full floating-point state instead of just rounding
2098         mode.
2099         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S (__ceilf): Likewise.
2100         * sysdeps/powerpc/powerpc64/fpu/s_floor.S (__floor): Likewise.
2101         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S (__floorf): Likewise.
2102         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S (__trunc): Likewise.
2103         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S (__truncf): Likewise.
2104
2105         [BZ #15479]
2106         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S (__ceil): Move save of
2107         floating-point state after first floating-point operation on
2108         input.  Restore full floating-point state instead of just rounding
2109         mode.
2110         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S (__ceilf): Likewise.
2111         * sysdeps/powerpc/powerpc32/fpu/s_floor.S (__floor): Likewise.
2112         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S (__floorf): Likewise.
2113         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S (__trunc): Likewise.
2114         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S (__truncf): Likewise.
2115
2116 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2117
2118         [BZ #19727]
2119         * iconvdata/utf-16.c (BODY): Report an error if first word is not a
2120         valid high surrogate.
2121         * iconvdata/utf-32.c (BODY): Report an error if the value is in range
2122         of an utf16 surrogate.
2123         * iconv/gconv_simple.c (BODY): Likewise.
2124         * iconvdata/bug-iconv12.c: New file.
2125         * iconvdata/Makefile (tests): Add bug-iconv12.
2126
2127 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2128
2129         [BZ #19726]
2130         * iconv/gconv_simple.c (ucs4le_internal_loop): Update inptrp and
2131         outptrp in case of an illegal input.
2132         * iconv/tst-iconv6.c: New file.
2133         * iconv/Makefile (tests): Add tst-iconv6.
2134
2135 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2136
2137         * sysdeps/s390/utf16-utf32-z9.c: Disable cu42 instruction and report
2138         an error in case of a value in range of an utf16 low surrogate.
2139
2140 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2141
2142         * sysdeps/s390/utf8-utf32-z9.c: Disable cu41 instruction and report
2143         an error in case of a value in range of an utf16 low surrogate.
2144
2145 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2146
2147         * sysdeps/s390/s390-64/Makefile (iconvdata-subdirectory):
2148         Move to ...
2149         * sysdeps/s390/Makefile: ... here.
2150         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Move to ...
2151         * sysdeps/s390/iso-8859-1_cp037_z900.c: ... here.
2152         (BRANCH_ON_COUNT): New define.
2153         (TR_LOOP): Use BRANCH_ON_COUNT instead of brctg.
2154         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Move to ...
2155         * sysdeps/s390/utf16-utf32-z9.c: ... here and adjust to
2156         run on s390-32, too.
2157         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Move to ...
2158         * sysdeps/s390/utf8-utf16-z9.c: ... here and adjust to
2159         run on s390-32, too.
2160         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Move to ...
2161         * sysdeps/s390/utf8-utf32-z9.c: ... here and adjust to
2162         run on s390-32, too.
2163
2164 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2165
2166         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Use ifunc to select c,
2167         etf3eh or new vector loop-variant.
2168
2169 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2170
2171         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Use ifunc to select c,
2172         etf3eh or new vector loop-variant.
2173
2174 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2175
2176         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Use ifunc to select c, etf3eh
2177         or new vector loop-variant.
2178
2179 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2180
2181         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c (TROO_LOOP):
2182         Rename to TR_LOOP and usage of tr instead of troo instruction.
2183
2184 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2185
2186         * sysdeps/s390/multiarch/gconv_simple.c: New File.
2187         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add gconv_simple.
2188
2189 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2190
2191         * sysdeps/s390/multiarch/8bit-generic.c: New File.
2192         * sysdeps/s390/multiarch/gen-8bit.sh: New File.
2193         * sysdeps/s390/multiarch/Makefile (generate-8bit-table):
2194         New override define.
2195         * sysdeps/s390/multiarch/iconv/skeleton.c: Likewise.
2196
2197 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2198
2199         * config.h.in (HAVE_S390_VX_GCC_SUPPORT): New macro undefine.
2200         * sysdeps/s390/configure.ac: Add test for S390 vector register
2201         support in gcc.
2202         * sysdeps/s390/configure: Regenerated.
2203
2204 2016-05-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
2205
2206         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules):
2207         Install file from $(objpfx)gconv-modules.
2208         ($(objpfx)gconv-modules): Concatenate architecture specific file
2209         in variable sysdeps-gconv-modules and gconv-modules in src dir.
2210         * sysdeps/s390/gconv-modules: New file.
2211         * sysdeps/s390/s390-64/Makefile: ($(inst_gconvdir)/gconv-modules):
2212         Deleted.
2213         ($(objpfx)gconv-modules-s390): Deleted.
2214         (sysdeps-gconv-modules): New variable.
2215
2216 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
2217
2218         [BZ #15479]
2219         * sysdeps/x86_64/fpu/multiarch/s_ceil.S (__ceil_sse41): Set bit 3
2220         of immediate operand to rounding instruction.
2221         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S (__ceilf_sse41):
2222         Likewise.
2223         * sysdeps/x86_64/fpu/multiarch/s_floor.S (__floor_sse41):
2224         Likewise.
2225         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf_sse41):
2226         Likewise.
2227
2228 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2229
2230         * math/libm-test.inc (MIN_EXP): Directly define as
2231         (DBL|LDBL|FLT)_MIN_EXP and fixup usage.
2232
2233 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2234
2235         * math/libm-test.inc (MANT_DIG): Directly define as
2236         (DBL|LDBL|FLT)_MANT_DIG and fixup usage.
2237
2238 2016-05-24  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2239
2240         * stdlib/gen-tst-strtod-round.c (main):
2241           Change usage to more closely match the generated
2242           output.  Add usage and compilation instructions.
2243           (string_to_fp): Add and use FILE* parameter as
2244           output target.
2245           (print_fp): Likewise.
2246           (round_str): Likewise.
2247           (round_for_all): Likewise.
2248         * stdlib/tst-strtod-round.c (tests): Move into
2249         * stdlib/tst-strtod-round-data.h: New file.
2250
2251 2016-05-24  Joseph Myers  <joseph@codesourcery.com>
2252
2253         [BZ #15479]
2254         * sysdeps/ieee754/dbl-64/s_round.c (huge): Remove variable.
2255         (__round): Do not force "inexact" exception.
2256         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (huge): Remove
2257         variable.
2258         (__round): Do not force "inexact" exception.
2259         * sysdeps/ieee754/flt-32/s_roundf.c (huge): Remove variable.
2260         (__roundf): Do not force "inexact" exception.
2261         * sysdeps/ieee754/ldbl-128/s_roundl.c (huge): Remove variable.
2262         (__roundl): Do not force "inexact" exception.
2263         * sysdeps/ieee754/ldbl-96/s_roundl.c (huge): Remove variable.
2264         (__roundl): Do not force "inexact" exception.
2265         * math/libm-test.inc (round_test_data): Do not allow spurious
2266         "inexact" exceptions.
2267
2268         [BZ #15479]
2269         * sysdeps/ieee754/dbl-64/s_floor.c: Do not mention "inexact"
2270         exception in comment.
2271         (huge): Remove variable.
2272         (__floor): Do not force "inexact" exception.
2273         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Do not mention
2274         "inexact" exception in comment.
2275         (huge): Remove variable.
2276         (__floor): Do not force "inexact" exception.
2277         * sysdeps/ieee754/flt-32/s_floorf.c: Do not mention "inexact"
2278         exception in comment.
2279         (huge): Remove variable.
2280         (__floorf): Do not force "inexact" exception.
2281         * sysdeps/ieee754/ldbl-128/s_floorl.c: Do not mention "inexact"
2282         exception in comment.
2283         (huge): Remove variable.
2284         (__floorl): Do not force "inexact" exception.
2285
2286         [BZ #15479]
2287         * sysdeps/ieee754/dbl-64/s_ceil.c: Do not mention "inexact"
2288         exception in comment.
2289         (huge): Remove variable.
2290         (__ceil): Do not force "inexact" exception.
2291         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Do not mention
2292         "inexact" exception in comment.
2293         (huge): Remove variable.
2294         (__ceil): Do not force "inexact" exception.
2295         * sysdeps/ieee754/flt-32/s_ceilf.c (huge): Remove variable.
2296         (__ceilf): Do not force "inexact" exception.
2297         * sysdeps/ieee754/ldbl-128/s_ceill.c: Do not mention "inexact"
2298         exception in comment.
2299         (huge): Remove variable.
2300         (__ceill): Do not force "inexact" exception.
2301
2302 2016-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2303
2304         * config.h.in (BIND_NOW): New.
2305         * configure.ac (BIND_NOW): New.  Defined for --enable-bind-now.
2306         * configure: Regenerated.
2307         * sysdeps/x86_64/sysdep.h (JUMPTARGET)[BIND_NOW]: Defined to
2308         indirect branch via the GOT slot.
2309
2310 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2311
2312         [BZ #19765]
2313         * sysdeps/s390/mempcpy.S: New File.
2314         * sysdeps/s390/multiarch/mempcpy.c: Likewise.
2315         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add mempcpy.
2316         * sysdeps/s390/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2317         Add mempcpy variants.
2318         * sysdeps/s390/s390-32/memcpy.S: Add mempcpy entry point.
2319         (memcpy): Adjust to be usable from mempcpy entry point.
2320         (__memcpy_mvcle): Likewise.
2321         * sysdeps/s390/s390-64/memcpy.S: Likewise.
2322         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add entry points
2323         ____mempcpy_z196, ____mempcpy_z10 and add __GI_ symbols for mempcpy.
2324         (__memcpy_z196): Adjust to be usable from mempcpy entry point.
2325         (__memcpy_z10): Likewise.
2326         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
2327
2328 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2329
2330         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_libc_ifunc):
2331         Remove __GI_ symbol.
2332         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Add __GI_memcmp symbol.
2333         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Likewise.
2334         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Add __GI_memcpy symbol.
2335         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Likewise.
2336         * sysdeps/s390/s390-32/multiarch/memset-s390.S: Add __GI_memset symbol.
2337         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Likewise.
2338
2339 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2340
2341         * sysdeps/s390/s390-64/memcpy.S (memcpy):
2342         Use cghi instead of chi to compare 64bit value.
2343
2344 2016-05-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
2345
2346         * sysdeps/s390/s390-32/memcpy.S (memcpy):
2347         Jump to 1MB check before executing mvc-loop.
2348
2349 2016-05-24  Florian Weimer  <fweimer@redhat.com>
2350
2351         [BZ #6527]
2352         * malloc/malloc.c (MALLOC_ALIGNMENT): Use correct alignment
2353         unconditionally.
2354         * malloc/hooks.c (MALLOC_STATE_VERSION): Increase state version.
2355
2356 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2357
2358         * stdlib/tst-strtod6.c (do_test): Use new type generic
2359         invocation of the test function.
2360         (test): Refactor into ...
2361         (TEST_STRTOD): New macro base function.
2362
2363 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2364
2365         * stdlib/bug-strtod2.c (do_test): Refactor strtod usage into ...
2366         (TEST_STRTOD): New macro.
2367         (TEST_FUNCTION): Redefine to use STRTOD_TEST_FOREACH
2368
2369 2016-05-23  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2370
2371         * stdlib/tst-strtod6.c (do_test): Use new type generic
2372         invocation of the test function.
2373         (test): Refactor into ...
2374         (TEST_STRTOD): New macro base function.
2375
2376 2016-05-23  Florian Weimer  <fweimer@redhat.com>
2377
2378         CVE-2016-4429
2379         [BZ #20112]
2380         * sunrpc/clnt_udp.c (clntudp_call): Use malloc/free for the error
2381         payload.
2382
2383 2016-05-23  Florian Weimer  <fweimer@redhat.com>
2384
2385         [BZ #20111]
2386         * bits/sockaddr.h (_SS_SIZE): Define.
2387         * bits/socket.h (_SS_SIZE): Remove.
2388         (_SS_PADSIZE): Adjust to account for all padding.
2389         (struct sockaddr_storage): Update comment.  Avoid implicit
2390         padding.
2391         * sysdeps/mach/hurd/bits/socket.h (_SS_SIZE): Remove.
2392         (_SS_PADSIZE): Adjust to account for all padding.
2393         (struct sockaddr_storage): Update comment.  Avoid implicit
2394         padding.
2395         * sysdeps/unix/bsd/bits/sockaddr.h (_SS_SIZE): Define.
2396         * sysdeps/unix/sysv/linux/bits/socket.h (_SS_SIZE): Remove.
2397         (_SS_PADSIZE): Adjust to account for all padding.
2398         (struct sockaddr_storage): Update comment.  Avoid implicit
2399         padding.
2400         * sysdeps/unix/sysv/linux/m68k/bits/sockaddr.h: New file.
2401         __SS_SIZE is 126 in this version.
2402         * inet/tst-sockaddr.c: New file.
2403         * inet/Makefile (tests): Add tst-sockaddr.c
2404         (tst-sockaddr.c): Compile with non-strict aliasing.
2405
2406 2016-05-23  Joseph Myers  <joseph@codesourcery.com>
2407
2408         * conform/data/limits.h-data (CHARCLASS_NAME_MAX): Also expect for
2409         [XPG3 || XPG4].
2410         (NL_ARGMAX): Also expect for [XPG3].
2411         (NL_LANGMAX): Likewise.
2412         (NL_MSGMAX): Likewise.
2413         (NL_NMAX): Likewise.
2414         (NL_SETMAX): Likewise.
2415         (NL_TEXTMAX): Likewise.
2416         (NZERO): Likewise.
2417         (TMP_MAX): Likewise.
2418         * conform/Makefile (test-xfail-XPG3/limits.h/conform): Remove
2419         variable.
2420
2421         * sysdeps/unix/sysv/linux/bits/socket.h (PF_KCM): New macro.
2422         (PF_MAX): Update value.
2423         (AF_KCM): New macro.
2424         (SOL_NETBEUI): Likewise.
2425         (SOL_LLC): Likewise.
2426         (SOL_DCCP): Likewise.
2427         (SOL_NETLINK): Likewise.
2428         (SOL_TIPC): Likewise.
2429         (SOL_RXRPC): Likewise.
2430         (SOL_PPPOL2TP): Likewise.
2431         (SOL_BLUETOOTH): Likewise.
2432         (SOL_PNPIPE): Likewise.
2433         (SOL_RDS): Likewise.
2434         (SOL_IUCV): Likewise.
2435         (SOL_CAIF): Likewise.
2436         (SOL_ALG): Likewise.
2437         (SOL_NFC): Likewise.
2438         (SOL_KCM): Likewise.
2439         (MSG_BATCH): New enum value and macro.
2440
2441 2016-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2442
2443         [BZ #18185]
2444         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Don't limit threads
2445         sharing L2 cache to 2 for Knights Landing.
2446
2447 2016-05-20  Joseph Myers  <joseph@codesourcery.com>
2448
2449         * conform/data/ftw.h-data (struct FTW): Do not expect for [XPG3].
2450         (FTW_DP): Do not expect for [XPG3 || XPG4].
2451         (FTW_SL): Do not expect for [XPG3].
2452         (FTW_SLN): Likewise.
2453         (FTW_PHYS): Likewise.
2454         (FTW_MOUNT): Likewise.
2455         (FTW_DEPTH): Likewise.
2456         (FTW_CHDIR): Likewise.
2457         (nftw): Likewise.
2458         * conform/Makefile (test-xfail-XPG3/ftw.h/conform): Remove
2459         variable.
2460
2461 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2462
2463         * manual/errno.texi: Fix various typos & grammar errors.
2464
2465 2016-05-19  Rical Jasan  <ricaljasan@pacific.net>
2466
2467         * manual/intro.texi: Fix duplicated typo.
2468
2469 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2470
2471         [BZ #13304]
2472         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Include <fenv.h>,
2473         <float.h>, <math_private.h> and <stdlib.h>.
2474         (add_split): New function.
2475         (mul_split): Likewise.
2476         (ext_val): New typedef.
2477         (store_ext_val): New function.
2478         (mul_ext_val): New function.
2479         (compare): New function.
2480         (add_split_ext): New function.
2481         (__fmal): After checking for Inf, NaN and zero, compute result as
2482         an exact sum of scaled double values in round-to-nearest before
2483         adding those up and adjusting for other rounding modes.
2484         * math/auto-libm-test-in: Remove xfail-rounding:ldbl-128ibm from
2485         tests of fma.
2486         * math/auto-libm-test-out: Regenerated.
2487
2488 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2489
2490         [BZ #20119]
2491         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Correct Intel
2492         processor level type mask for CPUID with EAX == 11.
2493
2494 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2495
2496         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Skip counting
2497         logical threads if the HTT bit is 0.
2498         * sysdeps/x86/cpu-features.h (bit_cpu_HTT): New.
2499         (index_cpu_HTT): Likewise.
2500         (reg_HTT): Likewise.
2501
2502 2016-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2503
2504         [BZ #20115]
2505         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S (__memset):
2506         Remove alignments on jump targets.
2507
2508 2016-05-19  Joseph Myers  <joseph@codesourcery.com>
2509
2510         * conform/data/pwd.h-data (endpwent): Do not expect for [XPG3].
2511         (getpwent): Likewise.
2512         (setpwent): Likewise.
2513         * conform/Makefile (test-xfail-XPG3/pwd.h/conform): Remove
2514         variable.
2515
2516         * conform/data/search.h-data (insque): Do not expect for [XPG3].
2517         (remque): Likewise.
2518         * conform/Makefile (test-xfail-XPG3/search.h/conform): Remove
2519         variable.
2520
2521 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2522
2523         * math/libm-test.inc: Update comment not to refer to signs of NaNs
2524         not being tested.
2525
2526 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2527
2528         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
2529         (__condvar_cleanup2): Remove JUMPTARGET from  _Unwind_Resume
2530         call.
2531         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
2532         (__condvar_cleanup1): Likewise.
2533
2534 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2535
2536         * sysdeps/unix/sysv/linux/x86_64/cancellation.S (PTHREAD_UNWIND):
2537         New
2538         (__pthread_unwind): Renamed to ...
2539         (PTHREAD_UNWIND): This.
2540         (__pthread_enable_asynccancel): Replace
2541         JUMPTARGET(__pthread_unwind) with PTHREAD_UNWIND.
2542
2543 2016-05-18  Joseph Myers  <joseph@codesourcery.com>
2544
2545         * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU]
2546         (CLONE_NEWCGROUP): New macro.
2547
2548         * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2]
2549         (Q_GETNEXTQUOTA): New macro.
2550
2551 2016-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2552
2553         [BZ #19907]
2554         * benchtests/bench-memcpy.c (do_one_test): Clear the destination
2555         buffer updated by the previous run.
2556         * string/test-memcpy.c (do_one_test): Likewise.
2557         * benchtests/bench-memmove.c (do_one_test): Add a comment.
2558         * string/test-memmove.c (do_one_test): Likewise.
2559
2560 2016-05-17  Joseph Myers  <joseph@codesourcery.com>
2561
2562         [BZ #20094]
2563         * stdlib/stdlib.h (grantpt): Declare if [__USE_XOPEN_EXTENDED],
2564         not [__USE_XOPEN].
2565         (unlockpt): Likewise.
2566         (ptsname): Likewise.
2567         * conform/Makefile (test-xfail-XPG3/stdlib.h/conform): Remove
2568         variable.
2569
2570         [BZ #20076]
2571         * io/sys/stat.h (S_IFSOCK): Define for [__USE_XOPEN_EXTENDED]
2572         instead of [__USE_UNIX98].
2573         (S_ISSOCK): Likewise.
2574         * conform/Makefile (test-xfail-XPG4/sys/stat.h/conform): Remove
2575         variable.
2576
2577         [BZ #20074]
2578         * stdlib/stdlib.h (rand_r): Declare if [__USE_POSIX199506], not if
2579         [__USE_POSIX].
2580         * conform/Makefile (test-xfail-XPG4/stdlib.h/conform): Remove
2581         variable.
2582
2583         [BZ #20051]
2584         * posix/unistd.h [__USE_XOPEN_EXTENDED && !__USE_UNIX98]
2585         (ttyslot): Do not declare.
2586         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && !__USE_XOPEN2K]
2587         (ttyslot): New prototype.
2588         * conform/Makefile (test-xfail-XPG4/unistd.h/conform): Remove
2589         variable.
2590         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
2591
2592 2016-05-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
2593
2594         * nptl/tst-cancel17.c (do_test): Wait for finishing aio_read(&a).
2595
2596 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2597
2598         Fix race condition in tst-mallocfork2, use fewer resources.
2599         * malloc/tst-mallocfork2.c (sigusr1_handler): Do not send SIGSTOP
2600         to current process group.
2601         (signal_sender): Yield in the non-sleeping case.
2602
2603 2016-05-13  Joseph Myers  <joseph@codesourcery.com>
2604
2605         * conform/data/stdlib.h-data (a64l): Do not expect for [XPG3].
2606         (ecvt): Likewise.
2607         (fcvt): Likewise.
2608         (gcvt): Likewise.
2609         (getsubopt): Likewise.
2610         (grantpt): Likewise.
2611         (initstate): Likewise.
2612         (l64a): Likewise.
2613         (mktemp): Likewise.
2614         (mkstemp): Likewise.
2615         (ptsname): Likewise.
2616         (random): Likewise.
2617         (realpath): Likewise.
2618         (setstate): Likewise.
2619         (srandom): Likewise.
2620         (ttyslot): Likewise.
2621         (unlockpt): Likewise.
2622         (valloc): Likewise.
2623
2624         * conform/data/string.h-data (strdup): Do not expect for [XPG3].
2625         * conform/Makefile (test-xfail-XPG3/string.h/conform): Remove
2626         variable.
2627
2628 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2629
2630         [BZ #20072]
2631         * sysdeps/i386/dl-machine.h (dl_platform_init): Call
2632         init_cpu_features only if SHARED is defined.
2633         * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
2634
2635 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2636
2637         * sysdeps/x86/cacheinfo.c (init_cacheinfo): Check and support
2638         non-inclusive caches on Intel processors.
2639
2640 2016-05-13  Florian Weimer  <fweimer@redhat.com>
2641
2642         * malloc/malloc.c (dumped_main_arena_start)
2643         (dumped_main_arena_end): New variables.
2644         (DUMPED_MAIN_ARENA_CHUNK): New macro.
2645         (do_check_chunk): Skip dumped fake mmapped chunks.
2646         (munmap_chunk): Likewise.
2647         (__libc_free): Do not adjust statistics for fake mmapped chunks.
2648         (__libc_realloc): Adjust hardening check.  Always copy dumped fake
2649         mmapped chunks.
2650         * malloc/hooks.c (__malloc_set_state): Do not update main_arena.
2651         Mark dumped chunks as using mmap.  Update dumped_main_arena_start
2652         and dumped_main_arena_end to cover the dumped heap.
2653
2654 2016-05-12  Joseph Myers  <joseph@codesourcery.com>
2655
2656         * conform/data/time.h-data (getdate_err): Do not expect for
2657         [XPG3].
2658         (getdate): Likewise.
2659         * conform/Makefile (test-xfail-XPG3/time.h/conform): Remove
2660         variable.
2661
2662         * conform/data/unistd.h-data (F_LOCK): Do not expect for [XPG3].
2663         (F_ULOCK): Likewise.
2664         (F_TEST): Likewise.
2665         (F_TLOCK): Likewise.
2666         (useconds_t): Likewise.
2667         (intptr_t): Do not expect for [XPG3] or [XPG4].
2668         (brk): Do not expect for [XPG3]
2669         (fchown): Likewise.
2670         (fchdir): Likewise.
2671         (ftruncate): Likewise.
2672         (getdtablesize): Likewise.
2673         (gethostid): Likewise.
2674         (getpagesize): Likewise.
2675         (getpgid): Likewise.
2676         (getsid): Likewise.
2677         (getwd): Likewise.
2678         (lchown): Likewise.
2679         (lockf): Likewise.
2680         (readlink): Likewise.
2681         (sbrk): Likewise.
2682         (setpgrp): Likewise.
2683         (setregid): Likewise.
2684         (setreuid): Likewise.
2685         (symlink): Likewise.
2686         (sync): Likewise.
2687         (truncate): Likewise.
2688         (ualarm): Likewise.
2689         (usleep): Likewise.
2690         (vfork): Likewise.
2691         * conform/Makefile (test-xfail-XPG3/unistd.h/conform): Remove
2692         variable.
2693
2694         [BZ #20054]
2695         * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
2696         not [__USE_UNIX98].
2697         * conform/data/unistd.h-data (gethostname): Do not expect for
2698         [XPG3].
2699
2700         * conform/data/fcntl.h-data [!POSIX] (S_IFMT): Do not expect.
2701         [!POSIX] (S_IFBLK): Likewise.
2702         [!POSIX] (S_IFCHR): Likewise.
2703         [!POSIX] (S_IFIFO): Likewise.
2704         [!POSIX] (S_IFREG): Likewise.
2705         [!POSIX] (S_IFDIR): Likewise.
2706         [!POSIX] (S_IFLNK): Likewise.
2707         [!POSIX] (S_IFSOCK): Likewise.
2708         * conform/Makefile (test-xfail-XPG3/fcntl.h/conform): Remove
2709         variable.
2710         (test-xfail-XPG4/fcntl.h/conform): Likewise.
2711
2712 2016-05-12  Wilco Dijkstra  <wdijkstr@arm.com>
2713
2714         * sysdeps/aarch64/memset.S (__memset):
2715         Rewrite of optimized memset.
2716
2717 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2718
2719         [BZ #19703]
2720         Partially async-signal-safe fork for single-threaded processes.
2721         * sysdeps/nptl/fork.c (__libc_fork): Introduce multiple_threads
2722         variable.  Do not acquire and reset/release malloc and libio locks
2723         in single-threaded processes.
2724         * malloc/tst-mallocfork2.c: New file.
2725         * malloc/Makefile (tests): Add it.
2726
2727 2016-05-12  Florian Weimer  <fweimer@redhat.com>
2728
2729         * sysdeps/posix/getaddrinfo.c (gaih_inet_serv): Add tmpbuf
2730         argument.  Use scratch buffer instead of extend_alloca.
2731         (gethosts): Use scratch buffer instead of extend_alloca.
2732         (gaih_inet): Add tmpbuf argument.  Use scratch buffer instead of
2733         extend_alloca.
2734         (getaddrinfo): Allocate scratch buffer and pass it to gaih_inet.
2735
2736 2016-05-11  Joseph Myers  <joseph@codesourcery.com>
2737
2738         [BZ #20055]
2739         * termios/termios.h (pid_t): Define for [__USE_XOPEN_EXTENDED]
2740         instead of [__USE_UNIX98].
2741         (tcgetsid): Declare for [__USE_XOPEN_EXTENDED] instead of
2742         [__USE_UNIX98].
2743         * conform/data/termios.h-data (tcgetsid): Do not expect for
2744         [XPG3].
2745         * conform/Makefile (test-xfail-XPG3/termios.h/conform): Remove
2746         variable.
2747         (test-xfail-XPG4/termios.h/conform): Likewise.
2748
2749 2016-05-11  Florian Weimer  <fweimer@redhat.com>
2750
2751         Do not use mcheck in localedef.
2752         * locale/programs/localedef.c (turn_on_mcheck)
2753         (__malloc_initialize_hook): Remove.
2754
2755 2016-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
2756
2757         * sysdeps/s390/s390-32/Makefile (pic-ccflag): Remove.
2758         * sysdeps/s390/s390-64/Makefile: Likewise.
2759
2760 2016-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2761
2762         * sysdeps/i386/i686/multiarch/Makefile (gen-as-const-headers):
2763         Remove ifunc-defines.sym.
2764         * sysdeps/x86_64/multiarch/Makefile (gen-as-const-headers):
2765         Likewise.
2766         * sysdeps/i386/i686/multiarch/ifunc-defines.sym: Removed.
2767         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
2768         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Likewise.
2769         * sysdeps/x86/Makefile (gen-as-const-headers): Remove
2770         rtld-global-offsets.sym.
2771         * sysdeps/x86_64/multiarch/ifunc-defines.sym: Merged with ...
2772         * sysdeps/x86/cpu-features-offsets.sym: This.
2773         * sysdeps/x86/cpu-features.h: Include <cpu-features-offsets.h>
2774         instead of <ifunc-defines.h> and <rtld-global-offsets.h>.
2775
2776 2016-05-10  Joseph Myers  <joseph@codesourcery.com>
2777
2778         [BZ #20073]
2779         * io/sys/stat.h (fchmod): Declare for
2780         [__USE_POSIX199309 || __USE_XOPEN_EXTENDED], not [__USE_POSIX].
2781         * conform/Makefile (test-xfail-XPG3/sys/stat.h/conform): Remove
2782         variable.
2783
2784         * conform/data/sys/stat.h-data [XPG3] (S_IFLNK): Do not expect.
2785         [XPG3] (S_IFSOCK): Likewise.
2786         [XPG3] (S_ISVTX): Likewise.
2787         [XPG3] (S_ISLNK): Likewise.
2788         [XPG3] (S_ISSOCK): Likewise.
2789         [XPG3] (fchmod): Likewise.
2790         [XPG3] (lstat): Likewise.
2791         [XPG3] (mknod): Likewise.
2792
2793         * conform/data/sys/stat.h-data (st_blksize): Do not expect for
2794         [XPG3].  Expect type long and XFAIL for [XPG4].
2795         (st_blocks): Likewise.
2796
2797         [BZ #20044]
2798         * posix/unistd.h [__USE_UNIX98 && !__USE_XOPEN2K]
2799         (pthread_atfork): New prototype.
2800         * conform/Makefile (test-xfail-UNIX98/unistd.h/conform): Remove
2801         variable.
2802
2803         [BZ #20043]
2804         * posix/unistd.h [__USE_XOPEN && !__USE_XOPEN2K] (cuserid): New
2805         prototype.
2806
2807 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2808
2809         [BZ #20017]
2810         * resolv/res_debug.c (p_secstodate): Call __gmtime_r instead of
2811         gmtime.
2812
2813 2016-05-10  Florian Weimer  <fweimer@redhat.com>
2814
2815         [BZ #19994]
2816         * sysdeps/posix/getaddrinfo.c (gethosts): Restore RES_USE_INET6
2817         flag in _res.options.
2818
2819 2016-05-09  Joseph Myers  <joseph@codesourcery.com>
2820
2821         * conform/data/sys/types.h-data (blkcnt_t): Do not expect for
2822         [XPG3 || XPG4].
2823         (blksize_t): Likewise.
2824         (clockid_t): Likewise.
2825         * conform/Makefile (test-xfail-XPG3/sys/types.h/conform): Remove
2826         variable.
2827         (test-xfail-XPG4/sys/types.h/conform): Likewise.
2828
2829 2016-05-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
2830
2831         * sysdeps/unix/sysv/linux/s390/init-first.c:
2832         Add VDSO_SYMBOL(getcpu).
2833         (_libc_vdso_platform_setup): Initialize VDSO_SYMBOL(getcpu).
2834         * sysdeps/unix/sysv/linux/s390/libc-vdso.h:
2835         Add VDSO_SYMBOL(getcpu).
2836         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h:
2837         New define HAVE_GETCPU_VSYSCALL.
2838         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
2839
2840 2016-05-08  H.J. Lu  <hongjiu.lu@intel.com>
2841
2842         * sysdeps/i386/cacheinfo.c: Include <sysdeps/x86/cacheinfo.c>
2843         instead of <sysdeps/x86_64/cacheinfo.c>.
2844         * sysdeps/x86_64/cacheinfo.c: Moved to ...
2845         * sysdeps/x86/cacheinfo.c: Here.
2846
2847 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2848
2849         * malloc/malloc-internal.h: Adjust header file guard.
2850
2851 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2852
2853         [BZ #19787]
2854         * inet/getnameinfo.c (check_sprintf_result): New function.
2855         (CHECKED_SNPRINTF): New macro.
2856         (gni_host_inet_numeric): Use CHECKED_SNPRINTF to write the scope
2857         to the host buffer.
2858         (gni_host_local): Use checked_copy to copy the host name.
2859         (gni_serv_inet): Use CHECKED_SNPRINTF to write the service name.
2860         (gni_serv_local): Use checked_copy to copy the service name.
2861         (getnameinfo): Remove unnecessary truncation of result buffers.
2862
2863 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2864
2865         * inet/getnameinfo.c (gni_host_inet_numeric): Return EAI_OVERFLOW
2866         in case of inet_ntop failure.
2867
2868 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2869
2870         * inet/getnameinfo.c (gni_host_inet_name): Use temporaries to
2871         avoid long lines.
2872         (gni_host_inet_numeric): Likewise.  Reduce scope of local
2873         variables.
2874         (gni_host_inet, gni_host_local): Add comment.
2875         (gni_host): Add comment.  Use temporary to avoid long lines.
2876
2877 2016-05-04  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
2878
2879         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Fix use of condition
2880         registers specifiers where general purpose registers specifiers should
2881         have been used.
2882
2883 2016-05-04  Florian Weimer  <fweimer@redhat.com>
2884
2885         [BZ #19779]
2886         CVE-2016-1234
2887         Avoid copying names of directory entries.
2888         * posix/glob.c (DIRENT_MUST_BE, DIRENT_MIGHT_BE_SYMLINK)
2889         (DIRENT_MIGHT_BE_DIR, CONVERT_D_INO, CONVERT_D_TYPE)
2890         (CONVERT_DIRENT_DIRENT64, REAL_DIR_ENTRY): Remove macros.
2891         (struct readdir_result): New type.
2892         (D_TYPE_TO_RESULT, D_INO_TO_RESULT, READDIR_RESULT_INITIALIZER)
2893         (GL_READDIR): New macros.
2894         (readdir_result_might_be_symlink, readdir_result_might_be_dir)
2895         (convert_dirent, convert_dirent64): New functions.
2896         (glob_in_dir): Use struct readdir_result.  Call convert_dirent or
2897         convert_dirent64.  Adjust references to the readdir result.
2898         * sysdeps/unix/sysv/linux/i386/glob64.c:
2899         (convert_dirent, GL_READDIR): Redefine for second file inclusion.
2900         * posix/bug-glob2.c (LONG_NAME): Define.
2901         (filesystem): Add LONG_NAME.
2902         (my_DIR): Increase the size of room_for_dirent.
2903
2904 2016-05-03  Joseph Myers  <joseph@codesourcery.com>
2905
2906         [BZ #20041]
2907         * misc/sys/select.h (__need_timespec): Only define if
2908         [__USE_XOPEN2K].
2909         * conform/Makefile (test-xfail-XPG4/sys/time.h/conform): Remove
2910         variable.
2911         (test-xfail-XPG4/utmpx.h/conform): Likewise.
2912         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
2913         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
2914
2915 2016-05-03  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
2916             Segher Boessenkool  <segher@gcc.gnu.org>
2917
2918         [BZ #20004]
2919         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S:
2920         (__novec_swapcontext): Add missing load.
2921
2922 2016-05-02  Joseph Myers  <joseph@codesourcery.com>
2923
2924         [BZ #20023]
2925         * io/fcntl.h [__USE_XOPEN && !__USE_XOPEN2K8]: Do not include
2926         <time.h>.
2927         * conform/Makefile (test-xfail-UNIX98/fcntl.h/conform): Remove
2928         variable.
2929         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
2930
2931 2016-05-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2932
2933         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone): Fix
2934         flags CLONE_VM compare.
2935
2936 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2937
2938         [BZ #20031]
2939         * hesiod/hesiod.c (get_txt_records): Return error if TXT record is
2940         completely empty.
2941
2942 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2943
2944         [BZ #19573]
2945         * hesiod/Makefile (libnss_hesiod-routines): Remove hesiod-init.
2946         * hesiod/nss_hesiod/hesiod-init.c: Remove file.
2947         * hesiod/nss_hesiod/nss_hesiod.h: Likewise.
2948         * hesiod/hesiod.h (__hesiod_res_get, __hesiod_res_set): Remove.
2949         (hesiod_init, hesiod_end, hesiod_to_bind, hesiod_resolve)
2950         (hesiod_free_list): Mark as hidden.
2951         * hesiod/hesiod_p (struct hesiod_p): Remove res, free_res,
2952         res_set, res_get.
2953         * hesiod/hesiod.c: Remove unnecessary forward declarations.
2954         (init, __hesiod_res_get, __hesiod_res_set): Remove.
2955         (hesiod_init): Remove obsolete res_ninit call.
2956         (hesiod_end): Do not free resolver state.  Do not invoke callback.
2957         (hesiod_bind): Do not call init.
2958         (get_txt_records): Use res_mkquery, res_send instead of
2959         res_nmkquery, res_nsend.
2960         * hesiod/nss_hesiod/hesiod-grp.c (lookup): Call hesiod_init
2961         instead of _nss_hesiod_init.
2962         (_nss_hesiod_initgroups_dyn): Likewise.
2963         * hesiod/nss_hesiod/hesiod-proto.c (lookup): Likewise.
2964         * hesiod/nss_hesiod/hesiod-pwd.c (lookup): Likewise.
2965         * hesiod/nss_hesiod/hesiod-service.c (lookup): Likewise.
2966
2967 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2968
2969         * hesiod/hesiod_p.h (DEF_RHS): Remove.
2970         * hesiod/hesiod.c (hesiod_init): Remove code for handling DEF_RHS.
2971
2972 2016-05-02  Florian Weimer  <fweimer@redhat.com>
2973
2974         * hesiod/hesiod.h: Remove RCS keyword.
2975         * hesiod/hesiod_p.h: Likewise.
2976
2977         * hesiod/hesiod.c: Likewise.
2978
2979 2016-05-01  Arnas Udovičius  <arnas.udovicius@gmail.com>
2980
2981         [BZ #12450]
2982         * locale/iso-639.def: Add Samogitian/sgs.
2983
2984 2016-04-30  Andreas Schwab  <schwab@linux-m68k.org>
2985
2986         * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define.
2987
2988         * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels.
2989
2990 2016-04-29  Stephen Gallagher  <sgallagh@redhat.com>
2991             Carlos O'Donell  <carlos@redhat.com>
2992
2993         [BZ #19072]
2994         * grp/Makefile (headers): Add grp-merge.h
2995         (routines): Add grp-merge.
2996         * grp/getgrgid_r.c: Include grp-merge.h.
2997         (DEEPCOPY_FN): Define.
2998         (MERGE_FN): Define.
2999         * grp/getgrname_r.c: Include grp-merge.h.
3000         (DEEPCOPY_FN): Define.
3001         (MERGE_FN): Define.
3002         * grp/grp-merge.c: New file.
3003         * grp/grp-merge.h: New file.
3004         * include/grp-merge.h: New file.
3005         * grp/Versions: Define __merge_grp@GLIBC_PRIVATE, and
3006         __copy_grp@GLIBC_PRIVATE.
3007         * manual/nss.texi (Actions in the NSS configuration): Describe
3008         return, continue, and merge.
3009         * nscd/getgrgid_r.c: Include grp/grp-merge.h.
3010         (DEEPCOPY_FN): Define.
3011         (MERGE_FN): Define.
3012         * nscd/getgrnam_r.c: Include grp/grp-merge.h.
3013         (DEEPCOPY_FN): Define.
3014         (MERGE_FN): Define.
3015         * nss/getXXbyYY_r.c [!DEEPCOPY_FN]: Define __copy_einval.
3016         [!MERGE_FN]: Define __merge_einval.
3017         (CHECK_MERGE): Define.
3018         (REENTRANT_NAME): Process merge if do_merge is true.
3019         * nss/getnssent_r.c (__nss_setent): Process NSS_ACTION_MERGE.
3020         (__nss_getent_r): Likewise.
3021         * nss/nsswitch.c (nss_parse_service_list): Likewise.
3022         * nss/nsswitch.h (lookup_actions): Define NSS_ACTION_MERGE.
3023
3024 2016-04-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3025
3026         [BZ #20012]
3027         * libio/fmemopen.c (fmemopen_read): Use buffer maximum position, not
3028         length to calculate the buffer to read.
3029         (fmemopen_write): Set the buffer position based on bytes written.
3030         (fmemopen_seek): Return EINVAL for invalid whence modes.
3031
3032         [BZ #19957]
3033         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nptl] (test): Remove
3034         tst-getpid2.
3035         (test): Add tst-clone2.
3036         * sysdeps/unix/sysv/linux/tst-clone2.c: New file.
3037         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not change
3038         pid/tid fields for CLONE_VM.
3039         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
3040         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
3041         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
3042         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise,
3043         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
3044         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
3045         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
3046         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
3047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
3048         Likewise.
3049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
3050         Likewise.
3051         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
3052         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
3053         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
3054         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
3055         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
3056         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
3057         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
3058         * sysdeps/unix/sysv/linux/tst-getpid2.c: Remove file.
3059
3060 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3061
3062         [BZ #19642]
3063         * inet/getnameinfo.c (gni_host_inet_name, gni_host_inet_numeric)
3064         (gni_host_inet, gni_host_local, gni_host, gni_serv_inet)
3065         (gni_serv_local, gni_serv): New functions extracted from
3066         getnameinfo.
3067         (getnameinfo): Call gni_host and gni_serv to perform the
3068         processing.  Always free scratch buffer.
3069
3070 2016-04-29  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
3071
3072         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Call memset to pad the
3073         remaining bytes in the dest string, with zeros.
3074
3075 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3076
3077         [BZ #20010]
3078         CVE-2016-3706
3079         * sysdeps/posix/getaddrinfo.c
3080         (convert_hostent_to_gaih_addrtuple): New function.
3081         (gethosts): Call convert_hostent_to_gaih_addrtuple.
3082         (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert
3083         AF_INET data.
3084
3085 2016-04-29  Florian Weimer  <fweimer@redhat.com>
3086
3087         glob: Simplify and document the interface for the GLOB_ALTDIRFUNC
3088         callback function gl_readdir.
3089         * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove.
3090         (CONVERT_DIRENT_DIRENT64): Use strcpy instead of memcpy.
3091         (glob_in_dir): Remove len.  Use strdup instead of malloc and
3092         memcpy to copy the name.
3093         * manual/pattern.texi (Calling Glob): Document requirements for
3094         implementations of the gl_readdir callback function.
3095         * manual/examples/mkdirent.c: New example.
3096         * posix/bug-glob2.c (my_readdir): Set d_ino to 1 unconditionally,
3097         per the manual guidance.
3098         * posix/tst-gnuglob.c (my_readdir): Likewise.
3099
3100 2016-04-28  Joseph Myers  <joseph@codesourcery.com>
3101
3102         [BZ #20014]
3103         * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506],
3104         not [__USE_POSIX].
3105         (getchar_unlocked): Likewise.
3106         (putc_unlocked): Likewise.
3107         (putchar_unlocked): Likewise.
3108         (flockfile): Likewise.
3109         (ftrylockfile): Likewise.
3110         (funlockfile): Likewise.
3111         * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove
3112         variable.
3113         (test-xfail-XPG4/stdio.h/conform): Likewise.
3114
3115         * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR):
3116         Expect constant.
3117         [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise.
3118         * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove
3119         variable.
3120         (test-xfail-XPG4/langinfo.h/conform): Likewise.
3121         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
3122
3123         * libio/stdio.h (off_t): Also define if [__USE_UNIX98].
3124         [__USE_LARGEFILE64] (off64_t): Likewise.
3125         * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove
3126         variable.
3127
3128 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3129
3130         * inet/getnameinfo.c (getnameinfo): Do not preserve errno.
3131
3132 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3133
3134         * resolv/inet_addr.c: Reindent preprocessor conditionals.
3135         * resolv/res_init.c: Likewise.
3136         * resolv/res_mkquery.c: Likewise.
3137
3138 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3139
3140         * resolv/res_init.c (isascii): Do not define.  Use definition in
3141         <ctype.h>.
3142         * resolv/gethnamaddr.c: Remove USE_OPTIONS_H conditional.
3143         (LOG_AUTH): Remove.
3144         (SPRINTF): Remove, adjust caller.
3145         (MULTI_PTRS_ARE_ALIASES): Remove, always defined.
3146
3147 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3148
3149         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r): Remove
3150         SUNSECURITY conditional.
3151         * resolv/gethnamaddr.c (gethostbyaddr): Likewise.
3152
3153 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3154
3155         * resolv/arpa/nameser.h: Include <sys/types.h> unconditionally.
3156         * resolv/gethnamaddr.c: Use include files from conf/portability.h.
3157         Remove BSD-related preprocessor conditionals.
3158         * conf/portability.h: Remove.
3159
3160 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3161
3162         * resolv/resolv.h: Remove __BIND_NOSTATIC conditional.
3163         * resolv/res_data.c: Likewise.
3164
3165 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3166
3167         * resolv/res_comp.c: Remove code conditional on __ultrix__.
3168         * resolv/res_data.c: Remove code conditional on ultrix.
3169
3170 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3171
3172         * resolv/res_init.c (RFC1535): Do not define.  Remove
3173         RFC1535 preprocessor conditionals.
3174         * resolv/README: Update.  Do not claim strict RFC 1535 compliance
3175         because there configuration options which make the resolver
3176         behavior different.
3177
3178 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3179
3180         * resolv/gethnamaddr.c (RESOLVSORT): Do not define.  Remove
3181         RESOLVSORT preprocessor conditionals.
3182         * resolv/nss_dns/dns-host.c: Likewise.
3183         * resolv/res_init.c: Likewise.
3184
3185 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3186
3187         * resolv/res_data.c: Remove code conditional on BIND_UPDATE.  It
3188         is never defined.
3189
3190 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3191
3192         * inet/inet_lnaof.c: Remove SCSS keyword.
3193         * inet/inet_mkadr.c: Likewise.
3194         * inet/inet_net.c: Likewise.
3195         * inet/inet_netof.c: Likewise.
3196         * inet/rcmd.c: Likewise.
3197         * inet/rexec.c: Likewise.
3198         * inet/ruserpass.c: Likewise.
3199
3200 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3201
3202         * resolv/inet_addr.c: Remove _LIBC conditionals.
3203         * resolv/res_data.c: Likewise.
3204         * resolv/res_init.c: Likewise.
3205         * resolv/res_mkquery.c: Likewise.
3206         * resolv/res_libc.c: Update comment.
3207         * resolv/README: Update.
3208
3209 2016-04-28  Florian Weimer  <fweimer@redhat.com>
3210
3211         * resolv/gethnamaddr.c: Remove SCSS keyword.
3212         * resolv/herror.c: Likewise.
3213         * resolv/inet_addr.c: Likewise.
3214         * resolv/inet_net_ntop.c: Likewise.
3215         * resolv/inet_net_pton.c: Likewise.
3216         * resolv/inet_neta.c: Likewise.
3217         * resolv/inet_ntop.c: Likewise.
3218         * resolv/inet_pton.c: Likewise.
3219         * resolv/ns_date.c: Remove RCS keyword.
3220         * resolv/ns_name.c: Likewise.
3221         * resolv/ns_netint.c: Likewise.
3222         * resolv/ns_parse.c: Likewise.
3223         * resolv/ns_print.c: Likewise.
3224         * resolv/ns_samedomain.c: Likewise.
3225         * resolv/ns_ttl.c: Likewise.
3226         * resolv/nsap_addr.c: Likewise.
3227         * resolv/res_comp.c: Remove SCSS and RCS keyword.
3228         * resolv/res_data.c: Remove RCS keyword.
3229         * resolv/res_debug.c: Remove SCSS and RCS keyword.
3230         * resolv/res_init.c: Likewise.
3231         * resolv/res_mkquery.c: Likewise.
3232         * resolv/res_query.c: Likewise.
3233         * resolv/res_send.c: Likewise.
3234
3235 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
3236
3237         * conform/data/stdio.h-data (fdopen): Expect also for
3238         [XPG3 || XPG4].
3239
3240         * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98].
3241         (fseeko): Likewise.
3242         (ftello): Likewise.
3243         (ftrylockfile): Likewise.
3244         (funlockfile): Likewise.
3245         (getc_unlocked): Likewise.
3246         (getchar_unlocked): Likewise.
3247         (putc_unlocked): Likewise.
3248         (putchar_unlocked): Likewise.
3249
3250 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3251
3252         [BZ #19868]
3253         * resolv/nss_dns/dns-network.c (getanswer_r): Implement additional
3254         DNS packet syntax checks (which were not needed before).  Skip
3255         over non-PTR records.
3256
3257 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3258
3259         * resolv/nss_dns/dns-network.c (offsetof): Remove macro
3260         definition.  Include <stddef.h> instead.
3261
3262 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3263
3264         [BZ #19831]
3265         * resolv/nss_dns/dns-host.c (rrtype_to_rdata_length): New
3266         function.
3267         (getanswer_r): Check RDATA length against RRTYPE and QTYPE.
3268         (gaih_getanswer_slice): Check RDATA length against RRTYPE.
3269
3270 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3271
3272         [BZ #19862]
3273         * resolv/nss_dns/dns-host.c (AskedForGot): Remove.
3274         (getanswer_r): Do not call syslog.
3275         (gaih_getanswer_slice): Likewise.
3276         * resolv/gethnamaddr.c (AskedForGot): Remove.
3277         (getanswer): Do not call syslog.
3278         (gethostbyaddr): Likewise.
3279
3280 2016-04-27  Joseph Myers  <joseph@codesourcery.com>
3281
3282         * conform/data/signal.h-data (union sigval): Expect also if
3283         [XOPEN2K].
3284         (struct sigevent): Likewise.
3285         (SIGEV_NONE): Likewise.
3286         (SIGEV_SIGNAL): Likewise.
3287         (SIGEV_THREAD): Likewise.
3288         (SIGRTMIN): Likewise.
3289         (SIGRTMAX): Likewise.
3290         * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove
3291         variable.
3292         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
3293
3294 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3295
3296         [BZ #19830]
3297         * resolv/nss_dns/dns-host.c (getanswer_r): Check RDATA length.
3298         (gaih_getanswer_slice): Likewise.
3299         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Likewise.
3300         Also check for availability of RR metadata.
3301
3302 2016-04-27  Florian Weimer  <fweimer@redhat.com>
3303
3304         [BZ #19825]
3305         * resolv/res_send.c (send_vc): Remove early *resplen2
3306         initialization.  Set *resplen2 on socket error.  Call
3307         close_and_return_error for other errors.
3308
3309 2016-04-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
3310
3311         * sysdeps/unix/sysv/linux/netiucv/iucv.h
3312         (SOL_IUCV, SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE)
3313         (SCM_IUCV_TRGCLS): New define.
3314
3315 2016-04-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3316
3317         [BZ #20005]
3318         * libio/fmemopen.c (fmemopen_write): Update internal position after
3319         write.
3320         * stdio-common/Makefile (tests): Add tst-fmemopen4.c.
3321         * stdio-common/tst-fmemopen4.c: New file..
3322
3323 2016-04-26  Joseph Myers  <joseph@codesourcery.com>
3324
3325         [BZ #19996]
3326         * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8],
3327         not [__USE_XOPEN2K].
3328         * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove
3329         variable.
3330
3331         * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro.
3332         * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove
3333         variable.
3334
3335         * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not
3336         [__USE_XOPEN2K8].
3337         [__USE_LARGEFILE64] (off64_t): Likewise.
3338         * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove
3339         variable.
3340
3341 2016-04-25  Joseph Myers  <joseph@codesourcery.com>
3342
3343         [BZ #19989]
3344         * libio/stdio.h (cuserid): Do not declare if
3345         [__USE_XOPEN2K && !__USE_GNU].
3346         * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove
3347         variable.
3348
3349 2016-04-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3350
3351         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3352         (sysdep_routines): Add P8 and PPC64 strcspn targets.
3353         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3354         (__libc_ifunc_impl_list): Add entries for P8 and PPC64
3355         ifunc'ed strcspn.
3356         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3357         [EALIGN]: Removed.
3358         [END]: Likewise
3359         [STRSPN]: Define instead of the above to control symbol name.
3360         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S:
3361         New file.
3362         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c:
3363         Likewise.
3364         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c:
3365         Likewise.
3366         * sysdeps/powerpc/powerpc64/power8/strcspn.S:
3367         Likewise.
3368         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3369         [INITIAL_MASK]: New macro.
3370         [STRCSPN]: Likewise.
3371         [UPDATE_MASK]: Likewise.
3372         [USE_AS_STRCSPN]: Lisewise.
3373
3374 2016-04-25  Florian Weimer  <fweimer@redhat.com>
3375
3376         [BZ #19931]
3377         * stdio-common/tst-vfprintf-width-prec.c: New file.
3378         * stdio-common/Makefile (tests): Add tst-vfprintf-width-prec.
3379         (tests-special): Add tst-vfprintf-width-prec-mem.out.
3380         (generated): Add mtrace-related files.
3381         (tst-vfprintf-width-prec-ENV): Set MALLOC_TRACE.
3382         (tst-%-mem.out): New pattern rule, replaces
3383         tst-printf-bz18872-mem.out.
3384         * stdio-common/vfprintf.c (vfprintf): When handling a precision
3385         specifier, deallocate any previously allocated work buffer.
3386
3387 2016-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
3388
3389         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__startcontext):
3390         Add nop before __startcontext, add explaining comments.
3391
3392 2016-04-25  Samuel thibault  <samuel.thibault@ens-lyon.org>
3393
3394         RFC2292 macros were obsoleted by RFC3542, and should not be exposed
3395         any more. Notably since IPV6_PKTINFO has been reintroduced with a
3396         completely different API.
3397
3398         * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO.
3399         (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS.
3400         (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS.
3401         (IPV6_RTHDR): Rename to IPV6_2292RTHDR.
3402         (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS.
3403         (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT.
3404         (IPV6_RECVPKTINFO, IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT,
3405         IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR,
3406         IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU,
3407         IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
3408
3409 2016-04-23  H.J. Lu  <hongjiu.lu@intel.com>
3410
3411         * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
3412
3413 2016-04-23  Mike Frysinger  <vapier@gentoo.org>
3414
3415         * locale/programs/ld-time.c (time_finish): Set week_1stweek to 7
3416         when it is the default of 0.
3417
3418 2016-04-22  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3419
3420         * sysdeps/powerpc/locale-defines.sym:  Add new macros.
3421         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3422         (sysdep_routines): Add new strcasestr targets.
3423         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3424         (__libc_ifunc_impl_list): Likewise.
3425         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: New file.
3426         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-ppc64.c: New file.
3427         * sysdeps/powerpc/powerpc64/multiarch/strcasestr.c: New file.
3428         * sysdeps/powerpc/powerpc64/power8/Makefile:
3429         New file to add strcasestr-ppc64 to sysdep_routines.
3430         * sysdeps/powerpc/powerpc64/power8/strcasestr-ppc64.c: New file.
3431         * sysdeps/powerpc/powerpc64/power8/strcasestr.S: New file.
3432
3433 2016-04-20  Siddhesh Poyarekar  <sid@reserved-bit.com>
3434
3435         * benchtests/Makefile (wcsmbs-benchset): Include only for
3436         native builds and runs.
3437         (LOCALES): Likewise.
3438         (bench-build): Build timing-type here instead of the bench
3439         target.  Generate locale only for native builds.
3440         * benchtests/README: Add note for cross-building.
3441
3442         * benchtests/Makefile (bench-clean): Clean up extra-objs.
3443
3444         * benchtests/README: Update README to include instructions on
3445         using bench-build.
3446
3447         * Makefile.in (bench-build): New target.
3448         * Rules (PHONY): Add bench-build target.
3449         * benchtests/Makefile (bench): Depend on bench-build.
3450         (bench-build): New target.
3451
3452 2016-04-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3453
3454         * sysdeps/mach/hurd/profil.c (update_waiter): Initialize
3455         profil_reply_port.
3456         (profile_waiter): Do not initialize profil_reply_port.
3457         * sysdeps/mach/hurd/profil.c (__profile_frequency): Return tick
3458         frequency instead of tick length in us.
3459
3460 2016-04-18  Wilco Dijkstra  <wdijkstr@arm.com>
3461
3462         [BZ #18712]
3463         * string/string-inlines.c (__STRING2_COPY_TYPE): Add, moved from string2.h.
3464         (__old_mempcpy_small): Likewise.
3465         (__old_strcpy_small): Likewise.
3466         (__old_stpcpy_small): Likewise.
3467         (__old_strpbrk_c2): Fix compat symbol name.
3468         (__old_strpbrk_c3): Likewise.
3469         * string/bits/string2.h (__STRING2_COPY_TYPE): Remove.
3470         (__mempcpy_small): Remove.
3471         (__strcpy_small): Remove.
3472         (__stpcpy_small): Remove.
3473
3474 2016-04-16  Robin van der Vliet <info@robinvandervliet.com>
3475
3476         [BZ #19400]
3477         * locale/iso-639.def: Add the Talossan/tzl language.
3478
3479 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3480
3481         [BZ #16983]
3482         * locale/programs/ld-address.c (address_finish): Update postal_fmt
3483         comment.  Add "ln" to strchr check on postal_fmt.
3484
3485 2016-04-16  Mike Frysinger  <vapier@gentoo.org>
3486
3487         * locale/programs/ld-telephone.c (telephone_finish): Add %t to the
3488         default tel_int_fmt.  Add "Cet" to strchr check on tel_int_fmt and
3489         tel_dom_fmt.
3490
3491 2016-04-15  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
3492
3493         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3494         (sysdep_routines): Added __strlen_power8.
3495         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Added
3496         __strlen_power8 entry.
3497         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: New file.
3498         Implementation for POWER8.
3499         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Added IFUNC selector
3500         for __strlen_power8.
3501         * sysdeps/powerpc/powerpc64/power8/strlen.S: New file.
3502         Implementation for POWER8.
3503
3504 2016-04-15  Mike Frysinger  <vapier@gentoo.org>
3505
3506         * locale/iso-4217.def: Add SSP and change ZMK to ZMW.
3507
3508 2016-04-15   H.J. Lu  <hongjiu.lu@intel.com>
3509
3510         * sysdeps/x86/cpu-features.c (init_cpu_features): Detect Intel
3511         Goldmont and Airmont processors.
3512
3513 2016-04-15  Wilco Dijkstra  <wdijkstr@arm.com>
3514
3515         * string/string.h: Use __GNUC_PREREQ(3,4) for bits/string2.h.
3516         * string/bits/string2.h (__STRING2_SMALL_GET16): Remove.
3517         (__STRING2_SMALL_GET32): Remove.
3518         (memset): Remove.
3519         (__memset_1): Remove.
3520         (__memset_gc): Remove.
3521         (__mempcpy): Remove.
3522         (mempcpy): Remove.
3523         (__mempcpy_args): Remove.
3524         (strchr): Remove.
3525         (strcpy): Remove.
3526         (strcpy_args): Remove.
3527         (__stpcpy_args): Remove.
3528         (__strcmp_cc): Remove.
3529         (__strcmp_gc): Remove.
3530         (strstr): Remove.
3531
3532 2016-04-15  Yvan Roux  <yvan.roux@linaro.org>
3533
3534         * stdlib/setenv.c (unsetenv): Fix ambiguous 'else'.
3535         * nis/nis_call.c (nis_server_cache_add): Likewise.
3536
3537 2016-04-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3538
3539         * sysdeps/unix/sysv/linux/sysdep.h: Include kernel-features.h.
3540
3541 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3542
3543         * malloc/arena.c (__malloc_fork_lock_parent)
3544         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Add
3545         internal_function attribute.
3546
3547 2016-04-14  Stefan Liebler  <stli@linux.vnet.ibm.com>
3548
3549         * stdio-common/printf_fp.c (__printf_fp_l):
3550         Rename ___printf_fp_l to __printf_fp_l and
3551         remove strong alias. Use libc_hidden_def instead
3552         of ldbl_hidden_def macro.
3553
3554 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3555
3556         Remove malloc hooks from fork handler.  They are no longer needed
3557         because malloc runs right before fork, and no malloc calls from
3558         other fork handlers are not possible anymore.
3559         * malloc/malloc.c (malloc_atfork, free_atfork): Remove
3560         declarations.
3561         * malloc/arena.c (save_malloc_hook, save_free_hook, save_arena)
3562         (ATFORK_ARENA_PTR, malloc_atfork, free_atfork)
3563         (atfork_recursive_cntr): Remove.
3564         (__malloc_fork_lock_parent): Do not override malloc hooks and
3565         thread_arena.
3566         (__malloc_fork_unlock_parent): Do not restore malloc hooks and
3567         thread_arena.
3568         (__malloc_fork_unlock_child): Do not restore malloc hooks.  Use
3569         thread_arena instead of save_arena.
3570
3571 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3572
3573         * sysdeps/nptl/malloc-machine.h (ATFORK_MEM, __dso_handle)
3574         (thread_atfork, thread_atfork_static): Remove.
3575         * sysdeps/mach/hurd/malloc-machine.h:
3576         (thread_atfork, thread_atfork_static): Remove.
3577
3578 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3579
3580         [BZ #19431]
3581         Run the malloc fork handler as late as possible to avoid deadlocks.
3582         * malloc/malloc-internal.h: New file.
3583         * malloc/malloc.c: Include it.
3584         * malloc/arena.c (ATFORK_MEM): Remove.
3585         (__malloc_fork_lock_parent): Rename from ptmalloc_lock_all.
3586         Update comment.
3587         (__malloc_fork_unlock_parent): Rename from ptmalloc_unlock_all.
3588         (__malloc_fork_unlock_child): Rename from ptmalloc_unlock_all2.
3589         Remove outdated comment.
3590         (ptmalloc_init): Do not call thread_atfork.  Remove
3591         thread_atfork_static.
3592         * malloc/tst-malloc-fork-deadlock.c: New file.
3593         * Makefile (tests): Add tst-malloc-fork-deadlock.
3594         (tst-malloc-fork-deadlock): Link against libpthread.
3595         * manual/memory.texi (Aligned Memory Blocks): Update safety
3596         annotation comments.
3597         * sysdeps/nptl/fork.c (__libc_fork): Call
3598         __malloc_fork_lock_parent, __malloc_fork_unlock_parent,
3599         __malloc_fork_unlock_child.
3600         * sysdeps/mach/hurd/fork.c (__fork): Likewise.
3601
3602 2016-04-14  Florian Weimer  <fweimer@redhat.com>
3603
3604         [BZ #19613]
3605         Remove union wait.
3606         * bits/waitstatus.h (union wait, w_termsig, w_coredump, w_retcode)
3607         (w_stopsig, w_stopval): Remove.
3608         * include/sys/wait.h (__wait, __wait3, __wait4): Use int * for the
3609         stat_loc argument.
3610         * posix/sys/wait.h (__WAIT_INT, __WAIT_STATUS)
3611         (__WAIT_STATUS_DEFN): Remove.
3612         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3613         (WIFSTOPPED, WIFCONTINUED, WCOREDUMP): Remove __WAIT_INT.
3614         (wait, wait3, wait4): Use int * for the stat_loc argument.
3615         * posix/wait.c (__wait): Likewise.
3616         * posix/wait3.c (__wait3): Likewise.
3617         * posix/wait4.c (__wait4): Likewise.
3618         * stdlib/stdlib.h (__WAIT_INT, __WAIT_STATUS)
3619         (__WAIT_STATUS_DEFN): Remove.
3620         (WEXITSTATUS, WTERMSIG, WSTOPSIG, WIFEXITED, WIFSIGNALED)
3621         (WIFSTOPPED, WIFCONTINUED): Remove __WAIT_INT.
3622         * sysdeps/mach/hurd/wait4.c (__wait4): Use int * for the stat_loc
3623         argument.
3624         * sysdeps/posix/wait.c (__libc_wait): Likewise.
3625         * sysdeps/posix/wait3.c (__wait3): Likewise.
3626         * sysdeps/unix/bsd/wait.c (__libc_wait): Likewise.
3627         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
3628         * sysdeps/unix/bsd/waitpid.c (__waitpid): Remove cast.
3629         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Use int * for the
3630         stat_loc argument.
3631         * manual/process.texi (BSD Wait Functions): Remove union wait.
3632
3633 2016-04-13  Andreas Schwab  <schwab@suse.de>
3634
3635         * elf/Makefile (extra-test-objs): Add tst-tlsalign-vars.o.
3636         (test-extras): Add tst-tlsalign-vars.
3637         * math/Makefile: Wrap long lines.
3638         (libm-vec-test-wrappers): Define.
3639         (test-extras): Add $(libm-vec-test-wrappers).
3640         (extra-test-objs): Add $(libm-vec-test-wrappers) objects.
3641         * nss/Makefile (extra-test-objs): Add nss_test1.os.
3642         * stdlib/Makefile (extra-test-objs): Add $(modules-names) objects.
3643         * sysdeps/x86_64/Makefile (test-extras): Add tst-quadmod1pie
3644         tst-quadmod2pie tst-audit4-aux tst-audit10-aux.
3645         (extra-test-objs): Add corresponding objects.
3646
3647 2016-04-12   H.J. Lu  <hongjiu.lu@intel.com>
3648
3649         [BZ #19928]
3650         * sysdeps/x86_64/cacheinfo.c (__x86_shared_non_temporal_threshold):
3651         New.
3652         (init_cacheinfo): Set __x86_shared_non_temporal_threshold to 6
3653         times of shared cache size.
3654         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S
3655         (VMOVNT): New.
3656         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S
3657         (VMOVNT): Likewise.
3658         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
3659         (VMOVNT): Likewise.
3660         (VMOVU): Changed to movups for smaller code sizes.
3661         (VMOVA): Changed to movaps for smaller code sizes.
3662         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Update
3663         comments.
3664         (PREFETCH): New.
3665         (PREFETCH_SIZE): Likewise.
3666         (PREFETCHED_LOAD_SIZE): Likewise.
3667         (PREFETCH_ONE_SET): Likewise.
3668         Rewrite to use forward and backward loops, which move 4 vector
3669         registers at a time, to support overlapping addresses and use
3670         non temporal store if size is above the threshold and there is
3671         no overlap between destination and source.
3672
3673 2016-04-12  Alex Smith  <alex.smith@imgtec.com>
3674
3675         * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines):
3676         Include dl-vdso.
3677         * sysdeps/unix/sysv/linux/mips/Versions: Add
3678         __vdso_clock_gettime.
3679         * sysdeps/unix/sysv/linux/mips/init-first.c: New file.
3680         * sysdeps/unix/sysv/linux/mips/libc-vdso.h: New file.
3681         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h:
3682         (INTERNAL_VSYSCALL_CALL): Define to be compatible with MIPS
3683         definitions of INTERNAL_SYSCALL_{ERROR_P,ERRNO}.
3684         (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
3685         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
3686         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
3687         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
3688
3689 2016-04-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3690
3691         * sysdeps/unix/sysv/linux/arm/pwrite.c: Remove file.
3692         * sysdeps/unix/sysv/linux/arm/pwrite64.c: Likewise.
3693         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
3694         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
3695         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
3696         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
3697         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
3698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
3699         * sysdeps/unix/sysv/linux/wordsize-64/pwrite64.c: Likewise.
3700         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (prite): Remove
3701         syscalls generation.
3702         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3703         [__NR_pwrite64] (__NR_write): Remove define.
3704         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3705         [__NR_pwrite64] (__NR_write): Remove define.
3706         * sysdeps/unix/sysv/linux/pwrite.c [__NR_pwrite64] (__NR_pwrite):
3707         Remove define.
3708         (__libc_pwrite): Use SYSCALL_LL macro on offset argument.
3709         * sysdeps/unix/sysv/linux/pwrite64.c [__NR_pwrite64] (__NR_pwrite):
3710         Remove define.
3711         (__libc_pwrite64): Use SYSCALL_LL64 macro on offset argument.
3712         * sysdeps/unix/sysv/linux/sh/pwrite.c: Rewrite using default
3713         Linux implementation as base.
3714         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
3715
3716         * sysdeps/unix/sysv/linux/arm/pread.c: Remove file.
3717         * sysdeps/unix/sysv/linux/arm/pread64.c: Likewise.
3718         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
3719         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
3720         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise,
3721         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
3722         * sysdeps/unix/sysv/linux/wordsize-64/pread64.c: Likewise.
3723         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (pread): Remove
3724         syscall generation.
3725         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3726         [__NR_pread64] (__NR_pread): Remove define.
3727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3728         [__NR_pread64] (__NR_pread): Likewise.
3729         * sysdeps/unix/sysv/linux/pread.c [__NR_pread64] (__NR_pread): Remove
3730         define.
3731         (__libc_pread): Use SYSCALL_LL macro on offset argument.
3732         * sysdeps/unix/sysv/linux/pread64.c [__NR_pread64] (__NR_pread):
3733         Remove define.
3734         (__libc_pread64): Use SYSCALL_LL64 macro on offset argument.
3735         * sysdeps/unix/sysv/linux/sh/pread.c: Rewrite using default
3736         Linux implementation as base.
3737         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
3738         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
3739         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
3740
3741         * sysdeps/unix/sysv/linux/generic/sysdep.h (__ALIGNMENT_ARG): Move
3742         definition.
3743         (__ALIGNMENT_COUNT): Likewise.
3744         * sysdeps/unix/sysv/linux/sysdep.h (__ALIGNMENT_ARG): To here.
3745         (__ALIGNMENT_COUNT): Likewise.
3746         (SYSCALL_LL): New define.
3747         (SYSCALL_LL64): Likewise.
3748         * sysdeps/unix/sysv/linux/mips/kernel-features.h:
3749         [_MIPS_SIM == _ABIO32] (__ASSUME_WORDSIZE64_ILP32): Define.
3750         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h:
3751         [ILP32] (__ASUME_WORDSIZE64_ILP32): Likewise.
3752
3753         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3754         (__ASSUME_ALIGNED_REGISTER_PAIRS): Define.
3755         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3756         [_MIPS_SIM == _ABIO32] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3757         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
3758         [!__powerpc64__] (__ASSUME_ALIGNED_REGISTER_PAIRS): Likewise.
3759
3760 2016-04-11  Florian Weimer  <fweimer@redhat.com>
3761
3762         [BZ #19865]
3763         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Restore
3764         original buffer before retry.
3765
3766 2016-04-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3767
3768         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro)
3769         [!HAVE_AUX_VECTOR]: Do not define _dl_auxv field.
3770         * misc/getauxval.c (__getauxval) [!HAVE_AUX_VECTOR]: Do not go through
3771         GLRO(dl_auxv) list.
3772         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_VECTOR): Define before
3773         including <ldsodefs.h>.
3774         * sysdeps/nacl/ldsodefs.h (HAVE_AUX_VECTOR): Likewise.
3775
3776 2016-04-09  Nick Alcock  <nick.alcock@oracle.com>
3777
3778         * elf/rtld-Rules (rtld-compile-command.c): Add $(rtld-CFLAGS).
3779         * scripts/sysd-rules.awk: Substitute in $(CFLAGS) as well as
3780         $(CPPFLAGS).
3781
3782 2016-04-09  Khem Raj  <raj.khem@gmail.com>
3783
3784         [BZ #17950]
3785         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os):
3786         Add -mfpmath=387.
3787
3788 2016-04-09  Mike Frysinger  <vapier@gentoo.org>
3789
3790         * sysdeps/i386/configure.ac: Change == to = when calling test.
3791         * sysdeps/x86_64/configure.ac: Likewise.
3792         * sysdeps/i386/configure: Regenerated.
3793         * sysdeps/x86_64/configure: Likewise.
3794
3795 2016-04-08  Mike Frysinger  <vapier@gentoo.org>
3796
3797         [BZ #16137]
3798         * benchtests/Makefile (LOCALES): Change iw_IL to he_IL.
3799         * benchtests/bench-strcoll.c (input_files): Likewise.
3800         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
3801         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Rename to ...
3802         * benchtests/strcoll-inputs/lorem_ipsum#he_IL.UTF-8: ... here.
3803
3804 2016-04-08  Joseph Myers  <joseph@codesourcery.com>
3805
3806         [BZ #19929]
3807         * include/bits/xopen_lim.h (NL_NMAX): Do not define if
3808         [__USE_XOPEN2K8 && !__USE_GNU].
3809         * conform/Makefile (test-xfail-XOPEN2K8/limits.h/conform): Remove
3810         variable.
3811
3812         [BZ #19925]
3813         * sysdeps/unix/sysv/linux/alpha/bits/termios.h (XCASE): Do not
3814         define if [!__USE_MISC && __USE_XOPEN2K].
3815         * sysdeps/unix/sysv/linux/bits/termios.h (XCASE): Likewise.
3816         * sysdeps/unix/sysv/linux/mips/bits/termios.h (XCASE): Likewise.
3817         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (XCASE):
3818         Likewise.
3819         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (XCASE): Likewise.
3820         * conform/Makefile (test-xfail-XOPEN2K/termios.h/conform): Remove
3821         variable.
3822         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
3823
3824 2016-04-07  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
3825
3826         * sysdeps/powerpc/powerpc64/multiarch/Makefile:
3827         (sysdep_routines): Add new strspn targets.
3828         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3829         (__libc_ifunc_impl_list): Add strspn.
3830         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S:
3831         New file.
3832         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c:
3833         Likewise.
3834         * sysdeps/powerpc/powerpc64/multiarch/strspn.c:
3835         Likewise.
3836         * sysdeps/powerpc/powerpc64/power8/strspn.S:
3837         Likewise.
3838
3839 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3840
3841         * misc/hsearch_r.c: Include <limits.h>.
3842
3843 2016-04-07  Florian Weimer  <fweimer@redhat.com>
3844
3845         * malloc/scratch_buffer_set_array_size.c: Include <limits.h>.
3846
3847 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3848
3849         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
3850         (MEMCPY_SYMBOL): New.
3851         (MEMPCPY_SYMBOL): Likewise.
3852         (MEMMOVE_CHK_SYMBOL): Likewise.
3853         Replace MEMMOVE_SYMBOL with MEMMOVE_CHK_SYMBOL on __mempcpy_chk
3854         symbols.  Replace MEMMOVE_SYMBOL with MEMPCPY_SYMBOL on
3855         __mempcpy symbols.  Provide alias for __memcpy_chk in libc.a.
3856         Provide alias for memcpy in libc.a and ld.so.
3857
3858 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3859
3860         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
3861         (MEMSET_CHK_SYMBOL): New.  Define if not defined.
3862         (__bzero): Check VEC_SIZE == 16 instead of USE_MULTIARCH.
3863         Disabled fro now.
3864         Replace MEMSET_SYMBOL with MEMSET_CHK_SYMBOL on __memset_chk
3865         symbols.  Properly check USE_MULTIARCH on __memset symbols.
3866
3867 2016-04-06   H.J. Lu  <hongjiu.lu@intel.com>
3868
3869         * benchtests/Makefile (string-benchset): Add memcpy-large,
3870         memmove-large and memset-large.
3871         * benchtests/bench-memcpy-large.c: New file.
3872         * benchtests/bench-memmove-large.c: Likewise.
3873         * benchtests/bench-memmove-large.c: Likewise.
3874         * benchtests/bench-string.h (TIMEOUT): Don't redefine.
3875
3876 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3877
3878         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Force
3879         32-bit displacement to avoid long nop between instructions.
3880
3881 2016-04-05   H.J. Lu  <hongjiu.lu@intel.com>
3882
3883         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Add
3884         a comment on VMOVU and VMOVA.
3885
3886 2016-04-04  Florian Weimer  <fweimer@redhat.com>
3887
3888         [BZ #19633]
3889         Use specified locale for number formatting in strfmon_l.
3890         * locale/localeinfo.h (__nl_lookup, _nl_lookup_wstr)
3891         (__nl_lookup_word): New inline functions.
3892         * include/printf.h (__print_fp_l): Declare.
3893         * stdio-common/printf_fp.c (___printf_fp_l): Renamed from
3894         ___printf_fp.  Add locale argument.  Replace _NL_CURRENT with
3895         _nl_lookup and _NL_CURRENT_WORD with _nl_lookup_word.
3896         (___printf_fp): New function.
3897         * stdlib/strfmon_l.c (__printf_fp): Remove declaration.
3898         (__vstrfmon_l): Call __printf_fp_l instead of printf_fp.
3899         * stdlib/tst-strfmon_l.c (do_test): New test.
3900         * stdlib/Makefile (tests): Add kt.
3901         (LOCALES): Build additional locales.
3902         (tst-strfmon_l.out): Require locales.
3903
3904 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3905
3906         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: Skip
3907         if not in libc.
3908         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
3909         Likewise.
3910         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S:
3911         Likewise.
3912         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
3913         Likewise.
3914
3915 2016-04-03   H.J. Lu  <hongjiu.lu@intel.com>
3916
3917         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3918         (__mempcpy_erms, __memmove_erms): Moved before __mempcpy_chk
3919         with unaligned_erms.
3920         (__memmove_erms): Skip if source == destination.
3921         (__memmove_unaligned_erms): Don't check source == destination
3922         first.
3923
3924 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3925
3926         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
3927         bit_arch_Fast_Copy_Backward for Intel Core proessors.
3928
3929 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3930
3931         * string/strcspn.c (strcspn): Use PTR_ALIGN_DOWN.
3932         * string/strspn.c (strspn): Likewise.
3933
3934 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3935
3936         * benchtests/bench-memset.c (do_test): Support 64-byte
3937         alignment.
3938         (test_main): Test 64-byte alignment.
3939
3940 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3941
3942         * benchtests/bench-memmove.c (test_main): Test 64-byte
3943         alignment.
3944
3945 2016-04-01   H.J. Lu  <hongjiu.lu@intel.com>
3946
3947         * benchtests/bench-memcpy.c (test_main): Test 64-byte alignment.
3948
3949 2016-04-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3950
3951         * sysdeps/powerpc/powerpc64/strcspn.S: Remove file.
3952         * sysdeps/powerpc/powerpc64/strpbrk.S: Remove file.
3953         * sysdeps/powerpc/powerpc64/strspn.S: Remove file.
3954
3955         * string/strpbrk.c (strpbrk): Rewrite function.
3956         * string/bits/string2.h (strpbrk): Use __builtin_strpbrk.
3957         (__strpbrk_c2): Likewise.
3958         (__strpbrk_c3): Likewise.
3959         * string/string-inlines.c
3960         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c2):
3961         Likewise.
3962         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strpbrk_c3):
3963         Likewise.
3964
3965         * string/strspn.c (strcspn): Rewrite function.
3966         * string/bits/string2.h (strspn): Use __builtin_strcspn.
3967         (__strspn_c1): Remove inline function.
3968         (__strspn_c2): Likewise.
3969         (__strspn_c3): Likewise.
3970         * string/string-inlines.c
3971         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c1): Add
3972         compatibility symbol.
3973         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c2):
3974         Likewise.
3975         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strspn_c3):
3976         Likewise.
3977         * string/string-inlines.c: Include generic version.
3978
3979 2016-04-01  Wilco Dijkstra  <wdijkstr@arm.com>
3980             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3981
3982         * string/Version (libc): Add GLIBC_2.24.
3983         * string/strcspn.c (strcspn): Rewrite function.
3984         * string/bits/string2.h (strcspn): Use __builtin_strcspn.
3985         (__strcspn_c1): Remove inline function.
3986         (__strcspn_c2): Likewise.
3987         (__strcspn_c3): Likewise.
3988         * string/string-inline.c
3989         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c1): Add
3990         compatibility symbol.
3991         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c2):
3992         Likewise.
3993         [SHLIB_COMPAT(libc, GLIBC_2_1_1, GLIBC_2_24)] (__strcspn_c3):
3994         Likewise.
3995         * sysdeps/i386/string-inlines.c: Include generic string-inlines.c.
3996
3997 2016-04-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
3998
3999         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
4000         Use ahi instead of aghi to adjust stack pointer.
4001
4002 2016-03-31  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
4003
4004         [BZ #19853]
4005         * stdio-common/tst-sprintf3.c [TEST_N]: Refactor
4006         TEST to take significant digits as second parameter.
4007         [TEST]: Redefine in terms of TEST_N taking 30
4008         significant digits.
4009         (do_test): Add test case to demonstrate precision
4010         failure in the ldbl-128ibm printf.
4011         * sysdeps/ieee754/ldbl-128ibm/ldbl2pm.c:
4012         (__mpn_extract_long_double): Carry 7 extra intermediate
4013         bits of precision to aide computing difference when
4014         signs differ.
4015
4016 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
4017
4018         [BZ #19881]
4019         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4020         memset-sse2-unaligned-erms, memset-avx2-unaligned-erms and
4021         memset-avx512-unaligned-erms.
4022         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4023         (__libc_ifunc_impl_list): Test __memset_chk_sse2_unaligned,
4024         __memset_chk_sse2_unaligned_erms, __memset_chk_avx2_unaligned,
4025         __memset_chk_avx2_unaligned_erms, __memset_chk_avx512_unaligned,
4026         __memset_chk_avx512_unaligned_erms, __memset_sse2_unaligned,
4027         __memset_sse2_unaligned_erms, __memset_erms,
4028         __memset_avx2_unaligned, __memset_avx2_unaligned_erms,
4029         __memset_avx512_unaligned_erms and __memset_avx512_unaligned.
4030         * sysdeps/x86_64/multiarch/memset-avx2-unaligned-erms.S: New
4031         file.
4032         * sysdeps/x86_64/multiarch/memset-avx512-unaligned-erms.S:
4033         Likewise.
4034         * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S:
4035         Likewise.
4036         * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:
4037         Likewise.
4038
4039 2016-03-31   H.J. Lu  <hongjiu.lu@intel.com>
4040
4041         [BZ #19776]
4042         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4043         memmove-sse2-unaligned-erms, memmove-avx-unaligned-erms and
4044         memmove-avx512-unaligned-erms.
4045         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
4046         (__libc_ifunc_impl_list): Test
4047         __memmove_chk_avx512_unaligned_2,
4048         __memmove_chk_avx512_unaligned_erms,
4049         __memmove_chk_avx_unaligned_2, __memmove_chk_avx_unaligned_erms,
4050         __memmove_chk_sse2_unaligned_2,
4051         __memmove_chk_sse2_unaligned_erms, __memmove_avx_unaligned_2,
4052         __memmove_avx_unaligned_erms, __memmove_avx512_unaligned_2,
4053         __memmove_avx512_unaligned_erms, __memmove_erms,
4054         __memmove_sse2_unaligned_2, __memmove_sse2_unaligned_erms,
4055         __memcpy_chk_avx512_unaligned_2,
4056         __memcpy_chk_avx512_unaligned_erms,
4057         __memcpy_chk_avx_unaligned_2, __memcpy_chk_avx_unaligned_erms,
4058         __memcpy_chk_sse2_unaligned_2, __memcpy_chk_sse2_unaligned_erms,
4059         __memcpy_avx_unaligned_2, __memcpy_avx_unaligned_erms,
4060         __memcpy_avx512_unaligned_2, __memcpy_avx512_unaligned_erms,
4061         __memcpy_sse2_unaligned_2, __memcpy_sse2_unaligned_erms,
4062         __memcpy_erms, __mempcpy_chk_avx512_unaligned_2,
4063         __mempcpy_chk_avx512_unaligned_erms,
4064         __mempcpy_chk_avx_unaligned_2, __mempcpy_chk_avx_unaligned_erms,
4065         __mempcpy_chk_sse2_unaligned_2, __mempcpy_chk_sse2_unaligned_erms,
4066         __mempcpy_avx512_unaligned_2, __mempcpy_avx512_unaligned_erms,
4067         __mempcpy_avx_unaligned_2, __mempcpy_avx_unaligned_erms,
4068         __mempcpy_sse2_unaligned_2, __mempcpy_sse2_unaligned_erms and
4069         __mempcpy_erms.
4070         * sysdeps/x86_64/multiarch/memmove-avx-unaligned-erms.S: New
4071         file.
4072         * sysdeps/x86_64/multiarch/memmove-avx512-unaligned-erms.S:
4073         Likwise.
4074         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S:
4075         Likwise.
4076         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
4077         Likwise.
4078
4079 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
4080
4081         * sysdeps/s390/bits/link.h: (La_s390_vr) New typedef.
4082         (La_s390_32_regs): Append vector register lr_v24-lr_v31.
4083         (La_s390_64_regs): Likewise.
4084         (La_s390_32_retval): Append vector register lrv_v24.
4085         (La_s390_64_retval): Likeweise.
4086         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
4087         Handle extended structs La_s390_32_regs and La_s390_32_retval.
4088         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
4089         Handle extended structs La_s390_64_regs and La_s390_64_retval.
4090
4091 2016-03-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
4092
4093         [BZ #19916]
4094         * sysdeps/s390/s390-32/dl-trampoline.S: Include dl-trampoline.h twice
4095         to create a non-vector/vector version for _dl_runtime_resolve and
4096         _dl_runtime_profile. Move implementation to ...
4097         * sysdeps/s390/s390-32/dl-trampoline.h: ... here.
4098         (_dl_runtime_resolve) Save and restore fpr/vrs.
4099         (_dl_runtime_profile) Save and restore vrs and fix some issues
4100         if _dl_call_pltexit is called.
4101         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup):
4102         Choose the correct resolver function if running on a machine with vx.
4103         * sysdeps/s390/s390-64/dl-trampoline.S: Include dl-trampoline.h twice
4104         to create a non-vector/vector version for _dl_runtime_resolve and
4105         _dl_runtime_profile. Move implementation to ...
4106         * sysdeps/s390/s390-64/dl-trampoline.h: ... here.
4107         (_dl_runtime_resolve) Save and restore fpr/vrs.
4108         (_dl_runtime_profile) Save and restore vrs and fix some issues
4109         * sysdeps/s390/s390-64/dl-machine.h: (elf_machine_runtime_setup):
4110         Choose the correct resolver function if running on a machine with vx.
4111
4112 2016-03-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4113
4114         * elf/tst-dlsym-error.c: Include <string.h> for strchrnul.
4115
4116 2016-03-31  Florian Weimer  <fweimer@redhat.com>
4117
4118         [BZ #19509]
4119         * elf/dl-lookup.c (_dl_lookup_symbol_x): Report error even if
4120         skip_map != NULL.
4121         * elf/tst-dlsym-error.c: New file.
4122         * elf/Makefile (tests): Add tst-dlsym-error.
4123         (tst-dlsym-error): Link against libdl.
4124
4125 2016-03-29  Joseph Myers  <joseph@codesourcery.com>
4126
4127         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4128         (__ASSUME_FUTIMESAT): Remove macro.
4129         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: Remove file.
4130
4131 2016-03-29  Florian Weimer  <fweimer@redhat.com>
4132
4133         [BZ #19879]
4134         CVE-2016-3075
4135         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Do not
4136         copy name.
4137
4138 2016-03-29  Florian Weimer  <fweimer@redhat.com>
4139
4140         [BZ #19837]
4141         * nss/nss_db/db-XXX.c (_nss_db_getENTNAME_r): Propagate ERANGE
4142         error if parse_line fails.
4143
4144 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4145
4146         * sysdeps/x86/cpu-features.h (bit_cpu_ERMS): New.
4147         (index_cpu_ERMS): Likewise.
4148         (reg_ERMS): Likewise.
4149
4150 2016-03-28  Aurelien Jarno  <aurelien@aurel32.net>
4151
4152         * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS,
4153         PER_LINUX_FDPIC): Add.
4154
4155 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4156
4157         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
4158         memcpy-avx512-no-vzeroupper.
4159         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: Renamed
4160         to ...
4161         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: This.
4162         (MEMCPY): Don't define.
4163         (MEMCPY_CHK): Likewise.
4164         (MEMPCPY): Likewise.
4165         (MEMPCPY_CHK): Likewise.
4166         (MEMPCPY_CHK): Renamed to ...
4167         (__mempcpy_chk_avx512_no_vzeroupper): This.
4168         (MEMPCPY_CHK): Renamed to ...
4169         (__mempcpy_chk_avx512_no_vzeroupper): This.
4170         (MEMCPY_CHK): Renamed to ...
4171         (__memmove_chk_avx512_no_vzeroupper): This.
4172         (MEMCPY): Renamed to ...
4173         (__memmove_avx512_no_vzeroupper): This.
4174         (__memcpy_avx512_no_vzeroupper): New alias.
4175         (__memcpy_chk_avx512_no_vzeroupper): Likewise.
4176
4177 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4178
4179         [BZ #18858]
4180         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
4181         mempcpy-ssse3, mempcpy-ssse3-back, mempcpy-avx-unaligned
4182         and mempcpy-avx512-no-vzeroupper.
4183         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMPCPY_CHK):
4184         New.
4185         (MEMPCPY): Likewise.
4186         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S
4187         (MEMPCPY_CHK): New.
4188         (MEMPCPY): Likewise.
4189         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S (MEMPCPY_CHK): New.
4190         (MEMPCPY): Likewise.
4191         * sysdeps/x86_64/multiarch/memcpy-ssse3.S (MEMPCPY_CHK): New.
4192         (MEMPCPY): Likewise.
4193         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: Removed.
4194         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S:
4195         Likewise.
4196         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: Likewise.
4197         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: Likewise.
4198
4199 2016-03-28   H.J. Lu  <hongjiu.lu@intel.com>
4200              Amit Pawar  <Amit.Pawar@amd.com>
4201
4202         [BZ #19583]
4203         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
4204         Fast_Unaligned_Copy with Fast_Unaligned_Load for Intel
4205         processors.  Set Fast_Copy_Backward for AMD Excavator
4206         processors.
4207         * sysdeps/x86/cpu-features.h (bit_arch_Fast_Unaligned_Copy):
4208         New.
4209         (index_arch_Fast_Unaligned_Copy): Likewise.
4210         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check
4211         Fast_Unaligned_Copy instead of Fast_Unaligned_Load.
4212
4213 2016-03-25  Florian Weimer  <fweimer@redhat.com>
4214
4215         [BZ #19791]
4216         * resolv/res_send.c (close_and_return_error): New function.
4217         (send_dg): Initialize *resplen2 after reopen failure.  Call
4218         close_and_return_error for error returns.  On error paths without
4219         __res_iclose, initialze *resplen2 explicitly.  Update comment for
4220         successful return.
4221
4222 2016-03-25  Florian Weimer  <fweimer@redhat.com>
4223
4224         [BZ# 19860]
4225         * sysdeps/x86_64/tst-audit10.c (avx512_enabled): Always return
4226         zero if the compiler does not provide the AVX512F bit.
4227
4228 2016-03-24  Joseph Myers  <joseph@codesourcery.com>
4229
4230         [BZ #19848]
4231         * sysdeps/i386/fpu/e_powl.S (p3): Rename to p2 and change value
4232         from 8 to 4.
4233         (__ieee754_powl): Compare integer exponent against 4 not 8.
4234         * sysdeps/x86_64/fpu/e_powl.S (p3): Rename to p2 and change value
4235         from 8 to 4.
4236         (__ieee754_powl): Compare integer exponent against 4 not 8.
4237         * math/auto-libm-test-in: Add more tests of pow.
4238         * math/auto-libm-test-out: Regenerated.
4239         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
4240         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4241
4242 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
4243
4244         * sysdeps/unix/sysv/linux/futimens.c (futimens) [__NR_utimensat]:
4245         Make code unconditional.
4246         [!__NR_utimensat]: Remove conditional code.
4247         * sysdeps/unix/sysv/linux/lutimes.c (lutimes) [__NR_utimensat]:
4248         Make code unconditional.
4249         [!__NR_utimensat]: Remove conditional code.
4250         * sysdeps/unix/sysv/linux/utimensat.c (utimensat) [__NR_utimensat]:
4251         Make code unconditional.
4252         [!__NR_utimensat]: Remove conditional code.
4253
4254 2016-03-23  Aurelien Jarno  <aurelien@aurel32.net>
4255
4256         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64) [__NR_openat]:
4257         Make code unconditional.
4258
4259 2016-03-23  Nick Alcock  <nick.alcock@oracle.com>
4260
4261         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Reload
4262         call-clobbered %eax on retry path.
4263         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
4264
4265 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4266
4267         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S (MEMCPY):
4268         Don't set %rcx twice before "rep movsb".
4269
4270 2016-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4271
4272         [BZ #19583]
4273         * sysdeps/x86/cpu-features.c (get_common_indeces): Remove
4274         inline.  Check family before setting family, model and
4275         extended_model.  Set AVX, AVX2, AVX512, FMA and FMA4 usable
4276         bits here.
4277         (init_cpu_features): Replace HAS_CPU_FEATURE and
4278         HAS_ARCH_FEATURE with CPU_FEATURES_CPU_P and
4279         CPU_FEATURES_ARCH_P.  Set index_arch_AVX_Fast_Unaligned_Load
4280         for Intel processors with usable AVX2.  Call get_common_indeces
4281         for other processors with family == NULL.
4282         * sysdeps/x86/cpu-features.h (CPU_FEATURES_CPU_P): New macro.
4283         (CPU_FEATURES_ARCH_P): Likewise.
4284         (HAS_CPU_FEATURE): Use CPU_FEATURES_CPU_P.
4285         (HAS_ARCH_FEATURE): Use CPU_FEATURES_ARCH_P.
4286
4287 2016-03-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4288
4289         * malloc/Makefile ($(objpfx)tst-malloc-backtrace,
4290         $(objpfx)tst-malloc-thread-exit, $(objpfx)tst-malloc-thread-fail): Use
4291         $(shared-thread-library) instead of hardcoding the path to libpthread.
4292
4293 2016-03-22  Joseph Myers  <joseph@codesourcery.com>
4294
4295         * sysdeps/unix/sysv/linux/kernel-features.h
4296         (__ASSUME_GETDENTS64_SYSCALL): Remove macro.
4297         * sysdeps/unix/sysv/linux/getdents.c
4298         [!__ASSUME_GETDENTS64_SYSCALL]: Remove conditional code.
4299         [!have_no_getdents64_defined]: Likewise.
4300         (__GETDENTS): Remove __have_no_getdents64 conditional.
4301
4302 2016-03-21  Joseph Myers  <joseph@codesourcery.com>
4303
4304         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SIGNALFD4):
4305         Remove macro.
4306         * sysdeps/unix/sysv/linux/signalfd.c: Do not include
4307         <kernel-features.h>.
4308         (signalfd) [__NR_signalfd4]: Make code unconditional.
4309         (signalfd) [!__ASSUME_SIGNALFD4]: Remove conditional code.
4310
4311 2016-03-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4312
4313         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix implict checks
4314         style.
4315
4316 2016-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4317
4318         * sysdeps/unix/sysv/linux/x86_64/cancellation.S
4319         (__pthread_enable_asynccancel): Use JUMPTARGET to call
4320         __pthread_unwind.
4321         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
4322         (__condvar_cleanup2): Use JUMPTARGET to call _Unwind_Resume.
4323         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
4324         (__condvar_cleanup1): Likewise.
4325
4326 2016-03-21  Dylan Alex Simon  <dylan-sourceware@dylex.net>
4327
4328         [BZ #19822]
4329         * math/Makefile ($(inst_libdir)/libm.so): Write output to $@.tmp and
4330         move it to the final $@ location.
4331
4332 2016-03-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4333
4334         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Fix invalid memory
4335         access where posix_spawn success and pid argument is null.
4336         * posix/tst-spawn.c (do_test): Add posix_spawn null pid argument for
4337         success case.
4338
4339 2016-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>:
4340
4341         * sysdeps/mach/hurd/i386/c++-types.data: New file.
4342
4343         * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
4344
4345         * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open
4346         and __fcntl.
4347         * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to
4348         __fcntl only.
4349         * include/fcntl.h [IS_IN (rtld)]: Include <dl-fcntl.h> instead of
4350         adding attribute_hidden to __open and __fcntl.
4351
4352         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Strip
4353         "-include $(common-objpfx)libc-modules.h" from CPPFLAGS, and do not
4354         depend on libc-modules.h,
4355         * mach/Makefile ($(objpfx)mach-syscalls.mk): Depend on libc-modules.h.
4356
4357 2016-03-17  Joseph Myers  <joseph@codesourcery.com>
4358
4359         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EVENTFD2):
4360         Remove macro.
4361         * sysdeps/unix/sysv/linux/eventfd.c: Remove file.
4362         * sysdeps/unix/sysv/linux/syscalls.list (eventfd): New syscall
4363         entry.
4364
4365         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FALLOCATE):
4366         Remove macro.
4367         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Do not
4368         include <kernel-features.h>.
4369         [!__ASSUME_FALLOCATE]: Remove conditional code.
4370         (posix_fallocate) [__NR_fallocate]: Make code unconditional.
4371
4372 2016-03-16  H.J. Lu  <hongjiu.lu@intel.com>
4373
4374         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S
4375         (_ZGVbN2v_cos_sse4): Use JUMPTARGET to call cos.
4376         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S
4377         (_ZGVdN4v_cos_avx2): Likewise.
4378         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S
4379         (_ZGVdN4v_cos): Likewise.
4380         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S
4381         (_ZGVbN2v_exp_sse4): Use JUMPTARGET to call exp.
4382         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S
4383         (_ZGVdN4v_exp_avx2): Likewise.
4384         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S
4385         (_ZGVdN4v_exp): Likewise.
4386         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S
4387         (_ZGVbN2v_log_sse4): Use JUMPTARGET to call log.
4388         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S
4389         (_ZGVdN4v_log_avx2): Likewise.
4390         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S
4391         (_ZGVdN4v_log): Likewise.
4392         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S
4393         (_ZGVbN2vv_pow_sse4): Use JUMPTARGET to call pow.
4394         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S
4395         (_ZGVdN4vv_pow_avx2): Likewise.
4396         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S
4397         (_ZGVdN4vv_pow): Likewise.
4398         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S
4399         (_ZGVbN2v_sin_sse4): Use JUMPTARGET to call sin.
4400         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S
4401         (_ZGVdN4v_sin_avx2): Likewise.
4402         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S
4403         (_ZGVdN4v_sin): Likewise.
4404         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S
4405         (_ZGVbN2vvv_sincos_sse4): Use JUMPTARGET to call sin and cos.
4406         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S
4407         (_ZGVdN4vvv_sincos_avx2): Likewise.
4408         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S
4409         (_ZGVdN4vvv_sincos): Likewise.
4410         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S
4411         (_ZGVdN8v_cosf): Use JUMPTARGET to call cosf.
4412         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S
4413         (_ZGVbN4v_cosf_sse4): Likewise.
4414         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S
4415         (_ZGVdN8v_cosf_avx2): Likewise.
4416         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S
4417         (_ZGVdN8v_expf): Use JUMPTARGET to call expf.
4418         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S
4419         (_ZGVbN4v_expf_sse4): Likewise.
4420         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S
4421         (_ZGVdN8v_expf_avx2): Likewise.
4422         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S
4423         (_ZGVdN8v_logf): Use JUMPTARGET to call logf.
4424         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S
4425         (_ZGVbN4v_logf_sse4): Likewise.
4426         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S
4427         (_ZGVdN8v_logf_avx2): Likewise.
4428         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S
4429         (_ZGVdN8vv_powf): Use JUMPTARGET to call powf.
4430         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S
4431         (_ZGVbN4vv_powf_sse4): Likewise.
4432         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S
4433         (_ZGVdN8vv_powf_avx2): Likewise.
4434         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
4435         (_ZGVdN8vv_powf): Use JUMPTARGET to call sinf and cosf.
4436         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
4437         (_ZGVbN4vvv_sincosf_sse4): Likewise.
4438         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
4439         (_ZGVdN8vvv_sincosf_avx2): Likewise.
4440         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S
4441         (_ZGVdN8v_sinf): Use JUMPTARGET to call sinf.
4442         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S
4443         (_ZGVbN4v_sinf_sse4): Likewise.
4444         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S
4445         (_ZGVdN8v_sinf_avx2): Likewise.
4446         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h (WRAPPER_IMPL_SSE2):
4447         Use JUMPTARGET to call callee.
4448         (WRAPPER_IMPL_SSE2_ff): Likewise.
4449         (WRAPPER_IMPL_SSE2_fFF): Likewise.
4450         (WRAPPER_IMPL_AVX): Likewise.
4451         (WRAPPER_IMPL_AVX_ff): Likewise.
4452         (WRAPPER_IMPL_AVX_fFF): Likewise.
4453         (WRAPPER_IMPL_AVX512): Likewise.
4454         (WRAPPER_IMPL_AVX512_ff): Likewise.
4455         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h (WRAPPER_IMPL_SSE2):
4456         Likewise.
4457         (WRAPPER_IMPL_SSE2_ff): Likewise.
4458         (WRAPPER_IMPL_SSE2_fFF): Likewise.
4459         (WRAPPER_IMPL_AVX): Likewise.
4460         (WRAPPER_IMPL_AVX_ff): Likewise.
4461         (WRAPPER_IMPL_AVX_fFF): Likewise.
4462         (WRAPPER_IMPL_AVX512): Likewise.
4463         (WRAPPER_IMPL_AVX512_ff): Likewise.
4464         (WRAPPER_IMPL_AVX512_fFF): Likewise.
4465
4466 2016-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4467
4468         * sysdeps/mach/hurd/openat.c (__openat): Add missing ellipsis.
4469         * resolv/gai_sigqueue.c (__gai_sigqueue): Add missing internal_function
4470         qualifier.
4471         * /rt/aio_sigqueue.c (__aio_sigqueue): Add missing attribute_hidden
4472         internal_function qualifiers.
4473
4474 2016-03-15  Carlos O'Donell <carlos@redhat.com>
4475
4476         * catgets/tst-catgets.c (do_bz17905): Mark result unused.
4477         * dlfcn/bug-dl-leaf-lib.c (check_val_fini): Mark ret unused.
4478         * math/atest-exp.c (exp_mpn): Mark chk unused.
4479         * math/atest-exp2.c (exp_mpn): Likwise.
4480         * sysdeps/arm/dl-machine.h (elf_machine_rela): Mark td unused.
4481         * sysdeps/i386/i686/dl-hash.h: Mark _dl_elf_hash unused.
4482
4483 2016-03-15  Joseph Myers  <joseph@codesourcery.com>
4484
4485         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PPOLL):
4486         Remove macro.
4487         * sysdeps/unix/sysv/linux/ppoll.c: Do not include
4488         <kernel-features.h>.
4489         [__NR_ppoll]: Make code unconditional.
4490         [!__ASSUME_PPOLL]: Remove conditional code.
4491
4492         * sysdeps/unix/sysv/linux/kernel-features.h
4493         (__ASSUME_ACCEPT4_SYSCALL): Define unconditionally.
4494         (__ASSUME_ACCEPT4): Likewise.
4495         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4496         Define.
4497         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG):
4498         Likewise.
4499         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4500         Likewise.
4501         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG):
4502         Likewise.
4503         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: Remove file.
4504         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: Likewise.
4505         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4506         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4507         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4508         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4509         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4510         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4511         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4512         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4513         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4514         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4515         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4516         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4517         * sysdeps/unix/sysv/linux/i386/kernel-features.h
4518         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4519         Likewise.
4520         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4521         Likewise.
4522         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4523         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4524         0x040300].
4525         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4526         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4527         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4528         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4529         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4530         0x030300].
4531         [__LINUX_KERNEL_VERSION < 0x030300] (__ASSUME_ACCEPT4): Undefine.
4532         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4533         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4534         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4535         0x040300].
4536         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4537         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4538         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4539         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4540         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4541         (__ASSUME_SENDMMSG_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4542         0x030300] instead of defining if [__LINUX_KERNEL_VERSION >=
4543         0x030300].
4544         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4545         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4546         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4547         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4548         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4549         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4550         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4551         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4552         * sysdeps/unix/sysv/linux/s390/kernel-features.h
4553         (__ASSUME_ACCEPT4_SYSCALL): Undefine if [__LINUX_KERNEL_VERSION <
4554         0x040300] instead of defining if [__LINUX_KERNEL_VERSION >=
4555         0x040300].
4556         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4557         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4558         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4559         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4560         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4561         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4562         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4563         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4564         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4565         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4566         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4567         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4568         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4569         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4570         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h
4571         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4572         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
4573         Likewise.
4574         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
4575         Likewise.
4576
4577 2016-03-15  Andreas Schwab  <schwab@suse.de>
4578
4579         [BZ #19257]
4580         * resolv/res_init.c (__res_iclose): Use statp->nscount instead of
4581         statp->_u._ext.nscount as loop count.
4582
4583 2016-03-14  Andreas Schwab  <schwab@linux-m68k.org>
4584
4585         * math/test-signgam-finite-c99.c: Also #undef
4586         __LIBC_INTERNAL_MATH_INLINES.
4587         * math/test-signgam-main.c: Likewise.
4588
4589 2016-03-14  Joseph Myers  <joseph@codesourcery.com>
4590
4591         * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro.
4592         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
4593         (MADV_FREE): Likewise.
4594         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise.
4595         * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add
4596         EPOLLEXCLUSIVE.
4597
4598 2016-03-14  Carlos O'Donell  <carlos@redhat.com>
4599
4600         * timezone/README: Remove mention of checktab.awk. Mention wiki
4601         SharedSourceFiles.
4602
4603 2016-03-13  Samuel Thibault  <samuel.thibault@ens-lyon.org
4604
4605         * sysdeps/posix/waitid.c (OUR_WAITID): Test against WSTOPPED instead of
4606         WUNTRACED.
4607
4608 2016-03-11  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4609
4610         * malloc/malloc.c (malloc_consolidate): Replace 0 by NULL in
4611         order to match the type of p when calling atomic_exchange_acq().
4612
4613 2016-03-11  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4614
4615         * sysdeps/powerpc/powerpc32/power4/memcmp.S (memcmp): Rearrange
4616         cfi_offset calls.
4617         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
4618         * sysdeps/powerpc/powerpc32/power7/memcmp.S (memcmp): Likewise.
4619         * sysdeps/powerpc/powerpc64/power4/memcmp.S (memcmp): Likewise.
4620         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Likewise.
4621         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Likewise.
4622
4623 2016-03-10  Carlos O'Donell  <carlos@redhat.com>
4624
4625         * timezone/checktab.awk: Removed.
4626
4627 2016-03-10  Joseph Myers  <joseph@codesourcery.com>
4628
4629         * manual/math.texi (Errors in Math Functions): Document relaxed
4630         accuracy goals for IBM long double.
4631         * math/libm-test.inc (test_exceptions): Always allow spurious
4632         "underflow" and "inexact" exceptions for IBM long double.
4633
4634 2016-03-10  H.J. Lu  <hongjiu.lu@intel.com>
4635
4636         [BZ #19762]
4637         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4638         (EXTRA_LD_ENVVARS): Add _arch_ to index_*/bit_*.
4639         * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
4640         * sysdeps/x86/cpu-features.h (bit_*): Renamed to ...
4641         (bit_arch_*): This for feature array.
4642         (bit_*): Renamed to ...
4643         (bit_cpu_*): This for cpu array.
4644         (index_*): Renamed to ...
4645         (index_arch_*): This for feature array.
4646         (index_*): Renamed to ...
4647         (index_cpu_*): This for cpu array.
4648         [__ASSEMBLER__] (HAS_FEATURE): Add and use field.
4649         [__ASSEMBLER__] (HAS_CPU_FEATURE)): Pass cpu to HAS_FEATURE.
4650         [__ASSEMBLER__] (HAS_ARCH_FEATURE)): Pass arch to HAS_FEATURE.
4651         [!__ASSEMBLER__] (HAS_CPU_FEATURE): Replace index_##name and
4652         bit_##name with index_cpu_##name and bit_cpu_##name.
4653         [!__ASSEMBLER__] (HAS_ARCH_FEATURE): Replace index_##name and
4654         bit_##name with index_arch_##name and bit_arch_##name.
4655
4656 2016-03-09  Aurelien Jarno  <aurelien@aurel32.net>
4657
4658         [BZ #19792]
4659         * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
4660         Terminate FDE before return label.
4661
4662 2016-03-09  Joseph Myers  <joseph@codesourcery.com>
4663
4664         [BZ #19790]
4665         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c [USE_AS_NEARBYINTL]
4666         (rintl): Define as macro.
4667         [USE_AS_NEARBYINTL] (__rintl): Likewise.
4668         (__rintl) [USE_AS_NEARBYINTL]: Use SET_RESTORE_ROUND_NOEX instead
4669         of fesetround.  Ensure results are evaluated before end of scope.
4670         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Define
4671         USE_AS_NEARBYINTL and include s_rintl.c.
4672         * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc):
4673         Disable exception traps in new environment.
4674         (libc_feholdsetround_ppc_ctx): Likewise.
4675
4676 2016-03-08  Roland McGrath  <roland@hack.frob.com>
4677
4678         * sysdeps/x86_64/tst-audit10.c: #include <cpu-features.h>.
4679         * sysdeps/x86_64/tst-audit10-aux.c: Move audit_test extern decl ...
4680         (tst_audit10_aux) [__AVX512F__]: ... here.
4681
4682 2016-03-08  Aurelien Jarno  <aurelien@aurel32.net>
4683
4684         * include/sys/auxv.h: New file.
4685
4686 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4687
4688         [BZ #19759]
4689         * sysdeps/x86/bits/string.h (_HAVE_STRING_ARCH_mempcpy): New.
4690
4691 2016-03-08  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
4692
4693         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Remove use of %s
4694         operand modifier.
4695         (feclearexcept): Likewise.
4696
4697 2016-03-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
4698
4699         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Updated
4700         to reflect the entire 32-bit HWCAP.
4701         * sysdeps/powerpc/dl-procinfo.h: Code cleanup.
4702         (_DL_HWCAP_FIRST): Removed.  Replaced by 0 accordingly.
4703
4704 2016-03-08  H.J. Lu  <hongjiu.lu@intel.com>
4705
4706         [BZ #19783]
4707         * benchtests/Makefile (run-bench): Replace $(rtld-prefix) with
4708         $(test-via-rtld-prefix).
4709         ($(binaries-bench)): Replace $(+link) with $(+link-tests).
4710
4711 2016-03-08  Florian Weimer  <fweimer@redhat.com>
4712
4713         * sunrpc/key_call.c (key_call_keyenvoy): Use int status instead of
4714         union wait.  Report any non-zero exit status as error.
4715
4716 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4717
4718         * posix/tst-execvpe5.c (do_test): Fix fix test invocation when
4719         configured with --enable-hardcoded-path-in-tests.
4720
4721 2016-03-08  Joseph Myers  <joseph@codesourcery.com>
4722
4723         [BZ #19677]
4724         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
4725         (__ieee754_remainderl): Put zero low parts in canonical form.
4726         * sysdeps/ieee754/ldbl-128ibm/test-fmodrem-ldbl-128ibm.c: New
4727         file.  Based on
4728         sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c.
4729         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: Replace
4730         with wrapper round test-fmodrem-ldbl-128ibm.c.
4731         * sysdeps/ieee754/ldbl-128ibm/test-remainderl-ldbl-128ibm.c: New
4732         file.
4733         * sysdeps/ieee754/ldbl-128ibm/test-remquol-ldbl-128ibm.c:
4734         Likewise.
4735         * sysdeps/ieee754/ldbl-128ibm/Makefile (tests): Add
4736         test-remainderl-ldbl-128ibm and test-remquol-ldbl-128ibm.
4737
4738 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4739
4740         [BZ #19610]
4741         * elf/ldconfig.c (opt_link): Update comment.
4742         (options): Update help string for option -X.
4743         (search_dir): Unlink stale symbolic link only if updating symbolic
4744         links.
4745         * elf/tst-ldconfig-X.sh: New file.
4746         * elf/Makefile (tests-special): Add tst-ldconfig-X.out.
4747         (tst-ldconfig-X.out): New rule to run tst-ldconfig-X.sh.
4748
4749 2016-03-07  Andreas Schwab  <schwab@suse.de>
4750
4751         * iconv/gconv_builtin.h ("=ascii->INTERNAL"): Correct min/max
4752         needed arguments.
4753
4754 2016-03-07  Hongjiu Zhang  <noctuorare@gmail.com>
4755
4756         [BZ #15333]
4757         * elf/sln.c (makesymlink): Change struct stat to stat64, and lstat
4758         to lstat64.
4759
4760 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4761
4762         * libio/filedoalloc.c (isatty): Remove.
4763         (local_isatty): Add comment.  Call __isatty directly.
4764         (_IO_file_doallocate): Update comment.  Assume _LIBC.
4765         * libio/wfiledoalloc.c (isatty): Remove.
4766         (_IO_wfile_doallocate): Update comment.
4767
4768 2016-03-07  Florian Weimer  <fweimer@redhat.com>
4769
4770         [BZ #19269]
4771         * sysdeps/x86_64/Makefile (tst-audit4): Depend on
4772         tst-audit4-aux.o.
4773         (tst-audit10): Depend on tst-audit10-aux.o.
4774         (CFLAGS-tst-audit4-aux.c): Compile with AVX enabled.
4775         (CFLAGS-tst-audit10-aux.c): Compile with AVX512 enabled.
4776         * sysdeps/x86_64/tst-audit4.c (do_test): Call tst_audit4_aux
4777         instead of inline AVX code.
4778         * sysdeps/x86_64/tst-audit10.c (do_test): Call tst_audit10_aux
4779         instead of inline AVX512 code.
4780         * sysdeps/x86_64/tst-audit4-aux.c: New file
4781         * sysdeps/x86_64/tst-audit10-aux.c: New file
4782
4783         [BZ #19648]
4784         * test-skeleton.c (main): Do not set RLIMIT_DATA.
4785
4786 2016-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4787
4788         [BZ #14750]
4789         [BZ #10354]
4790         [BZ #18433]
4791         * include/sched.h (__clone): Add hidden prototype.
4792         (__clone2): Likewise.
4793         * include/unistd.h (__dup): Likewise.
4794         * posix/Makefile (tests): Add tst-spawn2.
4795         * posix/tst-spawn2.c: New file.
4796         * sysdeps/posix/dup.c (__dup): Add hidden definition.
4797         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Likewise.
4798         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Likewise.
4799         * sysdeps/unix/sysv/linux/arm/clone.S (__clone): Likewise.
4800         * sysdeps/unix/sysv/linux/hppa/clone.S (__clone): Likewise.
4801         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Likewise.
4802         * sysdeps/unix/sysv/linux/ia64/clone2.S (__clone): Likewise.
4803         * sysdeps/unix/sysv/linux/m68k/clone.S (__clone): Likewise.
4804         * sysdeps/unix/sysv/linux/microblaze/clone.S (__clone): Likewise.
4805         * sysdeps/unix/sysv/linux/mips/clone.S (__clone): Likewise.
4806         * sysdeps/unix/sysv/linux/nios2/clone.S (__clone): Likewise.
4807         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone):
4808         Likewise.
4809         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
4810         Likewise.
4811         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S (__clone): Likewise.
4812         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S (__clone): Likewise.
4813         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Likewise.
4814         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__clone): Likewise.
4815         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__clone): Likewise.
4816         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Likewise.
4817         * sysdeps/unix/sysv/linux/x86_64/clone.S (__clone): Likewise.
4818         * sysdeps/unix/sysv/linux/nptl-signals.h
4819         (____nptl_is_internal_signal): New function.
4820         * sysdeps/unix/sysv/linux/spawni.c: New file.
4821
4822         * posix/execvpe.c (__execvpe): Remove dynamic allocation.
4823         * posix/Makefile (tests): Add tst-execvpe{1,2,3,4,5,6}.
4824         * posix/tst-execvp1.c (do_test): Use a macro to call execvp.
4825         * posix/tst-execvp2.c (do_test): Likewise.
4826         * posix/tst-execvp3.c (do_test): Likewise.
4827         * posix/tst-execvp4.c (do_test): Likewise.
4828         * posix/tst-execvpe1.c: New file.
4829         * posix/tst-execvpe2.c: Likewise.
4830         * posix/tst-execvpe3.c: Likewise.
4831         * posix/tst-execvpe4.c: Likewise.
4832         * posix/tst-execvpe5.c: Likewise.
4833         * posix/tst-execvpe6.c: Likewise.
4834
4835         [BZ #19534]
4836         * posix/execl.c (execl): Remove dynamic memory allocation.
4837         * posix/execle.c (execle): Likewise.
4838         * posix/execlp.c (execlp): Likewise.
4839
4840 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4841
4842         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S:
4843         Replace .text with .text.avx512.
4844         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S:
4845         Likewise.
4846
4847 2016-03-07  Aurelien Jarno  <aurelien@aurel32.net>
4848
4849         * sysdeps/generic/libnsl.abilist: New file.
4850         * sysdeps/generic/libutil.abilist: New file.
4851
4852 2016-03-06  H.J. Lu  <hongjiu.lu@intel.com>
4853
4854         [BZ #19762]
4855         * sysdeps/i386/i686/multiarch/bcopy.S (bcopy): Use
4856         HAS_ARCH_FEATURE with Fast_Rep_String.
4857         * sysdeps/i386/i686/multiarch/bzero.S (__bzero): Likewise.
4858         * sysdeps/i386/i686/multiarch/memcpy.S (memcpy): Likewise.
4859         * sysdeps/i386/i686/multiarch/memcpy_chk.S (__memcpy_chk):
4860         Likewise.
4861         * sysdeps/i386/i686/multiarch/memmove_chk.S (__memmove_chk):
4862         Likewise.
4863         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy): Likewise.
4864         * sysdeps/i386/i686/multiarch/mempcpy_chk.S (__mempcpy_chk):
4865         Likewise.
4866         * sysdeps/i386/i686/multiarch/memset.S (memset): Likewise.
4867         * sysdeps/i386/i686/multiarch/memset_chk.S (__memset_chk):
4868         Likewise.
4869
4870 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4871
4872         [BZ #19745]
4873         * sysdeps/x86_64/crti.S (_init): Replace PREINIT_FUNCTION@PLT
4874         with *%rax in call.
4875
4876 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4877
4878         [BZ #19745]
4879         * sysdeps/x86_64/start.S (_start): Replace __libc_start_main@PLT
4880         with *__libc_start_main@GOTPCREL(%rip) in call.
4881
4882 2016-03-04  Roland McGrath  <roland@hack.frob.com>
4883
4884         * Makefile (tests-special): Add $(objpfx)c++-types-check.out only
4885         inside conditional for nonempty $(CXX).
4886
4887         * math/Makefile (tests): Add test-math-isinff only if $(CXX) is
4888         nonempty.
4889
4890         * Makefile ($(objpfx)c++-types-check.out): Fix conditionalization
4891         to test for empty $(CXX) rather than $(CXX) of "no".
4892
4893 2016-03-04  H.J. Lu  <hongjiu.lu@intel.com>
4894
4895         * sysdeps/x86_64/Makefile (sysdep_noprof): Add comments.
4896
4897 2016-03-04  Amit Pawar  <Amit.Pawar@amd.com>
4898             H.J. Lu  <hongjiu.lu@intel.com>
4899
4900         [BZ #18880]
4901         * sysdeps/x86_64/multiarch/memcpy.S: Check Fast_Unaligned_Load,
4902         instead of Slow_BSF, and also check for Fast_Copy_Backward to
4903         enable __memcpy_ssse3_back.
4904
4905 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4906
4907         [BZ #19758]
4908         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h
4909         (EXTRA_LD_ENVVARS): Or in bit_Prefer_MAP_32BIT_EXEC.
4910
4911 2016-03-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
4912
4913         [BZ #19490]
4914         * sysdeps/x86_64/_mcount.S (_mcount): Add unwind descriptor.
4915         (__fentry__): Likewise.
4916
4917 2016-03-03  H.J. Lu  <hongjiu.lu@intel.com>
4918
4919         * gmon/Makefile (noprof): Add $(sysdep_noprof).
4920         * sysdeps/x86_64/Makefile (sysdep_noprof): Add _mcount.
4921
4922 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4923
4924         * sysdeps/x86_64/_mcount.S (C_LABEL(_mcount)): Call
4925         __mcount_internal directly.
4926         (C_LABEL(__fentry__)): Likewise.
4927         * sysdeps/x86_64/setjmp.S __sigsetjmp): Call __sigjmp_save
4928         directly.
4929
4930 2016-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4931
4932         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4933         (__start_context): Call __setcontext directly.
4934
4935 2016-02-26  Joseph Myers  <joseph@codesourcery.com>
4936
4937         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4938         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4939         [__LINUX_KERNEL_VERSION >= 0x030200]: Likewise.
4940         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
4941         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4942         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4943         [__LINUX_KERNEL_VERSION >= 0x020624]: Likewise.
4944         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4945         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4946         [__LINUX_KERNEL_VERSION >= 0x020622]: Likewise.
4947         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
4948         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
4949         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4950         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4951         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4952         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4953         [__LINUX_KERNEL_VERSION < 0x030000]: Remove conditional code.
4954         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4955         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4956         [__LINUX_KERNEL_VERSION < 0x020621]: Remove conditional code.
4957         [__LINUX_KERNEL_VERSION < 0x020625]: Likewise.
4958         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4959         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4960         [__LINUX_KERNEL_VERSION >= 0x030100]: Likewise.
4961         [_MIPS_SIM == _ABIN32 && __LINUX_KERNEL_VERSION < 0x020623]:
4962         Remove conditional code.
4963         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
4964         [__LINUX_KERNEL_VERSION >= 0x020625]: Make code unconditional.
4965         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4966         * sysdeps/unix/sysv/linux/sh/kernel-features.h
4967         [__LINUX_KERNEL_VERSION >= 0x020625]: Likewise.
4968         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4969         [__LINUX_KERNEL_VERSION < 0x020625]: Remove conditional code.
4970         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
4971         [__LINUX_KERNEL_VERSION >= 0x020621]: Make code unconditional.
4972         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4973         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4974         [__LINUX_KERNEL_VERSION >= 0x030000]: Likewise.
4975
4976 2016-02-24  Marko Myllynen  <myllynen@redhat.com>
4977
4978         * NEWS (2.23): Fix typo in bug 19048 text.
4979
4980 2016-02-24  Carlos O'Donell  <carlos@redhat.com>
4981
4982         [BZ #14259]
4983         * Makeconfig: Rename msgcatdir to localedir.
4984         Rename inst_msgcatdir to inst_localedir.
4985         * catgets/Makefile (catgets-CPPFLAGS): Use localedir.
4986         * config.make.in: Add localedir.
4987         * elf/Makefile ($(objpfx)sotruss): Use localedir.
4988         (ldd-rewrite): Likewise.
4989         * intl/Makefile: Rename inst_msgcatdir to inst_localedir.
4990         (install-others): Use inst_localedir.
4991         (CPPFLAGS): Use localedir.
4992         * locale/Makefile (locale-CPPFLAGS): Likewise.
4993         * po/Makefile (mo-installed): Use inst_localedir.
4994
4995         [BZ #19575]
4996         * localedata/charmaps/GB18030: Update comments regarding PAU to
4997         non-PUA mappings.
4998
4999 2016-02-24  Joseph Myers  <joseph@codesourcery.com>
5000
5001         * sysdeps/unix/sysv/linux/configure.ac (linux/fanotify.h): Do not
5002         test for header.
5003         * sysdeps/unix/sysv/linux/configure: Regenerated.
5004         * config.h.in (HAVE_LINUX_FANOTIFY_H): Remove #undef.
5005         * sysdeps/unix/sysv/linux/tst-fanotify.c [!HAVE_LINUX_FANOTIFY_H]:
5006         Remove conditional code.
5007         [HAVE_LINUX_FANOTIFY_H]: Make code unconditional.
5008
5009         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
5010         Define to 3.2.0.
5011         (arch_minimum_kernel): Likewise.
5012         * sysdeps/unix/sysv/linux/configure: Regenerated.
5013         * sysdeps/unix/sysv/linux/i386/configure.ac (arch_minimum_kernel):
5014         Define to 2.6.32.
5015         * sysdeps/unix/sysv/linux/i386/configure: Regenerated.
5016         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac
5017         (arch_minimum_kernel): Define to 2.6.32.
5018         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerated.
5019         * README: Document Linux 3.2 requirement.
5020         * manual/install.texi (Linux): Document Linux 3.2 headers
5021         requirement.
5022         * INSTALL: Regenerated.
5023
5024 2016-02-24  Andreas Schwab  <schwab@suse.de>
5025
5026         * math/test-math-isinff.cc (do_test): Only call isinfl and isnanl
5027         if !NO_LONG_DOUBLE.
5028
5029 2016-02-22  Roland McGrath  <roland@hack.frob.com>
5030
5031         * sysdeps/arm/nacl/libc.abilist (GLIBC_2.23): Add GLIBC_2.23,
5032         fts64_children, fts64_close, fts64_open, fts64_read and fts64_set.
5033
5034 2016-02-22  Dmitry V. Levin  <ldv@altlinux.org>
5035
5036         [BZ #19512]
5037         * config.h.in (HAVE_BUILTIN_EXPECT): New macro.
5038
5039 2016-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
5040
5041         * posix/tst-dir.c: Include libc-internal.h.
5042
5043 2016-02-20  Florian Weimer  <fweimer@redhat.com>
5044
5045         [BZ #19056]
5046         * dirent/dirent.h (readdir_r, readdir64_r): Mark as deprecated.
5047         * manual/filesys.texi (Reading/Closing Directory): Mention
5048         deprecaion.
5049         * posix/tst-dir.c (main): Disable deprecation warning in test.
5050
5051 2016-02-19  H.J. Lu  <hongjiu.lu@intel.com>
5052
5053         [BZ #19679]
5054         * sysdeps/x86_64/dl-trampoline.S (DL_RUNIME_UNALIGNED_VEC_SIZE):
5055         Renamed to ...
5056         (DL_RUNTIME_UNALIGNED_VEC_SIZE): This.  Set to 8.
5057         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5058         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.  Updated.
5059         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5060         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
5061         * sysdeps/x86_64/dl-trampoline.h
5062         (DL_RUNIME_RESOLVE_REALIGN_STACK): Renamed to ...
5063         (DL_RUNTIME_RESOLVE_REALIGN_STACK): This.
5064
5065 2016-02-19  Mark Wielaard  <mjw@redhat.com>
5066
5067         * elf/elf.h: Add NT_ARM_SYSTEM_CALL.
5068
5069 2016-02-19  Mark Wielaard  <mjw@redhat.com>
5070
5071         * elf/elf.h (R_386_GOT32X): New.
5072         (R_386_NUM): Update.
5073         (R_X86_64_GOTPCRELX: New.
5074         (R_X86_64_REX_GOTPCRELX): New.
5075         (R_X86_64_NUM): Update.
5076
5077 2016-02-19  Mike Frysinger  <vapier@gentoo.org>
5078
5079         * test-skeleton.c (TIMEOUT): Change to 20 and adjust comment.
5080
5081 2016-02-19  Carlos O'Donell  <carlos@systemhalted.org>
5082
5083         * nptl/allocatestack.c (allocate_stack): Declare new stackaddr,
5084         assign attr->stackaddr to it, and adjust it down when
5085         _STACK_GROWS_UP.  Change all attr->stackaddr to stackaddr.
5086         [_STACK_GROWS_UP]: Delete assert.
5087         * nptl/pthread_create.c (START_THREAD_DEFN) [!_STACK_GROWS_DOWN]:
5088         Implement stack grows up logic.
5089         * nptl/pthread_getattr_np.c (pthread_getattr_np): Implement
5090         stack grows up logic.
5091
5092 2016-02-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5093
5094         * NEWS: Update with 2.24 template.
5095
5096 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
5097
5098         [BZ #19678]
5099         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
5100         Ensure +0.0 is returned when taking the next value below the least
5101         positive value.
5102
5103 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5104
5105         * sysdeps/generic/malloc-machine.h: Assume mutex_init is always
5106         available.  Do not define NO_THREADS.
5107         * malloc/malloc.c: Do not check NO_THREADS.
5108         * malloc/arena.c: Likewise.
5109
5110 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5111
5112         * malloc/malloc.c (__libc_mallinfo): Update comment.
5113         (struct malloc_par): Remove max_total_mem member, it was always 0.
5114         (int_mallinfo): Store 0 into usmblks (no functional change).
5115         * malloc/hooks.c (struct malloc_state): Document that
5116         max_total_mem is always 0.
5117         * malloc/malloc.h (struct mallinfo): Dcoument that usmblks is
5118         always 0.
5119         * manual/memory.texi (Statistics of Malloc): Likewise.
5120
5121 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5122
5123         * malloc/malloc.c (sysmalloc): Do not update arena_max.
5124         * malloc/arena.c (arena_max): Remove.
5125         (heap_trim, _int_new_arena): Do not update arena_max.
5126
5127 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5128
5129         * resolv/res_init.c (res_ninit): Update comment.
5130
5131 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5132
5133         [BZ #19505]
5134         * posix/spawn_int.h: Add headers and include guard.
5135         (__spawn_valid_fd): New function.
5136         * posix/spawn_faction_addopen.c
5137         (posix_spawn_file_actions_addopen): Use __spawn_valid_fd.
5138         * posix/spawn_faction_addclose.c
5139         (posix_spawn_file_actions_addclose): Likewise.
5140         * posix/spawn_faction_adddup2.c
5141         (posix_spawn_file_actions_adddup2): Likewise.  Add check for
5142         second file descriptor.
5143         * posix/spawn_valid_fd.c: New file.
5144         * posix/tst-posix_spawn-fd.c: New file.
5145         * posix/Makefile (routines): Add spawn_valid_fd.
5146         (tests): Add tst-posix_spawn-fd.
5147
5148 2016-02-19  Florian Weimer  <fweimer@redhat.com>
5149
5150         * malloc/tst-malloc-thread-exit.c: Include test-skeleton.c early.
5151         (do_test): Limit the number of arenas, so that we can use fewer
5152         outer threads.  Limit timeout to 3 seconds, in preparation for a
5153         larger TIMEOUT value.
5154
5155 2016-02-19  Joseph Myers  <joseph@codesourcery.com>
5156
5157         [BZ #19674]
5158         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Include
5159         sign in overflowing and underflowing results when overflow or
5160         underflow is detected early.  Include sign in result before rather
5161         than after scaling.
5162
5163         [BZ #19603]
5164         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
5165         (__ieee754_remainderl): Adjust sign of integer version of low part
5166         when taking absolute value of high part.
5167         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
5168         * math/libm-test.inc (remainder_test_data): Add another test.
5169         (remquo_test_data): Likewise.
5170
5171 2016-02-18  Joseph Myers  <joseph@codesourcery.com>
5172
5173         [BZ #19602]
5174         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Handle
5175         equal high parts and both low parts zero specially.
5176         * sysdeps/ieee754/ldbl-128ibm/test-fmodl-ldbl-128ibm.c: New test.
5177         * sysdeps/ieee754/ldbl-128ibm/Makefile [$(subdir) = math] (tests):
5178         Add test-fmodl-ldbl-128ibm.
5179
5180         [BZ #19595]
5181         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Use
5182         common logic for all cases of shifting subnormal results.  Do not
5183         insert sign bit in shifted mantissa.  Always pass -1023 as biased
5184         exponent to ldbl_insert_mantissa in subnormal case.
5185
5186         [BZ #19594]
5187         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
5188         on high and low parts then adjust result and use
5189         ldbl_canonicalize_int if needed.
5190
5191         [BZ #19593]
5192         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Use __trunc
5193         on high part and __floor or __ceil on low part then use
5194         ldbl_canonicalize_int if needed.
5195
5196         [BZ #19592]
5197         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (__ceill): Use __ceil on
5198         high and low parts then use ldbl_canonicalize_int if needed.
5199
5200         [BZ #17899]
5201         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_canonicalize_int):
5202         New function.
5203         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (__floorl): Use __floor
5204         on high and low parts then use ldbl_canonicalize_int if needed.
5205
5206 2016-02-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5207
5208         * configure: Regenerated.
5209
5210         * po/libc.pot: Regenerated.
5211
5212         * po/be.po: Updated translation.
5213         * po/bg.po: Likewise.
5214         * po/ca.po: Likewise.
5215         * po/cs.po: Likewise.
5216         * po/da.po: Likewise.
5217         * po/el.po: Likewise.
5218         * po/eo.po: Likewise.
5219         * po/es.po: Likewise.
5220         * po/fi.po: Likewise.
5221         * po/fr.po: Likewise.
5222         * po/gl.po: Likewise.
5223         * po/hr.po: Likewise.
5224         * po/hu.po: Likewise.
5225         * po/ia.po: Likewise.
5226         * po/id.po: Likewise.
5227         * po/it.po: Likewise.
5228         * po/ja.po: Likewise.
5229         * po/lt.po: Likewise.
5230         * po/nb.po: Likewise.
5231         * po/nl.po: Likewise.
5232         * po/pt_BR.po: Likewise.
5233         * po/rw.po: Likewise.
5234         * po/sk.po: Likewise.
5235         * po/sl.po: Likewise.
5236         * po/sv.po: Likewise.
5237         * po/tr.po: Likewise.
5238         * po/zh_CN.po: Likewise.
5239         * po/zh_TW.po: Likewise.
5240
5241         * version.h (RELEAES): Set to "development".
5242         (VERSION): Set to 2.23.90.
5243
5244         * version.h (RELEASE): Set to "stable".
5245         (VERSION): Set to 2.23.
5246         * include/feature.h (__GLIBC_MINOR__): Set to 23.
5247
5248         * NEWS: Updated fixed bugs.
5249
5250 2016-02-18  H.J. Lu  <hongjiu.lu@intel.com>
5251             Wilco Dijkstra  <wdijkstr@arm.com>
5252
5253         [BZ #19462]
5254         * bits/string.h (_STRING_ARCH_unaligned): Renamed to ...
5255         (_STRING_INLINE_unaligned): This.
5256         * include/string.h: Include <string_private.h>.
5257         * string/bits/string2.h: Replace _STRING_ARCH_unaligned with
5258         _STRING_INLINE_unaligned.
5259         * sysdeps/aarch64/bits/string.h (_STRING_ARCH_unaligned): Removed.
5260         (_STRING_INLINE_unaligned): New.
5261         * sysdeps/aarch64/string_private.h: New file.
5262         * sysdeps/generic/string_private.h: Likewise.
5263         * sysdeps/m68k/m680x0/m68020/string_private.h: Likewise.
5264         * sysdeps/s390/string_private.h: Likewise.
5265         * sysdeps/x86/string_private.h: Likewise.
5266         * sysdeps/m68k/m680x0/m68020/bits/string.h
5267         (_STRING_ARCH_unaligned): Renamed to ...
5268         (_STRING_INLINE_unaligned): This.
5269         * sysdeps/s390/bits/string.h (_STRING_ARCH_unaligned): Renamed
5270         to ...
5271         (_STRING_INLINE_unaligned): This.
5272         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Renamed
5273         to ...
5274         (_STRING_INLINE_unaligned): This.
5275         * sysdeps/x86/bits/string.h (_STRING_ARCH_unaligned): Renamed
5276         to ...
5277         (_STRING_INLINE_unaligned): This.
5278
5279 2016-02-17  Andrew Senkevich  <andrew.senkevich@intel.com>
5280             H.J. Lu  <hongjiu.lu@intel.com>
5281
5282         [BZ #19590]
5283         * sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
5284         relocation.
5285
5286 2016-02-15  Carlos O'Donell  <carlos@redhat.com>
5287
5288         [BZ #18665]
5289         * resolv/nss_dns/dns-host.c (gaih_getanswer_slice): Always set
5290         *herrno_p.
5291         (gaih_getanswer): Document functional behviour. Return tryagain
5292         if any result is tryagain.
5293         * resolv/res_query.c (__libc_res_nsearch): Set buffer size to zero
5294         when freed.
5295         * resolv/res_send.c: Add copyright text.
5296         (__libc_res_nsend): Document that MAXPACKET is expected.
5297         (send_vc): Document. Remove buffer reuse.
5298         (send_dg): Document. Remove buffer reuse. Set *thisanssizp to set the
5299         size of the buffer. Add Dprint for truncated UDP buffer.
5300
5301 2016-02-14  Carlos O'Donell  <carlos@redhat.com>
5302
5303         * manual/install.texi: Latest tested is GCC 5.3, texinfo 6.0, gawk
5304         4.1.3, and sed 4.2.2. Remove po2test.sed comments.
5305         * INSTALL: Regenerate.
5306
5307 2016-02-14  Jakub Jelinek  <jakub@redhat.com>
5308             Jonathan Wakely  <jwakely@redhat.com>
5309             Carlos O'Donell  <carlos@redhat.com>
5310
5311         [BZ 19439]
5312         * math/Makefile (tests): Add test-math-isinff.
5313         (CFLAGS-test-math-isinff.cc): Use -std=gnu++11.
5314         * math/bits/mathcalls.h [__USE_MISC]: Use
5315         '|| __MATH_DECLARING_DOUBLE == 0' to relax definition of
5316         functions not in C++11 and which don't conflict e.g. isinff,
5317         isinfl etc.
5318         * math/test-math-isinff.cc: New file.
5319
5320 2016-02-12  Florian Weimer  <fweimer@redhat.com>
5321
5322         * misc/bug18240.c (do_test): Set RLIMIT_AS.
5323
5324 2016-02-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5325
5326         [BZ #19529]
5327         * stdlib/Makefile (CFLAGS-tst-makecontext.c): Add -funwind-tables.
5328
5329 2016-02-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5330
5331         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
5332
5333 2016-02-01  Joseph Myers  <joseph@codesourcery.com>
5334
5335         [BZ #19550]
5336         * sysdeps/unix/sysv/linux/mips/mips32/mmap.c: New file.
5337         * sysdeps/unix/sysv/linux/mips/mips64/mmap64.c: Move to ....
5338         * sysdeps/unix/sysv/linux/mips/mips64/n64/mmap64.c: ... here.
5339         * sysdeps/unix/sysv/linux/mips/mips64/n32/mmap.c: New file.
5340         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (mmap64):
5341         New syscall entry.
5342         * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list (mmap):
5343         New syscall entry.
5344         * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (mmap): Remove
5345         syscall entry.
5346
5347 2016-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5348
5349         [BZ #18240]
5350         * misc/hsearch_r.c (isprime, __hcreate_r): Protect against
5351         unsigned int wraparound.
5352
5353 2016-01-27  Florian Weimer  <fweimer@redhat.com>
5354
5355         [BZ #18240]
5356         * misc/bug18240.c: New test.
5357         * misc/Makefile (tests): Add it.
5358
5359 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
5360             Joseph Myers  <joseph@codesourcery.com>
5361
5362         * sysdeps/mips/memcpy.S (MEMCPY_NAME) [USE_DOUBLE]: Avoid word
5363         load in branch delay slot when less than a word of input left.
5364
5365 2016-01-27  Andreas Schwab  <schwab@suse.de>
5366
5367         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (half): Remove.
5368         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (maxlog, big): Remove.
5369         * sysdeps/powerpc/fpu/s_cosf.c (one): Remove.
5370         * sysdeps/powerpc/fpu/e_hypotf.c (two30): Remove.
5371
5372 2016-01-26  David S. Miller  <davem@davemloft.net>
5373
5374         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Add _Q_cmp.
5375
5376 2016-01-25  David S. Miller  <davem@davemloft.net>
5377
5378         * sysdeps/sparc/sparc32/Versions (GLIBC_2.23): Add entry for
5379         __sqrtl_finite.
5380         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c (__sqrtl_finite): Define
5381         instead using versioned_symbol.
5382         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Fix ordering
5383         of entries.
5384
5385         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Move
5386         __sqrtl_finite to GLIBC_2.23
5387
5388 2016-01-25  Ricchard Henderson  <rth@redhat.com>
5389
5390         * sysdeps/alpha/fpu/libm-test-ulps: Update.
5391
5392 2016-01-25  Andreas Schwab  <schwab@suse.de>
5393
5394         [BZ #17514]
5395         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock)
5396         <case PTHREAD_MUTEX_ERRORCHECK_NP>: Don't do lock elision.
5397         * nptl/Makefile (tests): Add tst-mutex-errorcheck.
5398         * nptl/tst-mutex-errorcheck.c: New file.
5399
5400 2016-01-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5401
5402         [BZ #18560]
5403         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h (__ipc): Remove.
5404         (IPCOP_semop): Likewise.
5405         (IPCOP_semget): Likewise.
5406         (IPCOP_semctl): Likewise.
5407         (IPCOP_msgsnd): Likewise.
5408         (IPCOP_msgrcv): Likewise.
5409         (IPCOP_msgget): Likewise.
5410         (IPCOP_msgctl): Likewise.
5411         (IPCOP_shmat): Likewise.
5412         (IPCOP_shmdt): Likewise.
5413         (IPCOP_shmget): Likewise.
5414         (IPCOP_shmctl): Likewise.
5415
5416 2016-01-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
5417
5418         * string/tst-endian.c: Include <libc-internal.h>.
5419         (do_test): Ignore tautological-compare warnings around
5420         "htobeXX (beXXtoh (i)) != i" and
5421         "htoleXX (leXXtoh (i)) != i" if-statements.
5422
5423 2016-01-24  David S. Miller  <davem@davemloft.net>
5424
5425         * sysdeps/sparc/sparc32/fpu/e_sqrtl.c: New file.
5426         * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c (__ieee754_sqrtl): Remove
5427         alias.
5428         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
5429         __sqrtl_finite.
5430
5431         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5432
5433 2016-01-25  Maciej W. Rozycki  <macro@imgtec.com>
5434
5435         * sysdeps/unix/sysv/linux/mips/configure.ac: Set
5436         `arch_minimum_kernel' to 4.5.0 if 2008 NaN encoding is used.
5437         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
5438
5439 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5440
5441         * nptl/tst-setuid3.c (is_invalid_barrier_ret): New function.
5442         (thread_func): Use new function to simplify barrier check.
5443         (do_test): Use new function to simplify checking barrier exit
5444         code, and actually join the child thread.
5445
5446 2016-01-22  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5447
5448         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin): Remove
5449         semicolon.
5450         (__libc_tend): Likewise.
5451         (__libc_tabort): Likewise.
5452
5453 2016-01-22  Chung-Lin Tang  <cltang@codesourcery.com>
5454
5455         * sysdeps/nios2/libm-test-ulps: Update.
5456         * sysdeps/unix/sysv/linux/nios2/localplt.data (__gtdf2): Add.
5457         (__gtsf2): Likewise.
5458         (__unorddf2): Likewise.
5459         (__unordsf2): Likewise.
5460         (__ledf2): Likewise.
5461
5462 2016-01-20  Chris Metcalf  <cmetcalf@ezchip.com>
5463
5464         * nis/nis_table.c (__follow_path): Disable diagnostic for
5465         uninitialized variable that is a false positive for gcc 4.7.
5466         * stdio-common/vfscanf.c (_IO_vfwscanf): Likewise.
5467
5468 2016-01-20  Roland McGrath  <roland@hack.frob.com>
5469
5470         * sysdeps/nacl/lowlevellock-futex.h
5471         (lll_futex_wait, lll_futex_timed_wait, lll_futex_wake):
5472         Always evaluate PRIVATE argument.
5473
5474 2016-01-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
5475
5476         [BZ #19490]
5477         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S
5478         (pthread_cond_broadcast): Use ENTRY/END
5479         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S
5480         (pthread_cond_signal): Likewise.
5481         * sysdeps/x86_64/nptl/pthread_spin_lock.S (pthread_spin_lock):
5482         Likewise.
5483         * sysdeps/x86_64/nptl/pthread_spin_trylock.S (pthread_spin_trylock):
5484         Likewise.
5485         * sysdeps/x86_64/nptl/pthread_spin_unlock.S (pthread_spin_unlock):
5486         Likewise.
5487
5488 2016-01-20  Joseph Myers  <joseph@codesourcery.com>
5489
5490         * sysdeps/ieee754/dbl-64/s_finite.c
5491         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Define
5492         compat symbol at version GLIBC_2_1 and use GLIBC_2_1 in
5493         SHLIB_COMPAT condition for libm, not GLIBC_2_0.
5494         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c
5495         [NO_LONG_DOUBLE && LDBL_CLASSIFY_COMPAT] (__finitel): Likewise.
5496
5497         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
5498         (__gtsf2): Add as optional for libc.so.
5499         (__unordsf2): Likewise.
5500         (__signbit): Remove for libc.so.
5501         (__signbitl): Likewise.
5502
5503 2016-01-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
5504
5505         * iconvdata/bug-iconv11.c (test_ibm93x):
5506         Use %zu printf format specifier for size_t argument.
5507
5508 2016-01-19  Joseph Myers  <joseph@codesourcery.com>
5509
5510         * math/gen-libm-test.pl (parse_ulps): Do not reduce
5511         already-recorded ulps.
5512         * sysdeps/arm/libm-test-ulps: Regenerated.
5513         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
5514         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5515         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
5516
5517 2016-01-19  Andrew Senkevich  <andrew.senkevich@intel.com>
5518             Paul Pluzhnikov  <ppluzhnikov@google.com>
5519
5520         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Fixed build with
5521         assembler not supporting AVX-512.
5522
5523 2016-01-18  Stefan Liebler  <stli@linux.vnet.ibm.com>
5524
5525         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
5526
5527 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
5528
5529         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
5530         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5531
5532         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
5533
5534         * sysdeps/arm/libm-test-ulps: Regenerated.
5535
5536 2016-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
5537
5538         [BZ #19451]
5539         * math/Makefile (libm-vec-tests): Move libraries after wrappers.o
5540
5541 2016-01-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
5542
5543         [BZ #19486]
5544         * sysdeps/s390/fix-fp-int-convert-overflow.h: New File.
5545         * sysdeps/generic/fix-fp-int-convert-overflow.h
5546         (FIX_LDBL_LONG_CONVERT_OVERFLOW,
5547         FIX_LDBL_LLONG_CONVERT_OVERFLOW): New define.
5548         * sysdeps/arm/fix-fp-int-convert-overflow.h: Likewise.
5549         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h:
5550         Likewise.
5551         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl):
5552         Avoid conversions to long int where inexact exceptions
5553         could be raised.
5554         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl):
5555         Likewise.
5556         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl):
5557         Avoid conversions to long long int where inexact exceptions
5558         could be raised.
5559         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl):
5560         Likewise.
5561
5562 2016-01-17  Mike Frysinger  <vapier@gentoo.org>
5563
5564         * configure.ac: Rewrite error comment and use AC_MSG_ERROR.
5565         * configure: Regenerated.
5566
5567 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5568
5569         * sysdeps/x86_64/multiarch/memcpy_chk.S: Fixed typos.
5570
5571 2016-01-16  Mike Frysinger  <vapier@gentoo.org>
5572
5573         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Move
5574         outside of comment.
5575
5576 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5577
5578         * nptl/tst-barrier1.c: Add description on first line.
5579         * nptl/tst-barrier2.c: Likewise.
5580         * nptl/tst-barrier3.c: Likewise.
5581         * nptl/tst-barrier4.c: Likewise.
5582         * nptl/tst-barrier5.c: Likewise.
5583
5584 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5585
5586         [BZ #18868]
5587         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Apply fix.
5588
5589 2016-01-16  Andrew Senkevich  <andrew.senkevich@intel.com>
5590
5591         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new files.
5592         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
5593         * sysdeps/x86_64/multiarch/memcpy-avx512-no-vzeroupper.S: New file.
5594         * sysdeps/x86_64/multiarch/mempcpy-avx512-no-vzeroupper.S: Likewise.
5595         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S: Likewise.
5596         * sysdeps/x86_64/multiarch/memcpy.S: Added new IFUNC branch.
5597         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
5598         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
5599         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
5600         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
5601         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
5602
5603 2016-01-15  Torvald Riegel  <triegel@redhat.com>
5604
5605         [BZ #13065]
5606         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Replace with
5607         new implementation.
5608         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy): Likewise.
5609         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Adapt.
5610         * sysdeps/nptl/internaltypes.h (pthread_barrier): Adapt.
5611         (BARRIER_IN_THRESHOLD): New macro.
5612         * nptl/pthread_barrierattr_setpshared.c
5613         (pthread_barrierattr_setpshared): Clean up.
5614         * nptl/tst-barrier4.c: Correct comment.
5615         * nptl/tst-barrier5.c: New file.
5616         * nptl/Makefile (tests): Add nptl/tst-barrier5.c.
5617         (gen-as-const-headers): Remove lowlevelbarrier.sym.
5618         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Remove.
5619         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Remove.
5620         * nptl/lowlevelbarrier.sym: Remove.
5621         * nptl/DESIGN-barrier.txt: Remove.
5622         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Remove.
5623         * sysdeps/sparc/nptl/pthread_barrier_init.c: Remove.
5624         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Remove.
5625         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: Replace with build
5626         error.
5627         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: Use generic
5628         implementation.
5629
5630 2016-01-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
5631
5632         * rt/tst-mqueue5.c (thr): Cleanup misleading comment.
5633         (do_child): Mask SIGRTMIN while thr is running.
5634
5635 2016-01-15  Martin Sebor  <msebor@redhat.com>
5636
5637         [BZ #19432]
5638         * iconvdata/Makefile: Add bug-iconv11.
5639         * iconvdata/bug-iconv11.c: New test.
5640         * iconvdata/ibm930.c: Do not reject redundant shift sequences.
5641         * iconvdata/ibm933.c: Same.
5642         * iconvdata/ibm935.c: Same.
5643         * iconvdata/ibm937.c: Same.
5644         * iconvdata/ibm939.c: Same.
5645
5646 2016-01-15  Martin Sebor  <msebor@redhat.com>
5647
5648         [BZ #19443]
5649         * crypt/crypt_util.c [DEBUG] (_ufc_prbits): Correct format string.
5650         [DEBUG] (_ufc_set_bits): Declare used.
5651         * iconv/gconv_dl.c [DEBUG]: Add a missing include directive.
5652         [DEBUG] (print_all): Declare used.
5653         * resolv/res_send.c [DEBUG] (__libc_res_nsend): Explicitly convert
5654         operands of the ternary ?: expression to target type.
5655         * stdlib/rshift.c [DEBUG] (mpn_rshift): Use assert() instead of
5656         calling the undeclared abort.
5657         * time/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.
5658
5659 2016-01-15  Martin Sebor  <msebor@redhat.com>
5660
5661         [BZ #18755]
5662         * iconv/skeleton.c (FUNCTION_NAME): Suppress -Wunused-but-set-variable
5663         warnings.
5664         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread): Same.
5665         (__gai_create_helper_thread): Same.
5666         * nscd/nscd.c (do_exit): Suppress -Wunused-variable.
5667         * iconvdata/iso-2022-cn-ext.c (BODY): Initialize local variable
5668         to suppress -Wmaybe-uninitialized warnings.
5669
5670 2016-01-15  H.J. Lu  <hongjiu.lu@intel.com>
5671
5672         [BZ #19465]
5673         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Call math_opt_barrier
5674         inside if.
5675         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5676         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
5677         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5678
5679 2016-01-14  H.J. Lu  <hongjiu.lu@intel.com>
5680
5681         [BZ #19466]
5682         * time/tst-mktime2.c (time_t_max): Removed.
5683         (time_t_min): Likewise.
5684         (TYPE_SIGNED): New.
5685         (TYPE_MINIMUM): Likewise.
5686         (TYPE_MAXIMUM): Likewise.
5687         (TIME_T_MIN): Likewise.
5688         (TIME_T_MAX): Likewise.
5689         (mktime_test): Replace time_t_max and time_t_min with TIME_T_MAX
5690         and TIME_T_MIN.
5691         (do_test): Likewise.
5692
5693 2016-01-14  Amit Pawar  <amit.pawar@amd.com>
5694
5695         [BZ #19467]
5696         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
5697         index_Fast_Unaligned_Load flag for Excavator family CPUs.
5698
5699 2016-01-02  Marcin Kościelnicki  <koriakin@0x04.net>
5700
5701         * sysdeps/s390/nptl/tls.h (struct tcbhead_t): Add __private_ss field.
5702
5703 2016-01-13  Carlos O'Donell  <carlos@redhat.com>
5704
5705         * benchtests/Makefile (PYTHON): Define.
5706         (bench-func): Use $(PYTHON) to run python scripts.
5707         ($(objpfx)bench-%.c): Likewise.
5708
5709 2016-01-13  Flavio Cruz  <flaviocruz@gmail.com>
5710
5711         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Do not remove
5712         leading slash when `file_name' is "/".
5713
5714 2016-01-12  Joseph Myers  <joseph@codesourcery.com>
5715
5716         * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro.
5717         * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT):
5718         Likewise.
5719         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT):
5720         Likewise.
5721         * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT):
5722         Likewise.
5723         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New
5724         enum constant and macro.
5725         (PTRACE_SETSIGMASK): Likewise.
5726         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5727         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
5728         (PTRACE_GETSIGMASK): Likewise.
5729         (PTRACE_SETSIGMASK): Likewise.
5730         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5731         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK):
5732         Likewise.
5733         (PTRACE_SETSIGMASK): Likewise.
5734         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5735         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
5736         (PTRACE_GETSIGMASK): Likewise.
5737         (PTRACE_SETSIGMASK): Likewise.
5738         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5739         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK):
5740         Likewise.
5741         (PTRACE_SETSIGMASK): Likewise.
5742         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5743         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK):
5744         Likewise.
5745         (PTRACE_SETSIGMASK): Likewise.
5746         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5747         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK):
5748         Likewise.
5749         (PTRACE_SETSIGMASK): Likewise.
5750         (PTRACE_SECCOMP_GET_FILTER): Likewise.
5751
5752 2016-01-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
5753             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5754
5755         [BZ #19439]
5756         * math/bits/mathcalls.h
5757         [!__cplusplus || __cplusplus < 201103L] (isinf): Do not declare
5758         prototype.
5759         [!__cplusplus || __cplusplus < 201103L] (isnan): Likewise.
5760
5761 2016-01-11  Andreas Schwab  <schwab@suse.de>
5762
5763         [BZ #19253]
5764         * time/tzfile.c (__tzfile_default): Invalidate tzfile attribute
5765         cache when TZDEFRULES was used.
5766         * time/tst-tzname.c: New file.
5767         * time/Makefile (test): Add tst-tzname.
5768         (tst-tzname-ENV, CPPFLAGS-tst-tzname.c): Define.
5769         * timezone/Makefile (test-zones): Add $(posixrules-file).
5770         ($(testdata)/$(posixrules-file)): New rule.
5771
5772 2016-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5773
5774         Fix doc quoting problems with Texinfo 5
5775         Without this change, in the info file output, Texinfo 5 quotes code
5776         in text with undirected single quotes 'like this' and generates
5777         code examples that with many PDF readers cannot be cut out of PDFs
5778         and pasted into code.
5779         * manual/libc.texinfo: Configure the libc manual like the GNU
5780         Emacs manual, by using @documentencoding and setting
5781         txicodequoteundirected and txicodequotebacktick.  This way,
5782         Texinfo 5 quotes code in text with directed single quotes ‘like
5783         this’ and produces examples that can be cut out of PDFs.  This
5784         change causes Texinfo 5 to generate info files that contain UTF-8
5785         characters in the set {'‘', '’', '“', '”', 'Ä', 'ä', 'ö', '−',
5786         '–', '—', '©', '⇒', '•', '…'}, which is OK nowadays.
5787
5788 2016-01-08  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5789
5790         * sysdeps/unix/sysv/linux/powerpc/htm.h (__libc_tbegin,
5791         __libc_tabort, __libc_tend): New wrappers that enforce compiler
5792         barriers to their respective compiler built-ins.
5793         * sysdeps/powerpc/nptl/elide.h (__get_new_count, ELIDE_LOCK,
5794         ELIDE_TRYLOCK, __elide_unlock): Use the new wrappers.
5795         * sysdeps/powerpc/sysdep.h: Likewise.
5796         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: Likewise.
5797         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: Likewise.
5798         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: Likewise.
5799
5800 2016-01-08  Marko Myllynen  <myllynen@redhat.com>
5801
5802         * scripts/config.guess: Revert previous shebang change.
5803         * scripts/config.sub: Likewise.
5804         * scripts/mkinstalldirs: Likewise.
5805
5806 2016-01-08  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
5807
5808         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_ARCH_3_00 and
5809         PPC_FEATURE2_HAS_IEEE128.
5810         * sysdeps/powerpc/dl-procinfo.c:
5811         (_dl_powerpc_cap_flags): Add corresponding names to new capabilities.
5812
5813 2016-01-08  John David Anglin  <danglin@gcc.gnu.org>
5814
5815         [BZ #19415]
5816         * sysdeps/hppa/dl-fptr.c (_dl_fixup): Declare.
5817         (elf_machine_resolve): New.  Return address of _dl_runtime_resolve.
5818         (_dl_lookup_address): Rewrite using function resolver trampoline.
5819         * sysdeps/hppa/dl-lookupcfg.h (DL_LOOKUP_ADDRESS): Don't clear bottom
5820         two bits in address.
5821
5822 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5823
5824         * longlong.h: Change !__SHMEDIA__ to
5825         (!defined (__SHMEDIA__) || !__SHMEDIA__).
5826         Change __SHMEDIA__ to defined (__SHMEDIA__) && __SHMEDIA__.
5827
5828 2016-01-07  Daniel Jacobowitz  <dan@codesourcery.com>
5829             Joseph Myers  <joseph@codesourcery.com>
5830             Mark Shinwell  <shinwell@codesourcery.com>
5831             Andrew Stubbs  <ams@codesourcery.com>
5832             Rich Felker <dalias@libc.org>
5833
5834         * longlong.h (udiv_qrnnd): Add FDPIC compatible version for SH.
5835
5836 2016-01-07  Richard Henderson  <rth@redhat.com>
5837
5838         * longlong.h [__alpha] (umul_ppmm): Disable for c++.
5839
5840 2016-01-07  Mike Frysinger  <vapier@gentoo.org>
5841
5842         * sysdeps/unix/sysv/linux/fxstat64.c (___fxstat64): Change
5843         __ASSUME_ST_INO_64_BIT == 0 to !defined __ASSUME_ST_INO_64_BIT.
5844         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
5845         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
5846         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat32_conv): Likewise.
5847
5848 2016-01-07  Paul Eggert  <eggert@cs.ucla.edu>
5849             Joseph Myers  <joseph@codesourcery.com>
5850
5851         * timezone/private.h: Update from tzcode 2015g.
5852         * timezone/tzfile.h: Likewise.
5853         * timezone/tzselect.ksh: Likewise.
5854         * timezone/zdump.c: Likewise.
5855         * timezone/zic.c: Likewise.
5856         * timezone/ialloc.c: Remove file.
5857         * timezone/scheck.c: Likewise.
5858         * timezone/Makefile (extra-objs): Remove variable.
5859         ($(objpfx)zic): Do not depend on scheck.o and ialloc.o.
5860         (tz-cflags): Add -DHAVE_GETTEXT -DUSE_LTZ=0
5861         -Wno-maybe-uninitialized.
5862         (CFLAGS-zdump.c): Remove -fwrapv -DNOID -DHAVE_GETTEXT.
5863         (CFLAGS-zic.c): Remove -DNOID -DHAVE_GETTEXT.
5864         (CFLAGS-ialloc.c): Remove variable.
5865         (CFLAGS-scheck.c): Likewise.
5866         * timezone/README: Update list of files from tzcode.
5867
5868 2016-01-07  Khem Raj  <raj.khem@gmail.com>
5869
5870         * argp/argp-fmtstream.c (__argp_fmtstream_free): Use fwrite_unlocked
5871         instead of __fxprintf when _LIBC is undefined.
5872
5873 2016-01-07  Marko Myllynen  <myllynen@redhat.com>
5874
5875         * catgets/test-gencat.sh: Remove space after shebang.
5876         * conform/GlibcConform.pm: Likewise.
5877         * conform/check-header-lists.sh: Likewise.
5878         * conform/conformtest.pl: Likewise.
5879         * conform/linknamespace.pl: Likewise.
5880         * conform/list-header-symbols.pl: Likewise.
5881         * debug/catchsegv.sh: Likewise.
5882         * elf/genrtldtbl.awk: Likewise.
5883         * elf/tst-pathopt.sh: Likewise.
5884         * elf/tst-rtld-load-self.sh: Likewise.
5885         * grp/tst_fgetgrent.sh: Likewise.
5886         * iconvdata/gen-8bit-gap-1.sh: Likewise.
5887         * iconvdata/gen-8bit-gap.sh: Likewise.
5888         * iconvdata/gen-8bit.sh: Likewise.
5889         * iconvdata/run-iconv-test.sh: Likewise.
5890         * intl/tst-gettext.sh: Likewise.
5891         * intl/tst-gettext2.sh: Likewise.
5892         * intl/tst-gettext4.sh: Likewise.
5893         * intl/tst-gettext6.sh: Likewise.
5894         * intl/tst-translit.sh: Likewise.
5895         * io/ftwtest-sh: Likewise.
5896         * libio/test-freopen.sh: Likewise.
5897         * locale/gen-translit.pl: Likewise.
5898         * malloc/tst-mtrace.sh: Likewise.
5899         * manual/check-safety.sh: Likewise.
5900         * manual/libc-texinfo.sh: Likewise.
5901         * manual/tsort.awk: Likewise.
5902         * manual/xtract-typefun.awk: Likewise.
5903         * nptl/tst-cancel-wrappers.sh: Likewise.
5904         * nptl/tst-tls6.sh: Likewise.
5905         * posix/globtest.sh: Likewise.
5906         * posix/tst-getconf.sh: Likewise.
5907         * posix/wordexp-tst.sh: Likewise.
5908         * scripts/check-c++-types.sh: Likewise.
5909         * scripts/check-local-headers.sh: Likewise.
5910         * scripts/config.guess: Likewise.
5911         * scripts/config.sub: Likewise.
5912         * scripts/cpp: Likewise.
5913         * scripts/cross-test-ssh.sh: Likewise.
5914         * scripts/documented.sh: Likewise.
5915         * scripts/evaluate-test.sh: Likewise.
5916         * scripts/gen-libc-abis: Likewise.
5917         * scripts/gen-sorted.awk: Likewise.
5918         * scripts/list-fixed-bugs.py: Likewise.
5919         * scripts/merge-test-results.sh: Likewise.
5920         * scripts/mkinstalldirs: Likewise.
5921         * scripts/rellns-sh: Likewise.
5922         * scripts/test-installation.pl: Likewise.
5923         * scripts/update-copyrights: Likewise.
5924         * stdio-common/tst-printf.sh: Likewise.
5925         * stdio-common/tst-unbputc.sh: Likewise.
5926         * stdlib/tst-fmtmsg.sh: Likewise.
5927         * stdlib/tst-setcontext3.sh: Likewise.
5928         * sysdeps/i386/tst-ld-sse-use.sh: Likewise.
5929         * sysdeps/unix/make-syscalls.sh: Likewise.
5930
5931 2016-01-06  John David Anglin  <dave.anglin@bell.net>
5932
5933         * sysdeps/hppa/nptl/pthread_spin_init.c (pthread_spin_init): Replace
5934         asm stw with atomic_exchange_rel.  Add explanatory comment.
5935         * sysdeps/hppa/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
5936         Likewise.
5937
5938 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5939
5940         [BZ #19122]
5941         * include/unistd.h [IS_IN (rtld)]: Include <dl-unistd.h>.
5942         * sysdeps/generic/dl-unistd.h: New file.
5943         * sysdeps/mach/hurd/dl-unistd.h: Likewise.
5944
5945 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
5946
5947          [BZ #19122]
5948          * include/sys/mman.h [IS_IN (rtld)]: Include <dl-mman.h>.
5949          * sysdeps/generic/dl-mman.h: New file.
5950          * sysdeps/mach/hurd/dl-mman.h: Likewise.
5951
5952 2016-01-05  Joseph Myers  <joseph@codesourcery.com>
5953
5954         * manual/texinfo.tex: Update to version 2016-01-04.21 with
5955         trailing whitespace removed.
5956         * scripts/config.guess: Update to version 2016-01-01.
5957         * scripts/config.sub: Update to version 2016-01-01.
5958         * scripts/move-if-change: Update from gnulib.
5959
5960 2016-01-04  Anton Blanchard  <anton@samba.org>
5961
5962         * sysdeps/ieee754/dbl-64/e_pow.c (log1): Use unsigned int
5963         for array indices.
5964         * sysdeps/ieee754/dbl-64/e_pow.c (my_log2): Likewise.
5965
5966 2016-01-04  Joseph Myers  <joseph@codesourcery.com>
5967
5968         * NEWS: Update copyright dates.
5969         * catgets/gencat.c (print_version): Likewise.
5970         * csu/version.c (banner): Likewise.
5971         * debug/catchsegv.sh: Likewise.
5972         * debug/pcprofiledump.c (print_version): Likewise.
5973         * debug/xtrace.sh (do_version): Likewise.
5974         * elf/ldconfig.c (print_version): Likewise.
5975         * elf/ldd.bash.in: Likewise.
5976         * elf/pldd.c (print_version): Likewise.
5977         * elf/sotruss.sh: Likewise.
5978         * elf/sprof.c (print_version): Likewise.
5979         * iconv/iconv_prog.c (print_version): Likewise.
5980         * iconv/iconvconfig.c (print_version): Likewise.
5981         * locale/programs/locale.c (print_version): Likewise.
5982         * locale/programs/localedef.c (print_version): Likewise.
5983         * login/programs/pt_chown.c (print_version): Likewise.
5984         * malloc/memusage.sh (do_version): Likewise.
5985         * malloc/memusagestat.c (print_version): Likewise.
5986         * malloc/mtrace.pl: Likewise.
5987         * manual/libc.texinfo: Likewise.
5988         * nptl/version.c (banner): Likewise.
5989         * nscd/nscd.c (print_version): Likewise.
5990         * nss/getent.c (print_version): Likewise.
5991         * nss/makedb.c (print_version): Likewise.
5992         * posix/getconf.c (main): Likewise.
5993         * scripts/test-installation.pl: Likewise.
5994         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
5995
5996         * All files with FSF copyright notices: Update copyright dates
5997         using scripts/update-copyrights.
5998         * intl/plural.c: Regenerated.
5999         * locale/programs/charmap-kw.h: Likewise.
6000         * locale/programs/locfile-kw.h: Likewise.
6001
6002 2016-01-02  Helge Deller  <deller@gmx.de>
6003
6004         [BZ #19285]
6005         * sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_STACK): Define.
6006         (MAP_HUGETLB, MCL_ONFAULT): Likewise.
6007         (MADV_HUGEPAGE, MADV_NOHUGEPAGE, MADV_DONTDUMP, MADV_DODUMP): Likewise.
6008         (MADV_xxK_PAGES): Remove.
6009
6010 2016-01-01  Mike Frysinger  <vapier@gentoo.org>
6011
6012         [BZ #15421]
6013         * sysdeps/ia64/fpu/w_lgamma_main.c: Include math.h & math_private.h.
6014         [BUILD_LGAMMA]: Wrap all code by define.  Re-indent sub-preprocessor.
6015         * sysdeps/ia64/fpu/w_lgammaf_main.c: Likewise.
6016         * sysdeps/ia64/fpu/w_lgammal_main.c: Likewise.
6017
6018 2015-12-30  Dmitry V. Levin  <ldv@altlinux.org>
6019
6020         [BZ #19408]
6021         * sysdeps/unix/sysv/linux/personality.c: New file.
6022         * sysdeps/unix/sysv/linux/sparc/sparc64/personality.c: Likewise.
6023         * sysdeps/unix/sysv/linux/tst-personality.c: Likewise.
6024         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
6025         (sysdep_routines): Add personality.
6026         (tests): Add tst-personality.
6027         * sysdeps/unix/sysv/linux/syscalls.list (personality): Move ...
6028         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ... here.
6029         * sysdeps/unix/sysv/linux/arm/syscalls.list (personality): New entry.
6030         * sysdeps/unix/sysv/linux/hppa/syscalls.list (personality): Likewise.
6031         * sysdeps/unix/sysv/linux/i386/syscalls.list (personality): Likewise.
6032         * sysdeps/unix/sysv/linux/m68k/syscalls.list (personality): Likewise.
6033         * sysdeps/unix/sysv/linux/microblaze/syscalls.list (personality):
6034         Likewise.
6035         * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (personality):
6036         Likewise.
6037         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (personality):
6038         Likewise.
6039         * sysdeps/unix/sysv/linux/sh/syscalls.list (personality): Likewise.
6040         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list (personality):
6041         Likewise.
6042
6043 2015-12-30  Aurelien Jarno  <aurelien@aurel32.net>
6044
6045         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include <string.h>.
6046         (PATH_ARM_SYSTYPE): Remove.
6047         (PATH_CPUINFO): Likewise.
6048         (IO_BASE_FOOTBRIDGE): Likewise.
6049         (IO_SHIFT_FOOTBRIDGE): Likewise.
6050         (struct platform): Likewise.
6051         (init_iosys): Remove compatibility code for 2.4 kernels.
6052         * sysdeps/unix/sysv/linux/arm/localplt.data: Remove fscanf.
6053
6054 2015-12-29  Florian Weimer  <fweimer@redhat.com>
6055
6056         * malloc/tst-malloc-thread-fail.c: New file.
6057         * malloc/Makefile (tests): Add tst-malloc-thread-fail.
6058         (tst-malloc-thread-fail): Link against libpthread.
6059
6060 2015-12-29  Mike Frysinger  <vapier@gentoo.org>
6061
6062         * scripts/list-fixed-bugs.py: Import argparse.  Call main instead.
6063         (get_parser): New function.
6064         (main): New function.
6065
6066 2015-12-29  Rob Wu  <rob@robwu.nl>
6067
6068         [BZ #19369]
6069         * resolv/res_init.c (__res_vinit): Reset defdname before use.
6070
6071 2015-12-29  John David Anglin  <danglin@gcc.gnu.org>
6072
6073         [BZ #19270]
6074         * sysdeps/hppa/fpu/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
6075
6076 2015-12-28  Mike Frysinger  <vapier@gentoo.org>
6077
6078         [BZ #15421]
6079         * sysdeps/ia64/fpu/w_lgamma_main.c: Change gammaf to gamma.
6080
6081 2015-12-23  Torvald Riegel  <triegel@redhat.com>
6082
6083         [BZ #13690]
6084         * sysdeps/nptl/lowlevellock.h (__lll_unlock): Do not access the lock
6085         after releasing it.
6086         (__lll_robust_unlock): Likewise.
6087         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6088         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_unlock): Likewise.
6089         (lll_robust_unlock): Likewise.
6090         * sysdeps/unix/sysv/linux/lowlevellock-futex.h (__lll_private_flag):
6091         Prevent warnings in callers.
6092
6093 2015-12-23  Florian Weimer  <fweimer@redhat.com>
6094
6095         * malloc/arena.c (list_lock): Update comment.
6096
6097 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6098
6099         * sysdeps/powerpc/hwcapinfo.c: Export symbol
6100         __parse_hwcap_and_convert_at_platform to libc.a.
6101
6102 2015-12-22  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6103
6104         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Added
6105         platform and feature support for POWER9.
6106         * sysdeps/powerpc/dl-procinfo.h: Likewise.
6107         * sysdeps/powerpc/powerpc32/power9/Implies: New file.
6108         * sysdeps/powerpc/powerpc32/power9/fpu/multiarch/Implies: Likewise.
6109         * sysdeps/powerpc/powerpc32/power9/multiarch/Implies: Likewise.
6110         * sysdeps/powerpc/powerpc64/power9/Implies: Likewise, for powerpc64.
6111         * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
6112         * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
6113         * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
6114
6115 2015-12-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6116
6117         Harmonize generic stdio-lock support with nptl
6118
6119         This fixes build when _IO_funlockfile is a macro, fixes build where
6120         _IO_acquire_lock_clear_flags2 is used, and fixes unlocking on unexpected
6121         stack unwind.
6122
6123         * sysdeps/generic/stdio-lock.h [__EXCEPTIONS] (_IO_acquire_lock,
6124         _IO_release_lock ): Use cleanup attribute on new
6125         _IO_acquire_lock_file variable instead of assuming that
6126         _IO_release_lock will be called.
6127         [!__EXCEPTIONS] (_IO_acquire_lock): Define to non-existing
6128         _IO_acquire_lock_needs_exceptions_enabled.
6129         (_IO_acquire_lock_clear_flags2): New macro.
6130
6131 2015-12-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6132
6133         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerated.
6134
6135 2015-12-21  Florian Weimer  <fweimer@redhat.com>
6136
6137         [BZ #19182]
6138         * malloc/arena.c (list_lock): Document lock ordering requirements.
6139         (free_list_lock): New lock.
6140         (ptmalloc_lock_all): Comment on free_list_lock.
6141         (ptmalloc_unlock_all2): Reinitialize free_list_lock.
6142         (detach_arena): Update comment.  free_list_lock is now needed.
6143         (_int_new_arena): Use free_list_lock around detach_arena call.
6144         Acquire arena lock after list_lock.  Add comment, including FIXME
6145         about incorrect synchronization.
6146         (get_free_list): Switch to free_list_lock.
6147         (reused_arena): Acquire free_list_lock around detach_arena call
6148         and attached threads counter update.  Add two FIXMEs about
6149         incorrect synchronization.
6150         (arena_thread_freeres): Switch to free_list_lock.
6151         * malloc/malloc.c (struct malloc_state): Update comments to
6152         mention free_list_lock.
6153
6154 2015-12-21  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
6155
6156         * sysdeps/ieee754/dbl-64/s_sin.c (csloww, csloww1, csloww2):
6157         Remove functions.
6158         (sloww, sloww1): Accept argument to offset quadrant.
6159         (sloww, sloww1, sloww2): Call __mpsin or __mpcos based on
6160         quadrant.
6161         (__sin, __cos): Consolidate common code into new functions.
6162         (reduce_sincos_1, do_sincos_1): New functions.
6163         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
6164
6165         * sysdeps/ieee754/dbl-64/s_sin.c (__sin, __cos): Move common
6166         code to new functions.
6167         (reduce_sincos_2, do_sincos_2): New functions.
6168         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Use them.
6169
6170         * sysdeps/ieee754/dbl-64/s_sin.c (__sin) [!IN_SINCOS]: Skip
6171         common code for sincos.
6172         (__cos) [!IN_SINCOS]: Likewise.
6173         * sysdeps/ieee754/dbl-64/s_sincos.c (reduce_and_compute_sincos):
6174         New function.
6175         (__sincos): Use it.
6176
6177 2015-12-20  Aurelien Jarno  <aurelien@aurel32.net>
6178
6179         * sysdeps/i386/fpu/libm-test-ulps: Move to ....
6180         * sysdeps/i386/i686/multiarch/fpu/libm-test-ulps: ...here.
6181         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
6182
6183 2015-12-19  Andrew Senkevich  <andrew.senkevich@intel.com>
6184
6185         * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: New file.
6186         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Added new file.
6187         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Added new tests.
6188         * sysdeps/x86_64/multiarch/memset.S: Added new IFUNC branch.
6189         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
6190         * sysdeps/x86/cpu-features.h (bit_Prefer_No_VZEROUPPER,
6191         index_Prefer_No_VZEROUPPER): New feature.
6192         * sysdeps/x86/cpu-features.c (init_cpu_features): Set the
6193         Prefer_No_VZEROUPPER for Knights Landing.
6194
6195 015-12-18  Torvald Riegel  <triegel@redhat.com>
6196
6197         * math/atest-exp2.c (mp_exp_m1): Remove.
6198
6199 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6200
6201         * sysdeps/unix/sysdep.h (SYSCALL_CANCEL): Fix macro for zero argument
6202         syscalls.
6203         (__SYSCALL0): New macro.
6204         (__SYSCALL1): Likewise.
6205         (__SYSCALL2): Likewise.
6206         (__SYSCALL3): Likewise.
6207         (__SYSCALL4): Likewise.
6208         (__SYSCALL5): Likewise.
6209         (__SYSCALL6): Likewise.
6210         (__SYSCALL_CONCAT_X): Likewise.
6211         (__SYSCALL_CONCAT): Likewise.
6212         (__SYSCALL_DIST): Likewise.
6213         (__SYSCALL_CALL): Likewise.
6214
6215 2015-12-17  H.J. Lu  <hongjiu.lu@intel.com>
6216
6217         [BZ #19363]
6218         * sysdeps/unix/sysv/linux/x86_64/x32/times.c: New file.
6219
6220 2015-12-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6221
6222         [BZ #19375]
6223         * sysdeps/powerpc/power7/fpu/s_logb.c (__logb): Fix return for
6224         negative subnormals.
6225
6226 2015-12-16  H.J. Lu  <hongjiu.lu@intel.com>
6227
6228         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
6229         (REGISTERS_CLOBBERED_BY_SYSCALL): New.
6230         (INTERNAL_SYSCALL_NCS): Use it.
6231         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
6232
6233 2015-12-16  Florian Weimer  <fweimer@redhat.com>
6234
6235         [BZ #19243]
6236         * malloc/arena.c (get_free_list): Remove assert and adjust
6237         reference count handling.  Add comment about reused_arena
6238         interaction.
6239         (reused_arena): Add comments abount get_free_list interaction.
6240         * malloc/tst-malloc-thread-exit.c: New file.
6241         * malloc/Makefile (tests): Add tst-malloc-thread-exit.
6242         (tst-malloc-thread-exit): Link against libpthread.
6243
6244 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
6245
6246         [BZ #19367]
6247         * sysdeps/unix/sysv/linux/wordsize-64/mmap.c: New file.
6248         * sysdeps/unix/sysv/linux/x86_64/64/dl-librecon.h: Likewise.
6249         * sysdeps/unix/sysv/linux/x86_64/64/mmap.c: Likewise.
6250         * sysdeps/x86/cpu-features.h (bit_Prefer_MAP_32BIT_EXEC): New.
6251         (index_Prefer_MAP_32BIT_EXEC): Likewise.
6252
6253 2015-12-15  H.J. Lu  <hongjiu.lu@intel.com>
6254
6255         * sysdeps/x86/cpu-features.c (init_cpu_features): Enable
6256         Silvermont optimizations for Knights Landing.
6257
6258 2015-12-15  Andreas Schwab  <schwab@suse.de>
6259
6260         [BZ #17197]
6261         * iconvdata/ibm930.c (BODY for TO_LOOP): Record current DBCS state
6262         immediately after emitting SI.
6263         * iconvdata/ibm933.c (BODY for TO_LOOP): Likewise.
6264         * iconvdata/ibm935.c (BODY for TO_LOOP): Likewise.
6265         * iconvdata/ibm937.c (BODY for TO_LOOP): Likewise.
6266         * iconvdata/ibm939.c (BODY for TO_LOOP): Likewise.
6267         * iconvdata/bug-iconv10.c: New file.
6268         * iconvdata/Makefile (tests): Add bug-iconv10.
6269         ($(objpfx)bug-iconv10.out): New rule.
6270
6271 2015-12-15  Florian Weimer  <fweimer@redhat.com>
6272
6273         * dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
6274         aliasing violation.
6275
6276 2015-12-14  Joseph Myers  <joseph@codesourcery.com>
6277
6278         [BZ #18472]
6279         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries
6280         for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT
6281         conditionals for them.
6282         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise.
6283         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file.
6284         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
6285         sys/kdaemon.h.
6286         * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into
6287         compat-only syscall, obsoleted in glibc 2.23.
6288         (create_module): Likewise.
6289         (get_kernel_syms): Likewise.
6290         (query_module): Likewise.
6291         (uselib): Likewise.
6292         * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
6293
6294 2015-12-11  Aurelien Jarno  <aurelien@aurel32.net>
6295
6296         * sysdeps/unix/sysv/linux/arm/ioperm.c: Do not include
6297         <linux/version.h>.
6298         [LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,23)]: Remove
6299         conditional code.
6300         (init_iosys): Use CTL_BUS_ISA instead of BUS_ISA in iobase_name
6301         and ioshift_name initialization.
6302
6303 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6304
6305         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
6306         Fix indentation.
6307
6308 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6309
6310         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Fix indentation.
6311
6312 2015-12-11  Steve Ellcey  <sellcey@imgtec.com>
6313
6314         * stdlib/strtol_l.c (__strtol_l): Fix indentation.
6315
6316 2015-12-10  Aurelien Jarno  <aurelien@aurel32.net>
6317             Jakub Wilk  <jwilk@debian.org>
6318
6319         [BZ #19347]
6320         * sysdeps/unix/grantpt.c [!HAVE_PT_CHOWN] (grantpt): Do not try
6321         to change the group of the device to the tty group.
6322
6323 2015-12-10  Paul Eggert  <eggert@cs.ucla.edu>
6324
6325         Split large string section; add truncation advice
6326         * manual/examples/strncat.c: Remove.
6327         This example was misleading, as the code would have undefined
6328         behavior if "hello" was longer than SIZE.  Anyway, the manual
6329         shouldn't encourage strncpy+strncat for this sort of thing.
6330         * manual/string.texi (Copying Strings and Arrays): Split into
6331         three sections Copying Strings and Arrays, Concatenating Strings,
6332         and Truncating Strings, as this section was way too long.  All
6333         cross-referenced changed.  Add advice about string-truncation
6334         functions.  Remove misleading strncat example.
6335
6336 2015-12-10  Carlos O'Donell  <carlos@redhat.com>
6337
6338         * manual/nss.texi (NSS Modules Interface): Document
6339         NSS_STATUS_NOTFOUND and SUCCESS.
6340
6341 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
6342
6343         [BZ 18568]
6344         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
6345         201505L, for Unicode 8.
6346
6347 2015-12-09  Carlos O'Donell  <carlos@redhat.com>
6348
6349         * locale/C-translit.h: Regenerate.
6350
6351 2015-12-09  Mike FABIAN  <mfabian@redhat.com>
6352
6353         * locale/C-translit.h.in: Remove duplicate transliterations for U+0152
6354         and U+0153.
6355
6356 2015-12-09  Joseph Myers  <joseph@codesourcery.com>
6357
6358         [BZ #19351]
6359         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): When
6360         expanding log(1+z), compare z rather than its square with epsilon
6361         to determine when to avoid evaluating the expansion.
6362
6363         [BZ #19350]
6364         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
6365         Increase overflow threshold.
6366
6367         [BZ #19349]
6368         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Return argument
6369         when small.
6370
6371         * sysdeps/unix/sysv/linux/i386/kernel-features.h
6372         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
6373         New macro.
6374         [__LINUX_KERNEL_VERSION >= 0x040300]
6375         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6376         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
6377         Likewise.
6378         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
6379         Likewise.
6380         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
6381         Likewise.
6382         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
6383         Likewise.
6384         [__LINUX_KERNEL_VERSION >= 0x040300]
6385         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
6386         [__LINUX_KERNEL_VERSION >= 0x040300]
6387         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6388         [__LINUX_KERNEL_VERSION >= 0x040300]
6389         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6390         [__LINUX_KERNEL_VERSION >= 0x040300]
6391         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6392         [__LINUX_KERNEL_VERSION >= 0x040300]
6393         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6394         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
6395         Likewise.
6396         [__LINUX_KERNEL_VERSION >= 0x040300]
6397         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
6398         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
6399         Likewise.
6400         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
6401         Likewise.
6402         [__LINUX_KERNEL_VERSION >= 0x040300]
6403         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
6404         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
6405         Likewise.
6406         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
6407         Likewise.
6408         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6409         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMMSG_SYSCALL):
6410         Likewise.
6411         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMMSG_SYSCALL):
6412         Likewise.
6413         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SOCKET_SYSCALL):
6414         Likewise.
6415         [__LINUX_KERNEL_VERSION >= 0x040300]
6416         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6417         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_BIND_SYSCALL):
6418         Likewise.
6419         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_CONNECT_SYSCALL):
6420         Likewise.
6421         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_LISTEN_SYSCALL):
6422         Likewise.
6423         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_ACCEPT4_SYSCALL):
6424         Likewise.
6425         [__LINUX_KERNEL_VERSION >= 0x040300]
6426         (__ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL): Likewise.
6427         [__LINUX_KERNEL_VERSION >= 0x040300]
6428         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6429         [__LINUX_KERNEL_VERSION >= 0x040300]
6430         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6431         [__LINUX_KERNEL_VERSION >= 0x040300]
6432         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6433         [__LINUX_KERNEL_VERSION >= 0x040300]
6434         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6435         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDTO_SYSCALL):
6436         Likewise.
6437         [__LINUX_KERNEL_VERSION >= 0x040300]
6438         (__ASSUME_SENDTO_FOR_SEND_SYSCALL): Likewise.
6439         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SENDMSG_SYSCALL):
6440         Likewise.
6441         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVFROM_SYSCALL):
6442         Likewise.
6443         [__LINUX_KERNEL_VERSION >= 0x040300]
6444         (__ASSUME_RECVFROM_FOR_RECV_SYSCALL): Likewise.
6445         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_RECVMSG_SYSCALL):
6446         Likewise.
6447         [__LINUX_KERNEL_VERSION >= 0x040300] (__ASSUME_SHUTDOWN_SYSCALL):
6448         Likewise.
6449         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6450         (__ASSUME_SOCKET_SYSCALL): Likewise.
6451         (__ASSUME_BIND_SYSCALL): Likewise.
6452         (__ASSUME_CONNECT_SYSCALL): Likewise.
6453         (__ASSUME_LISTEN_SYSCALL): Likewise.
6454         (__ASSUME_ACCEPT_SYSCALL): Likewise.
6455         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6456         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6457         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6458         (__ASSUME_SEND_SYSCALL): Likewise.
6459         (__ASSUME_SENDTO_SYSCALL): Likewise.
6460         (__ASSUME_RECV_SYSCALL): Likewise.
6461         (__ASSUME_RECVFROM_SYSCALL): Likewise.
6462         (__ASSUME_SHUTDOWN_SYSCALL): Likewise.
6463         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6464         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6465         (__ASSUME_SENDMSG_SYSCALL): Likewise.
6466         (__ASSUME_RECVMSG_SYSCALL): Likewise.
6467         * sysdeps/unix/sysv/linux/sh/kernel-features.h
6468         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SOCKET_SYSCALL):
6469         Likewise.
6470         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_BIND_SYSCALL):
6471         Likewise.
6472         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_CONNECT_SYSCALL):
6473         Likewise.
6474         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_LISTEN_SYSCALL):
6475         Likewise.
6476         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_ACCEPT_SYSCALL):
6477         Likewise.
6478         [__LINUX_KERNEL_VERSION >= 0x020625]
6479         (__ASSUME_GETSOCKNAME_SYSCALL): Likewise.
6480         [__LINUX_KERNEL_VERSION >= 0x020625]
6481         (__ASSUME_GETPEERNAME_SYSCALL): Likewise.
6482         [__LINUX_KERNEL_VERSION >= 0x020625]
6483         (__ASSUME_SOCKETPAIR_SYSCALL): Likewise.
6484         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SEND_SYSCALL):
6485         Likewise.
6486         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDTO_SYSCALL):
6487         Likewise.
6488         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECV_SYSCALL):
6489         Likewise.
6490         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVFROM_SYSCALL):
6491         Likewise.
6492         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SHUTDOWN_SYSCALL):
6493         Likewise.
6494         [__LINUX_KERNEL_VERSION >= 0x020625]
6495         (__ASSUME_GETSOCKOPT_SYSCALL): Likewise.
6496         [__LINUX_KERNEL_VERSION >= 0x020625]
6497         (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
6498         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_SENDMSG_SYSCALL):
6499         Likewise.
6500         [__LINUX_KERNEL_VERSION >= 0x020625] (__ASSUME_RECVMSG_SYSCALL):
6501         Likewise.
6502
6503 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6504
6505         * sysdeps/unix/sysv/linux/mips/configure.ac (has-mpf64): Define to
6506         record the current if the current ABI and CPU support the FP64
6507         extension.
6508         (has-modd-spreg): Define to record the current if the current ABI and
6509         CPU support 32-bit floating point values in odd FPU registers.
6510         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6511         * sysdeps/mips/Makefile (tst-abi-fpxxomod): Only build when
6512         $(has-modd-spreg) equals yes.
6513         (tst-abi-fp64amod): Only build when $(has-mpf64) equals yes.
6514         (tst-abi-fp64mod): Only build when both $(has-mpf64) and
6515         $(has-modd-spreg) equal yes.
6516
6517 2015-12-09  Aurelien Jarno  <aurelien@aurel32.net>
6518
6519         * sysdeps/unix/grantpt.c (grantpt): Call__basename instead of
6520         basename.
6521
6522 2015-12-08  Siddhesh Poyarekar  <sid@reserved-bit.com>
6523
6524         * benchtests/Makefile (bench-math): Move ffs and ffsll...
6525         (bench-string): ... here.
6526         (bench): Add bench-string.
6527         (string-bench, wcsmbs-bench, stdlib-bench, stdio-common-bench): Rename
6528         to *-benchset to reflect what they are.
6529         (benchset): Adjust.
6530
6531         * benchtests/sincos-inputs: Add inputs from sin-inputs and
6532         cos-inputs.
6533
6534 2015-12-07  Andrew Senkevich  <andrew.senkevich@intel.com>
6535
6536         * sysdeps/x86/fpu/bits/math-vector.h: W/o -fopenmp use GCC 6.*
6537         __attribute__ ((__simd__)) for vector math function declarations.
6538
6539 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6540
6541         Fix typo in strncat, wcsncat manual entries
6542         * manual/string.texi (Copying and Concatenation): Fix typos in
6543         sample implementations of strncat and wcsncat, by having them use
6544         the old value of the destination length, not the new one.
6545
6546 2015-12-04  Joseph Myers  <joseph@codesourcery.com>
6547
6548         [BZ #16961]
6549         [BZ #16962]
6550         * math/s_nan.c (__nan): Use __strtod_nan instead of constructing a
6551         string on the stack for strtod.
6552         * math/s_nanf.c (__nanf): Use __strtof_nan instead of constructing
6553         a string on the stack for strtof.
6554         * math/s_nanl.c (__nanl): Use __strtold_nan instead of
6555         constructing a string on the stack for strtold.
6556         * stdlib/Versions (libc): Add __strtof_nan, __strtod_nan and
6557         __strtold_nan to GLIBC_PRIVATE.
6558         * math/test-nan-overflow.c: New file.
6559         * math/test-nan-payload.c: Likewise.
6560         * math/Makefile (tests): Add test-nan-overflow and
6561         test-nan-payload.
6562
6563 2015-12-04  Paul Eggert  <eggert@cs.ucla.edu>
6564
6565         Consistency about byte vs character in string.texi
6566         * manual/string.texi (String and Array Utilities):
6567         Distinguish more carefully among bytes, multibyte characters,
6568         and wide characters.  Use "byte" when talking about C 'char',
6569         to distinguish it more clearly from multibyte characters.
6570         Say "wide character" or "multibyte character" instead of
6571         "character", when a wide or multibyte character is intended.
6572         Similarly for "multibyte string" versus "string".
6573         Define these terms more carefully.
6574
6575 2015-12-03  Chris Metcalf  <cmetcalf@ezchip.com>
6576
6577         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): New symbol.
6578         * sysdeps/microblaze/math_private.h (LDBL_CLASSIFY_COMPAT):
6579         Likewise.
6580         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6581         * sysdeps/nios2/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
6582         * sysdeps/sh/math_private.h: New file.
6583         * sysdeps/m68k/coldfire/fpu/math_private.h: Likewise.
6584         * sysdeps/ieee754/dbl-64/s_finite.c [defined NO_LONG_DOUBLE &&
6585         defined LDBL_CLASSIFY_COMPAT]: Create compat symbol for internal
6586         long double function name.
6587         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6588         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6589         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
6590         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
6591         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
6592         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
6593         Remove __finitel, __isinfl, and __isnanl.
6594         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6595         Likewise.
6596         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6597         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6598         Remove __finitel.
6599         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6600         Likewise.
6601         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6602
6603 2015-12-03  Andrew Senkevich  <andrew.senkevich@intel.com>
6604
6605         * math/Makefile ($(inst_libdir)/libm.so): Corrected path to
6606         installed libmvec_nonshared.a.
6607
6608 2015-12-03  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
6609
6610         * sysdeps/powerpc/Makefile (sysdep-dl-routines): Add hwcapinfo.
6611         (sysdep_routines): Likewise.
6612         (sysdep-rtld-routines): Likewise.
6613         [$(subdir) = nptl](tests): Add test-get_hwcap and test-get_hwcap-static
6614         [$(subdir) = nptl](tests-static): test-get_hwcap-static
6615         * sysdeps/powerpc/Versions: Added new
6616         __parse_hwcap_and_convert_at_platform symbol to GLIBC-2.23.
6617         * sysdeps/powerpc/hwcapinfo.c: New file.
6618         (__tcb_parse_hwcap_and_convert_at_platform): New function to initialize
6619         and parse hwcap, hwcap2 and platform number information.
6620         * sysdeps/powerpc/hwcapinfo.h: New file.  Creates global variables
6621         to store HWCAP+HWCAP2 and platform number.
6622         * sysdeps/powerpc/nptl/tcb-offsets.sym: Added new offsets
6623         for HWCAP+HWCAP2 and platform number in the TCB.
6624         * sysdeps/powerpc/nptl/tls.h: New functionality.  Stores
6625         the HWCAP, HWCAP2 and platform number in the TCB.
6626         (dtv): Added new fields for HWCAP+HWCAP2 and platform number.
6627         (TLS_INIT_TP): Included calls to add the hwcap and
6628         at_platform values in the TCB in TP initialization.
6629         (TLS_DEFINE_INIT_TP): Likewise.
6630         (THREAD_GET_HWCAP): New macro.
6631         (THREAD_SET_HWCAP): Likewise.
6632         (THREAD_GET_AT_PLATFORM): Likewise.
6633         (THREAD_SET_AT_PLATFORM): Likewise.
6634         * sysdeps/powerpc/powerpc32/dl-machine.h:
6635         (dl_platform_init): New function that calls
6636         __parse_hwcap_and_convert_at_platform for the dymanic linking case for
6637         powerpc32.
6638         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise, for powerpc64.
6639         * sysdeps/powerpc/test-get_hwcap-static.c: New file.  Testcase for
6640         this functionality, static linking case.
6641         * sysdeps/powerpc/test-get_hwcap.c: New file.  Likewise, dynamic
6642         linking case.
6643         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Added call to
6644         __parse_hwcap_and_convert_at_platform for the static linking case.
6645         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist:
6646         Included the new __parse_hwcap_and_convert_at_platform symbol in the
6647         ABI list for GLIBC 2.23.
6648         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist:
6649         Likewise.
6650         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist:
6651         Likewise.
6652
6653 2015-12-02  Ludovic Courtès  <ludo@gnu.org>
6654
6655         * configure.ac: Use 'pwd -P' instead of '/bin/pwd'.
6656         * configure: Regenerate.
6657         * io/ftwtest-sh: Use 'pwd -P' instead of '/bin/pwd'.
6658         * scripts/rellns-sh: Likewise.  Remove 'pwd' variable.
6659
6660 2015-12-02  Carlos O'Donell  <carlos@redhat.com>
6661
6662         * iconvdata/ibm930.c: Add comment explaining encoding uses.
6663         * iconvdata/ibm933.c: Likewise.
6664         * iconvdata/ibm935.c: Likewise.
6665         * iconvdata/ibm937.c: Likewise.
6666         * iconvdata/ibm939.c: Likewise.
6667
6668 2015-12-02  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6669
6670         * nptl/tst-cancel20.c (do_one_test): Move the pipe closing after
6671         pthread_join.
6672         * nptl/tst-cancel21.c (tf): Likewise.
6673
6674 2015-12-01  H.J. Lu  <hongjiu.lu@intel.com>
6675
6676         [BZ #19313]
6677         * bits/typesizes.h (__CPU_MASK_TYPE): New.
6678         * sysdeps/mach/hurd/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6679         * sysdeps/nacl/bits/typesizes.h (__CPU_MASK_TYPE): Likewise.
6680         * sysdeps/unix/sysv/linux/alpha/bits/typesizes.h (__CPU_MASK_TYPE):
6681         Likewise.
6682         * sysdeps/unix/sysv/linux/generic/bits/typesizes.h (__CPU_MASK_TYPE):
6683         Likewise.
6684         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h (__CPU_MASK_TYPE):
6685         Likewise.
6686         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h (__CPU_MASK_TYPE):
6687         Likewise.
6688         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h (__CPU_MASK_TYPE):
6689         * sysdeps/unix/sysv/linux/bits/sched.h (__cpu_mask): Replace
6690         unsigned long int with __CPU_MASK_TYPE.
6691
6692 2015-12-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6693
6694         * sysdeps/aarch64/libm-test-ulps: Regenerated.
6695
6696 2015-12-01  Joseph Myers  <joseph@codesourcery.com>
6697
6698         * sysdeps/ieee754/dbl-64/e_sqrt.c: Do not include uroot.h.
6699         (__ieee754_sqrt): Use hex float constants instead of tm256.x and
6700         t512.x.
6701         * sysdeps/ieee754/dbl-64/uroot.h: Remove file.
6702
6703 2015-11-30  Amit Pawar  <amit.pawar@amd.com>
6704
6705         [BZ #19214]
6706         * sysdeps/x86/cpu-features.c (get_common_indeces): Add an
6707         argument to return extended model.  Update family and model
6708         with extended family and model when family == 0x0f.
6709         (init_cpu_features): Updated.
6710
6711 2015-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6712
6713         The RPC interface used by mmap uses the unsigned vm_offset_t, not the
6714         signed off_t, so 32bit bigger than 2GiB values are fine actually.
6715
6716         * sysdeps/mach/hurd/mmap64.c: New file.
6717
6718 2015-11-29  Thomas Schwinge  <thomas@codesourcery.com>
6719
6720         * sysdeps/mach/hurd/fork.c (__fork): Install correct number of send
6721         rights for its main user thread in NEWTASK.
6722
6723 2015-11-28  Maciej W. Rozycki  <macro@imgtec.com>
6724
6725         * sysdeps/mips/fpu_control.h (_FPU_RESERVED): Include ABS2008.
6726         (_FPU_DEFAULT, _FPU_IEEE) [__mips_nan2008]: Set ABS2008.
6727
6728 2015-11-27  Carlos O'Donell  <carlos@redhat.com>
6729
6730         [BZ #14259]
6731         * Makeconfig: Rename localedir to complocaledir.
6732         Rename inst_localedir to inst_complocaledir.
6733         * aclocal.m4: Rename libc_cv_localedir to libc_cv_complocaledir.
6734         * config.make.in: Use complocaledir and libc_cv_complocaledir.
6735         * configure.ac: Use libc_cv_complocaledir.
6736         * configure: Regenerate.
6737         * locale/Makefile: Use complocaledir. Rename define -DLOCALEDIR to
6738         -DCOMPLOCALEDIR.
6739         * locale/findlocale.c: Use COMPLOCALEDIR.
6740         * locale/loadarchive.c: Likewise.
6741         * locale/programs/locale.c: Likewise.
6742         * locale/programs/localedef.c: Likewise.
6743         * locale/programs/locarchive.c: Likewise.
6744         * localedata/Makefile: Use inst_complocaledir.
6745         * sysdeps/gnu/configure: Regenerate.
6746         * sysdeps/hppa/configure: Regenerate.
6747         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
6748         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
6749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
6750         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
6751         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
6752         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
6753         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
6754
6755 2015-11-27  Andrew Senkevich  <andrew.senkevich@intel.com>
6756
6757         [BZ #19058]
6758         * math/Makefile ($(inst_libdir)/libm.so): Added libmvec_nonshared.a to
6759         AS_NEEDED.
6760         * sysdeps/x86/fpu/bits/math-vector.h: Removed code with asm aliases
6761         workaround.
6762         * sysdeps/x86_64/fpu/Makefile (libmvec-support,
6763         libmvec-static-only-routines): Added new file.
6764         * sysdeps/x86_64/fpu/svml_finite_alias.S: New file.
6765
6766 2015-11-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6767
6768         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Destroy reply port
6769         of interrupted RPC instead of restoring it.
6770
6771         * sysdeps/i386/setjmp.S (__sigsetjmp): Add hidden_def.
6772         * sysdeps/mach/hurd/accept4.c (__libc_accept4): Remove
6773         libc_hidden_def.
6774         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Initialize to get
6775         into initialized data instead of common. Define rtld_hidden_data_def.
6776         * sysdeps/mach/hurd/fxstatat64.c (__fxstatat64): Add libc_hidden_def.
6777         * sysdeps/mach/hurd/if_index.c (__if_freenameindex): Add
6778         libc_hidden_def.
6779         (if_freenameindex): Add libc_hidden_weak.
6780         (if_nameindex): Add libc_hidden_weak.
6781         * sysdeps/mach/hurd/open.c (_open64): Rename libc_hidden_weak into
6782         __open64.
6783         * sysdeps/mach/hurd/sigwait.c (__sigwait): Add libc_hidden_def.
6784         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Add libc_hidden_def.
6785         * sysdeps/mach/nanosleep.c: Include <time.h>
6786         (__nanosleep): Rename to __libc_nanosleep.
6787         (__nanosleep): Add weak_alias.
6788         (nanosleep): Update alias.
6789
6790 2015-11-24  Joseph Myers  <joseph@codesourcery.com>
6791
6792         * stdlib/strtod_nan.c: New file.
6793         * stdlib/strtod_nan_double.h: Likewise.
6794         * stdlib/strtod_nan_float.h: Likewise.
6795         * stdlib/strtod_nan_main.c: Likewise.
6796         * stdlib/strtod_nan_narrow.h: Likewise.
6797         * stdlib/strtod_nan_wide.h: Likewise.
6798         * stdlib/strtof_nan.c: Likewise.
6799         * stdlib/strtold_nan.c: Likewise.
6800         * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Likewise.
6801         * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Likewise.
6802         * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Likewise.
6803         * wcsmbs/wcstod_nan.c: Likewise.
6804         * wcsmbs/wcstof_nan.c: Likewise.
6805         * wcsmbs/wcstold_nan.c: Likewise.
6806         * stdlib/Makefile (routines): Add strtof_nan, strtod_nan and
6807         strtold_nan.
6808         * wcsmbs/Makefile (routines): Add wcstod_nan, wcstold_nan and
6809         wcstof_nan.
6810         * include/stdlib.h (__strtof_nan): Declare and use
6811         libc_hidden_proto.
6812         (__strtod_nan): Likewise.
6813         (__strtold_nan): Likewise.
6814         (__wcstof_nan): Likewise.
6815         (__wcstod_nan): Likewise.
6816         (__wcstold_nan): Likewise.
6817         * include/wchar.h (____wcstoull_l_internal): Declare.
6818         * stdlib/strtod_l.c: Do not include <ieee754.h>.
6819         (____strtoull_l_internal): Remove declaration.
6820         (STRTOF_NAN): Define macro.
6821         (SET_MANTISSA): Remove macro.
6822         (STRTOULL): Likewise.
6823         (____STRTOF_INTERNAL): Use STRTOF_NAN to parse NaN payload.
6824         * stdlib/strtof_l.c (____strtoull_l_internal): Remove declaration.
6825         (STRTOF_NAN): Define macro.
6826         (SET_MANTISSA): Remove macro.
6827         * sysdeps/ieee754/ldbl-128/strtold_l.c (STRTOF_NAN): Define macro.
6828         (SET_MANTISSA): Remove macro.
6829         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (STRTOF_NAN): Define
6830         macro.
6831         (SET_MANTISSA): Remove macro.
6832         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (STRTOF_NAN): Define
6833         macro.
6834         (SET_MANTISSA): Remove macro.
6835         * sysdeps/ieee754/ldbl-96/strtold_l.c (STRTOF_NAN): Define macro.
6836         (SET_MANTISSA): Remove macro.
6837         * wcsmbs/wcstod_l.c (____wcstoull_l_internal): Remove declaration.
6838         * wcsmbs/wcstof_l.c (____wcstoull_l_internal): Likewise.
6839         * wcsmbs/wcstold_l.c (____wcstoull_l_internal): Likewise.
6840
6841         [BZ #19266]
6842         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check directly for
6843         upper case and lower case letters inside NAN(), not using TOLOWER.
6844         * stdlib/tst-strtod-nan-locale-main.c: New file.
6845         * stdlib/tst-strtod-nan-locale.c: Likewise.
6846         * stdlib/Makefile (tests): Add tst-strtod-nan-locale.
6847         [$(run-built-tests) = yes] ($(objpfx)tst-strtod-nan-locale.out):
6848         Depend on $(gen-locales).
6849         ($(objpfx)tst-strtod-nan-locale): Depend on $(libm).
6850         * wcsmbs/tst-wcstod-nan-locale.c: New file.
6851         * wcsmbs/Makefile (tests): Add tst-wcstod-nan-locale.
6852         [$(run-built-tests) = yes] ($(objpfx)tst-wcstod-nan-locale.out):
6853         Depend on $(gen-locales).
6854         ($(objpfx)tst-wcstod-nan-locale): Depend on $(libm).
6855
6856 2015-11-24  Chris Metcalf  <cmetcalf@ezchip.com>
6857
6858         * misc/tst-tsearch.c (TIMEOUT): Set to 10.
6859
6860         * sysdeps/tile/bits/mathdef.h (__NO_LONG_DOUBLE_MATH): Define.
6861         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Add
6862         __finitel, __isinfl, and __isnanl.
6863         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6864         Likewise.
6865         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6866         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: Add
6867         __finitel.
6868         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6869         Likewise.
6870         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6871
6872 2015-11-24  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
6873
6874         * malloc/memusage.c (me): Remove redundant getenv call.
6875
6876 2015-10-24  Florian Weimer  <fweimer@redhat.com>
6877
6878         [BZ #19143]
6879         [BZ #19164]
6880         * nptl/check-cpuset.h: Remove.
6881         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
6882         Remove CPU set size check.
6883         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
6884         Likewise.
6885         * sysdeps/unix/sysv/linux/check-cpuset.h: Remove.
6886         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
6887         (__kernel_cpumask_size, __determine_cpumask_size): Remove.
6888         (__pthread_setaffinity_new): Remove CPU set size check.
6889         * sysdeps/unix/sysv/linux/sched_setaffinity.c
6890         (__kernel_cpumask_size): Remove.
6891         (__sched_setaffinity_new): Remove CPU set size check.
6892         * manual/threads.texi (Default Thread Attributes): Remove stale
6893         reference to check_cpuset_attr, determine_cpumask_size in comment.
6894         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == posix] (tests):
6895         Remove tst-getcpu.  Add tst-affinity, tst-affinity-pid.
6896         [$(subdir) == nptl] (tests): Add tst-thread-affinity-pthread,
6897         tst-thread-affinity-pthread2, tst-thread-affinity-sched.
6898         * sysdeps/unix/sysv/linux/tst-affinity.c: New file.
6899         * sysdeps/unix/sysv/linux/tst-affinity-pid.c: New file.
6900         * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c: New skeleton test file.
6901         * sysdeps/unix/sysv/linux/tst-thread-affinity-sched.c: New file.
6902         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread.c: New file.
6903         * sysdeps/unix/sysv/linux/tst-thread-affinity-pthread2.c: New file.
6904         * sysdeps/unix/sysv/linux/tst-thread-skeleton-affinity.c: New
6905         skeleton test file.
6906         * sysdeps/unix/sysv/linux/tst-getcpu.c: Remove.  Superseded by
6907         tst-affinity-pid.
6908
6909 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6910
6911         * scripts/update-abilist.sh: New file.
6912         * Makefile (+subdir_targets): Add subdir_update-all-abi.
6913         * Makerules (update-all-abi-%, update-all-abi)
6914         (subdir_update-all-abi): New targets.
6915         * elf/Makefile (update-all-abi): New target.
6916
6917 2015-11-24  Florian Weimer  <fweimer@redhat.com>
6918
6919         Replace MUTEX_INITIALIZER with _LIBC_LOCK_INITIALIZER in generic code.
6920         * sysdeps/mach/hurd/libc-lock.h (_LIBC_LOCK_INITIALIZER): Define.
6921         (__libc_lock_define_initialized): Use it.
6922         * sysdeps/nptl/libc-lockP.h (_LIBC_LOCK_INITIALIZER): Define.
6923         * malloc/arena.c (list_lock): Use _LIBC_LOCK_INITIALIZER.
6924         * malloc/malloc.c (main_arena): Likewise.
6925         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6926         * sysdeps/nptl/malloc-machine.h (MUTEX_INITIALIZER): Remove.
6927
6928 2015-11-23  Joseph Myers  <joseph@codesourcery.com>
6929
6930         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
6931         (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions.
6932         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6933         (PTRACE_O_MASK): Update value.
6934         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL):
6935         New value in enum __ptrace_setoptions.
6936         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6937         (PTRACE_O_MASK): Update value.
6938         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
6939         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6940         (PTRACE_O_MASK): Update value.
6941         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
6942         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6943         (PTRACE_O_MASK): Update value.
6944         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
6945         (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions.
6946         (PTRACE_O_MASK): Update value.
6947         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP):
6948         New value in enum __ptrace_setoptions.
6949         (PTRACE_O_MASK): Update value.
6950         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL):
6951         New value in enum __ptrace_setoptions.
6952         (PTRACE_O_SUSPEND_SECCOMP): Likewise.
6953         (PTRACE_O_MASK): Update value.
6954
6955         * sysdeps/unix/sysv/linux/netpacket/packet.h (PACKET_COPY_THRESH):
6956         New macro.
6957         (PACKET_AUXDATA): Likewise.
6958         (PACKET_ORIGDEV): Likewise.
6959         (PACKET_VERSION): Likewise.
6960         (PACKET_HDRLEN): Likewise.
6961         (PACKET_RESERVE): Likewise.
6962         (PACKET_TX_RING): Likewise.
6963         (PACKET_LOSS): Likewise.
6964         (PACKET_VNET_HDR): Likewise.
6965         (PACKET_TX_TIMESTAMP): Likewise.
6966         (PACKET_TIMESTAMP): Likewise.
6967         (PACKET_FANOUT): Likewise.
6968         (PACKET_TX_HAS_OFF): Likewise.
6969         (PACKET_QDISC_BYPASS): Likewise.
6970         (PACKET_ROLLOVER_STATS): Likewise.
6971         (PACKET_FANOUT_DATA): Likewise.
6972         (PACKET_MR_UNICAST): Likewise.
6973
6974         [BZ #19242]
6975         * stdlib/strtol_l.c (ISALPHA): Use _nl_C_locobj_ptr for locale.
6976         (TOUPPER): Likewise.
6977         * stdlib/tst-strtol-locale-main.c: New file.
6978         * stdlib/tst-strtol-locale.c: Likewise.
6979         * stdlib/Makefile (tests): Add tst-strtol-locale.
6980         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.ISO-8859-9.
6981         [$(run-built-tests) = yes] ($(objpfx)tst-strtol-locale.out):
6982         Depend on $(gen-locales).
6983         * wcsmbs/tst-wcstol-locale.c: New file.
6984         * wcsmbs/Makefile (tests): Add tst-wcstol-locale.
6985         [$(run-built-tests) = yes] (LOCALES): Add tr_TR.UTF-8 and
6986         tr_TR.ISO-8859-9.
6987         [$(run-built-tests) = yes] ($(objpfx)tst-wcstol-locale.out):
6988         Depend on $(gen-locales).
6989
6990 2015-11-20  Roland McGrath  <roland@hack.frob.com>
6991
6992         * sysdeps/nacl/dl-map-segments.h (_dl_map_segments): Use
6993         __glibc_likely instead of __builtin_expect.  After falling back to
6994         dyncode_create in a non-ET_DYN case, use the allocate_code_data
6995         system interface to register the code pages as occupied.
6996
6997 2015-11-20  Joseph Myers  <joseph@codesourcery.com>
6998
6999         * sysdeps/arm/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7000         [!ARM_MATH_PRIVATE_H].
7001         [!ARM_MATH_PRIVATE_H] (ARM_MATH_PRIVATE_H): Define macro.
7002         * sysdeps/hppa/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7003         [!HPPA_MATH_PRIVATE_H].
7004         [!HPPA_MATH_PRIVATE_H] (HPPA_MATH_PRIVATE_H): Define macro.
7005         * sysdeps/i386/fpu/math_private.h [!_MATH_PRIVATE_H]: Change guard
7006         to [!I386_MATH_PRIVATE_H].
7007         [!I386_MATH_PRIVATE_H] (I386_MATH_PRIVATE_H): Define macro.
7008         * sysdeps/m68k/m680x0/fpu/math_private.h [!_MATH_PRIVATE_H]:
7009         Change guard to [!M68K_MATH_PRIVATE_H].
7010         [!M68K_MATH_PRIVATE_H] (M68K_MATH_PRIVATE_H): Define macro.
7011         * sysdeps/microblaze/math_private.h [!_MATH_PRIVATE_H]: Change
7012         guard to [!MICROBLAZE_MATH_PRIVATE_H].
7013         [!MICROBLAZE_MATH_PRIVATE_H] (MICROBLAZE_MATH_PRIVATE_H): Define
7014         macro.
7015         * sysdeps/mips/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7016         [!MIPS_MATH_PRIVATE_H].
7017         [!MIPS_MATH_PRIVATE_H] (MIPS_MATH_PRIVATE_H): Define macro.
7018         * sysdeps/nios2/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7019         [!NIO2_MATH_PRIVATE_H].
7020         [!NIO2_MATH_PRIVATE_H] (NIO2_MATH_PRIVATE_H): Define macro.
7021         * sysdeps/tile/math_private.h [!_MATH_PRIVATE_H]: Change guard to
7022         [!TILE_MATH_PRIVATE_H].
7023         [!TILE_MATH_PRIVATE_H] (TILE_MATH_PRIVATE_H): Define macro.
7024
7025         [BZ #15421]
7026         * sysdeps/ieee754/s_signgam.c (signgam): Rename to __signgam,
7027         initialize with 0 and define as weak alias of __signgam.
7028         * include/math.h [!_ISOMAC] (__signgam): Declare.
7029         * math/Makefile (libm-calls): Add w_lgamma_compat.
7030         (tests): Add test-signgam-uchar, test-signgam-uchar-init,
7031         test-signgam-uint, test-signgam-uint-init, test-signgam-ullong and
7032         test-signgam-ullong-init.
7033         (tests-static): Add test-signgam-uchar-static,
7034         test-signgam-uchar-init-static, test-signgam-uint-static,
7035         test-signgam-uint-init-static, test-signgam-ullong-static and
7036         test-signgam-ullong-init-static.
7037         (CFLAGS-test-signgam-uchar.c): New variable.
7038         (CFLAGS-test-signgam-uchar-init.c): Likewise.
7039         (CFLAGS-test-signgam-uchar-static.c): Likewise.
7040         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
7041         (CFLAGS-test-signgam-uint.c): Likewise.
7042         (CFLAGS-test-signgam-uint-init.c): Likewise.
7043         (CFLAGS-test-signgam-uint-static.c): Likewise.
7044         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
7045         (CFLAGS-test-signgam-ullong.c): Likewise.
7046         (CFLAGS-test-signgam-ullong-init.c): Likewise.
7047         (CFLAGS-test-signgam-ullong-static.c): Likewise.
7048         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
7049         * math/Versions (libm): Add GLIBC_2.23.
7050         * math/lgamma-compat.h: New file.
7051         * math/test-signgam-main.c: Likewise.
7052         * math/test-signgam-uchar-init-static.c: Likewise.
7053         * math/test-signgam-uchar-init.c: Likewise.
7054         * math/test-signgam-uchar-static.c: Likewise.
7055         * math/test-signgam-uchar.c: Likewise.
7056         * math/test-signgam-uint-init-static.c: Likewise.
7057         * math/test-signgam-uint-init.c: Likewise.
7058         * math/test-signgam-uint-static.c: Likewise.
7059         * math/test-signgam-uint.c: Likewise.
7060         * math/test-signgam-ullong-init-static.c: Likewise.
7061         * math/test-signgam-ullong-init.c: Likewise.
7062         * math/test-signgam-ullong-static.c: Likewise.
7063         * math/test-signgam-ullong.c: Likewise.
7064         * math/w_lgamma.c: Rename to w_lgamma_main.c and replace by
7065         wrapper of w_lgamma_main.c.
7066         * math/w_lgamma_compat.c: New file.
7067         * math/w_lgamma_compatf.c: Likewise.
7068         * math/w_lgamma_compatl.c: Likewise.
7069         * math/w_lgamma_main.c: New file.  Based on w_lgamma.c.  Include
7070         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7071         defining compatibility symbols.
7072         (__lgamma): Change to LGFUNC (__lgamma).  Use CALL_LGAMMA.
7073         * math/w_lgammaf.c: Rename to w_lgammaf_main.c and replace by
7074         wrapper of w_lgammaf_main.c.
7075         * math/w_lgammaf_main.c: New file.  Based on w_lgammaf.c.  Include
7076         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7077         defining compatibility symbols.
7078         (__lgammaf): Change to LGFUNC (__lgammaf).  Use CALL_LGAMMA.
7079         * math/w_lgammal.c: Rename to w_lgammal_main.c and replace by
7080         wrapper of w_lgammal_main.c.
7081         * math/w_lgammal_main.c: New file.  Based on w_lgammal.c.  Include
7082         <lgamma-compat.h>.  Condition contents on [BUILD_LGAMMA].  Support
7083         defining compatibility symbols.
7084         (__lgammal): Change to LGFUNC (__lgammal).  Use CALL_LGAMMA.
7085         * sysdeps/ia64/fpu/lgamma-compat.h: New file.
7086         * sysdeps/ia64/fpu/w_lgamma.c: Move to ....
7087         * sysdeps/ia64/fpu/w_lgamma_main.c: ...here.  Include
7088         <lgamma-compat.h>.
7089         (__ieee754_lgamma): Change to LGFUNC (lgamma).  Use CALL_LGAMMA.
7090         (__ieee754_gamma): Define as alias.
7091         * sysdeps/ia64/fpu/w_lgammaf.c: Move to ....
7092         * sysdeps/ia64/fpu/w_lgammaf_main.c: ...here.  Include
7093         <lgamma-compat.h>.
7094         (__ieee754_lgammaf): Change to LGFUNC (lgammaf).  Use CALL_LGAMMA.
7095         (__ieee754_gammaf): Define as alias.
7096         * sysdeps/ia64/fpu/w_lgammal.c: Move to ....
7097         * sysdeps/ia64/fpu/w_lgammal_main.c: ...here.  Include
7098         <lgamma-compat.h>.
7099         (__ieee754_lgammal): Change to LGFUNC (lgammal).  Use CALL_LGAMMA.
7100         (__ieee754_gammal): Define as alias.
7101         * sysdeps/ieee754/ldbl-opt/w_lgamma.c: Move to ....
7102         * sysdeps/ieee754/ldbl-opt/w_lgamma_compat.c: ...here.  Include
7103         <math/w_lgamma_compat.c>.
7104         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__lgammal_dbl_compat):
7105         Define as alias of __lgamma_compat and use in defining lgammal.
7106         * sysdeps/ieee754/ldbl-opt/w_lgammal.c: Move to ....
7107         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c: ...here.  Include
7108         <math/lgamma-compat.h> and <math/w_lgamma_compatl.c>.
7109         (USE_AS_COMPAT): New macro.
7110         (LGAMMA_OLD_VER): Undefine and redefine.
7111         (lgammal): Do not define here.
7112         (gammal): Only define here if [GAMMA_ALIAS].
7113         * conform/linknamespace.pl (@whitelist): Remove signgam.
7114         * sysdeps/nacl/libm.abilist: Update.
7115         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
7116         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
7117         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
7118         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
7119         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
7120         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
7121         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
7122         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
7123         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
7124         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
7125         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
7126         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
7127         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
7128         Likewise.
7129         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7130         Likewise.
7131         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
7132         Likewise.
7133         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
7134         Likewise.
7135         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
7136         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
7137         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
7138         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
7139         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
7140         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
7141         Likewise.
7142         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
7143         Likewise.
7144         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
7145         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
7146         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
7147
7148 2015-11-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7149
7150         [BZ #16364]
7151         * sysdeps/unix/sysv/linux/sleep.c: Remove file.
7152         * sysdeps/posix/sleep.c (__sleep): Simplify cancellation handling.
7153
7154 2015-11-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
7155
7156         * sysdeps/s390/fpu/bits/mathinline.h:
7157         Use __asm__ [__volatile__] instead of asm [volatile].
7158         * sysdeps/s390/abort-instr.h: Likewise.
7159         * sysdeps/s390/atomic-machine.h: Likewise.
7160         * sysdeps/s390/bits/string.h: Likewise.
7161         * sysdeps/s390/dl-tls.h: Likewise.
7162         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
7163         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
7164         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
7165         * sysdeps/s390/fpu/fesetround.c: Likewise.
7166         * sysdeps/s390/fpu/fpu_control.h: Likewise.
7167         * sysdeps/s390/fpu/s_fma.c: Likewise.
7168         * sysdeps/s390/fpu/s_fmaf.c: Likewise.
7169         * sysdeps/s390/memusage.h: Likewise.
7170         * sysdeps/s390/multiarch/ifunc-resolve.h: Likewise.
7171         * sysdeps/s390/nptl/pthread_spin_lock.c: Likewise.
7172         * sysdeps/s390/nptl/pthread_spin_trylock.c: Likewise.
7173         * sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
7174         * sysdeps/s390/nptl/tls.h: Likewise.
7175         * sysdeps/s390/s390-32/__longjmp.c: Likewise.
7176         * sysdeps/s390/s390-32/backtrace.c: Likewise.
7177         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7178         * sysdeps/s390/s390-32/multiarch/memcmp.c: Likewise.
7179         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
7180         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
7181         * sysdeps/s390/s390-64/__longjmp.c: Likewise.
7182         * sysdeps/s390/s390-64/backtrace.c: Likewise.
7183         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7184         * sysdeps/s390/s390-64/iso-8859-1_cp037_z900.c: Likewise.
7185         * sysdeps/s390/s390-64/multiarch/memcmp.c: Likewise.
7186         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
7187         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
7188         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Likewise.
7189         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
7190         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
7191         * sysdeps/unix/sysv/linux/s390/brk.c: Likewise.
7192         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
7193         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Likewise.
7194         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7195         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c: Likewise.
7196         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7197         * sysdeps/unix/sysv/linux/s390/sysconf.c: Likewise.
7198
7199 2015-11-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7200             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7201
7202         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
7203         Add lwarx hint, and use macro for acquire instruction.
7204         * sysdeps/powerpc/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
7205         Likewise.
7206         * sysdep/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Move to ...
7207         * sysdeps/powerpc/nptl/pthread_spin_unlock.c: ... here, and
7208         update to use new atomic macros.
7209
7210 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7211
7212         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
7213         (__lll_trylock_elision): Fix setting of adapt_count.
7214         * sysdeps/unix/sysv/linux/powerpc/htm.h
7215         (_ABORT_PERSISTENT): Define to clarify persistent aborts.
7216         (_ABORT_NESTED_TRYLOCK): Renumber, and make persistent.
7217         (_ABORT_SYSCALL): Renumber, and clarify definition.
7218         (_ABORT_LOCK_BUSY): Renumber, make non-persistent.
7219
7220 2015-11-19  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
7221
7222         * sysdeps/ieee754/ldbl-128ibm/mpn2ldl.c: Include gmp headers
7223         after system headers to prevent MIN/MAX redefinition.  Define
7224         HAVE_ALLOCA to preserve builtin alloca usage.
7225
7226 2015-11-17  Siddhesh Poyarekar  <siddhesh.poyarekar@linaro.org>
7227
7228         * sysdeps/ieee754/dbl-64/s_sin.c (__sin)[IN_SINCOS]: Mark function
7229         static and don't set or restore rounding.
7230         (__cos)[IN_SINCOS]: Likewise.
7231         * sysdeps/ieee754/dbl-64/s_sincos.c: Include s_sin.c.
7232         (__sincos): Set and restore rounding mode.  Remove check for infinite
7233         or NaN input.
7234
7235         * sysdeps/ieee754/dbl-64/s_sin.c: Remove redundant else clauses.
7236
7237         * benchtests/scripts/bench.py (_print_arg_data): Mark output variables
7238         as used.
7239
7240 2015-11-16  Florian Weimer  <fweimer@redhat.com>
7241
7242         * math/test-signgam-finite-c99.c (_Mlong_double_): Undefine.
7243
7244 2015-11-14  H.J. Lu  <hongjiu.lu@intel.com>
7245
7246         * config.make.in (have-glob-dat-reloc): New.
7247         * configure.ac (libc_cv_has_glob_dat): New.  Set to yes if
7248         target supports GLOB_DAT relocaton. AC_SUBST.
7249         * configure: Regenerated.
7250         * elf/Makefile (tests): Add tst-prelink.
7251         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
7252         (tst-prelink-ENV): New.
7253         ($(objpfx)tst-prelink-conflict.out): Likewise.
7254         ($(objpfx)tst-prelink-cmp.out): Likewise.
7255         * sysdeps/x86/tst-prelink.c: Moved to ...
7256         * elf/tst-prelink.c: Here.
7257         * sysdeps/x86/tst-prelink.exp: Moved to ...
7258         * elf/tst-prelink.exp: Here.
7259         * sysdeps/x86/Makefile (tests): Don't add tst-prelink.
7260         (tst-prelink-ENV): Removed.
7261         ($(objpfx)tst-prelink-conflict.out): Likewise.
7262         ($(objpfx)tst-prelink-cmp.out): Likewise.
7263         (tests-special): Don't add $(objpfx)tst-prelink-cmp.out.
7264
7265 2015-11-13  Joseph Myers  <joseph@codesourcery.com>
7266
7267         [BZ #14551]
7268         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Include <errno.h>.
7269         (__mpn_construct_long_double): If high part overflows to infinity,
7270         set errno and recompute overflowed result of the correct sign.
7271         * sysdeps/ieee754/ldbl-128ibm/Makefile
7272         [$(subdir) = stdlib] (tests): Add tst-strtold-ldbl-128ibm.
7273         [$(subdir) = stdlib] ($(objpfx)tst-strtold-ldbl-128ibm): Depend on
7274         $(libm).
7275         * sysdeps/ieee754/ldbl-128ibm/tst-strtold-ldbl-128ibm.c: New file.
7276
7277 2015-11-12  Joseph Myers  <joseph@codesourcery.com>
7278
7279         [BZ #15479]
7280         [BZ #19238]
7281         * sysdeps/powerpc/powerpc32/fpu/s_round.S (__round): Save
7282         floating-point state after first operation on input.  Restore full
7283         state rather than just rounding mode.
7284         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S (__roundf): Likewise.
7285         * sysdeps/powerpc/powerpc64/fpu/s_round.S (__round): Likewise.
7286         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S (__roundf): Likewise.
7287
7288         [BZ #19235]
7289         * sysdeps/powerpc/powerpc64/fpu/s_llround.S (__llround): Do not
7290         add 0.5 to integer arguments.
7291         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S (__llroundf):
7292         Likewise.
7293         (.LC2): New object.
7294
7295 2015-11-11  Mike Frysinger  <vapier@gentoo.org>
7296
7297         * scripts/pylintrc (reports): Set to no.
7298
7299 2015-11-10  Roland McGrath  <roland@hack.frob.com>
7300
7301         * elf/dl-load.c (open_verify): Take new argument FD.
7302         Skip __open call if passed FD is not -1.
7303         (_dl_map_object, open_path): Update callers.
7304         * elf/dl-sysdep-open.h: New file.
7305         * elf/dl-load.c: Include it.
7306         (_dl_map_object): Try _dl_sysdep_open_object before ldconfig cache.
7307         * sysdeps/nacl/dl-sysdep.c (_dl_sysdep_open_object): New function.
7308         * sysdeps/nacl/dl-sysdep-open.h: New file.
7309         * sysdeps/nacl/nacl-interface-list.h: Move nacl_irt_resource_open
7310         from libc to rtld.
7311
7312 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
7313
7314         [BZ #19228]
7315         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Save
7316         and restore full floating-point state.
7317         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
7318         Likewise.
7319         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (__nearbyint):
7320         Likewise.
7321         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S (__nearbyintf):
7322         Likewise.
7323         * math/test-nearbyint-except-2.c: New file.
7324         * math/Makefile (tests): Add test-nearbyint-except-2.
7325
7326 2015-11-10  H.J. Lu  <hongjiu.lu@intel.com>
7327
7328         [BZ #19178]
7329         * sysdeps/x86/Makefile (tests): Add tst-prelink.
7330         (tst-prelink-ENV): New.
7331         ($(objpfx)tst-prelink-conflict.out): Likewise.
7332         ($(objpfx)tst-prelink-cmp.out): Likewise.
7333         (tests-special): Add $(objpfx)tst-prelink-cmp.out.
7334         * sysdeps/x86/tst-prelink.c: New file.
7335         * sysdeps/x86/tst-prelink.exp: Likewise.
7336
7337 2015-11-10  Joseph Myers  <joseph@codesourcery.com>
7338
7339         * math/auto-libm-test-in: Add another test of pow.
7340         * math/auto-libm-test-out: Regenerated.
7341         * math/libm-test.inc (pow_test_data): Add another test.
7342
7343 2015-11-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7344
7345         [BZ #19219]
7346         * sysdeps/ia64/fpu/s_nearbyintl.S (__nearbyint): Define and
7347         weak_alias to nearbyintl.
7348
7349 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
7350
7351         * sysdeps/aarch64/bits/string.h: New file.
7352         (_STRING_ARCH_unaligned): Define.
7353
7354 2015-11-10  Wilco Dijkstra  <wdijkstr@arm.com>
7355
7356         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Remove __signbit*.
7357         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
7358         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
7359         * sysdeps/unix/sysv/linux/nios2/localplt.data: Likewise.
7360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data: Likewise.
7361
7362 2015-11-09  Ulrich Drepper  <drepper@gmail.com>
7363
7364         * elf/dl-load.c (_dl_map_object_from_fd): Add additional parameter
7365         for original name of the DSO.  Add it to the name list of the DSO
7366         if it is actually given.
7367         (_dl_map_object): Keep track of whether an audit module rewrote
7368         the file name.  If yes, pass the original name to
7369         _dl_map_object_from_fd in a new parameter, otherwise NULL.  When
7370         debugging is enabled, log the change of the file name.
7371         * sysdeps/mach/hur/dl-sysdep.c: Adjust commented-out call to
7372         _dl_map_object_from_fd.
7373         * elf/Makefile: Build and run tst-audit11 and tst-audit12.
7374         * elf/tst-audit11.c: New file
7375         * elf/tst-auditmod11.c: New file.
7376         * elf/tst-audit11mod1.c: New file.
7377         * elf/tst-audit11mod2.c: New file.
7378         * elf/tst-audit11mod2.map: New file.
7379         * elf/tst-audit12.c: New file
7380         * elf/tst-auditmod12.c: New file.
7381         * elf/tst-audit12mod1.c: New file.
7382         * elf/tst-audit12mod2.c: New file.
7383         * elf/tst-audit12mod2.map: New file.
7384         * elf/tst-audit12mod3.c: New file.
7385
7386 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
7387
7388         * sysdeps/s390/longjmp.c (longjmp, _longjmp, siglongjmp):
7389         Don't create weak aliases,
7390         because versioned symbols are created later.
7391         * sysdeps/s390/s390-32/setjmp.S
7392         (setjmp, _setjmp): Remove weak and rename to an unique name
7393         in SHARED case due to existing versioned symbols.
7394         * sysdeps/s390/s390-64/setjmp.S: Likewise.
7395         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S
7396         (getcontext): Create weak alias only in non SHARED case.
7397         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
7398
7399 2015-11-09  Stefan Liebler  <stli@linux.vnet.ibm.com>
7400
7401         * sysdeps/unix/sysv/linux/s390/kernel-features.h:
7402         (__ASSUME_*_SYSCALL) Define new macros.
7403         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list:
7404         Remove socketcall syscalls.
7405         * sysdeps/unix/sysv/linux/accept.c (__libc_accept):
7406         Use accept4 if defined __ASSUME_ACCEPT4_FOR_ACCEPT_SYSCALL.
7407         * sysdeps/unix/sysv/linux/recv.c (__libc_recv):
7408         Use recvfrom if defined __ASSUME_RECVFROM_FOR_RECV_SYSCALL.
7409         * sysdeps/unix/sysv/linux/send.c (__libc_send):
7410         Use sendto if defined __ASSUME_SENDTO_FOR_SEND_SYSCALL.
7411
7412 2015-11-09  Florian Weimer  <fweimer@redhat.com>
7413
7414         [BZ #12926]
7415         Terminate process on invalid netlink response.
7416         * sysdeps/unix/sysv/linux/netlinkaccess.h
7417         (__netlink_assert_response): Declare.
7418         * sysdeps/unix/sysv/linux/netlink_assert_response.c: New file.
7419         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == inet]
7420         (sysdep_routines): Add netlink_assert_response.
7421         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Call
7422         __netlink_assert_response.
7423         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Likewise.
7424         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request): Likewise.
7425         * sysdeps/unix/sysv/linux/Versions (GLIBC_PRIVATE): Add
7426         __netlink_assert_response.
7427
7428 2015-11-07  H.J. Lu  <hongjiu.lu@intel.com>
7429
7430         [BZ #19178]
7431         * elf/dl-lookup.c (RTYPE_CLASS_VALID): New.
7432         (RTYPE_CLASS_PLT): Likewise.
7433         (RTYPE_CLASS_COPY): Likewise.
7434         (RTYPE_CLASS_TLS): Likewise.
7435         (_dl_debug_bindings): Use RTYPE_CLASS_TLS and RTYPE_CLASS_VALID
7436         to set relocation type class for DL_DEBUG_PRELINK.  Keep only
7437         ELF_RTYPE_CLASS_PLT and ELF_RTYPE_CLASS_COPY bits for
7438         DL_DEBUG_PRELINK.
7439
7440 2015-11-06  Joseph Myers  <joseph@codesourcery.com>
7441
7442         * math/test-signgam-finite.c (RUN_TESTS): Correct messages about
7443         calls with argument -0.5.
7444         * math/test-signgam-finite-c99.c (RUN_TESTS): Likewise.
7445
7446         * configure.ac (libc_cv_z_nodelete): Remove configure test.
7447         (libc_cv_z_nodlopen): Likewise.
7448         (libc_cv_z_initfirst): Likewise.
7449         * configure: Regenerated.
7450
7451 2015-11-06  Florian Weimer  <fweimer@redhat.com>
7452
7453         Simplify abilist format to be line-based.
7454         * scripts/abilist.awk: Collect descriptors in the descs variable.
7455         (emit): Write descs variable and sort it
7456         externally, with sort.
7457         * sysdeps/**/*.abilist: Convert to new format.
7458
7459 2015-11-06  Mark Wielaard  <mjw@redhat.com>
7460
7461         [BZ #11460]
7462         * io/Makefile (routines): Add fts64.
7463         (tests): Add tst-fts and tst-fts-lfs.
7464         (CFLAGS-fts64.c): New.
7465         * io/Versions (GLIBC_2.23): New.
7466         * io/fts.c: Replace FTS with FTSOBJ, FTSENT with FTSENTRY. Use
7467         function defines FTS_OPEN, FTS_CLOSE, FTS_READ, FTS_SET and
7468         FTS_CHILDREN. Define FTSOBJ, FTSENTRY, FTS_OPEN, FTS_CLOSE,
7469         FTS_READ, FTS_SET, FTS_CHILDREN, INO_T, STAT and LSTAT if necessary.
7470         * io/fts.h (FTS64): New if _USE_LARGEFILE64.
7471         (FTSENT64): Likewise.
7472         (fts64_children): Likewise.
7473         (fts64_close): Likewise.
7474         (fts64_open): Likewise.
7475         (fts64_read): Likewise.
7476         (fts64_set): Likewise.
7477         * io/fts64.c: New file.
7478         * io/tst-fts.c: New test.
7479         * io/tst-fts-lfs.c: Likewise.
7480         * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.23): Add
7481         GLIBC_2.23, fts64_children, fts64_close, fts64_open, fts64_read and
7482         fts64_set.
7483         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7484         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
7485         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7486         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
7487         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7488         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7489         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7490         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7491         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7492         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7493         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7494         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7495         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7496         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7497         Likewise.
7498         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7499         Likewise.
7500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7501         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7502         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7503         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7504         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7505         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7506         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7507         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
7508         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
7509         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
7510         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7511         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7512         * sysdeps/wordsize-64/fts.c: New file.
7513         * sysdeps/wordsize-64/fts64.c: Likewise.
7514         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts.c: Likewise.
7515         * sysdeps/unix/sysv/linux/mips/mips64/n64/fts64.c: Likewise.
7516         * sysdeps/unix/sysv/linux/x86_64/x32/fts.c: likewise.
7517         * sysdeps/unix/sysv/linux/x86_64/x32/fts64.c: likewise.
7518
7519 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7520
7521         * math/libm-test.inc (NON_FINITE): New macro.
7522         (enable_test): Do not run tests flagged NON_FINITE if TEST_FINITE.
7523         * math/gen-libm-test.pl (show_exceptions): Add argument
7524         $non_finite.
7525         (parse_args): Update call to show_exceptions.
7526         * math/test-math-finite.h: New file.
7527         * math/test-math-no-finite.h: Likewise.
7528         * math/test-double-finite.c: Likewise.
7529         * math/test-float-finite.c: Likewise.
7530         * math/test-ldouble-finite.c: Likewise.
7531         * math/test-double.c: Include "test-math-no-finite.h".
7532         * math/test-float.c: Include "test-math-no-finite.h".
7533         * math/test-ldouble.c: Include "test-math-no-finite.h".
7534         * math/test-math-inline.h (TEST_FINITE): New macro.
7535         * math/test-math-vector.h (TEST_FINITE): Likewise.
7536         * math/Makefile (test-longdouble-yes): Add test-ldouble-finite.
7537         (libm-tests): Add test-float-finite and test-double-finite.
7538         ($(objpfx)test-float-finite.o): New dependency on
7539         $(objpfx)libm-test.stmp.
7540         ($(objpfx)test-double-finite.o): Likewise.
7541         ($(objpfx)test-ldouble-finite.o): Likewise.
7542         (libm-test-no-inline-cflags): New variable.
7543         (libm-test-finite-cflags): Likewise.
7544         (CFLAGS-test-float-finite.c): Likewise.
7545         (CFLAGS-test-double-finite.c): Likewise.
7546         (CFLAGS-test-ldouble-finite.c): Likewise.
7547         (CFLAGS-test-float.c): Use $(libm-test-no-inline-cflags).
7548         (CFLAGS-test-double.c): Likewise.
7549         (CFLAGS-test-ldouble.c): Likewise.
7550
7551 2015-11-05  Roland McGrath  <roland@hack.frob.com>
7552
7553         * io/fcntl.c (__fcntl): Add ... to prototype.
7554         * misc/ioctl.c (__ioctl): Likewise.
7555         * misc/syscall.c (syscall): Likewise.
7556
7557 2015-11-05  Joseph Myers  <joseph@codesourcery.com>
7558
7559         * scripts/list-fixed-bugs.py: New file.
7560
7561         [BZ #19213]
7562         * sysdeps/i386/fpu/e_log.S (__log_finite): Ensure +0 is always
7563         returned for argument 1.
7564         * sysdeps/i386/fpu/e_logf.S (__logf_finite): Likewise.
7565         * sysdeps/i386/fpu/e_logl.S (__logl_finite): Likewise.
7566         * sysdeps/i386/i686/fpu/e_logl.S (__logl_finite): Likewise.
7567         * sysdeps/x86_64/fpu/e_log10l.S (__log10l_finite): Likewise.
7568         * sysdeps/x86_64/fpu/e_log2l.S (__log2l_finite): Likewise.
7569         * sysdeps/x86_64/fpu/e_logl.S (__logl_finite): Likewise.
7570
7571         [BZ #19211]
7572         * math/bits/math-finite.h (lgamma): Set signgam if [__USE_MISC ||
7573         __USE_XOPEN], not if [!__USE_ISOC99].
7574         (lgammaf): Likewise.
7575         (lgammal): Likewise.
7576         (gamma): Set signgam unconditionally, not if [!__USE_ISOC99].
7577         (gammaf): Likewise.
7578         (gammal): Likewise.
7579         * math/test-signgam-finite-c11.c: New file.
7580         * math/test-signgam-finite-c99.c: Likewise.
7581         * math/test-signgam-finite.c: Likewise.
7582         * math/Makefile (tests): Add test-signgam-finite,
7583         test-signgam-finite-c99 and test-signgam-finite-c11.
7584         (CFLAGS-test-signgam-finite.c): New variable.
7585         (CFLAGS-test-signgam-finite-c99.c): Likewise.
7586         (CFLAGS-test-signgam-finite-c11.c): Likewise.
7587
7588         [BZ #19212]
7589         * include/features.h [(_XOPEN_SOURCE - 0) >= 500]: Change
7590         conditional to [defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) >=
7591         500].
7592         [_POSIX_C_SOURCE >= 1]: Change conditional to [defined
7593         _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 1].
7594         [(_POSIX_C_SOURCE - 0) >= 199309L]: Change conditional to [defined
7595         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199309L].
7596         [(_POSIX_C_SOURCE - 0) >= 199506L]: Change conditional to [defined
7597         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 199506L].
7598         [(_POSIX_C_SOURCE - 0) >= 200112L]: Change conditional to [defined
7599         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200112L].
7600         [(_POSIX_C_SOURCE - 0) >= 200809L]: Change conditional to [defined
7601         _POSIX_C_SOURCE && (_POSIX_C_SOURCE - 0) >= 200809L].
7602
7603         [BZ #19209]
7604         * math/bits/math-finite.h (ldexp): Remove declaration.
7605         (ldexpf): Likewise.
7606         (ldexpl): Likewise.
7607
7608         [BZ #19205]
7609         * math/bits/math-finite.h (acosf): Condition declaration on
7610         [__USE_ISOC99].
7611         (acosl): Likewise.
7612         (acoshf): Likewise.
7613         (acoshl): Likewise.
7614         (asinf): Likewise.
7615         (asinl): Likewise.
7616         (atan2f): Likewise.
7617         (atan2l): Likewise.
7618         (atanhf): Likewise.
7619         (atanhl): Likewise.
7620         (coshf): Likewise.
7621         (coshl): Likewise.
7622         (expf): Likewise.
7623         (expl): Likewise.
7624         (fmodf): Likewise.
7625         (fmodl): Likewise.
7626         (hypot): Change condition to [__USE_XOPEN || __USE_ISOC99].
7627         (j0f): Change condition to [__USE_MISC && __USE_ISOC99].
7628         (j0l): Likewise.
7629         (y0f): Likewise.
7630         (y0l): Likewise.
7631         (j1f): Likewise.
7632         (j1l): Likewise.
7633         (y1f): Likewise.
7634         (y1l): Likewise.
7635         (jnf): Likewise.
7636         (jnl): Likewise.
7637         (ynf): Likewise.
7638         (ynl): Likewise.
7639         (lgammaf_r): Condition declaration on [__USE_ISOC99].
7640         (lgammal_r): Likewise.
7641         (__lgamma_r_finite): New declaration.
7642         (__lgammaf_r_finite): Likewise.
7643         (__lgammal_r_finite): Likewise.
7644         (lgamma): Use __lgamma_r_finite.
7645         (lgammaf): Condition definition on [__USE_ISOC99].  Use
7646         __lgammaf_r_finite.
7647         (lgammal): Condition definition on [__USE_ISOC99].  Use
7648         __lgammal_r_finite.
7649         (gamma): Do not define for [!__USE_MISC && __USE_XOPEN2K].  Use
7650         __lgamma_r_finite.
7651         (gammaf): Condition definition on [__USE_ISOC99].  Use
7652         __lgammaf_r_finite.
7653         (gammal): Condition definition on [__USE_ISOC99].  Use
7654         __lgammal_r_finite.
7655         (logf): Condition declaration on [__USE_ISOC99].
7656         (logl): Likewise.
7657         (log10f): Likewise.
7658         (log10l): Likewise.
7659         (ldexpf): Likewise.
7660         (ldexpl): Likewise.
7661         (powf): Likewise.
7662         (powl): Likewise.
7663         (remainder): Condition declaration on [__USE_XOPEN_EXTENDED ||
7664         __USE_ISOC99].
7665         (remainderf): Condition declaration on [__USE_ISOC99].
7666         (remainderl): Likewise.
7667         (scalb): Do not declare for [!__USE_MISC && __USE_XOPEN2K8].
7668         (scalbf): Change condition to [__USE_MISC && __USE_ISOC99].
7669         (scalbl): Likewise.
7670         (sinhf): Condition declaration on [__USE_ISOC99].
7671         (sinhl): Likewise.
7672         (sqrtf): Likewise.
7673         (sqrtl): Likewise.
7674
7675 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7676
7677         * sysdeps/arm/atomic-machine.h
7678         [__GNUC_PREREQ (4, 7) && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7679         Change conditional to [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7680         [__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 && !__GNUC_PREREQ (4, 7)]:
7681         Remove conditional code.
7682         [!__GNUC_PREREQ (4, 7) || !__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]:
7683         Change conditional to [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4].
7684         * sysdeps/i386/sysdep.h [__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]:
7685         Change conditional to [__ASSEMBLER__].
7686         [__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
7687         [!__ASSEMBLER__ && __GNUC_PREREQ (4, 7)]: Change conditional to
7688         [!__ASSEMBLER__].
7689         [!__ASSEMBLER__ && !__GNUC_PREREQ (4, 7)]: Remove conditional
7690         code.
7691         * sysdeps/unix/sysv/linux/sh/atomic-machine.h (rNOSP): Remove
7692         conditional macro definitions.
7693         (__arch_compare_and_exchange_val_8_acq): Use "u" instead of rNOSP.
7694         (__arch_compare_and_exchange_val_16_acq): Likewise.
7695         (__arch_compare_and_exchange_val_32_acq): Likewise.
7696         (atomic_exchange_and_add): Likewise.
7697         (atomic_add): Likewise.
7698         (atomic_add_negative): Likewise.
7699         (atomic_add_zero): Likewise.
7700         (atomic_bit_set): Likewise.
7701         (atomic_bit_test_set): Likewise.
7702         * sysdeps/x86_64/atomic-machine.h [__GNUC_PREREQ (4, 7)]: Make
7703         code unconditional.
7704         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
7705
7706         * math/test-math-errno.h: New file.
7707         * math/test-math-inline.h (TEST_INLINE): Define to 1 instead of
7708         empty.
7709         (TEST_ERRNO): New macro.
7710         (TEST_EXCEPTIONS): Likewise.
7711         * math/test-math-no-inline.h (TEST_INLINE): Likewise.
7712         (TEST_EXCEPTIONS): Likewise.
7713         * math/test-math-vector.h (TEST_ERRNO): Likewise.
7714         * math/test-double.c: Include "test-math-errno.h".
7715         * math/test-float.c: Likewise.
7716         * math/test-ldouble.c: Likewise.
7717         * math/libm-test.inc (test_single_exception) [!TEST_INLINE]: Make
7718         code unconditional.
7719         (test_exceptions): Only run code if TEST_EXCEPTIONS.
7720         (test_single_errno) [!TEST_INLINE && !TEST_MATHVEC]: Make code
7721         unconditional.
7722         (test_errno): Only run code if TEST_ERRNO.
7723         (enable_test): Use "if" conditional on TEST_INLINE, not #ifdef.
7724
7725 2015-11-04  Florian Weimer  <fweimer@redhat.com>
7726
7727         * nptl/tst-once5.cc: Remove attribution.
7728
7729 2015-11-04  Joseph Myers  <joseph@codesourcery.com>
7730
7731         * math/auto-libm-test-in: Add more tests of sin, sincos, sinh,
7732         sqrt, tan, tanh, y0, y1 and yn.
7733         * math/auto-libm-test-out: Regenerated.
7734         * math/libm-test.inc (scalb_test_data): Add more tests.
7735         (scalbn_test_data): Likewise.
7736         (scalbln_test_data): Likewise.
7737         (signbit_test_data): Likewise.
7738         (sin_test_data): Likewise.
7739         (sincos_test_data): Likewise.
7740         (sinh_test_data): Likewise.
7741         (sqrt_test_data): Likewise.
7742         (tan_test_data): Likewise.
7743         (tanh_test_data): Likewise.
7744         (tgamma_test_data): Likewise.
7745         (y0_test_data): Likewise.
7746         (y1_test_data): Likewise.
7747         (yn_test_data): Likewise.
7748         (significand_test_data): Likewise.
7749         * sysdeps/i386/fpu/libm-test-ulps: Update.
7750
7751 2015-11-03  David Kastrup  <dak@gnu.org>
7752
7753         [BZ #18604]
7754         * assert/assert.h (assert): Don't macro-expand failed assertion
7755         expression in error message.
7756         * malloc/malloc.c (assert): Likewise.
7757
7758 2015-11-03  Joseph Myers  <joseph@codesourcery.com>
7759
7760         * configure.ac (libc_cv_ld_no_whole_archive): Remove configure
7761         test.
7762         * configure: Regenerated.
7763
7764 2015-11-02  Joseph Myers  <joseph@codesourcery.com>
7765
7766         * math/libm-test.inc (modf_test_data): Add more tests.
7767         (nearbyint_test_data): Likewise.
7768         (nextafter_test_data): Likewise.
7769         (nexttoward_test_data): Likewise.
7770         (pow_test_data): Likewise.
7771         (remainder_test_data): Likewise.
7772         (remquo_test_data): Likewise.
7773         (rint_test_data): Likewise.
7774
7775         [BZ #19201]
7776         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
7777         Check for zero remainder in case of large exponents and ensure
7778         correct sign of result in that case.
7779         * math/libm-test.inc (remainder_test_data): Add more tests.
7780
7781         [BZ #6799]
7782         * math/s_nextafter.c: Include <errno.h>.
7783         (__nextafter): Set errno on overflow and underflow.
7784         * math/s_nexttowardf.c: Include <errno.h>.
7785         (__nexttowardf): Set errno on overflow and underflow.
7786         * sysdeps/i386/fpu/s_nextafterl.c: Include <errno.h>.
7787         (__nextafterl): Set errno on overflow and underflow.
7788         * sysdeps/i386/fpu/s_nexttoward.c: Include <errno.h>.
7789         (__nexttoward): Set errno on overflow and underflow.
7790         * sysdeps/i386/fpu/s_nexttowardf.c: Include <errno.h>.
7791         (__nexttowardf): Set errno on overflow and underflow.
7792         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include <errno.h>.
7793         (__nextafterf): Set errno on overflow and underflow.
7794         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include <errno.h>.
7795         (__nextafterl): Set errno on overflow and underflow.
7796         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Include <errno.h>.
7797         (__nexttoward): Set errno on overflow and underflow.
7798         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Include <errno.h>.
7799         (__nexttowardf): Set errno on overflow and underflow.
7800         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <errno.h>.
7801         (__nextafterl): Set errno on overflow and underflow.
7802         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Include <errno.h>.
7803         (__nexttoward): Set errno on overflow and underflow.
7804         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Include <errno.h>.
7805         (__nexttowardf): Set errno on overflow and underflow.
7806         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Include <errno.h>.
7807         (__nexttoward): Set errno on overflow and underflow.
7808         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Include <errno.h>.
7809         (__nexttowardf): Set errno on overflow and underflow.
7810         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Include <errno.h>.
7811         (__nldbl_nexttowardf): Set errno on overflow and underflow.
7812         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Include <errno.h>.
7813         (__nextafterl): Set errno on overflow and underflow.
7814         * math/libm-test.inc (nextafter_test_data): Do not allow errno
7815         setting to be missing on overflow.  Add more tests.
7816         (nexttoward_test_data): Likewise.
7817
7818         * configure.ac (libc_cv_initfini_array): Remove configure test.
7819         * configure: Regenerated.
7820
7821 2015-10-29  Joseph Myers  <joseph@codesourcery.com>
7822
7823         [BZ #19189]
7824         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Make check for
7825         non-finite argument handle arguments with negative sign.
7826
7827         * math/libm-test.inc (j0_test_data): Do not test sign of zero
7828         result from infinite argument.
7829         (j1_test_data): Likewise.
7830         (jn_test_data): Likewise.
7831         (y0_test_data): Likewise.
7832         (y1_test_data): Likewise.
7833         (yn_test_data): Likewise.
7834
7835         [BZ #16171]
7836         * math/w_remainder.c (drem): Define as weak alias of __remainder.
7837         [NO_LONG_DOUBLE] (dreml): Define as weak alias of __remainder.
7838         * math/w_remainderf.c (dremf): Define as weak alias of
7839         __remainderf.
7840         * math/w_remainderl.c (dreml): Define as weak alias of
7841         __remainderl.
7842         * sysdeps/ia64/fpu/e_remainder.S (drem): Define as weak alias of
7843         __remainder.
7844         * sysdeps/ia64/fpu/e_remainderf.S (dremf): Define as weak alias of
7845         __remainderf.
7846         * sysdeps/ia64/fpu/e_remainderl.S (dreml): Define as weak alias of
7847         __remainderl.
7848         * sysdeps/ieee754/ldbl-opt/nldbl-remainder.c (dreml): Define as
7849         weak alias of remainderl.
7850         * sysdeps/ieee754/ldbl-opt/w_remainder.c
7851         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (__drem): Define as strong
7852         alias of __remainder.
7853         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (dreml): Use compat_symbol.
7854         * sysdeps/ieee754/ldbl-opt/w_remainderl.c (__dreml): Define as
7855         strong alias of __remainderl.
7856         (dreml): Use long_double_symbol.
7857         * math/Makefile (libm-calls): Remove w_drem.
7858         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove drem.
7859         (CFLAGS-nldbl-drem.c): Remove variable.
7860         (CFLAGS-nldbl-remainder.c): Add -fno-builtin-dreml.
7861         * math/w_drem.c: Remove file.
7862         * math/w_dremf.c: Likewise.
7863         * math/w_dreml.c: Likewise.
7864         * sysdeps/ieee754/ldbl-opt/nldbl-drem.c: Likewise.
7865         * sysdeps/ieee754/ldbl-opt/w_drem.c: Likewise.
7866         * sysdeps/ieee754/ldbl-opt/w_dreml.c: Likewise.
7867
7868         * sysdeps/i386/configure.ac (cpuid.h): Do not test for header.
7869         * sysdeps/i386/configure: Regenerated.
7870         * sysdeps/x86_64/configure.ac (cpuid.h): Do not test for header.
7871         * sysdeps/x86_64/configure: Regenerated.
7872
7873         * configure.ac (libc_cv_asm_protected_directive): Remove configure
7874         test.
7875         (libc_cv_visibility_attribute): Likewise.
7876         (libc_cv_protected_data): Test unconditionally.
7877         (libc_cv_broken_visibility_attribute): Remove configure test.
7878         (libc_cv_have_sdata_section): Test unconditionally.
7879         * configure: Regenerated.
7880
7881         * include/libc-internal.h (libc_max_align_t): Remove typedef.
7882         * include/scratch_buffer.h: Include <stddef.h> instead of
7883         <libc-internal.h>.
7884         (struct scratch_buffer): Use max_align_t instead of
7885         libc_max_align_t.
7886
7887 2015-10-29  Florian Weimer  <fweimer@redhat.com>
7888
7889         * elf/dl-fini.c (_dl_fini): Rewrite to use variable-length array
7890         instead of extend_alloca.  Change control flow to avoid a goto.
7891         Remove assert which is trivially always true.
7892
7893 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7894
7895         [BZ #16068]
7896         * sysdeps/i386/fpu/fesetenv.c: Include <fpu_control.h>.
7897         (FE_ALL_EXCEPT_X86): New macro.
7898         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7899         FE_ALL_EXCEPT.  Ensure precision control is included in
7900         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7901         handle "denormal operand exception" and clear FZ and DAZ bits.
7902         * sysdeps/x86_64/fpu/fesetenv.c: Include <fpu_control.h>.
7903         (FE_ALL_EXCEPT_X86): New macro.
7904         (__fesetenv): Use FE_ALL_EXCEPT_X86 in most places instead of
7905         FE_ALL_EXCEPT.  Ensure precision control is included in
7906         floating-point state.  Ensure that FE_DFL_ENV and FE_NOMASK_ENV
7907         handle "denormal operand exception" and clear FZ and DAZ bits.
7908         * sysdeps/x86/fpu/test-fenv-sse-2.c: New file.
7909         * sysdeps/x86/fpu/test-fenv-x87.c: Likewise.
7910         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7911         test-fenv-x87 and test-fenv-sse-2.
7912         [$(subdir) = math] (CFLAGS-test-fenv-sse-2.c): New variable.
7913
7914         * math/libm-test.inc (BUILD_COMPLEX): Remove macro.
7915         * math/test-double.h (BUILD_COMPLEX): New macro.
7916         * math/test-float.h (BUILD_COMPLEX): Likewise.
7917         * math/test-ldouble.h (BUILD_COMPLEX): Likewise.
7918
7919         * math/libm-test.inc (min_subnorm_value): Use LDBL_TRUE_MIN,
7920         DBL_TRUE_MIN and FLT_TRUE_MIN instead of __LDBL_DENORM_MIN__,
7921         __DBL_DENORM_MIN__ and __FLT_DENORM_MIN__.
7922         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Refer to DBL_TRUE_MIN
7923         instead of DBL_DENORM_MIN in comment.
7924         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Refer to
7925         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7926         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Include <float.h>.
7927         (__nextafterl): Use LDBL_TRUE_MIN instead of __LDBL_DENORM_MIN__.
7928         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Refer to
7929         LDBL_TRUE_MIN instead of LDBL_DENORM_MIN in comment.
7930
7931 2015-10-28  Florian Weimer  <fweimer@redhat.com>
7932
7933         [BZ# 19048]
7934         * malloc/malloc.c (struct malloc_state): Update comment.  Add
7935         attached_threads member.
7936         (main_arena): Initialize attached_threads.
7937         * malloc/arena.c (list_lock): Update comment.
7938         (ptmalloc_lock_all, ptmalloc_unlock_all): Likewise.
7939         (ptmalloc_unlock_all2): Reinitialize arena reference counts.
7940         (deattach_arena): New function.
7941         (_int_new_arena): Initialize arena reference count and deattach
7942         replaced arena.
7943         (get_free_list, reused_arena): Update reference count and deattach
7944         replaced arena.
7945         (arena_thread_freeres): Update arena reference count and only put
7946         unreferenced arenas on the free list.
7947
7948 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7949
7950         [BZ #19181]
7951         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Clear already-raised
7952         SSE exceptions when argument is FE_DFL_ENV or FE_NOMASK_ENV.
7953         * sysdeps/x86_64/fpu/fesetenv.c (__fesetenv): Likewise.
7954         * math/test-fenv-clear-main.c: New file.
7955         * math/test-fenv-clear.c: Likewise.
7956         * math/Makefile (tests): Add test-fenv-clear.
7957         * sysdeps/x86/fpu/test-fenv-clear-sse.c: New file.
7958         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
7959         test-fenv-clear-sse.
7960         [$(subdir) = math] (CFLAGS-test-fenv-clear-sse.c): New variable.
7961
7962         * math/libm-test.inc (TYPE_DECIMAL_DIG): Use LDBL_DECIMAL_DIG,
7963         DBL_DECIMAL_DIG and FLT_DECIMAL_DIG instead of __DECIMAL_DIG__,
7964         __DBL_DECIMAL_DIG__ and __FLT_DECIMAL_DIG__.
7965
7966 2015-10-28  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
7967
7968         * sysdeps/powerpc/libc-tls.c: New file. Provides __tls_get_addr () in
7969         static libc.
7970
7971 2015-10-28  Joseph Myers  <joseph@codesourcery.com>
7972
7973         * sysdeps/i386/configure.ac (libc_cv_cc_avx2): Remove configure
7974         test.
7975         * sysdeps/i386/configure: Regenerated.
7976         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx2): Remove configure
7977         test.
7978         * sysdeps/x86_64/configure: Regenerated.
7979         * config.h.in (HAVE_AVX2_SUPPORT): Remove #undef.
7980         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7981         memset-avx2 unconditionally instead of conditionally on
7982         [$(config-cflags-avx2) = yes].
7983         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7984         (__libc_ifunc_impl_list) [HAVE_AVX2_SUPPORT]: Make code
7985         unconditional.
7986         * sysdeps/x86_64/multiarch/memset.S [HAVE_AVX2_SUPPORT]: Likewise.
7987         * sysdeps/x86_64/multiarch/memset_chk.S
7988         [IS_IN (libc) && SHARED && HAVE_AVX2_SUPPORT]: Change conditional
7989         to [IS_IN (libc) && SHARED].
7990
7991 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
7992
7993         * sysdeps/arm/configure.ac (libc_cv_arm_tls_desc): Remove
7994         configure test.
7995         * sysdeps/arm/configure: Regenerated.
7996         * sysdeps/arm/Makefile [!have-arm-tls-desc] (have-arm-tls-desc):
7997         Define variable if not already defined.
7998
7999         [BZ #17404]
8000         * sysdeps/mips/atomic-machine.h
8001         [__GNUC_PREREQ (4, 8) || (__mips16 && __GNUC_PREREQ (4, 7))]:
8002         Change conditional to [__GNUC_PREREQ (4, 8) || __mips16].
8003         [__mips16 && !__GNUC_PREREQ (4, 7)]: Remove conditional code.
8004
8005         * resolv/res_send.c (send_vc) [__GNUC_PREREQ (4, 7)]: Make code
8006         unconditional.
8007         * soft-fp/fmadf4.c [__GNUC_PREREQ (4, 7)]: Likewise.
8008         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8009         * soft-fp/fmasf4.c [__GNUC_PREREQ (4, 7)]: Make code
8010         unconditional.
8011         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8012         * soft-fp/fmatf4.c [__GNUC_PREREQ (4, 7)]: Make code
8013         unconditional.
8014         [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8015         * stdlib/setenv.c
8016         [((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7)]: Make
8017         code unconditional.
8018         [!(((__GNUC__ << 16) + __GNUC_MINOR__) >= ((4 << 16) + 7))]:
8019         Remove conditional code.
8020         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
8021         (__ieee754_lgamma_r) [__GNUC_PREREQ (4, 7)]: Make code
8022         unconditional.
8023         (__ieee754_lgamma_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8024         code.
8025         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
8026         (__ieee754_lgammaf_r) [__GNUC_PREREQ (4, 7)]: Make code
8027         unconditional.
8028         (__ieee754_lgammaf_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8029         code.
8030         * sysdeps/ieee754/ldbl-128/k_tanl.c
8031         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8032         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8033         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c
8034         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8035         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8036         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c
8037         (__ieee754_lgammal_r) [__GNUC_PREREQ (4, 7)]: Make code
8038         unconditional.
8039         (__ieee754_lgammal_r) [!__GNUC_PREREQ (4, 7)]: Remove conditional
8040         code.
8041         * sysdeps/ieee754/ldbl-96/k_tanl.c
8042         (__kernel_tanl) [__GNUC_PREREQ (4, 7)]: Make code unconditional.
8043         (__kernel_tanl) [!__GNUC_PREREQ (4, 7)]: Remove conditional code.
8044
8045         * nptl/tst-initializers1-c11.c: New file.
8046         * nptl/tst-initializers1-gnu11.c: Likewise.
8047         * nptl/Makefile (tests): Add these new tests.
8048         (CFLAGS-tst-initializers1-c11.c): New variable.
8049         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
8050
8051         * Makeconfig (CFLAGS): Use -std=gnu11 instead of -std=gnu99.
8052         * Makefile ($(objpfx)c++-types-check.out): Filter out -std=gnu11
8053         instead of -std=gnu99.
8054         * configure.ac (systemtap): Test with -std=gnu11 instead of
8055         -std=gnu99.
8056         * configure: Regenerated.
8057         * math/gen-auto-libm-tests.c: Use -std=gnu11 instead of -std=gnu99
8058         in compilation command in comment.
8059
8060         * sysdeps/nptl/configure.ac: Remove file.
8061         * sysdeps/nptl/configure: Remove generated file.
8062         * configure.ac (libc_cv_forced_unwind): Do not substitute.
8063         * configure: Regenerated.
8064         * config.h.in (HAVE_FORCED_UNWIND): Remove #undef.
8065         * config.make.in (have-forced-unwind): Remove variable.
8066         * nptl/Makefile [$(have-forced-unwind) = yes]: Make code
8067         unconditional.
8068         * nptl/descr.h [HAVE_FORCED_UNWIND]: Likewise.
8069         * nptl/unwind.c [HAVE_FORCED_UNWIND]: Likewise.
8070         (__pthread_unwind) [!HAVE_FORCED_UNWIND]: Remove conditional code.
8071         * nptl/version.c [HAVE_FORCED_UNWIND]: Make code unconditional.
8072         * sysdeps/nptl/Makefile [$(have-forced-unwind) = yes]: Make code
8073         unconditional.
8074
8075 2015-10-27  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
8076
8077         [BZ #19174]
8078         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Fix usage of
8079         .skip_lock_out_of_tbegin_retries.
8080         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
8081         (__lll_lock_elision): Likewise, and respect a value of
8082         try_tbegin <= 0.
8083
8084 2015-10-27  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
8085
8086         * elf/dl-support.c (_dl_aux_init): Added AT_PLATFORM to the case
8087         statement.
8088
8089 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
8090
8091         * conform/Makefile (test-xfail-ISO11/complex.h/conform): Remove
8092         variable.
8093         (test-xfail-ISO11/stdalign.h/conform): Likewise.
8094         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
8095
8096         * conform/GlibcConform.pm ($CFLAGS{"ISO11"}): Use -std=c11 instead
8097         of -std=c1x -D_ISOC11_SOURCE.
8098
8099         * configure.ac (libc_cv_compiler_ok): Require GCC 4.7 or later.
8100         * configure: Regenerated.
8101         * manual/install.texi (Tools for Compilation): Document
8102         requirement for GCC 4.7 or later.
8103         * INSTALL: Regenerated.
8104
8105 2015-10-27  Ludovic Courtès  <ludo@gnu.org>
8106
8107         * locale/loadlocale.c (_nl_intern_locale_data): Change assertion
8108         on CNT to a conditional jump to 'puntdata'.
8109
8110 2015-10-27  Joseph Myers  <joseph@codesourcery.com>
8111
8112         * configure.ac (libc_cv_gcc___thread): Remove configure test.
8113         (libc_cv_gcc_tls_model_attr): Likewise.
8114         * configure: Regenerated.
8115
8116         * configure.ac (libc_cv_need_minus_P): Remove configure test.
8117         * configure: Regenerated.
8118         * Makeconfig (asm-CPPFLAGS): Remove reference to -P in comment.
8119
8120 2015-10-26  Joseph Myers  <joseph@codesourcery.com>
8121
8122         * configure.ac (old_glibc_headers): Remove configure test.
8123         * configure: Regenerated.
8124         * config.make.in (old-glibc-headers): Remove variable.
8125         * Makefile [!$(install_root) && $(old-glibc-headers) = yes]
8126         (install): Remove dependency on remove-old-headers.
8127         (headers2_0): Remove variable.
8128         (remove-old-headers): Remove rule.
8129
8130         * configure.ac (libc_cv_dot_text): Remove configure test.
8131         (libc_cv_asm_set_directive): Use .text instead of
8132         ${libc_cv_dot_text} in configure test.
8133         * configure: Regenerated.
8134
8135 2015-10-26  Florian Weimer  <fweimer@redhat.com>
8136
8137         [BZ #19168]
8138         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8139
8140 2015-10-26  Florian Weimer  <fweimer@redhat.com>
8141
8142         * configure.ac (CXX): Clear the variable if the C++ toolchain does
8143         not support static linking.
8144         * configure: Regenerate.
8145
8146 2015-10-23  Joseph Myers  <joseph@codesourcery.com>
8147
8148         * math/libm-test.inc (check_float_internal): Do not special-case
8149         errors up to 0.5 ulp.
8150
8151         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
8152         log2.
8153         * math/auto-libm-test-out: Regenerated.
8154         * math/libm-test.inc (MAX_EXP): New macro.
8155         (ilogb_test_data): Add more tests.
8156         (isfinite_test_data): Likewise.
8157         (isgreater_test_data): Likewise.
8158         (isgreaterequal_test_data): Likewise.
8159         (isinf_test_data): Likewise.
8160         (isless_test_data): Likewise.
8161         (islessequal_test_data): Likewise.
8162         (islessgreater_test_data): Likewise.
8163         (isnan_test_data): Likewise.
8164         (isnormal_test_data): Likewise.
8165         (issignaling_test_data): Likewise.
8166         (isunordered_test_data): Likewise.
8167         (j0_test_data): Likewise.
8168         (j1_test_data): Likewise.
8169         (jn_test_data): Likewise.
8170         (lgamma_test_data): Likewise.
8171         (log_test_data): Likewise.
8172         (log10_test_data): Likewise.
8173         (log1p_test_data): Likewise.
8174         (log2_test_data): Likewise.
8175         (logb_test_data): Likewise.
8176         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8177
8178         [BZ #18611]
8179         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Set errno and
8180         avoid excess range and precision on underflow.
8181         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8182         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
8183         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
8184         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Set errno on
8185         underflow.
8186         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8187         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8188         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
8189         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8190         * math/auto-libm-test-in: Do not allow missing errno setting for
8191         tests of j1 and jn.
8192         * math/auto-libm-test-out: Regenerated.
8193
8194 2015-10-22  Joseph Myers  <joseph@codesourcery.com>
8195
8196         [BZ #15491]
8197         * sysdeps/i386/fpu/s_nearbyint.S (__nearbyint): Save and restore
8198         floating-point environment instead of clearing all exceptions.
8199         * sysdeps/i386/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
8200         * sysdeps/i386/fpu/s_nearbyintl.S (__nearbyintl): Likewise,
8201         merging in "invalid" exceptions from frndint.
8202         * sysdeps/x86_64/fpu/s_nearbyintl.S (__nearbyintl): Likewise.
8203         * math/test-nearbyint-except.c: New file.
8204         * math/Makefile (tests): Add test-nearbyint-except.
8205
8206 2015-10-22  Chris Metcalf  <cmetcalf@ezchip.com>
8207
8208         * NEWS: Mention bug 18699 fixed by commit fe8c2b33aed0.
8209
8210         * sysdeps/tile/libm-test-ulps: Regenerated.
8211
8212 2015-10-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8213
8214         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c
8215         (__NR_sync_file_range2): Assume it is always defined.
8216         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
8217         (__NR_sync_file_range): Assume it is always defined.
8218
8219 2015-10-22  Andreas Schwab  <schwab@suse.de>
8220
8221         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
8222         INTERNAL_SYSCALL_ERRNO.
8223         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
8224         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
8225         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
8226         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
8227         Likewise.
8228         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
8229
8230 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8231
8232         * io/tst-fcntl.c (fd): New static variable.
8233         (do_prepare): Open temporary file here....
8234         (do_test): ...not here.
8235
8236         * io/ftwtest-sh: Also trap on exit to remove temporary files.
8237
8238 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
8239
8240         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: Replace
8241         __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
8242         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
8243         Moved before "#ifdef __ASSEMBLER__".
8244
8245 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8246
8247         [BZ #19156]
8248         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Return 1 for
8249         arguments very close to 0.
8250
8251 2015-10-21  Chris Metcalf  <cmetcalf@ezchip.com>
8252
8253         * sysdeps/unix/sysv/linux/tile/sysdep.h (PSEUDO_END)
8254         (PSEUDO_NOERRNO, PSEUDO_END_NOERRNO): Undef before defining.
8255
8256 2015-10-21  H.J. Lu  <hongjiu.lu@intel.com>
8257
8258         * sysdeps/unix/sysv/linux/i386/sysdep.h (OPTIMIZE_FOR_GCC_5):
8259         New.  Defined for GCC 5 and above when not compiling for
8260         profiling.
8261         Replace __GNUC_PREREQ (5,0) with OPTIMIZE_FOR_GCC_5.
8262
8263         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
8264         Renamed to ...
8265         (CFLAGS-epoll_pwait.o): This.
8266         (CFLAGS-mmap.c): Renamed to ...
8267         (CFLAGS-mmap.o): This.
8268         (CFLAGS-mmap64.c): Renamed to ...
8269         (CFLAGS-mmap64.o): This.
8270         (CFLAGS-epoll_pwait.os): New.
8271         (CFLAGS-mmap.os): Likewise.
8272         (CFLAGS-mmap64.os): Likewise.
8273         (CFLAGS-semtimedop.os): Likewise.
8274         (CFLAGS-semtimedop.c): Renamed to ...
8275         (CFLAGS-semtimedop.o): This.
8276
8277 2015-10-21  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8278
8279         * debug/tst-backtrace4.c (handle_signal): Fix a comment and
8280         warning message.
8281
8282 2015-10-21  Joseph Myers  <joseph@codesourcery.com>
8283
8284         * Makeconfig (+gccwarn-c): Add -Wold-style-definition.
8285         * Makefile ($(objpfx)c++-types-check.out): Filter out
8286         $(+gccwarn-c) instead of -Wstrict-prototypes.
8287
8288         * io/fts.c (fts_open): Convert to prototype-style function
8289         definition.
8290         * malloc/mcheck.c (mcheck): Likewise.
8291         (mcheck_pedantic): Likewise.
8292         * posix/regexec.c (re_search_2_stub): Likewise.  Use
8293         internal_function.
8294         (re_search_internal): Likewise.
8295         * resolv/res_init.c [RESOLVSORT] (net_mask): Convert to
8296         prototype-style function definition.
8297         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
8298         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
8299         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Likewise.
8300         (xdr_utmpptr): Likewise.
8301         (xdr_utmparr): Likewise.
8302         (xdr_utmpidle): Likewise.
8303         (xdr_utmpidleptr): Likewise.
8304         (xdr_utmpidlearr): Likewise.
8305
8306         * math/auto-libm-test-in: Add more tests of hypot, j0, j1, jn,
8307         log, log10 and log2.
8308         * math/auto-libm-test-out: Regenerated.
8309         * math/libm-test.inc (fmod_test_data): Add more tests.
8310         (fpclassify_test_data): Likewise.
8311         (frexp_test_data): Likewise.
8312         (hypot_test_data): Likewise.
8313         (ilogb_test_data): Likewise.
8314
8315 2015-10-20  Joseph Myers  <joseph@codesourcery.com>
8316
8317         * debug/fortify_fail.c (__fortify_fail): Convert to
8318         prototype-style function definition.  Use internal_function.
8319         * libio/genops.c (save_for_backup): Convert to prototype-style
8320         function definition.
8321         * libio/wgenops.c (save_for_wbackup): Likewise.
8322         * login/grantpt.c (grantpt): Likewise.
8323         * login/ptsname.c (ptsname): Likewise.
8324         (__ptsname_r): Likewise.
8325         * login/unlockpt.c (unlockpt): Likewise.
8326         * mach/msgserver.c (__mach_msg_server): Likewise.
8327         * misc/efgcvt.c (__APPEND (FUNC_PREFIX, fcvt)): Likewise.
8328         (__APPEND (FUNC_PREFIX, ecvt)): Likewise.
8329         (__APPEND (FUNC_PREFIX, gcvt)): Likewise.
8330         * misc/efgcvt_r.c (__APPEND (FUNC_PREFIX, fcvt_r)): Likewise.
8331         (__APPEND (FUNC_PREFIX, ecvt_r)): Likewise.
8332         * nptl/cleanup_compat.c (_pthread_cleanup_push): Likewise.
8333         * nptl/cleanup_defer_compat.c (_pthread_cleanup_push_defer):
8334         Likewise.
8335         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.  Use
8336         internal_function.
8337         * nptl/pthread_atfork.c (__pthread_atfork): Convert to
8338         prototype-style function definition.
8339         * nptl/pthread_create.c (__pthread_create_2_1): Likewise.
8340         [SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)]
8341         (__pthread_create_2_0): Likewise.
8342         * nptl/pthread_key_create.c (__pthread_key_create): Likewise.
8343         * nptl/register-atfork.c (__register_atfork): Likewise.
8344         * posix/glob.c (glob): Likewise.
8345         * posix/regcomp.c (re_comp): Likewise.
8346         * posix/regexec.c (re_exec): Likewise.
8347         * stdlib/add_n.c [__STDC__]: Make code unconditional.
8348         [!__STDC__]: Remove conditional code.
8349         * stdlib/cmp.c [__STDC__]: Make code unconditional.
8350         [!__STDC__]: Remove conditional code.
8351         * stdlib/divmod_1.c [__STDC__]: Make code unconditional.
8352         [!__STDC__]: Remove conditional code.
8353         * stdlib/divrem.c [__STDC__]: Make code unconditional.
8354         [!__STDC__]: Remove conditional code.
8355         * stdlib/lshift.c [__STDC__]: Make code unconditional.
8356         [!__STDC__]: Remove conditional code.
8357         * stdlib/mod_1.c [__STDC__]: Make code unconditional.
8358         [!__STDC__]: Remove conditional code.
8359         * stdlib/mul.c [__STDC__]: Make code unconditional.
8360         [!__STDC__]: Remove conditional code.
8361         * stdlib/mul_n.c [__STDC__]: Make code unconditional.
8362         [!__STDC__]: Remove conditional code.
8363         * stdlib/rshift.c [__STDC__]: Make code unconditional.
8364         [!__STDC__]: Remove conditional code.
8365         * stdlib/strtod.c (INTERNAL (STRTOF)): Convert to prototype-style
8366         function definition.
8367         (STRTOF): Likewise.
8368         * stdlib/strtod_l.c (__STRTOF): Likewise.
8369         * stdlib/strtol.c (INTERNAL (strtol)): Likewise.
8370         * stdlib/strtol_l.c (INTERNAL (__strtol_l)): Likewise.
8371         (__strtol_l): Likewise.
8372         * stdlib/sub_n.c [__STDC__]: Make code unconditional.
8373         [!__STDC__]: Remove conditional code.
8374         * string/memrchr.c (MEMRCHR): Convert to prototype-style function
8375         definition.
8376         * string/strcasecmp.c (LOCALE_PARAM_DECL): Remove macro.
8377         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8378         type.
8379         (__strcasecmp): Convert to prototype-style function definition.
8380         * string/strncase.c (LOCALE_PARAM_DECL): Remove macro.
8381         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8382         type.
8383         (__strncasecmp): Convert to prototype-style function definition.
8384         * sunrpc/pm_getport.c (__libc_rpc_getport): Likewise.
8385         * sunrpc/xdr.c (xdr_union): Likewise.
8386         * sunrpc/xdr_array.c (xdr_array): Likewise.
8387         * sunrpc/xdr_ref.c (xdr_reference): Likewise.
8388         * sysdeps/m68k/m680x0/fpu/s_atan.c (__CONCATX(__,FUNC)): Likewise.
8389         * sysdeps/m68k/m680x0/fpu/s_isinf.c (__CONCATX(__,FUNC)):
8390         Likewise.
8391         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(__scalbn,suffix):
8392         Likewise.
8393         * sysdeps/m68k/m680x0/fpu/s_sincos.c (CONCATX(__,FUNC)): Likewise.
8394         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
8395         Likewise.
8396         * time/strftime_l.c (LOCALE_PARAM_DECL): Remove macro.
8397         (LOCALE_PARAM_PROTO): Likewise.
8398         [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include
8399         argument type.
8400         (ut_argument_spec): Remove macro.
8401         (ut_argument_spec_iso): Rename to ut_argument_spec.
8402         (memcpy_lowcase): Use LOCALE_PARAM in declaration.  Convert to
8403         prototype-style function definition.
8404         (memcpy_uppcase): Likewise.
8405         (__strftime_internal): Likewise.
8406         (my_strftime): Likewise.
8407         * time/strptime_l.c (LOCALE_PARAM_PROTO): Remove macro.
8408         (LOCALE_PARAM_DECL): Likewise.
8409         [_LIBC] (LOCALE_PARAM): Include argument type.
8410         (__strptime_internal): Convert to prototype-style function
8411         definition.
8412         (strptime): Likewise.
8413         * wcsmbs/wcscasecmp.c (LOCALE_PARAM_DECL): Remove macro.
8414         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8415         type.
8416         (__wcscasecmp): Convert to prototype-style function definition.
8417         * wcsmbs/wcsncase.c (LOCALE_PARAM_DECL): Remove macro.
8418         [USE_IN_EXTENDED_LOCALE_MODEL] (LOCALE_PARAM): Include argument
8419         type.
8420         (__wcsncasecmp): Convert to prototype-style function definition.
8421
8422         * crypt/md5-crypt.c (__md5_crypt_r): Convert to prototype-style
8423         function definition.
8424         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8425         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8426         * debug/backtracesyms.c (__backtrace_symbols): Likewise.
8427         * elf/dl-minimal.c (_itoa): Likewise.
8428         * hurd/hurdmalloc.c (malloc): Likewise.
8429         (free): Likewise.
8430         (realloc): Likewise.
8431         * inet/inet6_option.c (inet6_option_space): Likewise.
8432         (inet6_option_init): Likewise.
8433         (inet6_option_append): Likewise.
8434         (inet6_option_alloc): Likewise.
8435         (inet6_option_next): Likewise.
8436         (inet6_option_find): Likewise.
8437         * io/ftw.c (FTW_NAME): Likewise.
8438         (NFTW_NAME): Likewise.
8439         (NFTW_NEW_NAME): Likewise.
8440         (NFTW_OLD_NAME): Likewise.
8441         * libio/iofwide.c (_IO_fwide): Likewise.
8442         * libio/strops.c (_IO_str_init_static_internal): Likewise.
8443         (_IO_str_init_static): Likewise.
8444         (_IO_str_init_readonly): Likewise.
8445         (_IO_str_overflow): Likewise.
8446         (_IO_str_underflow): Likewise.
8447         (_IO_str_count): Likewise.
8448         (_IO_str_seekoff): Likewise.
8449         (_IO_str_pbackfail): Likewise.
8450         (_IO_str_finish): Likewise.
8451         * libio/wstrops.c (_IO_wstr_init_static): Likewise.
8452         (_IO_wstr_overflow): Likewise.
8453         (_IO_wstr_underflow): Likewise.
8454         (_IO_wstr_count): Likewise.
8455         (_IO_wstr_seekoff): Likewise.
8456         (_IO_wstr_pbackfail): Likewise.
8457         (_IO_wstr_finish): Likewise.
8458         * locale/programs/localedef.c (normalize_codeset): Likewise.
8459         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
8460         (add_locales_to_archive): Likewise.
8461         (delete_locales_from_archive): Likewise.
8462         * malloc/malloc.c (__libc_mallinfo): Likewise.
8463         * math/gen-auto-libm-tests.c (init_fp_formats): Likewise.
8464         * misc/tsearch.c (__tfind): Likewise.
8465         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Likewise.
8466         * nptl/pthread_attr_getdetachstate.c
8467         (__pthread_attr_getdetachstate): Likewise.
8468         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
8469         Likewise.
8470         * nptl/pthread_attr_getinheritsched.c
8471         (__pthread_attr_getinheritsched): Likewise.
8472         * nptl/pthread_attr_getschedparam.c
8473         (__pthread_attr_getschedparam): Likewise.
8474         * nptl/pthread_attr_getschedpolicy.c
8475         (__pthread_attr_getschedpolicy): Likewise.
8476         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope):
8477         Likewise.
8478         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack):
8479         Likewise.
8480         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
8481         Likewise.
8482         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
8483         Likewise.
8484         * nptl/pthread_attr_init.c (__pthread_attr_init_2_1): Likewise.
8485         (__pthread_attr_init_2_0): Likewise.
8486         * nptl/pthread_attr_setdetachstate.c
8487         (__pthread_attr_setdetachstate): Likewise.
8488         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
8489         Likewise.
8490         * nptl/pthread_attr_setinheritsched.c
8491         (__pthread_attr_setinheritsched): Likewise.
8492         * nptl/pthread_attr_setschedparam.c
8493         (__pthread_attr_setschedparam): Likewise.
8494         * nptl/pthread_attr_setschedpolicy.c
8495         (__pthread_attr_setschedpolicy): Likewise.
8496         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope):
8497         Likewise.
8498         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack):
8499         Likewise.
8500         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
8501         Likewise.
8502         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
8503         Likewise.
8504         * nptl/pthread_condattr_setclock.c (pthread_condattr_setclock):
8505         Likewise.
8506         * nptl/pthread_create.c (__find_in_stack_list): Likewise.
8507         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
8508         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Define to
8509         use internal_function.
8510         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Convert to
8511         prototype-style function definition.
8512         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
8513         (__pthread_mutex_cond_lock_adjust): Likewise.  Use
8514         internal_function.
8515         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock):
8516         Convert to prototype-style function definition.
8517         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
8518         Likewise.
8519         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
8520         Likewise.
8521         (__pthread_mutex_unlock): Likewise.
8522         * nptl_db/td_ta_clear_event.c (td_ta_clear_event): Likewise.
8523         * nptl_db/td_ta_set_event.c (td_ta_set_event): Likewise.
8524         * nptl_db/td_thr_clear_event.c (td_thr_clear_event): Likewise.
8525         * nptl_db/td_thr_event_enable.c (td_thr_event_enable): Likewise.
8526         * nptl_db/td_thr_set_event.c (td_thr_set_event): Likewise.
8527         * nss/makedb.c (process_input): Likewise.
8528         * posix/fnmatch.c (__strchrnul): Likewise.
8529         (__wcschrnul): Likewise.
8530         (fnmatch): Likewise.
8531         * posix/fnmatch_loop.c (FCT): Likewise.
8532         * posix/glob.c (globfree): Likewise.
8533         (__glob_pattern_type): Likewise.
8534         (__glob_pattern_p): Likewise.
8535         * posix/regcomp.c (re_compile_pattern): Likewise.
8536         (re_set_syntax): Likewise.
8537         (re_compile_fastmap): Likewise.
8538         (regcomp): Likewise.
8539         (regerror): Likewise.
8540         (regfree): Likewise.
8541         * posix/regexec.c (regexec): Likewise.
8542         (re_match): Likewise.
8543         (re_search): Likewise.
8544         (re_match_2): Likewise.
8545         (re_search_2): Likewise.
8546         (re_search_stub): Likewise.  Use internal_function
8547         (re_copy_regs): Likewise.
8548         (re_set_registers): Convert to prototype-style function
8549         definition.
8550         (prune_impossible_nodes): Likewise.  Use internal_function.
8551         * resolv/inet_net_pton.c (inet_net_pton): Convert to
8552         prototype-style function definition.
8553         (inet_net_pton_ipv4): Likewise.
8554         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
8555         * sysdeps/pthread/aio_cancel.c (aio_cancel): Likewise.
8556         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
8557         * sysdeps/pthread/timer_delete.c (timer_delete): Likewise.
8558         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
8559         Make variadic.
8560         * time/strptime_l.c (localtime_r): Convert to prototype-style
8561         function definition.
8562         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
8563         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
8564         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
8565         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
8566
8567         * crypt/crypt.c (_ufc_doit_r): Convert to prototype-style function
8568         definition.
8569         (_ufc_doit_r): Likewise.
8570         * crypt/crypt_util.c (_ufc_copymem): Likewise.
8571         (_ufc_output_conversion_r): Likewise.
8572         * inet/inet_mkadr.c (__inet_makeaddr): Likewise.
8573         * inet/rcmd.c (rcmd_af): Likewise.
8574         (rcmd): Likewise.
8575         (ruserok_af): Likewise.
8576         (ruserok): Likewise.
8577         (ruserok2_sa): Likewise.
8578         (ruserok_sa): Likewise.
8579         (iruserok_af): Likewise.
8580         (iruserok): Likewise.
8581         (__ivaliduser): Likewise.
8582         (__validuser2_sa): Likewise.
8583         * inet/rexec.c (rexec_af): Likewise.
8584         (rexec): Likewise.
8585         * inet/ruserpass.c (ruserpass): Likewise.
8586         * locale/programs/xmalloc.c (xcalloc): Likewise.
8587         * manual/examples/timeval_subtract.c (timeval_subtract): Likewise.
8588         * math/w_drem.c (__drem): Likewise.
8589         * math/w_dremf.c (__dremf): Likewise.
8590         * math/w_dreml.c (__dreml): Likewise.
8591         * misc/daemon.c (daemon): Likewise.
8592         * resolv/res_debug.c (p_fqnname): Likewise.
8593         * stdlib/div.c (div): Likewise.
8594         * string/memcmp.c (memcmp_bytes): Likewise.
8595         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
8596         * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
8597
8598         * crypt/cert.c (main): Convert to prototype-style function
8599         definition.
8600         * io/pipe.c (__pipe): Likewise.
8601         * io/pipe2.c (__pipe2): Likewise.
8602         * misc/futimesat.c (futimesat): Likewise.
8603         * misc/utimes.c (__utimes): Likewise.
8604         * posix/execve.c (__execve): Likewise.
8605         * posix/execvp.c (execvp): Likewise.
8606         * posix/execvpe.c (__execvpe): Likewise.
8607         * posix/fexecve.c (fexecve): Likewise.
8608         * socket/socketpair.c (socketpair): Likewise.
8609         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
8610         * stdlib/erand48.c (erand48): Likewise.
8611         * stdlib/erand48_r.c (__erand48_r): Likewise.
8612         * stdlib/jrand48.c (jrand48): Likewise.
8613         * stdlib/jrand48_r.c (__jrand48_r): Likewise.
8614         * stdlib/lcong48.c (lcong48): Likewise.
8615         * stdlib/lcong48_r.c (__lcong48_r): Likewise.
8616         * stdlib/nrand48.c (nrand48): Likewise.
8617         * stdlib/nrand48_r.c (__nrand48_r): Likewise.
8618         * stdlib/seed48.c (seed48): Likewise.
8619         * stdlib/seed48_r.c (__seed48_r): Likewise.
8620         * sysdeps/mach/hurd/execve.c (__execve): Likewise.
8621         * sysdeps/mach/hurd/utimes.c (__utimes): Likewise.
8622         * sysdeps/unix/sysv/linux/fexecve.c (fexecve): Likewise.
8623
8624 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8625
8626         * configure.ac (libc_cv_asm_unique_object): Remove configure test.
8627         * configure: Regenerated.
8628         * config.h.in (HAVE_ASM_UNIQUE_OBJECT): Remove #undef.
8629         * elf/tst-unique1.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Make code
8630         unconditional.
8631         * elf/tst-unique1mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8632         * elf/tst-unique1mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8633         * elf/tst-unique2.c (do_test) [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8634         (do_test) [!HAVE_ASM_UNIQUE_OBJECT]: Remove conditional code.
8635         * elf/tst-unique2mod1.c [HAVE_ASM_UNIQUE_OBJECT]: Make code
8636         unconditional.
8637         * elf/tst-unique2mod2.c [HAVE_ASM_UNIQUE_OBJECT]: Likewise.
8638
8639         * posix/Makefile (CFLAGS-regex.c): Remove variable.
8640         * resolv/Makefile (+cflags): Do not use -Wno-strict-prototypes.
8641
8642         * crypt/crypt-entry.c (__crypt_r): Convert to prototype-style
8643         function definition.
8644         * crypt/crypt_util.c (__encrypt_r): Likewise.
8645         * libio/genops.c (_IO_no_init): Likewise.
8646         * libio/iofopncook.c (_IO_fopencookie): Likewise.
8647         (_IO_old_fopencookie): Likewise.
8648         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
8649         * libio/iogetline.c (_IO_getline): Likewise.
8650         (_IO_getline_info): Likewise.
8651         * libio/iogetwline.c (_IO_getwline): Likewise.
8652         (_IO_getwline_info): Likewise.
8653         * libio/vsnprintf.c (_IO_vsnprintf): Likewise.
8654         * libio/vswprintf.c (_IO_vswprintf): Likewise.
8655         * locale/programs/simple-hash.c (insert_entry_2): Likewise.
8656         (find_entry): Likewise.
8657         (iterate_table): Likewise.
8658         (lookup): Likewise.
8659         * login/forkpty.c (forkpty): Likewise.
8660         * misc/hsearch_r.c (__hsearch_r): Likewise.
8661         * misc/select.c (__select): Likewise.
8662         * nptl/cleanup_defer_compat.c (_pthread_cleanup_pop_restore):
8663         Likewise.
8664         * nptl/old_pthread_cond_init.c (__pthread_cond_init_2_0):
8665         Likewise.
8666         * nptl/old_pthread_cond_timedwait.c
8667         (__pthread_cond_timedwait_2_0): Likewise.
8668         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
8669         * nptl/pthread_barrierattr_getpshared.c
8670         (pthread_barrierattr_getpshared): Likewise.
8671         * nptl/pthread_getschedparam.c (__pthread_getschedparam):
8672         Likewise.
8673         * nptl/pthread_mutex_setprioceiling.c
8674         (pthread_mutex_setprioceiling): Likewise.
8675         * nptl/pthread_mutexattr_getprioceiling.c
8676         (pthread_mutexattr_getprioceiling): Likewise.
8677         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
8678         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
8679         Likewise.
8680         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
8681         Likewise.
8682         * nptl/pthread_setschedparam.c (__pthread_setschedparam):
8683         Likewise.
8684         * socket/recvfrom.c (__recvfrom): Likewise.
8685         * socket/sendto.c (__sendto): Likewise.
8686         * socket/setsockopt.c (__setsockopt): Likewise.
8687         * stdio-common/_itoa.c (_itoa): Likewise.
8688         * stdio-common/_itowa.c (_itowa): Likewise.
8689         * stdio-common/reg-printf.c (__register_printf_specifier):
8690         Likewise.
8691         (__register_printf_function): Likewise.
8692         * stdio-common/tempname.c (__path_search): Likewise.
8693         * stdlib/addmul_1.c (mpn_addmul_1): Likewise.
8694         * stdlib/mul_1.c (mpn_mul_1): Likewise.
8695         * stdlib/random_r.c (__initstate_r): Likewise.
8696         * stdlib/setenv.c (__add_to_environ): Likewise.
8697         * stdlib/submul_1.c (mpn_submul_1): Likewise.
8698         * streams/getpmsg.c (getpmsg): Likewise.
8699         * streams/putmsg.c (putmsg): Likewise.
8700         * streams/putpmsg.c (putpmsg): Likewise.
8701         * sunrpc/clnt_raw.c (clntraw_call): Likewise.
8702         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
8703         * sunrpc/clnt_udp.c (clntudp_create): Likewise.
8704         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
8705         * sunrpc/pm_getport.c (pmap_getport): Likewise.
8706         * sunrpc/svc_udp.c (cache_get): Likewise.
8707         * sunrpc/xdr_array.c (xdr_vector): Likewise.
8708         * sysdeps/mach/hurd/getcwd.c
8709         (__canonicalize_directory_name_internal): Likewise.
8710         * sysdeps/mach/hurd/pselect.c (__pselect): Likewise.
8711         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Likewise.
8712         * sysdeps/mach/hurd/select.c (__select): Likewise.
8713         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
8714         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
8715         * sysdeps/sparc/nptl/pthread_barrier_init.c
8716         (__pthread_barrier_init): Likewise.
8717         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c
8718         (__pthread_cond_timedwait): Likewise.
8719         * sysdeps/unix/sysv/linux/i386/putmsg.c (putmsg): Likewise.
8720         * sysdeps/unix/sysv/linux/s390/semtimedop.c (semtimedop):
8721         Likewise.
8722         * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Likewise.
8723         * sysdeps/unix/sysv/linux/timer_settime.c (timer_settime):
8724         Likewise.
8725         * sysvipc/semtimedop.c (semtimedop): Likewise.
8726         * time/setitimer.c (__setitimer): Likewise.
8727         * time/strftime_l.c (emacs_strftime): Likewise.
8728
8729 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8730
8731         * config.make.in (have-ssp): Delete.
8732         (stack-protector): New variable.
8733         * configure.ac: Delete libc_cv_ssp export.  Add libc_cv_ssp_strong
8734         cache test for -fstack-protector-strong.  Export stack_protector to
8735         the best ssp flag.
8736         * configure: Regenerated.
8737         * login/Makefile (pt_chown-cflags): Always add $(stack-protector).
8738         * nscd/Makefile (CFLAGS-nscd): Likewise.
8739         * resolv/Makefile (CFLAGS-libresolv): Likewise.
8740
8741 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
8742
8743         [BZ #19122]
8744         * include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
8745         attribute_hidden.
8746
8747 2015-10-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8748
8749         [BZ #18743]
8750         * sysdeps/powerpc/nptl/elide.h (__elide_lock): Move most of this
8751         code to...
8752         (ELIDE_LOCK): ...here.
8753         (__get_new_count): New function with part of the code from
8754         __elide_lock that updates the value of adapt_count after a
8755         transaction abort.
8756         (__elided_trylock): Moved this code to...
8757         (ELIDE_TRYLOCK): ...here.
8758
8759 2015-10-19  Mike Frysinger  <vapier@gentoo.org>
8760
8761         * configure.ac (AC_ARG_ENABLE(timezone-tools)): Tweak help phrasing.
8762         * configure: Regenerate.
8763         * INSTALL: Regenerate.
8764         * manual/install.texi (--disable-timezone-tools): Use @theglibc{}
8765         and tweak grammar.
8766
8767 2015-10-19  Geoffrey Thomas  <geofft@ldpreload.com>
8768
8769         * login/programs/pt_chown.c: Include signal.h
8770         (main): Clear any signal mask from the parent process.
8771
8772 2015-10-19  Joseph Myers  <joseph@codesourcery.com>
8773
8774         * configure.ac (libc_cv_gnu89_inline): Remove configure test.
8775         * configure: Regenerated.
8776         * config.make.in (gnu89-inline-CFLAGS): Remove variable.
8777         * Makeconfig (CFLAGS): Use -fgnu89-inline instead of
8778         $(gnu89-inline-CFLAGS).
8779
8780         * configure.ac (libc_cv_asm_weak_directive): Remove configure
8781         test.
8782         (libc_cv_asm_weakext_directive): Likewise.
8783         * configure: Regenerated.
8784         * config.h.in (HAVE_ASM_WEAK_DIRECTIVE): Remove #undef.
8785         (HAVE_ASM_WEAKEXT_DIRECTIVE): Likewise.
8786         * include/libc-symbols.h
8787         [!HAVE_ASM_WEAK_DIRECTIVE && !HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove
8788         #error.
8789         [HAVE_ASM_WEAKEXT_DIRECTIVE]: Remove conditional code.
8790         [!HAVE_ASM_WEAKEXT_DIRECTIVE]: Make code unconditional.
8791
8792         * sysdeps/arm/backtrace.c (__backtrace): Convert to
8793         prototype-style function definition.
8794         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
8795         * sysdeps/i386/ffs.c (__ffs): Likewise.
8796         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
8797         * sysdeps/ia64/nptl/pthread_spin_lock.c (pthread_spin_lock):
8798         Likewise.
8799         * sysdeps/ia64/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8800         Likewise.
8801         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
8802         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
8803         Likewise.
8804         * sysdeps/m68k/ffs.c (__ffs): Likewise.
8805         * sysdeps/m68k/m680x0/fpu/e_acos.c (FUNC): Likewise.
8806         * sysdeps/m68k/m680x0/fpu/e_fmod.c (FUNC): Likewise.
8807         * sysdeps/mach/adjtime.c (__adjtime): Likewise.
8808         * sysdeps/mach/gettimeofday.c (__gettimeofday): Likewise.
8809         * sysdeps/mach/hurd/_exit.c (_exit): Likewise.
8810         * sysdeps/mach/hurd/access.c (__access): Likewise.
8811         * sysdeps/mach/hurd/adjtime.c (__adjtime): Likewise.
8812         * sysdeps/mach/hurd/chdir.c (__chdir): Likewise.
8813         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
8814         * sysdeps/mach/hurd/chown.c (__chown): Likewise.
8815         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Likewise.
8816         (cthread_getspecific): Likewise.
8817         (cthread_setspecific): Likewise.
8818         (__libc_getspecific): Likewise.
8819         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Likewise.
8820         * sysdeps/mach/hurd/faccessat.c (faccessat): Likewise.
8821         * sysdeps/mach/hurd/fchdir.c (__fchdir): Likewise.
8822         * sysdeps/mach/hurd/fchmod.c (__fchmod): Likewise.
8823         * sysdeps/mach/hurd/fchmodat.c (fchmodat): Likewise.
8824         * sysdeps/mach/hurd/fchown.c (__fchown): Likewise.
8825         * sysdeps/mach/hurd/fchownat.c (fchownat): Likewise.
8826         * sysdeps/mach/hurd/flock.c (__flock): Likewise.
8827         * sysdeps/mach/hurd/fsync.c (fsync): Likewise.
8828         * sysdeps/mach/hurd/ftruncate.c (__ftruncate): Likewise.
8829         * sysdeps/mach/hurd/getgroups.c (__getgroups): Likewise.
8830         * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise.
8831         * sysdeps/mach/hurd/getitimer.c (__getitimer): Likewise.
8832         * sysdeps/mach/hurd/getlogin_r.c (__getlogin_r): Likewise.
8833         * sysdeps/mach/hurd/getpgid.c (__getpgid): Likewise.
8834         * sysdeps/mach/hurd/getrusage.c (__getrusage): Likewise.
8835         * sysdeps/mach/hurd/getsockname.c (__getsockname): Likewise.
8836         * sysdeps/mach/hurd/group_member.c (__group_member): Likewise.
8837         * sysdeps/mach/hurd/isatty.c (__isatty): Likewise.
8838         * sysdeps/mach/hurd/lchown.c (__lchown): Likewise.
8839         * sysdeps/mach/hurd/link.c (__link): Likewise.
8840         * sysdeps/mach/hurd/linkat.c (linkat): Likewise.
8841         * sysdeps/mach/hurd/listen.c (__listen): Likewise.
8842         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
8843         * sysdeps/mach/hurd/mkdirat.c (mkdirat): Likewise.
8844         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
8845         * sysdeps/mach/hurd/poll.c (__poll): Likewise.
8846         * sysdeps/mach/hurd/readlink.c (__readlink): Likewise.
8847         * sysdeps/mach/hurd/readlinkat.c (readlinkat): Likewise.
8848         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
8849         * sysdeps/mach/hurd/rename.c (rename): Likewise.
8850         * sysdeps/mach/hurd/renameat.c (renameat): Likewise.
8851         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
8852         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Likewise.
8853         * sysdeps/mach/hurd/rmdir.c (__rmdir): Likewise.
8854         * sysdeps/mach/hurd/seekdir.c (seekdir): Likewise.
8855         * sysdeps/mach/hurd/send.c (__send): Likewise.
8856         * sysdeps/mach/hurd/setdomain.c (setdomainname): Likewise.
8857         * sysdeps/mach/hurd/setegid.c (setegid): Likewise.
8858         * sysdeps/mach/hurd/seteuid.c (seteuid): Likewise.
8859         * sysdeps/mach/hurd/setgid.c (__setgid): Likewise.
8860         * sysdeps/mach/hurd/setgroups.c (setgroups): Likewise.
8861         * sysdeps/mach/hurd/sethostid.c (sethostid): Likewise.
8862         * sysdeps/mach/hurd/sethostname.c (sethostname): Likewise.
8863         * sysdeps/mach/hurd/setlogin.c (setlogin): Likewise.
8864         * sysdeps/mach/hurd/setpgid.c (__setpgid): Likewise.
8865         * sysdeps/mach/hurd/setregid.c (__setregid): Likewise.
8866         * sysdeps/mach/hurd/setreuid.c (__setreuid): Likewise.
8867         * sysdeps/mach/hurd/settimeofday.c (__settimeofday): Likewise.
8868         * sysdeps/mach/hurd/setuid.c (__setuid): Likewise.
8869         * sysdeps/mach/hurd/shutdown.c (shutdown): Likewise.
8870         * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
8871         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
8872         * sysdeps/mach/hurd/sigpending.c (sigpending): Likewise.
8873         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
8874         * sysdeps/mach/hurd/sigsuspend.c (__sigsuspend): Likewise.
8875         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
8876         * sysdeps/mach/hurd/symlink.c (__symlink): Likewise.
8877         * sysdeps/mach/hurd/symlinkat.c (symlinkat): Likewise.
8878         * sysdeps/mach/hurd/telldir.c (telldir): Likewise.
8879         * sysdeps/mach/hurd/truncate.c (__truncate): Likewise.
8880         * sysdeps/mach/hurd/umask.c (__umask): Likewise.
8881         * sysdeps/mach/hurd/unlink.c (__unlink): Likewise.
8882         * sysdeps/mach/hurd/unlinkat.c (unlinkat): Likewise.
8883         * sysdeps/mips/mips64/__longjmp.c (__longjmp): Likewise.
8884         * sysdeps/posix/alarm.c (alarm): Likewise.
8885         * sysdeps/posix/cuserid.c (cuserid): Likewise.
8886         * sysdeps/posix/dirfd.c (dirfd): Likewise.
8887         * sysdeps/posix/dup.c (__dup): Likewise.
8888         * sysdeps/posix/dup2.c (__dup2): Likewise.
8889         * sysdeps/posix/euidaccess.c (euidaccess): Likewise.
8890         (main): Likewise.
8891         * sysdeps/posix/flock.c (__flock): Likewise.
8892         * sysdeps/posix/fpathconf.c (__fpathconf): Likewise.
8893         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8894         * sysdeps/posix/gethostname.c (__gethostname): Likewise.
8895         * sysdeps/posix/gettimeofday.c (__gettimeofday): Likewise.
8896         * sysdeps/posix/isatty.c (__isatty): Likewise.
8897         * sysdeps/posix/killpg.c (killpg): Likewise.
8898         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
8899         * sysdeps/posix/mkfifoat.c (mkfifoat): Likewise.
8900         * sysdeps/posix/raise.c (raise): Likewise.
8901         * sysdeps/posix/remove.c (remove): Likewise.
8902         * sysdeps/posix/rename.c (rename): Likewise.
8903         * sysdeps/posix/rewinddir.c (__rewinddir): Likewise.
8904         * sysdeps/posix/seekdir.c (seekdir): Likewise.
8905         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
8906         * sysdeps/posix/sigignore.c (sigignore): Likewise.
8907         * sysdeps/posix/sigintr.c (siginterrupt): Likewise.
8908         * sysdeps/posix/signal.c (__bsd_signal): Likewise.
8909         * sysdeps/posix/sigset.c (sigset): Likewise.
8910         * sysdeps/posix/sigsuspend.c (__sigsuspend): Likewise.
8911         * sysdeps/posix/sysconf.c (__sysconf): Likewise.
8912         * sysdeps/posix/sysv_signal.c (__sysv_signal): Likewise.
8913         * sysdeps/posix/time.c (time): Likewise.
8914         * sysdeps/posix/ttyname.c (getttyname): Likewise.
8915         (ttyname): Likewise.
8916         * sysdeps/posix/ttyname_r.c (__ttyname_r): Likewise.
8917         * sysdeps/posix/utime.c (utime): Likewise.
8918         * sysdeps/powerpc/fpu/s_isnan.c (__isnan): Likewise.
8919         * sysdeps/powerpc/nptl/pthread_spin_lock.c (pthread_spin_lock):
8920         Likewise.
8921         * sysdeps/powerpc/nptl/pthread_spin_trylock.c
8922         (pthread_spin_trylock): Likewise.
8923         * sysdeps/pthread/aio_error.c (aio_error): Likewise.
8924         * sysdeps/pthread/aio_read.c (aio_read): Likewise.
8925         * sysdeps/pthread/aio_read64.c (aio_read64): Likewise.
8926         * sysdeps/pthread/aio_write.c (aio_write): Likewise.
8927         * sysdeps/pthread/aio_write64.c (aio_write64): Likewise.
8928         * sysdeps/pthread/flockfile.c (__flockfile): Likewise.
8929         * sysdeps/pthread/ftrylockfile.c (__ftrylockfile): Likewise.
8930         * sysdeps/pthread/funlockfile.c (__funlockfile): Likewise.
8931         * sysdeps/pthread/timer_create.c (timer_create): Likewise.
8932         * sysdeps/pthread/timer_getoverr.c (timer_getoverrun): Likewise.
8933         * sysdeps/pthread/timer_gettime.c (timer_gettime): Likewise.
8934         * sysdeps/s390/ffs.c (__ffs): Likewise.
8935         * sysdeps/s390/nptl/pthread_spin_lock.c (pthread_spin_lock):
8936         Likewise.
8937         * sysdeps/s390/nptl/pthread_spin_trylock.c (pthread_spin_trylock):
8938         Likewise.
8939         * sysdeps/sh/nptl/pthread_spin_lock.c (pthread_spin_lock):
8940         Likewise.
8941         * sysdeps/sparc/nptl/pthread_barrier_destroy.c
8942         (pthread_barrier_destroy): Likewise.
8943         * sysdeps/sparc/nptl/pthread_barrier_wait.c
8944         (__pthread_barrier_wait): Likewise.
8945         * sysdeps/sparc/sparc32/e_sqrt.c (__ieee754_sqrt): Likewise.
8946         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
8947         (__pthread_barrier_wait): Likewise.
8948         * sysdeps/sparc/sparc32/sem_init.c (__old_sem_init): Likewise.
8949         * sysdeps/tile/memcmp.c (memcmp_common_alignment): Likewise.
8950         (memcmp_not_common_alignment): Likewise.
8951         (MEMCMP): Likewise.
8952         * sysdeps/tile/wordcopy.c (_wordcopy_fwd_aligned): Likewise.
8953         (_wordcopy_fwd_dest_aligned): Likewise.
8954         (_wordcopy_bwd_aligned): Likewise.
8955         (_wordcopy_bwd_dest_aligned): Likewise.
8956         * sysdeps/unix/bsd/ftime.c (ftime): Likewise.
8957         * sysdeps/unix/bsd/gtty.c (gtty): Likewise.
8958         * sysdeps/unix/bsd/stty.c (stty): Likewise.
8959         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
8960         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
8961         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Likewise.
8962         * sysdeps/unix/bsd/tcgetpgrp.c (tcgetpgrp): Likewise.
8963         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Likewise.
8964         * sysdeps/unix/bsd/tcsetattr.c (tcsetattr): Likewise.
8965         * sysdeps/unix/bsd/tcsetpgrp.c (tcsetpgrp): Likewise.
8966         * sysdeps/unix/bsd/ualarm.c (ualarm): Likewise.
8967         * sysdeps/unix/bsd/wait3.c (__wait3): Likewise.
8968         * sysdeps/unix/getlogin_r.c (__getlogin_r): Likewise.
8969         * sysdeps/unix/sockatmark.c (sockatmark): Likewise.
8970         * sysdeps/unix/stime.c (stime): Likewise.
8971         * sysdeps/unix/sysv/linux/_exit.c (_exit): Likewise.
8972         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue):
8973         Likewise.  Use internal_function.
8974         * sysdeps/unix/sysv/linux/arm/sigaction.c (__libc_sigaction):
8975         Convert to prototype-style function definition.
8976         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
8977         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
8978         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Likewise.
8979         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
8980         Likewise.  Use internal_function.
8981         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Convert to
8982         prototype-style function definition
8983         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
8984         Likewise.
8985         (__getlogin_r): Likewise.
8986         * sysdeps/unix/sysv/linux/getpt.c (__posix_openpt): Likewise.
8987         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c
8988         (__pthread_cond_broadcast): Likewise.
8989         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c
8990         (__pthread_cond_destroy): Likewise.
8991         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c
8992         (__pthread_cond_init): Likewise.
8993         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c
8994         (__pthread_cond_signal): Likewise.
8995         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c
8996         (__pthread_cond_wait): Likewise.
8997         * sysdeps/unix/sysv/linux/i386/getmsg.c (getmsg): Likewise.
8998         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
8999         * sysdeps/unix/sysv/linux/ia64/sigaction.c (__libc_sigaction):
9000         Likewise.
9001         * sysdeps/unix/sysv/linux/ia64/sigpending.c (sigpending):
9002         Likewise.
9003         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
9004         Likewise.
9005         * sysdeps/unix/sysv/linux/mips/sigaction.c (__libc_sigaction):
9006         Likewise.
9007         * sysdeps/unix/sysv/linux/msgget.c (msgget): Likewise.
9008         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
9009         (__ftruncate64): Likewise.
9010         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
9011         (truncate64): Likewise.
9012         * sysdeps/unix/sysv/linux/pt-raise.c (raise): Likewise.
9013         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c
9014         (pthread_getcpuclockid): Likewise.
9015         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
9016         Likewise.
9017         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
9018         Likewise.
9019         * sysdeps/unix/sysv/linux/pthread_sigmask.c (pthread_sigmask):
9020         Likewise.
9021         * sysdeps/unix/sysv/linux/pthread_sigqueue.c (pthread_sigqueue):
9022         Likewise.
9023         * sysdeps/unix/sysv/linux/raise.c (raise): Likewise.
9024         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c
9025         (__libc_sigaction): Likewise.
9026         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c (sigpending):
9027         Likewise.
9028         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
9029         (__sigprocmask): Likewise.
9030         * sysdeps/unix/sysv/linux/semget.c (semget): Likewise.
9031         * sysdeps/unix/sysv/linux/semop.c (semop): Likewise.
9032         * sysdeps/unix/sysv/linux/setrlimit64.c (setrlimit64): Likewise.
9033         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
9034         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
9035         * sysdeps/unix/sysv/linux/shmget.c (shmget): Likewise.
9036         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
9037         Likewise.
9038         * sysdeps/unix/sysv/linux/sigpending.c (sigpending): Likewise.
9039         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask): Likewise.
9040         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
9041         * sysdeps/unix/sysv/linux/sigstack.c (sigstack): Likewise.
9042         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c (sigpending):
9043         Likewise.
9044         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
9045         (__sigprocmask): Likewise.
9046         * sysdeps/unix/sysv/linux/speed.c (cfgetospeed): Likewise.
9047         (cfgetispeed): Likewise.
9048         (cfsetospeed): Likewise.
9049         (cfsetispeed): Likewise.
9050         * sysdeps/unix/sysv/linux/tcflow.c (tcflow): Likewise.
9051         * sysdeps/unix/sysv/linux/tcflush.c (tcflush): Likewise.
9052         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
9053         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
9054         * sysdeps/unix/sysv/linux/time.c (time): Likewise.
9055         * sysdeps/unix/sysv/linux/timer_create.c (timer_create): Likewise.
9056         * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Likewise.
9057         * sysdeps/unix/sysv/linux/timer_getoverr.c (timer_getoverrun):
9058         Likewise.
9059         * sysdeps/unix/sysv/linux/timer_gettime.c (timer_gettime):
9060         Likewise.
9061         * sysdeps/unix/sysv/linux/x86_64/sigpending.c (sigpending):
9062         Likewise.
9063         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
9064         Likewise.
9065         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
9066
9067 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9068
9069         sunrpc: Rewrite with explicit TLS access using __thread.
9070         * sunrpc/rpc_thread.c (thread_rpc_vars): New TLS variable.
9071         (__rpc_thread_destroy, rpc_thread_multi): Access thread_rpc_vars
9072         directly.
9073         (__rpc_thread_variables): Access thread_rpc_vars directly.
9074         Eliminate redundant assignment of the tvp variable.
9075
9076 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9077
9078         malloc: Rewrite with explicit TLS access using __thread.
9079         * sysdeps/generic/malloc-machine.h (tsd_key_t, tsd_key_create)
9080         (tsd_setspecific, tsd_getspecific): Remove.
9081         * sysdeps/mach/hurd/malloc-machine.h (tsd_key_t, tsd_key_create)
9082         (tsd_setspecific, tsd_getspecific): Likewise.
9083         * sysdeps/nptl/malloc-machine.h (tsd_key_t, tsd_key_create)
9084         (tsd_setspecific, tsd_getspecific): Likewise.
9085         * malloc/arena.c (thread_arena): New TLS variable.
9086         (arena_key): Remove variable.
9087         (arena_get): Use thread_arena.
9088         (arena_lookup): Remove macro.
9089         (malloc_atfork, free_atfork, ptmalloc_lock_all)
9090         (ptmalloc_unlock_all, ptmalloc_unlock_all2, ptmalloc_init)
9091         (_int_new_arena, get_free_list, reused_arena)
9092         (arena_thread_freeres): Use thread_arena.
9093         * manual/memory.texi (Basic Allocation): Remove arena_lookup,
9094         tsd_getspecific, tsd_setspecific from safety annotations.
9095         (Allocating Cleared Space): Remove arena_lookup from safety
9096         annotations.
9097
9098 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9099
9100         * stdio-common/vfprintf.c (printf_positional): Rewrite to use
9101         struct scratch_buffer instead of extend_alloca.
9102
9103 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9104
9105         * sysdeps/unix/sysv/linux/kernel-features.h
9106         (__ASSUME_SOCK_CLOEXEC): Remove.
9107         * include/sys/socket.h (__have_sock_cloexec): Remove declaration.
9108         (__have_paccept): Remove unused macro.
9109         * include/unistd.h (__have_sock_cloexec): Remove declaration.
9110         * misc/syslog.c (openlog_internal): Remove fallback code for
9111         !__ASSUME_SOCK_CLOEXEC.
9112         * nis/ypclnt.c (yp_bind_client_create): Remove fallback code for
9113         missing SOCK_CLOEXEC.
9114         * nscd/connections.c (have_sock_cloexec): Remove definition.
9115         (nscd_init): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
9116         * nscd/nscd_helper.c (open_socket): Remove fallback code for
9117         !__ASSUME_SOCK_CLOEXEC.
9118         * resolv/res_send.c (__have_o_nonblock): Remove definition.
9119         (reopen): Remove fallback code for !__ASSUME_SOCK_CLOEXEC.
9120         * socket/have_sock_cloexec.c (__have_sock_cloexec): Remove
9121         definition.
9122         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Remove fallback
9123         code for !__ASSUME_SOCK_CLOEXEC.
9124
9125 2015-10-17  Florian Weimer  <fweimer@redhat.com>
9126
9127         [BZ #18982]
9128         * manual/stdio.texi (Variable Arguments Output): Add portability
9129         note, explaining that vfprintf clobbers the va_list pointer.
9130
9131 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
9132
9133         * math/libm-test.inc (fabs_test_data): Add more tests.
9134         (fdim_test_data): Likewise.
9135         (fma_test_data): Likewise.
9136         (fmax_test_data): Likewise.
9137         (fmin_test_data): Likewise.
9138         (fmod_test_data): Likewise.
9139
9140 2015-10-16  Steve Ellcey  <sellcey@imgtec.com>
9141
9142         * sysdeps/mips/memcpy.S (memcpy):  Add word copies for small aligned
9143         data.
9144
9145 2015-10-16  Joseph Myers  <joseph@codesourcery.com>
9146
9147         * math/libm-test.inc (ceil_test_data): Add more tests and more
9148         expectations for "inexact".
9149         (floor_test_data): Add more tests.
9150         (round_test_data): Likewise.
9151         (trunc_test_data): Likewise.
9152
9153         * crypt/cert.c (good_bye): Convert to prototype-style function
9154         definition.
9155         (get8): Likewise.
9156         (put8): Likewise.
9157         * crypt/crypt-entry.c (crypt): Likewise.
9158         (__fcrypt): Likewise.
9159         * crypt/crypt_util.c (_ufc_prbits): Likewise.
9160         (_ufc_set_bits): Likewise.
9161         (_ufc_clearmem): Likewise.
9162         (__init_des_r): Likewise.
9163         (shuffle_sb): Likewise.
9164         (shuffle_sb): Likewise.
9165         (_ufc_setup_salt_r): Likewise.
9166         (_ufc_mk_keytab_r): Likewise.
9167         (_ufc_dofinalperm_r): Likewise.
9168         (encrypt): Likewise.
9169         (__setkey_r): Likewise.
9170         (setkey): Likewise.
9171         * crypt/md5.c (md5_init_ctx): Likewise.
9172         (md5_read_ctx): Likewise.
9173         (md5_finish_ctx): Likewise.
9174         (md5_stream): Likewise.
9175         (md5_buffer): Likewise.
9176         (md5_process_bytes): Likewise.
9177         * crypt/sha256.c (__sha256_init_ctx): Likewise.
9178         (__sha256_finish_ctx): Likewise.
9179         (__sha256_process_bytes): Likewise.
9180         * crypt/sha512.c (__sha512_init_ctx): Likewise.
9181         (__sha512_finish_ctx): Likewise.
9182         (__sha512_process_bytes): Likewise.
9183         * ctype/isctype.c (__isctype): Likewise.
9184         * debug/backtrace.c (__backtrace): Likewise.
9185         * debug/backtracesymsfd.c (__backtrace_symbols_fd): Likewise.
9186         * debug/fgets_chk.c (__fgets_chk): Likewise.
9187         * debug/fgets_u_chk.c (__fgets_unlocked_chk): Likewise.
9188         * debug/memcpy_chk.c (__memcpy_chk): Likewise.
9189         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
9190         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
9191         * debug/memset_chk.c (__memset_chk): Likewise.
9192         * debug/strcat_chk.c (__strcat_chk): Likewise.
9193         * debug/strncat_chk.c (__strncat_chk): Likewise.
9194         * debug/strncpy_chk.c (__strncpy_chk): Likewise.
9195         * debug/vsprintf_chk.c (_IO_str_chk_overflow): Likewise.
9196         * dirent/dirfd.c (dirfd): Likewise.
9197         * dirent/getdents.c (__getdirentries): Likewise.
9198         * dirent/getdents64.c (getdirentries64): Likewise.
9199         * dirent/rewinddir.c (__rewinddir): Likewise.
9200         * dirent/seekdir.c (seekdir): Likewise.
9201         * dirent/telldir.c (telldir): Likewise.
9202         * elf/sln.c (makesymlinks): Likewise.
9203         (makesymlink): Likewise.
9204         * gmon/gmon.c (__moncontrol): Likewise.
9205         (__monstartup): Likewise.
9206         (write_hist): Likewise.
9207         (write_call_graph): Likewise.
9208         (write_bb_counts): Likewise.
9209         * grp/setgroups.c (setgroups): Likewise.
9210         * inet/inet_lnaof.c (inet_lnaof): Likewise.
9211         * inet/inet_net.c (inet_network): Likewise.
9212         * inet/inet_netof.c (inet_netof): Likewise.
9213         * inet/rcmd.c (rresvport_af): Likewise.
9214         (rresvport): Likewise.
9215         * io/access.c (__access): Likewise.
9216         * io/chdir.c (__chdir): Likewise.
9217         * io/chmod.c (__chmod): Likewise.
9218         * io/chown.c (__chown): Likewise.
9219         * io/close.c (__close): Likewise.
9220         * io/creat.c (creat): Likewise.
9221         * io/creat64.c (creat64): Likewise.
9222         * io/dup.c (__dup): Likewise.
9223         * io/dup2.c (__dup2): Likewise.
9224         * io/dup3.c (__dup3): Likewise.
9225         * io/euidaccess.c (__euidaccess): Likewise.
9226         * io/faccessat.c (faccessat): Likewise.
9227         * io/fchmod.c (__fchmod): Likewise.
9228         * io/fchmodat.c (fchmodat): Likewise.
9229         * io/fchown.c (__fchown): Likewise.
9230         * io/fchownat.c (fchownat): Likewise.
9231         * io/fcntl.c (__fcntl): Likewise.
9232         * io/flock.c (__flock): Likewise.
9233         * io/fts.c (fts_load): Likewise.
9234         (fts_close): Likewise.
9235         (fts_read): Likewise.
9236         (fts_set): Likewise.
9237         (fts_children): Likewise.
9238         (fts_build): Likewise.
9239         (fts_stat): Likewise.
9240         (fts_sort): Likewise.
9241         (fts_alloc): Likewise.
9242         (fts_lfree): Likewise.
9243         (fts_palloc): Likewise.
9244         (fts_padjust): Likewise.
9245         (fts_maxarglen): Likewise.
9246         (fts_safe_changedir): Likewise.
9247         * io/getwd.c (getwd): Likewise.
9248         * io/isatty.c (__isatty): Likewise.
9249         * io/lchown.c (__lchown): Likewise.
9250         * io/link.c (__link): Likewise.
9251         * io/linkat.c (linkat): Likewise.
9252         * io/lseek.c (__libc_lseek): Likewise.
9253         * io/mkdir.c (__mkdir): Likewise.
9254         * io/mkdirat.c (mkdirat): Likewise.
9255         * io/mkfifo.c (mkfifo): Likewise.
9256         * io/mkfifoat.c (mkfifoat): Likewise.
9257         * io/open.c (__libc_open): Likewise.
9258         * io/open64.c (__libc_open64): Likewise.
9259         * io/readlink.c (__readlink): Likewise.
9260         * io/readlinkat.c (readlinkat): Likewise.
9261         * io/rmdir.c (__rmdir): Likewise.
9262         * io/symlink.c (__symlink): Likewise.
9263         * io/symlinkat.c (symlinkat): Likewise.
9264         * io/ttyname.c (ttyname): Likewise.
9265         * io/ttyname_r.c (__ttyname_r): Likewise.
9266         * io/umask.c (__umask): Likewise.
9267         * io/unlink.c (__unlink): Likewise.
9268         * io/unlinkat.c (unlinkat): Likewise.
9269         * io/utime.c (utime): Likewise.
9270         * libio/clearerr.c (clearerr): Likewise.
9271         * libio/clearerr_u.c (clearerr_unlocked): Likewise.
9272         * libio/feof.c (_IO_feof): Likewise.
9273         * libio/feof_u.c (feof_unlocked): Likewise.
9274         * libio/ferror.c (_IO_ferror): Likewise.
9275         * libio/ferror_u.c (ferror_unlocked): Likewise.
9276         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
9277         * libio/fileno.c (__fileno): Likewise.
9278         * libio/fputc.c (fputc): Likewise.
9279         * libio/fputc_u.c (fputc_unlocked): Likewise.
9280         * libio/fputwc.c (fputwc): Likewise.
9281         * libio/fputwc_u.c (fputwc_unlocked): Likewise.
9282         * libio/freopen.c (freopen): Likewise.
9283         * libio/freopen64.c (freopen64): Likewise.
9284         * libio/fseek.c (fseek): Likewise.
9285         * libio/fseeko.c (fseeko): Likewise.
9286         * libio/fseeko64.c (fseeko64): Likewise.
9287         * libio/ftello.c (__ftello): Likewise.
9288         * libio/ftello64.c (ftello64): Likewise.
9289         * libio/fwide.c (fwide): Likewise.
9290         * libio/genops.c (_IO_un_link): Likewise.
9291         (_IO_link_in): Likewise.
9292         (_IO_least_marker): Likewise.
9293         (_IO_switch_to_main_get_area): Likewise.
9294         (_IO_switch_to_backup_area): Likewise.
9295         (_IO_switch_to_get_mode): Likewise.
9296         (_IO_free_backup_area): Likewise.
9297         (_IO_switch_to_put_mode): Likewise.
9298         (__overflow): Likewise.
9299         (__underflow): Likewise.
9300         (__uflow): Likewise.
9301         (_IO_setb): Likewise.
9302         (_IO_doallocbuf): Likewise.
9303         (_IO_default_underflow): Likewise.
9304         (_IO_default_uflow): Likewise.
9305         (_IO_default_xsputn): Likewise.
9306         (_IO_sgetn): Likewise.
9307         (_IO_default_xsgetn): Likewise.
9308         (_IO_sync): Likewise.
9309         (_IO_default_setbuf): Likewise.
9310         (_IO_default_seekpos): Likewise.
9311         (_IO_default_doallocate): Likewise.
9312         (_IO_init): Likewise.
9313         (_IO_old_init): Likewise.
9314         (_IO_default_sync): Likewise.
9315         (_IO_default_finish): Likewise.
9316         (_IO_default_seekoff): Likewise.
9317         (_IO_sputbackc): Likewise.
9318         (_IO_sungetc): Likewise.
9319         (_IO_set_column): Likewise.
9320         (_IO_set_column): Likewise.
9321         (_IO_adjust_column): Likewise.
9322         (_IO_get_column): Likewise.
9323         (_IO_init_marker): Likewise.
9324         (_IO_remove_marker): Likewise.
9325         (_IO_marker_difference): Likewise.
9326         (_IO_marker_delta): Likewise.
9327         (_IO_seekmark): Likewise.
9328         (_IO_unsave_markers): Likewise.
9329         (_IO_nobackup_pbackfail): Likewise.
9330         (_IO_default_pbackfail): Likewise.
9331         (_IO_default_seek): Likewise.
9332         (_IO_default_stat): Likewise.
9333         (_IO_default_read): Likewise.
9334         (_IO_default_write): Likewise.
9335         (_IO_default_showmanyc): Likewise.
9336         (_IO_default_imbue): Likewise.
9337         (_IO_iter_next): Likewise.
9338         (_IO_iter_file): Likewise.
9339         * libio/getc.c (_IO_getc): Likewise.
9340         * libio/getwc.c (_IO_getwc): Likewise.
9341         * libio/iofclose.c (_IO_new_fclose): Likewise.
9342         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
9343         * libio/iofflush.c (_IO_fflush): Likewise.
9344         * libio/iofflush_u.c (__fflush_unlocked): Likewise.
9345         * libio/iofgetpos.c (_IO_new_fgetpos): Likewise.
9346         * libio/iofgetpos64.c (_IO_new_fgetpos64): Likewise.
9347         * libio/iofgets.c (_IO_fgets): Likewise.
9348         * libio/iofgets_u.c (__fgets_unlocked): Likewise.
9349         * libio/iofgetws.c (fgetws): Likewise.
9350         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
9351         * libio/iofopen64.c (_IO_fopen64): Likewise.
9352         * libio/iofopncook.c (_IO_cookie_read): Likewise.
9353         (_IO_cookie_write): Likewise.
9354         (_IO_cookie_seek): Likewise.
9355         (_IO_cookie_close): Likewise.
9356         (_IO_cookie_seekoff): Likewise.
9357         (_IO_old_cookie_seek): Likewise.
9358         * libio/iofputs.c (_IO_fputs): Likewise.
9359         * libio/iofputs_u.c (__fputs_unlocked): Likewise.
9360         * libio/iofputws.c (fputws): Likewise.
9361         * libio/iofputws_u.c (fputws_unlocked): Likewise.
9362         * libio/iofread.c (_IO_fread): Likewise.
9363         * libio/iofread_u.c (__fread_unlocked): Likewise.
9364         * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
9365         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
9366         * libio/ioftell.c (_IO_ftell): Likewise.
9367         * libio/iofwrite.c (_IO_fwrite): Likewise.
9368         * libio/iogetdelim.c (_IO_getdelim): Likewise.
9369         * libio/iogets.c (_IO_gets): Likewise.
9370         * libio/iopadn.c (_IO_padn): Likewise.
9371         * libio/iopopen.c (_IO_new_proc_open): Likewise.
9372         (_IO_new_popen): Likewise.
9373         (_IO_new_proc_close): Likewise.
9374         * libio/ioputs.c (_IO_puts): Likewise.
9375         * libio/ioseekoff.c (_IO_seekoff_unlocked): Likewise.
9376         (_IO_seekoff): Likewise.
9377         * libio/ioseekpos.c (_IO_seekpos_unlocked): Likewise.
9378         (_IO_seekpos): Likewise.
9379         * libio/iosetbuffer.c (_IO_setbuffer): Likewise.
9380         * libio/iosetvbuf.c (_IO_setvbuf): Likewise.
9381         * libio/ioungetc.c (_IO_ungetc): Likewise.
9382         * libio/ioungetwc.c (ungetwc): Likewise.
9383         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
9384         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
9385         * libio/iowpadn.c (_IO_wpadn): Likewise.
9386         * libio/libc_fatal.c (__libc_fatal): Likewise.
9387         * libio/memstream.c (__open_memstream): Likewise.
9388         (_IO_mem_sync): Likewise.
9389         (_IO_mem_finish): Likewise.
9390         * libio/oldfileops.c (_IO_old_file_init): Likewise.
9391         (_IO_old_file_close_it): Likewise.
9392         (_IO_old_file_finish): Likewise.
9393         (_IO_old_file_fopen): Likewise.
9394         (_IO_old_file_attach): Likewise.
9395         (_IO_old_file_setbuf): Likewise.
9396         (_IO_old_do_write): Likewise.
9397         (old_do_write): Likewise.
9398         (_IO_old_file_underflow): Likewise.
9399         (_IO_old_file_overflow): Likewise.
9400         (_IO_old_file_sync): Likewise.
9401         (_IO_old_file_seekoff): Likewise.
9402         (_IO_old_file_write): Likewise.
9403         (_IO_old_file_xsputn): Likewise.
9404         * libio/oldiofclose.c (_IO_old_fclose): Likewise.
9405         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
9406         * libio/oldiofgetpos.c (_IO_old_fgetpos): Likewise.
9407         * libio/oldiofgetpos64.c (_IO_old_fgetpos64): Likewise.
9408         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
9409         * libio/oldiofsetpos.c (_IO_old_fsetpos): Likewise.
9410         * libio/oldiofsetpos64.c (_IO_old_fsetpos64): Likewise.
9411         * libio/oldiopopen.c (_IO_old_proc_open): Likewise.
9412         (_IO_old_popen): Likewise.
9413         (_IO_old_proc_close): Likewise.
9414         * libio/oldpclose.c (__old_pclose): Likewise.
9415         * libio/pclose.c (__new_pclose): Likewise.
9416         * libio/peekc.c (_IO_peekc_locked): Likewise.
9417         * libio/putc.c (_IO_putc): Likewise.
9418         * libio/putc_u.c (putc_unlocked): Likewise.
9419         * libio/putchar.c (putchar): Likewise.
9420         * libio/putchar_u.c (putchar_unlocked): Likewise.
9421         * libio/putwc.c (putwc): Likewise.
9422         * libio/putwc_u.c (putwc_unlocked): Likewise.
9423         * libio/putwchar.c (putwchar): Likewise.
9424         * libio/putwchar_u.c (putwchar_unlocked): Likewise.
9425         * libio/rewind.c (rewind): Likewise.
9426         * libio/setbuf.c (setbuf): Likewise.
9427         * libio/setlinebuf.c (setlinebuf): Likewise.
9428         * libio/vasprintf.c (_IO_vasprintf): Likewise.
9429         * libio/vscanf.c (_IO_vscanf): Likewise.
9430         * libio/vsnprintf.c (_IO_strn_overflow): Likewise.
9431         * libio/vswprintf.c (_IO_wstrn_overflow): Likewise.
9432         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
9433         * libio/wgenops.c (_IO_least_wmarker): Likewise.
9434         (_IO_switch_to_main_wget_area): Likewise.
9435         (_IO_switch_to_wbackup_area): Likewise.
9436         (_IO_wsetb): Likewise.
9437         (_IO_wdefault_pbackfail): Likewise.
9438         (_IO_wdefault_finish): Likewise.
9439         (_IO_wdefault_uflow): Likewise.
9440         (__woverflow): Likewise.
9441         (__wuflow): Likewise.
9442         (__wunderflow): Likewise.
9443         (_IO_wdefault_xsputn): Likewise.
9444         (_IO_wdefault_xsgetn): Likewise.
9445         (_IO_wdoallocbuf): Likewise.
9446         (_IO_wdefault_doallocate): Likewise.
9447         (_IO_switch_to_wget_mode): Likewise.
9448         (_IO_free_wbackup_area): Likewise.
9449         (_IO_switch_to_wput_mode): Likewise.
9450         (_IO_sputbackwc): Likewise.
9451         (_IO_sungetwc): Likewise.
9452         (_IO_adjust_wcolumn): Likewise.
9453         (_IO_init_wmarker): Likewise.
9454         (_IO_wmarker_delta): Likewise.
9455         (_IO_seekwmark): Likewise.
9456         (_IO_unsave_wmarkers): Likewise.
9457         * libio/wmemstream.c (open_wmemstream): Likewise.
9458         (_IO_wmem_sync): Likewise.
9459         (_IO_wmem_finish): Likewise.
9460         * locale/nl_langinfo.c (nl_langinfo): Likewise.
9461         * locale/nl_langinfo_l.c (__nl_langinfo_l): Likewise.
9462         * locale/programs/simple-hash.c (init_hash): Likewise.
9463         (delete_hash): Likewise.
9464         (insert_entry): Likewise.
9465         (set_entry): Likewise.
9466         (next_prime): Likewise.
9467         (is_prime): Likewise.
9468         * locale/programs/xmalloc.c (fixup_null_alloc): Likewise.
9469         (xmalloc): Likewise.
9470         (xrealloc): Likewise.
9471         * locale/programs/xstrdup.c (xstrdup): Likewise.
9472         * localedata/collate-test.c (xstrcoll): Likewise.
9473         * localedata/xfrm-test.c (xstrcmp): Likewise.
9474         * login/getlogin_r.c (__getlogin_r): Likewise.
9475         * login/getpt.c (__posix_openpt): Likewise.
9476         * login/login_tty.c (login_tty): Likewise.
9477         * login/setlogin.c (setlogin): Likewise.
9478         * mach/msg-destroy.c (__mach_msg_destroy): Likewise.
9479         (mach_msg_destroy_port): Likewise.
9480         (mach_msg_destroy_memory): Likewise.
9481         * malloc/mcheck.c (flood): Likewise.
9482         * misc/acct.c (acct): Likewise.
9483         * misc/brk.c (__brk): Likewise.
9484         * misc/chflags.c (chflags): Likewise.
9485         * misc/chroot.c (chroot): Likewise.
9486         * misc/fchflags.c (fchflags): Likewise.
9487         * misc/fstab.c (getfsspec): Likewise.
9488         (getfsfile): Likewise.
9489         * misc/fsync.c (fsync): Likewise.
9490         * misc/ftruncate.c (__ftruncate): Likewise.
9491         * misc/ftruncate64.c (__ftruncate64): Likewise.
9492         * misc/getdomain.c (getdomainname): Likewise.
9493         (getdomainname): Likewise.
9494         * misc/gethostname.c (__gethostname): Likewise.
9495         * misc/getpass.c (getpass): Likewise.
9496         * misc/getttyent.c (skip): Likewise.
9497         (value): Likewise.
9498         * misc/gtty.c (gtty): Likewise.
9499         * misc/hsearch.c (hsearch): Likewise.
9500         (hcreate): Likewise.
9501         * misc/hsearch_r.c (__hcreate_r): Likewise.
9502         (__hdestroy_r): Likewise.
9503         * misc/ioctl.c (__ioctl): Likewise.
9504         * misc/mkdtemp.c (mkdtemp): Likewise.
9505         * misc/mkostemp.c (mkostemp): Likewise.
9506         * misc/mkostemp64.c (mkostemp64): Likewise.
9507         * misc/mkostemps.c (mkostemps): Likewise.
9508         * misc/mkostemps64.c (mkostemps64): Likewise.
9509         * misc/mkstemp.c (mkstemp): Likewise.
9510         * misc/mkstemp64.c (mkstemp64): Likewise.
9511         * misc/mkstemps.c (mkstemps): Likewise.
9512         * misc/mkstemps64.c (mkstemps64): Likewise.
9513         * misc/mktemp.c (__mktemp): Likewise.
9514         * misc/preadv.c (preadv): Likewise.
9515         * misc/preadv64.c (preadv64): Likewise.
9516         * misc/pwritev.c (pwritev): Likewise.
9517         * misc/pwritev64.c (pwritev64): Likewise.
9518         * misc/readv.c (__readv): Likewise.
9519         * misc/revoke.c (revoke): Likewise.
9520         * misc/setdomain.c (setdomainname): Likewise.
9521         * misc/setegid.c (setegid): Likewise.
9522         * misc/seteuid.c (seteuid): Likewise.
9523         * misc/sethostid.c (sethostid): Likewise.
9524         * misc/sethostname.c (sethostname): Likewise.
9525         * misc/setregid.c (__setregid): Likewise.
9526         * misc/setreuid.c (__setreuid): Likewise.
9527         * misc/sstk.c (sstk): Likewise.
9528         * misc/stty.c (stty): Likewise.
9529         * misc/syscall.c (syscall): Likewise.
9530         * misc/syslog.c (setlogmask): Likewise.
9531         * misc/truncate.c (__truncate): Likewise.
9532         * misc/truncate64.c (truncate64): Likewise.
9533         * misc/ualarm.c (ualarm): Likewise.
9534         * misc/usleep.c (usleep): Likewise.
9535         * misc/ustat.c (ustat): Likewise.
9536         * misc/writev.c (__writev): Likewise.
9537         * nptl/cleanup_compat.c (_pthread_cleanup_pop): Likewise.
9538         * nptl/old_pthread_cond_broadcast.c
9539         (__pthread_cond_broadcast_2_0): Likewise.
9540         * nptl/old_pthread_cond_destroy.c (__pthread_cond_destroy_2_0):
9541         Likewise.
9542         * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0):
9543         Likewise.
9544         * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0):
9545         Likewise.
9546         * nptl/pt-raise.c (raise): Likewise.
9547         * nptl/pthread_barrier_destroy.c (pthread_barrier_destroy):
9548         Likewise.
9549         * nptl/pthread_barrier_wait.c (__pthread_barrier_wait): Likewise.
9550         * nptl/pthread_barrierattr_destroy.c
9551         (pthread_barrierattr_destroy): Likewise.
9552         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
9553         Likewise.
9554         * nptl/pthread_barrierattr_setpshared.c
9555         (pthread_barrierattr_setpshared): Likewise.
9556         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
9557         Likewise.
9558         * nptl/pthread_cond_destroy.c (__pthread_cond_destroy): Likewise.
9559         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
9560         * nptl/pthread_cond_signal.c (__pthread_cond_signal): Likewise.
9561         * nptl/pthread_condattr_destroy.c (__pthread_condattr_destroy):
9562         Likewise.
9563         * nptl/pthread_condattr_getclock.c (pthread_condattr_getclock):
9564         Likewise.
9565         * nptl/pthread_condattr_getpshared.c
9566         (pthread_condattr_getpshared): Likewise.
9567         * nptl/pthread_condattr_init.c (__pthread_condattr_init):
9568         Likewise.
9569         * nptl/pthread_condattr_setpshared.c
9570         (pthread_condattr_setpshared): Likewise.
9571         * nptl/pthread_detach.c (pthread_detach): Likewise.
9572         * nptl/pthread_equal.c (__pthread_equal): Likewise.
9573         * nptl/pthread_getcpuclockid.c (pthread_getcpuclockid): Likewise.
9574         * nptl/pthread_getspecific.c (__pthread_getspecific): Likewise.
9575         * nptl/pthread_key_delete.c (pthread_key_delete): Likewise.
9576         * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent):
9577         Likewise.
9578         * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
9579         Likewise.
9580         * nptl/pthread_mutex_getprioceiling.c
9581         (pthread_mutex_getprioceiling): Likewise.
9582         * nptl/pthread_mutexattr_destroy.c (__pthread_mutexattr_destroy):
9583         Likewise.
9584         * nptl/pthread_mutexattr_getprotocol.c
9585         (pthread_mutexattr_getprotocol): Likewise.
9586         * nptl/pthread_mutexattr_getpshared.c
9587         (pthread_mutexattr_getpshared): Likewise.
9588         * nptl/pthread_mutexattr_getrobust.c
9589         (pthread_mutexattr_getrobust): Likewise.
9590         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
9591         Likewise.
9592         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init):
9593         Likewise.
9594         * nptl/pthread_mutexattr_setprioceiling.c
9595         (pthread_mutexattr_setprioceiling): Likewise.
9596         * nptl/pthread_mutexattr_setprotocol.c
9597         (pthread_mutexattr_setprotocol): Likewise.
9598         * nptl/pthread_mutexattr_setpshared.c
9599         (pthread_mutexattr_setpshared): Likewise.
9600         * nptl/pthread_mutexattr_setrobust.c
9601         (pthread_mutexattr_setrobust): Likewise.
9602         * nptl/pthread_mutexattr_settype.c (__pthread_mutexattr_settype):
9603         Likewise.
9604         * nptl/pthread_rwlock_destroy.c (__pthread_rwlock_destroy):
9605         Likewise.
9606         * nptl/pthread_rwlockattr_destroy.c (pthread_rwlockattr_destroy):
9607         Likewise.
9608         * nptl/pthread_rwlockattr_getkind_np.c
9609         (pthread_rwlockattr_getkind_np): Likewise.
9610         * nptl/pthread_rwlockattr_getpshared.c
9611         (pthread_rwlockattr_getpshared): Likewise.
9612         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init):
9613         Likewise.
9614         * nptl/pthread_rwlockattr_setkind_np.c
9615         (pthread_rwlockattr_setkind_np): Likewise.
9616         * nptl/pthread_rwlockattr_setpshared.c
9617         (pthread_rwlockattr_setpshared): Likewise.
9618         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate):
9619         Likewise.
9620         * nptl/pthread_setcanceltype.c (__pthread_setcanceltype):
9621         Likewise.
9622         * nptl/pthread_setconcurrency.c (pthread_setconcurrency):
9623         Likewise.
9624         * nptl/pthread_setschedprio.c (pthread_setschedprio): Likewise.
9625         * nptl/pthread_setspecific.c (__pthread_setspecific): Likewise.
9626         * nptl/pthread_spin_destroy.c (pthread_spin_destroy): Likewise.
9627         * nptl/pthread_tryjoin.c (pthread_tryjoin_np): Likewise.
9628         * nptl/sem_close.c (sem_close): Likewise.
9629         * nptl/sem_destroy.c (__new_sem_destroy): Likewise.
9630         * nptl/sem_init.c (__old_sem_init): Likewise.
9631         * nptl/sigaction.c (__sigaction): Likewise.
9632         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
9633         * posix/_exit.c (_exit): Likewise.
9634         * posix/alarm.c (alarm): Likewise.
9635         * posix/confstr.c (confstr): Likewise.
9636         * posix/fpathconf.c (__fpathconf): Likewise.
9637         * posix/getgroups.c (__getgroups): Likewise.
9638         * posix/getpgid.c (__getpgid): Likewise.
9639         * posix/group_member.c (__group_member): Likewise.
9640         * posix/pathconf.c (__pathconf): Likewise.
9641         * posix/sched_getaffinity.c (sched_getaffinity): Likewise.
9642         * posix/sched_setaffinity.c (sched_setaffinity): Likewise.
9643         * posix/setgid.c (__setgid): Likewise.
9644         * posix/setpgid.c (__setpgid): Likewise.
9645         * posix/setuid.c (__setuid): Likewise.
9646         * posix/sleep.c (__sleep): Likewise.
9647         * posix/sysconf.c (__sysconf): Likewise.
9648         * posix/times.c (__times): Likewise.
9649         * posix/uname.c (__uname): Likewise.
9650         * posix/waitid.c (__waitid): Likewise.
9651         * pwd/getpw.c (__getpw): Likewise.
9652         * resolv/base64.c (b64_pton): Likewise.
9653         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
9654         * resolv/gethnamaddr.c (Dprintf): Likewise.
9655         (gethostbyname): Likewise.
9656         (gethostbyname2): Likewise.
9657         (gethostbyaddr): Likewise.
9658         (_sethtent): Likewise.
9659         (_gethtbyname): Likewise.
9660         (_gethtbyname2): Likewise.
9661         (_gethtbyaddr): Likewise.
9662         (map_v4v6_address): Likewise.
9663         (map_v4v6_hostent): Likewise.
9664         (addrsort): Likewise.
9665         (ht_sethostent): Likewise.
9666         (ht_gethostbyname): Likewise.
9667         (ht_gethostbyaddr): Likewise.
9668         * resolv/inet_net_ntop.c (inet_net_ntop): Likewise.
9669         (inet_net_ntop_ipv4): Likewise.
9670         * resolv/inet_neta.c (inet_neta): Likewise.
9671         * resolv/inet_ntop.c (inet_ntop): Likewise.
9672         (inet_ntop4): Likewise.
9673         (inet_ntop6): Likewise.
9674         * resolv/inet_pton.c (__inet_pton): Likewise.
9675         (inet_pton4): Likewise.
9676         (inet_pton6): Likewise.
9677         * resolv/res_debug.c (loc_aton): Likewise.
9678         (loc_ntoa): Likewise.
9679         * resource/getpriority.c (__getpriority): Likewise.
9680         * resource/getrusage.c (__getrusage): Likewise.
9681         * resource/nice.c (nice): Likewise.
9682         * resource/setpriority.c (__setpriority): Likewise.
9683         * resource/setrlimit64.c (setrlimit64): Likewise.
9684         * resource/vlimit.c (vlimit): Likewise.
9685         * resource/vtimes.c (vtimes): Likewise.
9686         * rt/aio_error.c (aio_error): Likewise.
9687         * rt/aio_return.c (aio_return): Likewise.
9688         * rt/aio_sigqueue.c (__aio_sigqueue): Likewise.
9689         * signal/kill.c (__kill): Likewise.
9690         * signal/killpg.c (killpg): Likewise.
9691         * signal/raise.c (raise): Likewise.
9692         * signal/sigaction.c (__sigaction): Likewise.
9693         * signal/sigaddset.c (sigaddset): Likewise.
9694         * signal/sigaltstack.c (sigaltstack): Likewise.
9695         * signal/sigandset.c (sigandset): Likewise.
9696         * signal/sigblock.c (__sigblock): Likewise.
9697         * signal/sigdelset.c (sigdelset): Likewise.
9698         * signal/sigempty.c (sigemptyset): Likewise.
9699         * signal/sigfillset.c (sigfillset): Likewise.
9700         * signal/sighold.c (sighold): Likewise.
9701         * signal/sigignore.c (sigignore): Likewise.
9702         * signal/sigintr.c (siginterrupt): Likewise.
9703         * signal/sigisempty.c (sigisemptyset): Likewise.
9704         * signal/sigismem.c (sigismember): Likewise.
9705         * signal/signal.c (signal): Likewise.
9706         * signal/sigorset.c (sigorset): Likewise.
9707         * signal/sigpause.c (__sigpause): Likewise.
9708         * signal/sigpending.c (sigpending): Likewise.
9709         * signal/sigprocmask.c (__sigprocmask): Likewise.
9710         * signal/sigrelse.c (sigrelse): Likewise.
9711         * signal/sigreturn.c (__sigreturn): Likewise.
9712         * signal/sigset.c (sigset): Likewise.
9713         * signal/sigsetmask.c (__sigsetmask): Likewise.
9714         * signal/sigstack.c (sigstack): Likewise.
9715         * signal/sigsuspend.c (__sigsuspend): Likewise.
9716         * signal/sigvec.c (sigvec_wrapper_handler): Likewise.
9717         * signal/sysv_signal.c (__sysv_signal): Likewise.
9718         * socket/accept.c (accept): Likewise.
9719         * socket/accept4.c (__libc_accept4): Likewise.
9720         * socket/bind.c (__bind): Likewise.
9721         * socket/connect.c (__connect): Likewise.
9722         * socket/getpeername.c (getpeername): Likewise.
9723         * socket/getsockname.c (__getsockname): Likewise.
9724         * socket/getsockopt.c (getsockopt): Likewise.
9725         * socket/listen.c (__listen): Likewise.
9726         * socket/recv.c (__recv): Likewise.
9727         * socket/recvmsg.c (__recvmsg): Likewise.
9728         * socket/send.c (__send): Likewise.
9729         * socket/sendmsg.c (__sendmsg): Likewise.
9730         * socket/shutdown.c (shutdown): Likewise.
9731         * socket/sockatmark.c (sockatmark): Likewise.
9732         * socket/socket.c (__socket): Likewise.
9733         * stdio-common/ctermid.c (ctermid): Likewise.
9734         * stdio-common/cuserid.c (cuserid): Likewise.
9735         * stdio-common/printf-prs.c (parse_printf_format): Likewise.
9736         * stdio-common/remove.c (remove): Likewise.
9737         * stdio-common/rename.c (rename): Likewise.
9738         * stdio-common/renameat.c (renameat): Likewise.
9739         * stdio-common/tempname.c (__gen_tempname): Likewise.
9740         * stdio-common/xbug.c (InitBuffer): Likewise.
9741         (AppendToBuffer): Likewise.
9742         (ReadFile): Likewise.
9743         * stdlib/a64l.c (a64l): Likewise.
9744         * stdlib/drand48_r.c (drand48_r): Likewise.
9745         * stdlib/getcontext.c (getcontext): Likewise.
9746         * stdlib/getenv.c (getenv): Likewise.
9747         * stdlib/l64a.c (l64a): Likewise.
9748         * stdlib/llabs.c (llabs): Likewise.
9749         * stdlib/lldiv.c (lldiv): Likewise.
9750         * stdlib/lrand48_r.c (lrand48_r): Likewise.
9751         * stdlib/mrand48_r.c (mrand48_r): Likewise.
9752         * stdlib/putenv.c (putenv): Likewise.
9753         * stdlib/random.c (__srandom): Likewise.
9754         (__initstate): Likewise.
9755         (__setstate): Likewise.
9756         * stdlib/random_r.c (__srandom_r): Likewise.
9757         (__setstate_r): Likewise.
9758         (__random_r): Likewise.
9759         * stdlib/secure-getenv.c (__libc_secure_getenv): Likewise.
9760         * stdlib/setcontext.c (setcontext): Likewise.
9761         * stdlib/setenv.c (setenv): Likewise.
9762         (unsetenv): Likewise.
9763         * stdlib/srand48.c (srand48): Likewise.
9764         * stdlib/srand48_r.c (__srand48_r): Likewise.
9765         * stdlib/swapcontext.c (swapcontext): Likewise.
9766         * stdlib/system.c (__libc_system): Likewise.
9767         * stdlib/tst-strtod.c (expand): Likewise.
9768         * stdlib/tst-strtol.c (expand): Likewise.
9769         * stdlib/tst-strtoll.c (expand): Likewise.
9770         * streams/fattach.c (fattach): Likewise.
9771         * streams/fdetach.c (fdetach): Likewise.
9772         * streams/getmsg.c (getmsg): Likewise.
9773         * streams/isastream.c (isastream): Likewise.
9774         * string/ffs.c (__ffs): Likewise.
9775         * string/ffsll.c (ffsll): Likewise.
9776         * string/memcmp.c (memcmp_common_alignment): Likewise.
9777         (memcmp_not_common_alignment): Likewise.
9778         (MEMCMP): Likewise.
9779         * string/memcpy.c (memcpy): Likewise.
9780         * string/memmove.c (MEMMOVE): Likewise.
9781         * string/memset.c (memset): Likewise.
9782         * string/rawmemchr.c (RAWMEMCHR): Likewise.
9783         * string/strchrnul.c (STRCHRNUL): Likewise.
9784         * string/strerror.c (strerror): Likewise.
9785         * string/strndup.c (__strndup): Likewise.
9786         * string/strverscmp.c (__strverscmp): Likewise.
9787         * sunrpc/clnt_raw.c (clntraw_freeres): Likewise.
9788         * sunrpc/clnt_tcp.c (clnttcp_geterr): Likewise.
9789         (clnttcp_freeres): Likewise.
9790         * sunrpc/clnt_unix.c (clntunix_freeres): Likewise.
9791         * sunrpc/pmap_prot.c (xdr_pmap): Likewise.
9792         * sunrpc/pmap_prot2.c (xdr_pmaplist): Likewise.
9793         * sunrpc/pmap_rmt.c (xdr_rmtcallres): Likewise.
9794         * sunrpc/rpc_prot.c (xdr_replymsg): Likewise.
9795         (xdr_callhdr): Likewise.
9796         * sunrpc/rpcinfo.c (udpping): Likewise.
9797         (tcpping): Likewise.
9798         (pstatus): Likewise.
9799         (pmapdump): Likewise.
9800         (brdcst): Likewise.
9801         (deletereg): Likewise.
9802         (getprognum): Likewise.
9803         (getvers): Likewise.
9804         (get_inet_address): Likewise.
9805         * sunrpc/svc_raw.c (svcraw_recv): Likewise.
9806         * sunrpc/svc_udp.c (svcudp_create): Likewise.
9807         (svcudp_stat): Likewise.
9808         (svcudp_recv): Likewise.
9809         (svcudp_reply): Likewise.
9810         (svcudp_getargs): Likewise.
9811         (svcudp_freeargs): Likewise.
9812         (svcudp_destroy): Likewise.
9813         * sunrpc/xdr.c (xdr_bytes): Likewise.
9814         (xdr_netobj): Likewise.
9815         (xdr_string): Likewise.
9816         (xdr_wrapstring): Likewise.
9817         * sunrpc/xdr_float.c (xdr_float): Likewise.
9818         (xdr_double): Likewise.
9819         * sunrpc/xdr_mem.c (xdrmem_setpos): Likewise.
9820         * sunrpc/xdr_ref.c (xdr_pointer): Likewise.
9821         * sysvipc/ftok.c (ftok): Likewise.
9822         * sysvipc/msgctl.c (msgctl): Likewise.
9823         * sysvipc/msgget.c (msgget): Likewise.
9824         * sysvipc/msgrcv.c (msgrcv): Likewise.
9825         * sysvipc/msgsnd.c (msgsnd): Likewise.
9826         * sysvipc/semget.c (semget): Likewise.
9827         * sysvipc/semop.c (semop): Likewise.
9828         * sysvipc/shmat.c (shmat): Likewise.
9829         * sysvipc/shmctl.c (shmctl): Likewise.
9830         * sysvipc/shmdt.c (shmdt): Likewise.
9831         * sysvipc/shmget.c (shmget): Likewise.
9832         * termios/cfmakeraw.c (cfmakeraw): Likewise.
9833         * termios/speed.c (cfgetospeed): Likewise.
9834         (cfgetispeed): Likewise.
9835         (cfsetospeed): Likewise.
9836         (cfsetispeed): Likewise.
9837         * termios/tcflow.c (tcflow): Likewise.
9838         * termios/tcflush.c (tcflush): Likewise.
9839         * termios/tcgetattr.c (__tcgetattr): Likewise.
9840         * termios/tcgetpgrp.c (tcgetpgrp): Likewise.
9841         * termios/tcgetsid.c (tcgetsid): Likewise.
9842         * termios/tcsendbrk.c (tcsendbreak): Likewise.
9843         * termios/tcsetpgrp.c (tcsetpgrp): Likewise.
9844         * time/adjtime.c (__adjtime): Likewise.
9845         * time/dysize.c (dysize): Likewise.
9846         * time/ftime.c (ftime): Likewise.
9847         * time/getitimer.c (__getitimer): Likewise.
9848         * time/gettimeofday.c (__gettimeofday): Likewise.
9849         * time/gmtime.c (__gmtime_r): Likewise.
9850         (gmtime): Likewise.
9851         * time/localtime.c (__localtime_r): Likewise.
9852         (localtime): Likewise.
9853         * time/offtime.c (__offtime): Likewise.
9854         * time/settimeofday.c (__settimeofday): Likewise.
9855         * time/stime.c (stime): Likewise.
9856         * time/strftime_l.c (tm_diff): Likewise.
9857         (iso_week_days): Likewise.
9858         * time/strptime.c (strptime): Likewise.
9859         * time/time.c (time): Likewise.
9860         * time/timespec_get.c (timespec_get): Likewise.
9861         * time/tzset.c (tzset_internal): Likewise.
9862         (compute_change): Likewise.
9863         (__tz_compute): Likewise.
9864         * wcsmbs/btowc.c (__btowc): Likewise.
9865         * wcsmbs/mbrlen.c (__mbrlen): Likewise.
9866         * wcsmbs/mbsinit.c (__mbsinit): Likewise.
9867         * wcsmbs/mbsrtowcs.c (__mbsrtowcs): Likewise.
9868         * wcsmbs/wcpcpy.c (__wcpcpy): Likewise.
9869         * wcsmbs/wcpncpy.c (__wcpncpy): Likewise.
9870         * wcsmbs/wcscat.c (__wcscat): Likewise.
9871         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
9872         * wcsmbs/wcscmp.c (WCSCMP): Likewise.
9873         * wcsmbs/wcscpy.c (WCSCPY): Likewise.
9874         * wcsmbs/wcscspn.c (wcscspn): Likewise.
9875         * wcsmbs/wcsdup.c (wcsdup): Likewise.
9876         * wcsmbs/wcslen.c (__wcslen): Likewise.
9877         * wcsmbs/wcsncat.c (WCSNCAT): Likewise.
9878         * wcsmbs/wcsncmp.c (WCSNCMP): Likewise.
9879         * wcsmbs/wcsncpy.c (__wcsncpy): Likewise.
9880         * wcsmbs/wcsnlen.c (__wcsnlen): Likewise.
9881         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
9882         * wcsmbs/wcsrchr.c (WCSRCHR): Likewise.
9883         * wcsmbs/wcsspn.c (wcsspn): Likewise.
9884         * wcsmbs/wcsstr.c (wcsstr): Likewise.
9885         * wcsmbs/wcstok.c (wcstok): Likewise.
9886         * wcsmbs/wctob.c (wctob): Likewise.
9887         * wcsmbs/wmemchr.c (__wmemchr): Likewise.
9888         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
9889         * wcsmbs/wmemcpy.c (__wmemcpy): Likewise.
9890         * wcsmbs/wmemmove.c (__wmemmove): Likewise.
9891         * wcsmbs/wmempcpy.c (__wmempcpy): Likewise.
9892         * wcsmbs/wmemset.c (__wmemset): Likewise.
9893         * wctype/wcfuncs.c (__towlower): Likewise.
9894         (__towupper): Likewise.
9895
9896         * sysdeps/unix/sysv/linux/i386/lowlevellock.h
9897         (lll_unlock_elision): Add adapt_count parameter.
9898
9899 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
9900
9901         * sysdeps/nptl/configure.ac: Do not give errors based on the
9902         results of top-level configure tests.
9903         * sysdeps/nptl/configure: Regenerated.
9904
9905         * configure.ac (libc_cv_Bgroup): Remove configure test.
9906         * configure: Regenerated.
9907         * config.make.in (have-Bgroup): Remove variable.
9908
9909         * configure.ac (sizeof_long_double): Remove configure test.
9910         * configure: Regenerated.
9911         * config.make.in (sizeof-long-double): Remove variable.
9912
9913         * configure.ac (libc_cv_gcc_exceptions): Remove configure test.
9914         * configure: Regenerated.
9915         * sysdeps/arm/configure.ac (libc_cv_gcc_exceptions): Do not set
9916         variable.
9917         (exceptions): Likewise.
9918         * sysdeps/arm/configure: Regenerated.
9919         * config.make.in (exceptions): Remove variable.
9920         * Makeconfig (uses-callbacks): Use -fexceptions instead of
9921         $(exceptions).
9922         * debug/Makefile (CFLAGS-dprintf_chk.c): Likewise.
9923         (CFLAGS-vdprintf_chk.c): Likewise.
9924         (CFLAGS-printf_chk.c): Likewise.
9925         (CFLAGS-fprintf_chk.c): Likewise.
9926         (CFLAGS-vprintf_chk.c): Likewise.
9927         (CFLAGS-vfprintf_chk.c): Likewise.
9928         (CFLAGS-gets_chk.c): Likewise.
9929         (CFLAGS-fgets_chk.c): Likewise.
9930         (CFLAGS-fgets_u_chk.c): Likewise.
9931         (CFLAGS-fread_chk.c): Likewise.
9932         (CFLAGS-fread_u_chk.c): Likewise.
9933         (CFLAGS-wprintf_chk.c): Likewise.
9934         (CFLAGS-fwprintf_chk.c): Likewise.
9935         (CFLAGS-vwprintf_chk.c): Likewise.
9936         (CFLAGS-vfwprintf_chk.c): Likewise.
9937         (CFLAGS-fgetws_chk.c): Likewise.
9938         (CFLAGS-fgetws_u_chk.c): Likewise.
9939         * libio/Makefile (CFLAGS-fileops.c): Likewise.
9940         (CFLAGS-fputc.c): Likewise.
9941         (CFLAGS-fputwc.c): Likewise.
9942         (CFLAGS-freopen64.c): Likewise.
9943         (CFLAGS-freopen.c): Likewise.
9944         (CFLAGS-fseek.c): Likewise.
9945         (CFLAGS-fseeko64.c): Likewise.
9946         (CFLAGS-fseeko.c): Likewise.
9947         (CFLAGS-ftello64.c): Likewise.
9948         (CFLAGS-ftello.c): Likewise.
9949         (CFLAGS-fwide.c): Likewise.
9950         (CFLAGS-genops.c): Likewise.
9951         (CFLAGS-getc.c): Likewise.
9952         (CFLAGS-getchar.c): Likewise.
9953         (CFLAGS-getwc.c): Likewise.
9954         (CFLAGS-getwchar.c): Likewise.
9955         (CFLAGS-iofclose.c): Likewise.
9956         (CFLAGS-iofflush.c): Likewise.
9957         (CFLAGS-iofgetpos64.c): Likewise.
9958         (CFLAGS-iofgetpos.c): Likewise.
9959         (CFLAGS-iofgets.c): Likewise.
9960         (CFLAGS-iofgetws.c): Likewise.
9961         (CFLAGS-iofputs.c): Likewise.
9962         (CFLAGS-iofputws.c): Likewise.
9963         (CFLAGS-iofread.c): Likewise.
9964         (CFLAGS-iofsetpos64.c): Likewise.
9965         (CFLAGS-iofsetpos.c): Likewise.
9966         (CFLAGS-ioftell.c): Likewise.
9967         (CFLAGS-iofwrite.c): Likewise.
9968         (CFLAGS-iogetdelim.c): Likewise.
9969         (CFLAGS-iogetline.c): Likewise.
9970         (CFLAGS-iogets.c): Likewise.
9971         (CFLAGS-iogetwline.c): Likewise.
9972         (CFLAGS-ioputs.c): Likewise.
9973         (CFLAGS-ioseekoff.c): Likewise.
9974         (CFLAGS-ioseekpos.c): Likewise.
9975         (CFLAGS-iosetbuffer.c): Likewise.
9976         (CFLAGS-iosetvbuf.c): Likewise.
9977         (CFLAGS-ioungetc.c): Likewise.
9978         (CFLAGS-ioungetwc.c): Likewise.
9979         (CFLAGS-oldfileops.c): Likewise.
9980         (CFLAGS-oldiofclose.c): Likewise.
9981         (CFLAGS-oldiofgetpos64.c): Likewise.
9982         (CFLAGS-oldiofgetpos.c): Likewise.
9983         (CFLAGS-oldiofsetpos64.c): Likewise.
9984         (CFLAGS-oldiofsetpos.c): Likewise.
9985         (CFLAGS-peekc.c): Likewise.
9986         (CFLAGS-putc.c): Likewise.
9987         (CFLAGS-putchar.c): Likewise.
9988         (CFLAGS-putwc.c): Likewise.
9989         (CFLAGS-putwchar.c): Likewise.
9990         (CFLAGS-rewind.c): Likewise.
9991         (CFLAGS-wfileops.c): Likewise.
9992         (CFLAGS-wgenops.c): Likewise.
9993         (CFLAGS-oldiofopen.c): Likewise.
9994         (CFLAGS-iofopen.c): Likewise.
9995         (CFLAGS-iofopen64.c): Likewise.
9996         (CFLAGS-oldtmpfile.c): Likewise.
9997         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
9998         (CFLAGS-fprintf.c): Likewise.
9999         (CFLAGS-printf.c): Likewise.
10000         (CFLAGS-vfwprintf.c): Likewise.
10001         (CFLAGS-vfscanf.c): Likewise.
10002         (CFLAGS-vfwscanf.c): Likewise.
10003         (CFLAGS-fscanf.c): Likewise.
10004         (CFLAGS-scanf.c): Likewise.
10005         (CFLAGS-isoc99_vfscanf.c): Likewise.
10006         (CFLAGS-isoc99_vscanf.c): Likewise.
10007         (CFLAGS-isoc99_fscanf.c): Likewise.
10008         (CFLAGS-isoc99_scanf.c): Likewise.
10009         * wcsmbs/Makefile (CFLAGS-isoc99_wscanf.c): Likewise.
10010         (CFLAGS-isoc99_fwscanf.c): Likewise.
10011         (CFLAGS-isoc99_vwscanf.c): Likewise.
10012         (CFLAGS-isoc99_vfwscanf.c): Likewise.
10013
10014         * io/test-lfs.c (do_prepare): Do not call add_temp_file until
10015         after mkstemp64.
10016         * login/tst-utmp.c (do_prepare): Likewise.
10017         * rt/tst-aio.c (do_prepare): Likewise.
10018         * rt/tst-aio64.c (do_prepare): Likewise.
10019
10020 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10021
10022         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
10023         (__lll_lock_elision): Remove adapt_count decrement...
10024         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
10025         (__lll_trylock_elision): Likewise.
10026         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
10027         (__lll_unlock_elision): ... to here. And utilize
10028         new adapt_count parameter.
10029         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
10030         (__lll_unlock_elision): Update to include adapt_count
10031         parameter.
10032         (lll_unlock_elision): Pass pointer to adapt_count
10033         variable.
10034
10035 2015-10-15  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
10036
10037         * nptl/pthread_mutex_unlock.c (lll_unlock_elision):
10038         Add elision adapt_count parameter to list of arguments.
10039         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
10040         (lll_unlock_elision): Update with new parameter list
10041         * sysdeps/unix/sysv/linux/s390/lowlevellock.h
10042         (lll_unlock_elision): Likewise.
10043         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
10044         (lll_unlock_elision): Likewise.
10045
10046 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10047
10048         [BZ #19122]
10049         * include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
10050         attribute_hidden.
10051
10052         * include/string.h [IS_IN (rtld)] (__stpcpy): Add
10053         attribute_hidden.
10054         [IS_IN (rtld)] (__strdup): Likewise.
10055         [IS_IN (rtld)] (__strerror_r): Likewise.
10056         [IS_IN (rtld)] (__strsep_g): Likewise.
10057         [IS_IN (rtld)] (memchr): Likewise.
10058         [IS_IN (rtld)] (memcmp): Likewise.
10059         [IS_IN (rtld)] (memcpy): Likewise.
10060         [IS_IN (rtld)] (memmove): Likewise.
10061         [IS_IN (rtld)] (memset): Likewise.
10062         [IS_IN (rtld)] (rawmemchr): Likewise.
10063         [IS_IN (rtld)] (stpcpy): Likewise.
10064         [IS_IN (rtld)] (strchr): Likewise.
10065         [IS_IN (rtld)] (strcmp): Likewise.
10066         [IS_IN (rtld)] (strlen): Likewise.
10067         [IS_IN (rtld)] (strnlen): Likewise.
10068         [IS_IN (rtld)] (strsep): Likewise.
10069
10070         * include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
10071         attribute_hidden.
10072         [IS_IN (rtld)] (__strtoul_internal): Likewise.
10073
10074         * include/signal.h [IS_IN (rtld)] (__sigaction): Add
10075         attribute_hidden.
10076         [IS_IN (rtld)] (__libc_sigaction): Likewise.
10077
10078         * include/setjmp.h (__longjmp): Add attribute_hidden.
10079         [IS_IN (rtld)] (__sigsetjmp): Likewise.
10080
10081         * include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
10082         Add attribute_hidden.
10083
10084         * include/fcntl.h (__libc_fcntl): Add attribute_hidden.
10085         [IS_IN (rtld)] (__open): Likewise.
10086         [IS_IN (rtld)] (__fcntl): Likewise.
10087
10088         * include/dirent.h (__opendirat): Add attribute_hidden.
10089         (__getdents): Likewise.
10090         (__getdents64): Likewise.
10091         (__alloc_dir): Likewise.
10092         [IS_IN (rtld)] (__closedir): Likewise.
10093         [IS_IN (rtld)] (__fdopendir): Likewise.
10094         [IS_IN (rtld)] (__readdir): Likewise.
10095         [IS_IN (rtld)] (__readdir64): Likewise.
10096         [IS_IN (rtld)] (__rewinddir): Likewise.
10097
10098         * include/dlfcn.h (_dl_catch_error): Moved to ...
10099         * sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
10100         attribute_hidden.
10101
10102         * sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
10103         (_itoa_word): Likewise.
10104
10105         * elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
10106         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
10107         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
10108         * sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
10109         (_dl_higher_prime_number): Likewise.
10110         (_dl_debug_printf_c): Likewise.
10111         (_dl_signal_cerror): Likewise.
10112         (_dl_receive_error): Likewise.
10113         (_dl_reloc_bad_type): Likewise.
10114         (_dl_resolve_conflicts): Likewise.
10115         (_dl_check_all_versions): Likewise.
10116         (_dl_check_map_versions): Likewise.
10117         (_dl_sort_fini): Likewise.
10118         (_dl_debug_initialize): Likewise.
10119         (_dl_init_paths): Likewise.
10120         (_dl_show_auxv): Likewise.
10121         (_dl_next_ld_env_entry): Likewise.
10122         (_dl_important_hwcaps): Likewise.
10123         (_dl_load_cache_lookup): Likewise.
10124         (_dl_update_slotinfo): Likewise.
10125         (_dl_show_scope): Likewise.
10126
10127         * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
10128         attribute_hidden.
10129         (_wordcopy_fwd_dest_aligned): Likewise.
10130         (_wordcopy_bwd_aligned): Likewise.
10131         (_wordcopy_bwd_dest_aligned): Likewise.
10132
10133         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
10134         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
10135         Likewise.
10136         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
10137         Likewise.
10138         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
10139
10140 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10141
10142         * sysdeps/unix/sysv/linux/i386/sysdep.h: Add comments for
10143         GCC 5 requirement.
10144
10145 2015-10-15  Joseph Myers  <joseph@codesourcery.com>
10146
10147         * sysdeps/i386/configure.ac (libc_cv_as_i686): Remove configure
10148         test.
10149         * sysdeps/i386/configure: Regenerated.
10150         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]: Make
10151         code unconditional.
10152
10153         * configure.ac (libc_cv_asm_previous_directive): Remove configure
10154         test.
10155         (libc_cv_asm_popsection_directive): Likewise.
10156         * configure: Regenerated.
10157         * config.h.in (HAVE_ASM_PREVIOUS_DIRECTIVE): Remove #undef.
10158         (HAVE_ASM_POPSECTION_DIRECTIVE): Likewise.
10159         * include/libc-symbols.h [HAVE_ASM_PREVIOUS_DIRECTIVE]
10160         (__make_section_unallocated): Make definition unconditional.
10161         [HAVE_ASM_POPSECTION_DIRECTIVE] (__make_section_unallocated):
10162         Remove conditional definition.
10163         [!HAVE_ASM_PREVIOUS_DIRECTIVE && !HAVE_ASM_POPSECTION_DIRECTIVE]
10164         (__make_section_unallocated): Likewise.
10165
10166         * configure.ac (libc_cv_gcc_static_libgcc): Remove configure test.
10167         * configure: Regenerated.
10168         * config.make.in (static-libgcc): Remove variable.
10169         * Makerules (build-shlib-helper): Use -static-libgcc instead of
10170         $(static-libgcc).
10171         (build-module-helper): Likewise.
10172
10173         * configure.ac (libc_cv_friendly_stddef): Remove configure test.
10174         * configure: Regenerated.
10175
10176 2015-10-15  Florian Weimer  <fweimer@redhat.com>
10177
10178         * stdio-common/vfscanf.c (MEMCPY): Remove macro.
10179         (struct char_buffer): New type.
10180         (char_buffer_start, char_buffer_size, char_buffer_error)
10181         (char_buffer_rewind, char_buffer_add): New functions.
10182         (ADDW): Remove macro, replaced by the char_buffer_add function.
10183         (_IO_vfscanf_internal): Rewrite using struct char_buffer instead
10184         of extend_alloca.  Make control flow more explicit.
10185
10186 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10187
10188         [BZ #19137]
10189         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-epoll_pwait.c):
10190         Add -fomit-frame-pointer.
10191         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Remove file.
10192
10193 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10194
10195         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S
10196         (__libc_do_syscall): Defined only if !__GNUC_PREREQ (5,0).
10197         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define assembler macros
10198         only if !__GNUC_PREREQ (5,0).
10199         (INTERNAL_SYSCALL_MAIN_6): Optimize for GCC 5.
10200         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
10201         (INTERNAL_SYSCALL_NCS): Likewise.
10202         (LOADREGS_0): New macro for GCC 5.
10203         (ASMARGS_0): Likewise.
10204         (LOADREGS_1): Likewise.
10205         (ASMARGS_1): Likewise.
10206         (LOADREGS_2): Likewise.
10207         (ASMARGS_2): Likewise.
10208         (LOADREGS_3): Likewise.
10209         (ASMARGS_3): Likewise.
10210         (LOADREGS_4): Likewise.
10211         (ASMARGS_4): Likewise.
10212         (LOADREGS_5): Likewise.
10213         (ASMARGS_5): Likewise.
10214         (LOADREGS_6): Likewise.
10215         (ASMARGS_6): Likewise.
10216
10217 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
10218
10219         * sysdeps/unix/sysv/linux/i386/Makefile (CFLAGS-mmap.c): Add
10220         -fomit-frame-pointer.
10221         (CFLAGS-mmap64.c): Likewise.
10222         (CFLAGS-semtimedop.c): Likewise.
10223         * sysdeps/unix/sysv/linux/i386/mmap.c: New file.
10224         * sysdeps/unix/sysv/linux/i386/mmap.S: Remove file.
10225         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
10226         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
10227
10228 2015-10-15  Florian Weimer  <fweimer@redhat.com>
10229
10230         [BZ #18928]
10231         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Remove
10232         _dl_pointer_guard member.
10233         * elf/rtld.c (_rtld_global_ro): Remove _dl_pointer_guard
10234         initializer.
10235         (security_init): Always set up pointer guard.
10236         (process_envvars): Do not process LD_POINTER_GUARD.
10237
10238 2015-10-14  Joseph Myers  <joseph@codesourcery.com>
10239
10240         [BZ #19134]
10241         * sysdeps/powerpc/powerpc32/fpu/s_lround.S (.LC1): New object.
10242         (.LC2): Likewise.
10243         (.LC3): Likewise.
10244         (__lround): Do not add 0.5 to integer or out-of-range arguments.
10245
10246 2015-10-14  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10247
10248         [BZ #19129]
10249         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
10250         r0 and r1.
10251
10252 2015-10-14  Namhyung Kim  <namhyung@gmail.com>
10253
10254         * manaual/argp.texi (Specifying Argp Parsers): Fix typo.
10255
10256 2015-10-14  Carlos O'Donell  <carlos@redhat.com>
10257
10258         * include/stap-probe.h: Fix macro definition formatting.
10259
10260 2015-10-14  Florian Weimer  <fweimer@redhat.com>
10261
10262         [BZ #19074]
10263         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use atomics to
10264         load and store num_ifs.
10265
10266 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10267
10268         [BZ #18822]
10269         * sysdeps/unix/sysv/linux/sched_getaffinity.c
10270         (__sched_getaffinity_new): Add libc_hidden_proto and
10271         libc_hidden_def.
10272
10273 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10274
10275         [BZ #19007]
10276         * scripts/localplt.awk: Also allow GOT references.
10277         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark
10278         _Unwind_Find_FDE, calloc, memalign, realloc and __libc_memalign
10279         with "+ REL R_386_GLOB_DAT".
10280         * sysdeps/x86_64/localplt.data: Mark calloc, memalign, realloc
10281         and __libc_memalign with "+ RELA R_X86_64_GLOB_DAT".
10282
10283 2015-10-14  H.J. Lu  <hongjiu.lu@intel.com>
10284
10285         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Use
10286         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10287         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat):
10288         Likewise.
10289         * sysdeps/unix/sysv/linux/i386/setegid.c (setegid): Likewise.
10290         * sysdeps/unix/sysv/linux/i386/seteuid.c (seteuid): Likewise.
10291         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Use
10292         INTERNAL_SYSCALLINTERNAL_SYSCALL and
10293         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10294         * sysdeps/unix/sysv/linux/i386/lockf64.c (lockf64): Likewise.
10295         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
10296         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction):
10297         Likewise.
10298         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
10299
10300 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
10301
10302         [BZ #19125]
10303         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include <limits.h>,
10304         <math_private.h> and <stdint.h>.
10305         (__llround): Avoid conversions to and from long long int, and
10306         subtractions, where those might raise spurious exceptions.
10307         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
10308         <math_private.h> and <stdint.h>.
10309         (__llroundf): Avoid conversions to and from long long int, and
10310         subtractions, where those might raise spurious exceptions.
10311
10312 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10313
10314         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Use
10315         INLINE_SYSCALL_ERROR_RETURN_VALUE.
10316         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
10317         * sysdeps/unix/sysv/linux/eventfd.c (eventfd): Likewise.
10318         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
10319         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
10320         * sysdeps/unix/sysv/linux/fcntl.c (do_fcntl): Likewise.
10321         * sysdeps/unix/sysv/linux/futimens.c (futimens): Likewise.
10322         * sysdeps/unix/sysv/linux/futimes.c (__futimes): Likewise.
10323         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
10324         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
10325         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
10326         * sysdeps/unix/sysv/linux/lutimes.c (lutimes): Likewise.
10327         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
10328         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
10329         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Likewise.
10330         * sysdeps/unix/sysv/linux/mq_open.c (__mq_open): Likewise.
10331         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
10332         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Likewise.
10333         * sysdeps/unix/sysv/linux/readahead.c (__readahead): Likewise.
10334         * sysdeps/unix/sysv/linux/shmat.c (shmat): Likewise.
10335         * sysdeps/unix/sysv/linux/signalfd.c (signalfd): Likewise.
10336         * sysdeps/unix/sysv/linux/speed.c (cfsetospeed): Likewise.
10337         * sysdeps/unix/sysv/linux/tcsetattr.c (tcsetattr): Likewise.
10338         * sysdeps/unix/sysv/linux/ustat.c (ustat): Likewise.
10339         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
10340         * sysdeps/unix/sysv/linux/xmknod.c (__xmknod): Likewise.
10341         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
10342         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
10343         * sysdeps/unix/sysv/linux/xstatconv.c (__xstat_conv): Likewise.
10344         (__xstat64_conv): Likewise.
10345         (__xstat32_conv): Likewise.
10346
10347 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10348
10349         * sysdeps/unix/sysv/linux/sysdep.h: New file.
10350         * sysdeps/unix/sysv/linux/i386/sysdep.c: Likewise.
10351         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Include
10352         <sysdeps/unix/sysv/linux/sysdep.h>.
10353         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
10354         * sysdeps/unix/sysv/linux/generic/sysdep.h: Likewise.
10355         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Likewise.
10356         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
10357         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
10358         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Likewise.
10359         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Likewise.
10360         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Likewise.
10361         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Likewise.
10362         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
10363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10364         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
10365         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
10366         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
10367         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
10368         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
10369         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == csu]
10370         (sysdep-dl-routines): Add sysdep.
10371         [$(subdir) == nptl] (libpthread-routines): Likewise.
10372         [$(subdir) == rt] (librt-routines): Likewise.
10373         * sysdeps/unix/sysv/linux/i386/clone.S (__clone): Don't check
10374         PIC when branching to SYSCALL_ERROR_LABEL.
10375         * sysdeps/unix/sysv/linux/i386/sysdep.S: Removed.
10376         * sysdeps/unix/sysv/linux/i386/sysdep.h: Include
10377         <sysdeps/unix/sysv/linux/sysdep.h>.
10378         (SYSCALL_ERROR_LABEL): Changed to __syscall_error.
10379         (SYSCALL_ERROR_ERRNO): Removed.
10380         (SYSCALL_ERROR_HANDLER): Changed to empty.
10381         (SYSCALL_ERROR_HANDLER_TLS_STORE): Likewise.
10382         (__syscall_error): New prototype.
10383         [IS_IN (libc)] (INLINE_SYSCALL): New macro.
10384         (INLINE_SYSCALL_ERROR_RETURN_VALUE): Likewise.
10385
10386 2015-10-13  H.J. Lu  <hongjiu.lu@intel.com>
10387
10388         [BZ #19124]
10389         * sysdeps/x86_64/dl-trampoline.S [!HAVE_AVX512_ASM_SUPPORT]
10390         (_dl_runtime_resolve_avx512): Make it a hidden alias of
10391         _dl_runtime_resolve_avx.
10392         (_dl_runtime_profile_avx512): Make it a hidden alias of
10393         _dl_runtime_profile_avx.
10394
10395 2015-10-13  Joseph Myers  <joseph@codesourcery.com>
10396
10397         * sysdeps/powerpc/fpu/s_llround.c: Move to ....
10398         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: ...here.
10399         * sysdeps/powerpc/fpu/s_llroundf.c: Move to ....
10400         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: ...here.
10401
10402         [BZ #16422]
10403         * sysdeps/powerpc/powerpc32/fpu/configure.ac (libc_cv_ppc_fctidz):
10404         New configure test.
10405         * sysdeps/powerpc/powerpc32/fpu/configure: Regenerated.
10406         * config.h.in [_LIBC] (HAVE_PPC_FCTIDZ): New macro.
10407         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include <limits.h>,
10408         <math_private.h> and <stdint.h>.
10409         (__llrint): Avoid conversions to long long int where those might
10410         raise spurious exceptions.
10411         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
10412         <math_private.h> and <stdint.h>.
10413         (__llrintf): Avoid conversions to long long int where those might
10414         raise spurious exceptions.
10415
10416 2015-10-12  Andreas Schwab  <schwab@suse.de>
10417
10418         [BZ #18969]
10419         * debug/Makefile (LOCALES): Define.  Include gen-locales.mk.
10420         ($(objpfx)tst-chk1.out): Depend on $(gen-locales).
10421         * iconvdata/Makefile (LOCALES): Define.  Include gen-locales.mk.
10422         ($(objpfx)bug-iconv6.out, $(objpfx)tst-iconv7.out): Depend on
10423         $(gen-locales).
10424         * intl/Makefile (LOCALES): Define.  Include gen-locales.mk.
10425         ($(objpfx)tst-codeset.out, $(objpfx)tst-gettext.out)
10426         ($(objpfx)tst-gettext2.out, $(objpfx)tst-gettext3.out)
10427         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext5.out)
10428         ($(objpfx)tst-gettext6.out, $(objpfx)tst-translit.out): Depend on
10429         $(gen-locales).
10430         * libio/Makefile (LOCALES): Define.  Include gen-locales.mk.
10431         ($(objpfx)bug-ftell.out, $(objpfx)bug-ungetwc1.out)
10432         ($(objpfx)bug-ungetwc2.out, $(objpfx)tst-fgetwc.out)
10433         ($(objpfx)tst-fgetws.out, $(objpfx)tst-fopenloc.out)
10434         ($(objpfx)tst-fputws.out, $(objpfx)tst-fseek.out)
10435         ($(objpfx)tst-ftell-active-handler.out)
10436         ($(objpfx)tst-ftell-append.out)
10437         ($(objpfx)tst-ftell-partial-wide.out, $(objpfx)tst-setvbuf1.out)
10438         ($(objpfx)tst-swscanf.out, $(objpfx)tst-ungetwc1.out)
10439         ($(objpfx)tst-ungetwc2.out, $(objpfx)tst-widetext.out)
10440         ($(objpfx)tst_wprintf2.out): Depend on $(gen-locales).
10441         * posix/Makefile (LOCALES): Define.  Include gen-locales.mk.
10442         ($(objpfx)bug-regex1.out, $(objpfx)bug-regex4.out)
10443         ($(objpfx)bug-regex5.out, $(objpfx)bug-regex6.out)
10444         ($(objpfx)bug-regex17.out, $(objpfx)bug-regex18.out)
10445         ($(objpfx)bug-regex19.out, $(objpfx)bug-regex20.out)
10446         ($(objpfx)bug-regex22.out, $(objpfx)bug-regex23.out)
10447         ($(objpfx)bug-regex25.out, $(objpfx)bug-regex26.out)
10448         ($(objpfx)bug-regex30.out, $(objpfx)bug-regex32.out)
10449         ($(objpfx)bug-regex33.out, $(objpfx)bug-regex34.out)
10450         ($(objpfx)bug-regex35.out, $(objpfx)tst-fnmatch.out)
10451         ($(objpfx)tst-fnmatch4.out, $(objpfx)tst-fnmatch5.out)
10452         ($(objpfx)tst-regex.out, $(objpfx)tst-regex2.out)
10453         ($(objpfx)tst-regexloc.out, $(objpfx)tst-rxspencer.out)
10454         ($(objpfx)tst-rxspencer-no-utf8.out): Depend on $(gen-locales).
10455         * stdio-common/Makefile (LOCALES): Define.  Include gen-locales.mk.
10456         ($(objpfx)bug14.out, $(objpfx)scanf13.out)
10457         ($(objpfx)test-vfprintf.out, $(objpfx)tst-grouping.out)
10458         ($(objpfx)tst-sprintf.out, $(objpfx)tst-sscanf.out)
10459         ($(objpfx)tst-swprintf.out): Depend on $(gen-locales).
10460         * stdlib/Makefile (LOCALES): Define.  Include gen-locales.mk.
10461         ($(objpfx)bug-strtod2.out, $(objpfx)testmb2.out)
10462         ($(objpfx)tst-strtod.out, $(objpfx)tst-strtod3.out)
10463         ($(objpfx)tst-strtod4.out, $(objpfx)tst-strtod5.out): Depend on
10464         $(gen-locales).
10465         * time/Makefile (LOCALES): Define.  Include gen-locales.mk.
10466         ($(objpfx)tst-ftime_l.out, $(objpfx)tst-strptime.out): Depend on
10467         $(gen-locales).
10468         * wcsmbs/Makefile (LOCALES): Define.  Include gen-locales.mk.
10469         ($(objpfx)tst-btowc.out, $(objpfx)tst-c16c32-1.out)
10470         ($(objpfx)tst-mbrtowc.out, $(objpfx)tst-mbrtowc2.out)
10471         ($(objpfx)tst-wcrtomb.out, $(objpfx)wcsmbs-tst1.out): Depend on
10472         $(gen-locales).
10473         * libio/tst_wprintf2.c (main): Use explicit locale.
10474         * wcsmbs/wcsmbs-tst1.c (main): Likewise.
10475
10476 2015-10-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10477
10478         * hurd/hurd-raise.c (_hurd_raise_signal): Return error returned by
10479         __msg_sig_post.
10480         * hurd/hurd/signal.h (_hurd_raise_signal): Add int return type.
10481
10482 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10483
10484         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
10485         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
10486
10487         * sysdeps/arm/libm-test-ulps: Regenerated.
10488
10489         [BZ #15470]
10490         * sysdeps/arm/fix-fp-int-convert-overflow.h: New file.
10491
10492         [BZ #16399]
10493         * sysdeps/generic/fix-fp-int-convert-overflow.h: New file.
10494         * sysdeps/ieee754/dbl-64/s_llrint.c: Include <fenv.h>, <limits.h>
10495         and <fix-fp-int-convert-overflow.h>.
10496         (__llrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10497         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10498         * sysdeps/ieee754/dbl-64/s_llround.c: Include <fenv.h>, <limits.h>
10499         and <fix-fp-int-convert-overflow.h>.
10500         (__llround) [FE_INVALID]: Force FE_INVALID exception as needed if
10501         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10502         * sysdeps/ieee754/dbl-64/s_lrint.c: Include
10503         <fix-fp-int-convert-overflow.h>.
10504         (__lrint) [FE_INVALID]: Force FE_INVALID exception as needed if
10505         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10506         * sysdeps/ieee754/dbl-64/s_lround.c: Include
10507         <fix-fp-int-convert-overflow.h>.
10508         (__lround) [FE_INVALID]: Force FE_INVALID exception as needed if
10509         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10510         * sysdeps/ieee754/flt-32/s_llrintf.c: Include <fenv.h>, <limits.h>
10511         and <fix-fp-int-convert-overflow.h>.
10512         (__llrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10513         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10514         * sysdeps/ieee754/flt-32/s_llroundf.c: Include <fenv.h>,
10515         <limits.h> and <fix-fp-int-convert-overflow.h>.
10516         (__llroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10517         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10518         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <fenv.h>, <limits.h>
10519         and <fix-fp-int-convert-overflow.h>.
10520         (__lrintf) [FE_INVALID]: Force FE_INVALID exception as needed if
10521         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10522         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <fenv.h>, <limits.h>
10523         and <fix-fp-int-convert-overflow.h>.
10524         (__lroundf) [FE_INVALID]: Force FE_INVALID exception as needed if
10525         FIX_DBL_LLONG_CONVERT_OVERFLOW.
10526         * sysdeps/mips/mips32/fpu/fix-fp-int-convert-overflow.h: New file.
10527
10528 2015-10-09  Carlos O'Donell  <carlos@redhat.com>
10529
10530         [BZ #18589]
10531         * string/bug-strcoll2.c: Adjust copyright, and remove contributed by.
10532         * string/Makefile ($(objpfx)bug-strcoll2.out): Depend on
10533         $(gen-locales).
10534
10535 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10536             Phil Blundell <pb@pbcl.net>
10537
10538         * nptl/Makefile (tests): Add tst-cancel26.c and tst-cancel27.c.
10539         * nptl/tst-cancel26.c: New file.
10540         * nptl/tst-cancel27.c: Likewise.
10541
10542 2015-10-09  H.J. Lu  <hongjiu.lu@intel.com>
10543
10544         * sysdeps/x86_64/fpu/s_llrint.S (__lrint): Add alias only if
10545         __ILP32__ isn't defined.
10546         (lrint): Likewise.
10547         * sysdeps/x86_64/fpu/s_llrintf.S (__lrintf): Likewise.
10548         (lrintf): Likewise.
10549         * sysdeps/x86_64/fpu/s_llrintl.S (__lrintl): Likewise.
10550         (lrintl): Likewise.
10551         * sysdeps/x86_64/x32/fpu/s_lrint.S: New file.
10552         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Likewise.
10553         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Likewise.
10554
10555 2015-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10556
10557         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
10558         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S
10559
10560         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: Remove
10561         file.
10562         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Likewise.
10563         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Likewise.
10564
10565 2015-10-09  Joseph Myers  <joseph@codesourcery.com>
10566
10567         * sysdeps/i386/configure.ac (libc_cv_cc_novzeroupper): Remove
10568         configure test.
10569         * sysdeps/i386/configure: Regenerated.
10570         * sysdeps/x86_64/configure.ac (libc_cv_cc_novzeroupper): Remove
10571         configure test.
10572         * sysdeps/x86_64/configure: Regenerated.
10573         * sysdeps/x86_64/Makefile [$(config-cflags-novzeroupper) = yes]:
10574         Make code unconditional.
10575
10576         * sysdeps/i386/configure.ac (libc_cv_cc_fma4): Remove configure
10577         test.
10578         * sysdeps/i386/configure: Regenerated.
10579         * sysdeps/x86_64/configure.ac (libc_cv_cc_fma4): Remove configure
10580         test.
10581         * sysdeps/x86_64/configure: Regenerated.
10582         * sysdeps/x86_64/fpu/multiarch/Makefile [$(have-mfma4) = yes]:
10583         Make code unconditional.
10584         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
10585         Likewise.
10586         * sysdeps/x86_64/fpu/multiarch/e_atan2.c [HAVE_FMA4_SUPPORT]:
10587         Likewise.
10588         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10589         * sysdeps/x86_64/fpu/multiarch/e_exp.c [HAVE_FMA4_SUPPORT]: Make
10590         code unconditional.
10591         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10592         * sysdeps/x86_64/fpu/multiarch/e_log.c [HAVE_FMA4_SUPPORT]: Make
10593         code unconditional.
10594         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10595         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]: Make
10596         code unconditional.
10597         * sysdeps/x86_64/fpu/multiarch/s_atan.c [HAVE_FMA4_SUPPORT]: Make
10598         code unconditional.
10599         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10600         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_FMA4_SUPPORT]: Make
10601         code unconditional.
10602         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10603         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_FMA4_SUPPORT]: Make
10604         code unconditional.
10605         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10606         * sysdeps/x86_64/fpu/multiarch/s_sin.c [HAVE_FMA4_SUPPORT]: Make
10607         code unconditional.
10608         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10609         * sysdeps/x86_64/fpu/multiarch/s_tan.c [HAVE_FMA4_SUPPORT]: Make
10610         code unconditional.
10611         [!HAVE_FMA4_SUPPORT]: Remove conditional code.
10612         * config.h.in (HAVE_FMA4_SUPPORT): Remove #undef.
10613
10614         [BZ #19095]
10615         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Cast low part of
10616         mantissa to long int before shifting left.
10617
10618 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10619
10620         [BZ #19094]
10621         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <fenv.h> and
10622         <limits.h>.
10623         (__lrint) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10624         when result overflows but exception would not result from cast.
10625         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include <fenv.h> and
10626         <limits.h>.
10627         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10628         when result overflows but exception would not result from cast.
10629         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include <fenv.h> and
10630         <limits.h>.
10631         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10632         when result overflows but exception would not result from cast.
10633         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include <fenv.h> and
10634         <limits.h>.
10635         (__llrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10636         when result overflows but exception would not result from cast.
10637         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include <fenv.h> and
10638         <limits.h>.
10639         (__lrintl) [FE_INVALID || FE_INEXACT]: Force FE_INVALID exception
10640         when result overflows but exception would not result from cast.
10641         * math/libm-test.inc (lrint_test_data): Add more tests.
10642         (llrint_test_data): Likewise.
10643
10644 2015-10-08  Roland McGrath  <roland@hack.frob.com>
10645
10646         [BZ #18872]
10647         * stdio-common/Makefile ($(objpfx)tst-unbputc.out):
10648         Move out from under [$(run-built-tests) = yes] conditional.
10649         ($(objpfx)tst-printf.out, $(objpfx)tst-printf-bz18872.c): Likewise.
10650         ($(objpfx)tst-printf-bz18872-mem.out): Likewise.
10651
10652 2015-10-08  Carlos O'Donell  <carlos@redhat.com>
10653
10654         [BZ #18589]
10655         * string/Makefile (tests): Add bug-strcoll2.
10656         (LOCALES): Add cs_CZ.UTF-8.
10657         * string/bug-strcoll2.c (test_cs_CZ): Fix typo in FAIL string.
10658
10659         [BZ #18589]
10660         * string/bug-strcoll2.c: New file.
10661         * locale/categories.def: Revert commit
10662         f13c2a8dff2329c6692a80176262ceaaf8a6f74e.
10663         * locale/langinfo.h: Likewise.
10664         * locale/localeinfo.h: Likewise.
10665         * locale/C-collate.c: Likewise.
10666         * locale/programs/ld-collate.c (collate_output): Likewise.
10667         * string/strcoll_l.c (STRDIFF): Likewise.
10668         (STRCOLL): Likewise.
10669         * wcsmbs/wcscoll_l.c: Likewise.
10670
10671 2015-10-08  Joseph Myers  <joseph@codesourcery.com>
10672
10673         * math/libm-test.inc (lround_test_data): Do not expect the absence
10674         of "inexact" for some tests with non-integer arguments.
10675         (llround_test_data): Likewise.
10676
10677         * sysdeps/i386/configure.ac (libc_cv_cc_avx): Remove configure
10678         test.
10679         (libc_cv_cc_sse2avx): Likewise.
10680         * sysdeps/i386/configure: Regenerated.
10681         * sysdeps/i386/i686/multiarch/Makefile
10682         [$(subdir)$(config-cflags-avx) = mathyes]: Change conditional to
10683         [$(subdir) = math].
10684         * sysdeps/i386/i686/multiarch/s_fma-fma.c [HAVE_AVX_SUPPORT]: Make
10685         code unconditional.
10686         * sysdeps/i386/i686/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10687         Likewise.
10688         * sysdeps/i386/i686/multiarch/s_fmaf-fma.c [HAVE_AVX_SUPPORT]:
10689         Likewise.
10690         * sysdeps/i386/i686/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10691         Likewise.
10692         * sysdeps/x86_64/configure.ac (libc_cv_cc_avx): Remove configure
10693         test.
10694         (libc_cv_cc_sse2avx): Likewise.
10695         * sysdeps/x86_64/configure: Regenerated.
10696         * sysdeps/x86_64/Makefile [$(config-cflags-avx) = yes]: Make code
10697         unconditional.
10698         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile)
10699         [HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT]: Make code
10700         unconditional.
10701         (_dl_runtime_profile)
10702         [!(HAVE_AVX_SUPPORT || HAVE_AVX512_ASM_SUPPORT)]: Remove
10703         conditional code.
10704         * sysdeps/x86_64/fpu/multiarch/Makefile
10705         [$(config-cflags-sse2avx) = yes]: Make code unconditional.
10706         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
10707         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10708         * sysdeps/x86_64/fpu/multiarch/e_exp.c
10709         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10710         * sysdeps/x86_64/fpu/multiarch/e_log.c
10711         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10712         * sysdeps/x86_64/fpu/multiarch/s_atan.c
10713         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10714         * sysdeps/x86_64/fpu/multiarch/s_fma.c [HAVE_AVX_SUPPORT]:
10715         Likewise.
10716         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c [HAVE_AVX_SUPPORT]:
10717         Likewise.
10718         * sysdeps/x86_64/fpu/multiarch/s_sin.c
10719         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10720         * sysdeps/x86_64/fpu/multiarch/s_tan.c
10721         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
10722         * sysdeps/x86_64/multiarch/strcmp.S [HAVE_AVX_SUPPORT]: Likewise.
10723         * config.h.in (HAVE_AVX_SUPPORT): Remove #undef.
10724         (HAVE_SSE2AVX_SUPPORT): Likewise.
10725
10726 2015-10-07  Paul Pluzhnikov  <ppluzhnikov@google.com>
10727
10728         * stdio-common/tst-printf-bz18872.sh: Use attribute optimize
10729         instead of #pragma optimize.
10730
10731 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10732
10733         [BZ #17195]
10734         * malloc/arena.c (heap_trim): Apply trim_treshold to top_chunck size,
10735         as is similarly done in systrim and _int_free already.
10736
10737 2015-10-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10738
10739         * sysdeps/mach/configure.ac (mach_interface_list): Add task_notify.
10740
10741 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10742
10743         [BZ #19088]
10744         * sysdeps/ieee754/dbl-64/s_lround.c: Include <fenv.h> and
10745         <limits.h>.
10746         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10747         overflows but exception would not result from cast.
10748         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include <fenv.h>
10749         and <limits.h>.
10750         (__lround) [FE_INVALID]: Force FE_INVALID exception when result
10751         overflows but exception would not result from cast.
10752         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include <fenv.h> and
10753         <limits.h>.
10754         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10755         overflows but exception would not result from cast.
10756         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include <fenv.h> and
10757         <limits.h>.
10758         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10759         overflows but exception would not result from cast.
10760         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include <fenv.h> and
10761         <limits.h>.
10762         (__llroundl) [FE_INVALID]: Force FE_INVALID exception when result
10763         overflows but exception would not result from cast.
10764         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include <fenv.h> and
10765         <limits.h>.
10766         (__lroundl) [FE_INVALID]: Force FE_INVALID exception when result
10767         overflows but exception would not result from cast.
10768         * math/libm-test.inc (lround_test_data): Add more tests.
10769         (llround_test_data): Likewise.
10770
10771 2015-10-07  Steve Ellcey  <sellcey@imgtec.com>
10772
10773         * timezone/Makefile (CFLAGS-zic.c): Add -Wno-unused-variable.
10774         (CFLAGS-ialloc.c): Ditto.
10775         (CFLAGS-scheck.c): Ditto.
10776
10777 2015-10-07  Carlos O'Donell  <carlos@redhat.com>
10778
10779         [BZ #19086]
10780         * manual/filesys.texi (Storage Allocation): Fix argument order for
10781         posix_fallocate64.
10782
10783 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10784
10785         [BZ #19085]
10786         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Move test for
10787         exponent below 48 inside case for non-overflowing exponent.
10788         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
10789
10790 2015-10-07  Florian Weimer  <fweimer@redhat.com>
10791
10792         * iconvdata/cp737.h (from_idx): Add const.
10793         * iconvdata/cp775.h (from_idx): Likewise.
10794
10795 2015-10-07  Joseph Myers  <joseph@codesourcery.com>
10796
10797         * sysdeps/mips/mips64/Implies: Use ieee754/dbl-64/wordsize-64.
10798         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
10799         (__issignaling) [HIGH_ORDER_BIT_IS_SET_FOR_SNAN]: Remove #error.
10800
10801         [BZ #19079]
10802         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Restore previous
10803         file, conditioned on [!_LP64].
10804         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c
10805         [!_LP64] (__lround): Do not define as function or alias.
10806         [!_LP64] (lround): Likewise.
10807         [!_LP64] (__lroundl): Likewise.
10808         [!_LP64] (lroundl): Likewise.
10809         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Remove
10810         macro.
10811         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
10812         Likewise.
10813
10814 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10815
10816         * math/libm-test.inc (lrint_test_data): Add more tests.
10817         (llrint_test_data): Likewise.
10818         (lround_test_data): Likewise.
10819         (llround_test_data): Likewise.
10820
10821         * math/libm-test.inc (lrint_test_data): Add tests used for llrint.
10822         (llrint_test_data): Add tests used for lrint.
10823
10824         * sysdeps/i386/configure.ac (libc_cv_cc_sse4): Remove configure
10825         test.
10826         * sysdeps/i386/configure: Regenerated.
10827         * sysdeps/i386/i686/multiarch/Makefile
10828         [$(config-cflags-sse4) = yes]: Make code unconditional.
10829         * sysdeps/i386/i686/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10830         Likewise.
10831         * sysdeps/i386/i686/multiarch/strspn.S [HAVE_SSE4_SUPPORT]:
10832         Likewise.
10833         * sysdeps/x86_64/configure.ac (libc_cv_cc_sse4): Remove configure
10834         test.
10835         * sysdeps/x86_64/configure: Regenerated.
10836         * sysdeps/x86_64/multiarch/Makefile [$(config-cflags-sse4) = yes]:
10837         Make code unconditional.
10838         * sysdeps/x86_64/multiarch/strcspn.S [HAVE_SSE4_SUPPORT]:
10839         Likewise.
10840         * sysdeps/x86_64/multiarch/strspn.S [HAVE_SSE4_SUPPORT]: Likewise.
10841         * config.h.in (HAVE_SSE4_SUPPORT): Remove #undef.
10842
10843         * scripts/rpm2dynsym.sh: Remove file.
10844
10845 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10846
10847         * configure.ac (libc_cv_cxx_thread_local): Define.
10848         * configure: Regenerate.
10849         * config.make.in (have-cxx-thread_local): Define.
10850         * nptl/Makefile (CFLAGS-tst-thread_local1.o):
10851         (LDLIBS-tst-thread_local1): Define.
10852         (tests): Add tst-thread_local1.
10853         [have-cxx-thread_local != yes] (tests-unsupported): Add
10854         tst-thread_local1.
10855         * nptl/tst-thread_local1.cc: New file.
10856
10857 2015-10-06  Joseph Myers  <joseph@codesourcery.com>
10858
10859         [BZ #19078]
10860         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (o_thres): Remove variable.
10861         (u_thres): Likewise.
10862         (__expl): Determine whether to call __kernel_standard_l based on
10863         value of result, not argument.
10864
10865         * math/libm-test.inc (scalb_test_data): Add more expectations for
10866         the "inexact" exception.
10867
10868         [BZ #19077]
10869         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Return
10870         0.0L for argument 1.0L.
10871
10872         [BZ #19076]
10873         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Divide by
10874         constant 0.0L when computing infinite result.
10875
10876 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10877
10878         [BZ #10432]
10879         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Remove call to
10880         malloc_usable_size.
10881
10882 2015-10-06  Florian Weimer  <fweimer@redhat.com>
10883
10884         [BZ #19018]
10885         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
10886         Mangle function pointer before storing it.
10887         (__call_tls_dtors): Demangle function pointer before calling it.
10888
10889 2015-10-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
10890
10891         [BZ #19012]
10892         * iconv/gconv_db.c (gen_steps): Check for additional errors.
10893         Clean up on failure.
10894
10895 2015-10-05  Joseph Myers  <joseph@codesourcery.com>
10896
10897         [BZ #19071]
10898         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Use unsigned
10899         long int variable to store possibly incremented high part of
10900         mantissa.
10901         * math/libm-test.inc (lround_test_data): Add tests used for
10902         llround.  Use [LONG_MAX > 0x7fffffff] consistently as condition
10903         for tests requiring 64-bit long.  Do not condition tests on
10904         [TEST_FLOAT] unnecessarily.
10905         (llround_test_data): Add tests used for lround.  Add another
10906         expectation for the "inexact" exception.  Do not condition tests
10907         on [TEST_FLOAT] unnecessarily.
10908
10909         [BZ #887]
10910         [BZ #19049]
10911         [BZ #19050]
10912         * sysdeps/generic/fix-int-fp-convert-zero.h: New file.
10913         * sysdeps/ieee754/dbl-64/e_log10.c: Include
10914         <fix-int-fp-convert-zero.h>.
10915         (__ieee754_log10): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10916         * sysdeps/ieee754/dbl-64/e_log2.c: Include
10917         <fix-int-fp-convert-zero.h>.
10918         (__ieee754_log2): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10919         * sysdeps/ieee754/dbl-64/s_erf.c: Include
10920         <fix-int-fp-convert-zero.h>.
10921         (__erfc): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10922         * sysdeps/ieee754/dbl-64/s_logb.c: Include
10923         <fix-int-fp-convert-zero.h>.
10924         (__logb): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10925         * sysdeps/ieee754/flt-32/e_log10f.c: Include
10926         <fix-int-fp-convert-zero.h>.
10927         (__ieee754_log10f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10928         * sysdeps/ieee754/flt-32/e_log2f.c: Include
10929         <fix-int-fp-convert-zero.h>.
10930         (__ieee754_log2f): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10931         * sysdeps/ieee754/flt-32/s_erff.c: Include
10932         <fix-int-fp-convert-zero.h>.
10933         (__erfcf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10934         * sysdeps/ieee754/flt-32/s_logbf.c: Include
10935         <fix-int-fp-convert-zero.h>.
10936         (__logbf): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10937         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include
10938         <fix-int-fp-convert-zero.h>.
10939         (__erfcl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10940         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Include
10941         <fix-int-fp-convert-zero.h>.
10942         (__logbl): Adjust signs as needed if FIX_INT_FP_CONVERT_ZERO.
10943         * sysdeps/powerpc/powerpc32/fpu/configure.ac: New file.
10944         * sysdeps/powerpc/powerpc32/fpu/configure: New generated file.
10945         * sysdeps/powerpc/powerpc32/fpu/fix-int-fp-convert-zero.h: New
10946         file.
10947         * config.h.in [_LIBC] (HAVE_PPC_FCFID): New macro.
10948
10949 2015-10-03  Paul Pluzhnikov  <ppluzhnikov@google.com>
10950
10951         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
10952
10953 2015-10-02  Joseph Myers  <joseph@codesourcery.com>
10954
10955         [BZ #19059]
10956         * math/s_nexttowardf.c (__nexttowardf): Do not return value from
10957         overflowing computation.
10958         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10959         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
10960         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10961         Likewise.
10962         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10963         Likewise.
10964         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
10965         Likewise.
10966         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10967         Likewise.
10968         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10969         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10970         Likewise.
10971         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10972         Likewise.
10973         * math/libm-test.inc (nexttoward_test_data): Add more tests.
10974
10975         * nss/rewrite_field.c (__nss_rewrite_field): Use
10976         internal_function.
10977         * nss/valid_field.c (__nss_valid_field): Likewise.
10978         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
10979
10980 2015-10-02  Florian Weimer  <fweimer@redhat.com>
10981
10982         [BZ #18724]
10983         * include/nss.h (NSS_INVALID_FIELD_CHARACTERS): Define.
10984         (__nss_invalid_field_characters, __nss_valid_field)
10985         (__nss_valid_list_field, __nss_rewrite_field): Declare.
10986         * nss/valid_field.c, nss/valid_list_field, nss/rewrite_field.c,
10987         tst-field.c: New file.
10988         * nss/Makefile (routines): Add valid_field, rewrite_field.
10989         (tests-static): Define unconditionally.
10990         (tests): Include tests-static.
10991         [build-static-nss] (tests-static): Use append.
10992         [build-static-nss] (tests): Remove modification.
10993         * nss/getent.c (print_group): Call putgrent.  Report error.
10994         (print_gshadow): Call putsgent.  Report error.
10995         (print_passwd): Call putpwent.  Report error.
10996         (print_shadow): Call putspent.  Report error.
10997         * include/pwd.h: Include <nss.h> instead of <nss/nss.h>.
10998         * pwd/pwd.h (putpwent): Remove incorrect nonnull attribute.
10999         * pwd/putpwent.c (putpwent): Use ISO function definition.  Check
11000         name, password, directory, shell fields for valid syntax.  Rewrite
11001         GECOS field to match syntax.
11002         * pwd/Makefile (tests): Add tst-putpwent.
11003         * pwd/tst-putpwent.c: New file.
11004         * grp/putgrent.c (putgrent): Convert to ISO function definition.
11005         Check grName, grpasswd, gr_mem fields for valid syntax.
11006         Change loop variable i to size_t.
11007         * grp/Makefile (tests): Add tst-putgrent.
11008         * grp/tst-putgrent.c: New file.
11009         * shadow/putspent.c (putspent): Check sp_namp, sp_pwdp fields for
11010         valid syntax.
11011         * shadow/Makefile (tests): Add tst-putspent.
11012         * shadow/tst-putspent.c: New file.
11013         * gshadow/putsgent.c (putsgent): Check sg_namp, sg_passwd, sg_adm,
11014         sg_mem fields for valid syntax.
11015         * gshadow/Makefile (tests): Add tst-putsgent.
11016         * gshadow/tst-putsgent.c: New file.
11017
11018 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11019
11020         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Added comments to some
11021         assembly instructions.
11022
11023 2015-10-01  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
11024
11025         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Remove or add register
11026         prefix from operands.
11027
11028 2015-10-01  Joseph Myers  <joseph@codesourcery.com>
11029
11030         [BZ #16347]
11031         [BZ #19046]
11032         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Do not include
11033         <libc-internal.h>.
11034         (MAXLGM): Do not use diagnostic control macros.
11035         [LDBL_MANT_DIG == 106] (MAXLGM): Change value to overflow
11036         threshold for ldbl-128ibm.
11037         (__ieee754_lgammal_r): For large arguments, multiply by log - 1
11038         instead of multiplying by log then subtracting.
11039         * math/auto-libm-test-in: Add more tests of lgamma.
11040         * math/auto-libm-test-out: Regenerated.
11041
11042         * math/libm-test.inc (TYPE_DECIMAL_DIG): New macro.
11043         (TYPE_HEX_DIG): Likewise.
11044         (print_float): Use TYPE_DECIMAL_DIG - 1 and TYPE_HEX_DIG - 1 as
11045         precisions when printing floating-point numbers.
11046         (check_float_internal): Likewise.
11047
11048 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
11049
11050         [BZ #16620]
11051         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (log10_high): Use value
11052         of log (10) rounded downward to 48 bits.
11053         (log10_low): Use corresponding low part of log (10).
11054
11055         [BZ #19032]
11056         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): For arguments < 1,
11057         compute result as (x - x) / (x - x) not as 0 / 0.
11058         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
11059         * math/libm-test.inc (acosh_test_data): Add another test of acosh.
11060
11061         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
11062         atan, atan2, atanh, cbrt, cos, cosh, erf, erfc, exp, exp10, exp2
11063         and expm1.
11064         * math/auto-libm-test-out: Regenerated.
11065         * math/libm-test.inc (acos_test_data): Add more tests.
11066         (asin_test_data): Likewise.
11067         (asinh_test_data): Likewise.
11068         (atan_test_data): Likewise.
11069         (atanh_test_data): Likewise.
11070         (atan2_test_data): Likewise.
11071         (cbrt_test_data): Likewise.
11072         (ceil_test_data): Likewise.
11073         (copysign_test_data): Likewise.
11074         (cos_test_data): Likewise.
11075         (cosh_test_data): Likewise.
11076         (erf_test_data): Likewise.
11077         (erfc_test_data): Likewise.
11078         (exp_test_data): Likewise.
11079         (exp10_test_data): Likewise.
11080         (exp2_test_data): Likewise.
11081         (expm1_test_data): Likewise.
11082         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11083
11084 2015-09-30  H.J. Lu  <hongjiu.lu@intel.com>
11085
11086         [BZ #19006]
11087         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved
11088         to ...
11089         * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Here.
11090         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: Moved
11091         to ...
11092         * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Here.
11093         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: Moved
11094         to ...
11095         * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Here.
11096         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved to ...
11097         * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Here.
11098         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved
11099         to ...
11100         * sysdeps/unix/sysv/linux/i386/lowlevelrobustlock.S: Here.
11101         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
11102         Moved to ...
11103         * sysdeps/unix/sysv/linux/i386/pthread_barrier_wait.S: Here.
11104         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
11105         Moved to ...
11106         * sysdeps/unix/sysv/linux/i386/pthread_cond_broadcast.S: Here.
11107         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: Moved
11108         to ...
11109         * sysdeps/unix/sysv/linux/i386/pthread_cond_signal.S: Here.
11110         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
11111         Moved to ...
11112         * sysdeps/unix/sysv/linux/i386/pthread_cond_timedwait.S: Here.
11113         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved
11114         to ...
11115         * sysdeps/unix/sysv/linux/i386/pthread_cond_wait.S: Here.
11116         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S:
11117         Removed.
11118         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c:
11119         Likewise.
11120         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c:
11121         Likewise.
11122         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Likewise.
11123         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S:
11124         Likewise.
11125         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
11126         Likewise.
11127         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
11128         Likewise.
11129         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
11130         Likewise.
11131         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
11132         Likewise.
11133         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S:
11134         Likewise.
11135         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S:
11136         Likewise.
11137         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c:
11138         Likewise.
11139         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c:
11140         Likewise.
11141         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Likewise.
11142         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S:
11143         Likewise.
11144         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
11145         Likewise.
11146         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
11147         Likewise.
11148         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
11149         Likewise.
11150         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S:
11151         Likewise.
11152         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
11153         Replace ../i486/pthread_cond_timedwait.S with
11154         ../pthread_cond_timedwait.S.
11155
11156 2015-09-30  Joseph Myers  <joseph@codesourcery.com>
11157
11158         * math/libm-test.inc (acos_test_data): Refine expectations for
11159         errno and "inexact" exceptions.
11160         (acosh_test_data): Likewise.
11161         (asin_test_data): Likewise.
11162         (asinh_test_data): Likewise.
11163         (atan_test_data): Likewise.
11164         (atanh_test_data): Likewise.
11165         (atan2_test_data): Likewise.
11166         (cbrt_test_data): Likewise.
11167         (ceil_test_data): Likewise.
11168         (copysign_test_data): Likewise.
11169         (cosh_test_data): Likewise.
11170         (erf_test_data): Likewise.
11171         (erfc_test_data): Likewise.
11172         (exp_test_data): Likewise.
11173         (exp10_test_data): Likewise.
11174         (exp2_test_data): Likewise.
11175         (expm1_test_data): Likewise.
11176         (fabs_test_data): Likewise.
11177         (floor_test_data): Likewise.
11178         (fma_test_data): Likewise.
11179         (fmax_test_data): Likewise.
11180         (fmin_test_data): Likewise.
11181         (fmod_test_data): Likewise.
11182         (fpclassify_test_data): Likewise.
11183         (frexp_test_data): Likewise.
11184         (hypot_test_data): Likewise.
11185         (ilogb_test_data): Likewise.
11186         (isgreater_test_data): Likewise.
11187         (isgreaterequal_test_data): Likewise.
11188         (isinf_test_data): Likewise.
11189         (isless_test_data): Likewise.
11190         (islessequal_test_data): Likewise.
11191         (islessgreater_test_data): Likewise.
11192         (isnan_test_data): Likewise.
11193         (isnormal_test_data): Likewise.
11194         (issignaling_test_data): Likewise.
11195         (isunordered_test_data): Likewise.
11196         (j0_test_data): Likewise.
11197         (j1_test_data): Likewise.
11198         (jn_test_data): Likewise.
11199         (lgamma_test_data): Likewise.
11200         (lrint_test_data): Likewise.
11201         (llrint_test_data): Likewise.
11202         (log_test_data): Likewise.
11203         (log10_test_data): Likewise.
11204         (log1p_test_data): Likewise.
11205         (log2_test_data): Likewise.
11206         (logb_test_data): Likewise.
11207         (lround_test_data): Likewise.
11208         (llround_test_data): Likewise.
11209         (modf_test_data): Likewise.
11210         (nearbyint_test_data): Likewise.
11211         (nextafter_test_data): Likewise.
11212         (nexttoward_test_data): Likewise.
11213         (pow_test_data): Likewise.
11214         (remainder_test_data): Likewise.
11215         (remquo_test_data): Likewise.
11216         (rint_test_data): Likewise.
11217         (round_test_data): Likewise.
11218         (signbit_test_data): Likewise.
11219         (sinh_test_data): Likewise.
11220         (sqrt_test_data): Likewise.
11221         (tanh_test_data): Likewise.
11222         (tgamma_test_data): Likewise.
11223         (trunc_test_data): Likewise.
11224         (y0_test_data): Likewise.
11225         (y1_test_data): Likewise.
11226         (yn_test_data): Likewise.
11227         (significand_test_data): Likewise.
11228
11229 2015-09-29  Carlos O'Donell  <carlos@redhat.com>
11230
11231         * manual/filesys.texi (Storage Allocation): Document that
11232         posix_fallocate emulation fails when fd is open with O_WRONLY.
11233
11234 2015-09-28  Joseph Myers  <joseph@codesourcery.com>
11235
11236         [BZ #19016]
11237         * sysdeps/generic/math_private.h (__x2y2m1f): Update comment to
11238         allow more cases with X^2 + Y^2 >= 0.5.
11239         * sysdeps/ieee754/dbl-64/x2y2m1.c (__x2y2m1): Likewise.  Add -1 as
11240         normal element in sum instead of special-casing based on values of
11241         arguments.
11242         * sysdeps/ieee754/dbl-64/x2y2m1f.c (__x2y2m1f): Update comment.
11243         * sysdeps/ieee754/ldbl-128/x2y2m1l.c (__x2y2m1l): Likewise.  Add
11244         -1 as normal element in sum instead of special-casing based on
11245         values of arguments.
11246         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c (__x2y2m1l): Likewise.
11247         * sysdeps/ieee754/ldbl-96/x2y2m1.c [FLT_EVAL_METHOD != 0]
11248         (__x2y2m1): Update comment.
11249         * sysdeps/ieee754/ldbl-96/x2y2m1l.c (__x2y2m1l): Likewise.  Add -1
11250         as normal element in sum instead of special-casing based on values
11251         of arguments.
11252         * math/s_clog.c (__clog): Handle more cases using log1p without
11253         hypot.
11254         * math/s_clog10.c (__clog10): Likewise.
11255         * math/s_clog10f.c (__clog10f): Likewise.
11256         * math/s_clog10l.c (__clog10l): Likewise.
11257         * math/s_clogf.c (__clogf): Likewise.
11258         * math/s_clogl.c (__clogl): Likewise.
11259         * math/auto-libm-test-in: Add more tests of clog and clog10.
11260         * math/auto-libm-test-out: Regenerated.
11261         * sysdeps/i386/fpu/libm-test-ulps: Update.
11262         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11263
11264 2015-09-28  Martin Sebor  <msebor@redhat.com>
11265
11266         [BZ #18969]
11267         * string/Makefile (LOCALES): Define.
11268         (gen-locales.mk): Include.
11269         (test-strcasecmp.out, test-strncasecmp.out, tst-strxfrm.out)
11270         (tst-strxfrm2.out): Add deppendency on $(gen-locales).
11271         * string/tst-strxfrm2.c (do_test): Print the name of the locale
11272         on setlocale failure.
11273
11274 2015-09-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
11275
11276         [BZ #18985]
11277         * time/strftime_l.c (a_wkday, f_wkday, a_month, f_month): Range check.
11278         (__strftime_internal): Likewise.
11279         * time/tst-strftime.c (do_bz18985): New test.
11280         (do_test): Call it.
11281
11282 2015-09-26  Joseph Myers  <joseph@codesourcery.com>
11283
11284         [BZ #18956]
11285         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Add 0x00400000
11286         not 0x0040000 for high bit of mantissa.  Mask with 0xfffff000 when
11287         extracting high part.
11288         * math/auto-libm-test-in: Add another test of pow.
11289         * math/auto-libm-test-out: Regenerated.
11290         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11291
11292 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
11293
11294         [BZ #18825]
11295         * sysdeps/i386/fpu/i386-math-asm.h (FLT_NARROW_EVAL_UFLOW_NONNAN):
11296         New macro.
11297         (DBL_NARROW_EVAL_UFLOW_NONNAN): Likewise.
11298         (LDBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11299         * sysdeps/i386/fpu/e_pow.S: Use DEFINE_DBL_MIN.
11300         (__ieee754_pow): Use DBL_NARROW_EVAL_UFLOW_NONNAN instead of
11301         DBL_NARROW_EVAL, reloading the PIC register as needed.
11302         * sysdeps/i386/fpu/e_powf.S: Use DEFINE_FLT_MIN.
11303         (__ieee754_powf): Use FLT_NARROW_EVAL_UFLOW_NONNAN instead of
11304         FLT_NARROW_EVAL.  Use separate return path for case when first
11305         argument is NaN.
11306         * sysdeps/i386/fpu/e_powl.S: Include <i386-math-asm.h>.  Use
11307         DEFINE_LDBL_MIN.
11308         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN, reloading the
11309         PIC register.
11310         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use
11311         math_check_force_underflow_nonneg.
11312         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Force
11313         underflow for subnormal result.
11314         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
11315         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Use
11316         math_check_force_underflow_nonneg.
11317         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Use
11318         math_check_force_underflow.
11319         * sysdeps/x86_64/fpu/x86_64-math-asm.h
11320         (LDBL_CHECK_FORCE_UFLOW_NONNAN): New macro.
11321         * sysdeps/x86_64/fpu/e_powl.S: Include <x86_64-math-asm.h>.  Use
11322         DEFINE_LDBL_MIN.
11323         (__ieee754_powl): Use LDBL_CHECK_FORCE_UFLOW_NONNAN.
11324         * math/auto-libm-test-in: Add more tests of pow.
11325         * math/auto-libm-test-out: Regenerated.
11326
11327 2015-09-25  Florian Weimer  <fweimer@redhat.com>
11328
11329         * nss/bug17079.c (init_test_items): Add diagnostic for
11330         inconsistent entries.
11331         (test_buffer_size): Skip inconsistent entries.
11332
11333 2015-09-25  Joseph Myers  <joseph@codesourcery.com>
11334
11335         [BZ #13304]
11336         * sysdeps/m68k/coldfire/nofpu/s_fma.c: New file.
11337         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
11338         * sysdeps/m68k/coldfire/nofpu/sfp-machine.h: Likewise.
11339
11340         [BZ #13304]
11341         * sysdeps/microblaze/s_fma.c: New file.
11342         * sysdeps/microblaze/s_fmaf.c: Likewise.
11343         * sysdeps/microblaze/sfp-machine.h: Likewise.
11344
11345 2015-09-25  Maciej W. Rozycki  <macro@imgtec.com>
11346
11347         [BZ #17250]
11348         * elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
11349         member.
11350
11351 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
11352
11353         [BZ #18803]
11354         * sysdeps/i386/fpu/e_hypot.S: Use DEFINE_DBL_MIN.
11355         (MO): New macro.
11356         (__ieee754_hypot) [PIC]: Load PIC register.
11357         (__ieee754_hypot): Use DBL_NARROW_EVAL_UFLOW_NONNEG instead of
11358         DBL_NARROW_EVAL.
11359         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Use
11360         math_check_force_underflow_nonneg in case where result might be
11361         tiny.
11362         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
11363         Likewise.
11364         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
11365         Likewise.
11366         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
11367         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
11368         * math/auto-libm-test-in: Add more tests of hypot.
11369         * math/auto-libm-test-out: Regenerated.
11370
11371 2015-09-24  Steve Ellcey  <sellcey@imgtec.com>
11372
11373         * sysdeps/mips/math_private.h (libc_fesetenv_mips): Mark cw as unused.
11374
11375 2015-09-24  Joseph Myers  <joseph@codesourcery.com>
11376
11377         * sysdeps/x86_64/fpu/x86_64-math-asm.h: New file.
11378         * sysdeps/x86_64/fpu/e_exp2l.S: Include <x86_64-math-asm.h>.
11379         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
11380         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
11381         * sysdeps/x86_64/fpu/e_expl.S: Include <x86_64-math-asm.h>.
11382         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
11383         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
11384
11385         * sysdeps/i386/fpu/e_atanh.S (__ieee754_atanh) [PIC]: Use
11386         LOAD_PIC_REG.
11387
11388         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_LDBL_MIN): New macro.
11389         (FLT_CHECK_FORCE_UFLOW): Likewise.
11390         (DBL_CHECK_FORCE_UFLOW): Likewise.
11391         (FLT_CHECK_FORCE_UFLOW_NARROW): Likewise.
11392         (DBL_CHECK_FORCE_UFLOW_NARROW): Likewise.
11393         (LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN): Likewise.
11394         (FLT_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11395         (DBL_CHECK_FORCE_UFLOW_NONNAN): Likewise.
11396         (FLT_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11397         (DBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11398         (LDBL_CHECK_FORCE_UFLOW_NONNEG): Likewise.
11399         * sysdeps/i386/fpu/e_asin.S: Include <i386-math-asm.h>.
11400         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11401         (__ieee754_asin): Use DBL_CHECK_FORCE_UFLOW.
11402         * sysdeps/i386/fpu/e_asinf.S: Include <i386-math-asm.h>.
11403         (flt_min): Replace with use of DEFINE_FLT_MIN.
11404         (__ieee754_asinf): Use FLT_CHECK_FORCE_UFLOW.
11405         * sysdeps/i386/fpu/e_atan2.S: Include <i386-math-asm.h>.
11406         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11407         (__ieee754_atan2): Use DBL_CHECK_FORCE_UFLOW_NARROW.
11408         * sysdeps/i386/fpu/e_atan2f.S: Include <i386-math-asm.h>.
11409         (flt_min): Replace with use of DEFINE_FLT_MIN.
11410         (__ieee754_atan2f): Use FLT_CHECK_FORCE_UFLOW_NARROW.
11411         * sysdeps/i386/fpu/e_atanh.S: Include <i386-math-asm.h>.
11412         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11413         (__ieee754_atanh): Use DBL_CHECK_FORCE_UFLOW_NONNEG.
11414         * sysdeps/i386/fpu/e_atanhf.S: Include <i386-math-asm.h>.
11415         (flt_min): Replace with use of DEFINE_FLT_MIN.
11416         (__ieee754_atanhf): Use FLT_CHECK_FORCE_UFLOW_NONNEG.
11417         * sysdeps/i386/fpu/e_exp2l.S: Include <i386-math-asm.h>.
11418         (ldbl_min): Replace with use of DEFINE_LDBL_MIN.
11419         (__ieee754_exp2l): Use LDBL_CHECK_FORCE_UFLOW_NONNEG_NAN.
11420         * sysdeps/i386/fpu/e_expl.S: Include <i386-math-asm.h>.
11421         [!USE_AS_EXPM1L] (cmin): Replace with use of DEFINE_LDBL_MIN.
11422         (IEEE754_EXPL): Use LDBL_CHECK_FORCE_UFLOW_NONNEG.
11423         * sysdeps/i386/fpu/s_atan.S: Include <i386-math-asm.h>.
11424         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11425         (__atan): Use DBL_CHECK_FORCE_UFLOW.
11426         * sysdeps/i386/fpu/s_atanf.S: Include <i386-math-asm.h>.
11427         (flt_min): Replace with use of DEFINE_FLT_MIN.
11428         (__atanf): Use FLT_CHECK_FORCE_UFLOW.
11429         * sysdeps/i386/fpu/s_expm1.S: Include <i386-math-asm.h>.
11430         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11431         (__expm1): Use DBL_CHECK_FORCE_UFLOW.  Move underflow check after
11432         main computation.
11433         * sysdeps/i386/fpu/s_expm1f.S: Include <i386-math-asm.h>.
11434         (flt_min): Replace with use of DEFINE_FLT_MIN.
11435         (__expm1f): Use FLT_CHECK_FORCE_UFLOW.  Move underflow check after
11436         main computation.
11437         * sysdeps/i386/fpu/s_log1p.S: Include <i386-math-asm.h>.
11438         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11439         (MO): New macro.
11440         (__log1p): Use MO.  Use DBL_CHECK_FORCE_UFLOW_NONNAN.
11441         * sysdeps/i386/fpu/s_log1pf.S: Include <i386-math-asm.h>.
11442         (flt_min): Replace with use of DEFINE_FLT_MIN.
11443         (MO): New macro.
11444         (__log1pf): Use MO.  Use FLT_CHECK_FORCE_UFLOW_NONNAN.
11445         * sysdeps/i386/fpu/s_log1pl.S (MO): New macro.
11446         (__log1pl): Use MO.
11447
11448         [BZ #19003]
11449         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma4.c): Add
11450         $(config-cflags-nofma).
11451
11452 2015-09-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11453
11454         * sysdeps/aarch64/libm-test-ulps: Regenerated.
11455
11456 2015-09-23  Joseph Myers  <joseph@codesourcery.com>
11457
11458         * sysdeps/ieee754/flt-32/e_exp2f.c (TWOM100): Remove volatile.
11459         (TWO127): Likewise.
11460
11461         * sysdeps/generic/math_private.h (fabs_tg): New macro.
11462         (min_of_type): Likewise.
11463         (math_check_force_underflow): Likewise.
11464         (math_check_force_underflow_nonneg): Likewise.
11465         (math_check_force_underflow_complex): Likewise.
11466         * math/e_exp2l.c (__ieee754_exp2l): Use
11467         math_check_force_underflow_nonneg.
11468         * math/k_casinh.c (__kernel_casinh): Likewise.
11469         * math/k_casinhf.c (__kernel_casinhf): Likewise.
11470         * math/k_casinhl.c (__kernel_casinhl): Likewise.
11471         * math/s_catan.c (__catan): Use
11472         math_check_force_underflow_complex.
11473         * math/s_catanf.c (__catanf): Likewise.
11474         * math/s_catanh.c (__catanh): Likewise.
11475         * math/s_catanhf.c (__catanhf): Likewise.
11476         * math/s_catanhl.c (__catanhl): Likewise.
11477         * math/s_catanl.c (__catanl): Likewise.
11478         * math/s_ccosh.c (__ccosh): Likewise.
11479         * math/s_ccoshf.c (__ccoshf): Likewise.
11480         * math/s_ccoshl.c (__ccoshl): Likewise.
11481         * math/s_cexp.c (__cexp): Likewise.
11482         * math/s_cexpf.c (__cexpf): Likewise.
11483         * math/s_cexpl.c (__cexpl): Likewise.
11484         * math/s_clog.c (__clog): Use math_check_force_underflow_nonneg.
11485         * math/s_clog10.c (__clog10): Likewise.
11486         * math/s_clog10f.c (__clog10f): Likewise.
11487         * math/s_clog10l.c (__clog10l): Likewise.
11488         * math/s_clogf.c (__clogf): Likewise.
11489         * math/s_clogl.c (__clogl): Likewise.
11490         * math/s_csin.c (__csin): Use math_check_force_underflow_complex.
11491         * math/s_csinf.c (__csinf): Likewise.
11492         * math/s_csinh.c (__csinh): Likewise.
11493         * math/s_csinhf.c (__csinhf): Likewise.
11494         * math/s_csinhl.c (__csinhl): Likewise.
11495         * math/s_csinl.c (__csinl): Likewise.
11496         * math/s_csqrt.c (__csqrt): Use math_check_force_underflow.
11497         * math/s_csqrtf.c (__csqrtf): Likewise.
11498         * math/s_csqrtl.c (__csqrtl): Likewise.
11499         * math/s_ctan.c (__ctan): Use math_check_force_underflow_complex.
11500         * math/s_ctanf.c (__ctanf): Likewise.
11501         * math/s_ctanh.c (__ctanh): Likewise.
11502         * math/s_ctanhf.c (__ctanhf): Likewise.
11503         * math/s_ctanhl.c (__ctanhl): Likewise.
11504         * math/s_ctanl.c (__ctanl): Likewise.
11505         * stdlib/strtod_l.c (round_and_return): Use math_force_eval
11506         instead of volatile.
11507         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use
11508         math_check_force_underflow.
11509         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
11510         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Do not use
11511         volatile when forcing underflow.
11512         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
11513         math_check_force_underflow_nonneg.
11514         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
11515         Likewise.
11516         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Use
11517         math_check_force_underflow.
11518         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
11519         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11520         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
11521         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Use
11522         math_check_force_underflow_nonneg.
11523         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Use
11524         math_check_force_underflow.
11525         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
11526         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval
11527         instead of volatile.
11528         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Use
11529         math_check_force_underflow.
11530         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
11531         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
11532         math_check_force_underflow_nonneg.
11533         * sysdeps/ieee754/dbl-64/s_tanh.c (__tanh): Use
11534         math_check_force_underflow.
11535         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
11536         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
11537         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Use
11538         math_check_force_underflow_nonneg.
11539         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11540         Likewise.
11541         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Use
11542         math_check_force_underflow.
11543         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
11544         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11545         * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
11546         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Likewise.
11547         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
11548         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Likewise.
11549         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
11550         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
11551         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
11552         * sysdeps/ieee754/flt-32/s_tanhf.c (__tanhf): Likewise.
11553         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
11554         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
11555         Likewise.
11556         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Use
11557         math_check_force_underflow_nonneg.
11558         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11559         Likewise.
11560         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Use
11561         math_check_force_underflow.
11562         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11563         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
11564         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11565         Likewise.
11566         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
11567         * sysdeps/ieee754/ldbl-128/k_tanl.c (__kernel_tanl): Likewise.
11568         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__asinhl): Likewise.
11569         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Likewise.
11570         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Likewise.
11571         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
11572         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use math_force_eval
11573         instead of volatile.
11574         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Use
11575         math_check_force_underflow.
11576         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
11577         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Use
11578         math_check_force_underflow.
11579         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl):
11580         Likewise.
11581         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11582         Use math_check_force_underflow_nonneg.
11583         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Use
11584         math_check_force_underflow.
11585         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl):
11586         Likewise.
11587         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11588         Likewise.
11589         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11590         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
11591         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
11592         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
11593         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Likewise.
11594         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
11595         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
11596         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
11597         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r): Use
11598         math_check_force_underflow_nonneg.
11599         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Use
11600         math_check_force_underflow.
11601         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11602         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
11603         * sysdeps/ieee754/ldbl-96/k_sinl.c (__kernel_sinl): Likewise.
11604         * sysdeps/ieee754/ldbl-96/k_tanl.c (__kernel_tanl): Use
11605         math_check_force_underflow_nonneg.
11606         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Use
11607         math_check_force_underflow.
11608         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
11609         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Use math_force_eval
11610         instead of volatile.
11611         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Use
11612         math_check_force_underflow.
11613
11614         * math/s_nexttowardf.c (__nexttowardf): Use math_narrow_eval.
11615         * stdlib/strtod_l.c: Include <math_private.h>.
11616         (overflow_value): Use math_narrow_eval.
11617         (underflow_value): Likewise.
11618         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
11619         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
11620         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
11621         (__ieee754_gamma_r): Likewise.
11622         * sysdeps/ieee754/dbl-64/gamma_productf.c (__gamma_productf):
11623         Likewise.
11624         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
11625         Likewise.
11626         * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
11627         * sysdeps/ieee754/dbl-64/s_erf.c (__erfc): Likewise.
11628         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
11629         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
11630         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
11631         (__ieee754_gammaf_r): Likewise.
11632         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11633         Likewise.
11634         * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
11635         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Likewise.
11636         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
11637         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
11638         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Do not use
11639         volatile.
11640         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
11641         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward): Use
11642         math_narrow_eval.
11643         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward):
11644         Likewise.
11645         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
11646         Likewise.
11647         * sysdeps/ieee754/ldbl-96/gamma_product.c (__gamma_product):
11648         Likewise.
11649         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Do not use
11650         volatile.
11651         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
11652         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Use
11653         math_narrow_eval.
11654         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
11655         Likewise.
11656         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
11657         Likewise.
11658
11659 2015-09-22  H.J. Lu  <hongjiu.lu@intel.com>
11660
11661         * nptl/Versions: Remove ignored symbols.
11662
11663 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11664
11665         * nss/bug17079.c: Renamed from nss/bug18287.c.  Add description.
11666         * nss/Makefile (tests): Update.
11667
11668 2015-09-22  Florian Weimer  <fweimer@redhat.com>
11669
11670         * nss/bug18287.c: New file.
11671         * nss/Makefile (tests): Add bug18287.
11672
11673 2015-09-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11674
11675         * mach/Versions (__mach_host_self_): Add symbol.
11676
11677 2015-09-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11678
11679         * sysdeps/mach/hurd/mmap.c (__mmap): Use __vm_page_size instead of
11680         vm_page_size.
11681
11682 2015-09-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11683
11684         Really fix sysdeps/i386/fpu/s_scalbn.S build
11685
11686         * math/Versions (libc: GLIBC_2_20): New (empty) version set.
11687         (libc: GLIBC_2_22): Remove unused version set.
11688
11689 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11690
11691         * config.make.in (enable-timezone-tools): New variable.
11692         * configure.ac (AC_ARG_ENABLE(timezone-tools)): New configure flag.
11693         (enable_timezone_tools): Export to generated files.
11694         * configure: Regenerate.
11695         * INSTALL: Regenerate.
11696         * manual/install.texi (--disable-timezone-tools): Document new flag.
11697         * timezone/Makefile (install-sbin, install-bin-script): Wrap in a
11698         ifeq ($(enable-timezone-tools),yes) check.
11699
11700 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11701
11702         * timezone/Makefile: Revert previous change.
11703
11704         [BZ #18980]
11705         * sysdeps/i386/fpu/i386-math-asm.h (DEFINE_FLT_MIN): New macro.
11706         (DEFINE_DBL_MIN): Likewise.
11707         (FLT_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11708         (DBL_NARROW_EVAL_UFLOW_NONNEG_NAN): Likewise.
11709         (FLT_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11710         (DBL_NARROW_EVAL_UFLOW_NONNEG): Likewise.
11711         * sysdeps/i386/fpu/e_exp.S: Include <i386-math-asm.h>.
11712         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11713         (__ieee754_exp): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11714         (__exp_finite): Use DBL_NARROW_EVAL_UFLOW_NONNEG.
11715         * sysdeps/i386/fpu/e_exp10.S: Include <i386-math-asm.h>.
11716         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11717         (__ieee754_exp10): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11718         * sysdeps/i386/fpu/e_exp10f.S: Include <i386-math-asm.h>.
11719         (flt_min): Replace with use of DEFINE_FLT_MIN.
11720         (__ieee754_exp10f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11721         * sysdeps/i386/fpu/e_exp2.S: Include <i386-math-asm.h>.
11722         (dbl_min): Replace with use of DEFINE_DBL_MIN.
11723         (__ieee754_exp2): Use DBL_NARROW_EVAL_UFLOW_NONNEG_NAN.
11724         * sysdeps/i386/fpu/e_exp2f.S: Include <i386-math-asm.h>.
11725         (flt_min): Replace with use of DEFINE_FLT_MIN.
11726         (__ieee754_exp2f): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11727         * sysdeps/i386/fpu/e_expf.S: Include <i386-math-asm.h>.
11728         (flt_min): Replace with use of DEFINE_FLT_MIN.
11729         (__ieee754_expf): Use FLT_NARROW_EVAL_UFLOW_NONNEG_NAN.
11730         (__expf_finite): Use FLT_NARROW_EVAL_UFLOW_NONNEG.
11731         * sysdeps/i386/fpu/e_hypot.S: Include <i386-math-asm.h>.
11732         (__ieee754_hypot): Use DBL_NARROW_EVAL.
11733         * sysdeps/i386/fpu/e_hypotf.S: Include <i386-math-asm.h>.
11734         (__ieee754_hypotf): Use FLT_NARROW_EVAL.
11735         * sysdeps/i386/fpu/e_pow.S: Include <i386-math-asm.h>.
11736         (__ieee754_pow): Use DBL_NARROW_EVAL.
11737         * sysdeps/i386/fpu/e_powf.S: Include <i386-math-asm.h>.
11738         (__ieee754_powf): Use FLT_NARROW_EVAL.
11739         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S
11740         (__ieee754_expf_sse2): Convert double-precision result to single
11741         precision.
11742         * sysdeps/i386/fpu/libm-test-ulps: Update.
11743
11744 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11745
11746         * timezone/Makefile: Ignore unused variable errors due to private.h
11747         (time_t_min) and (time_t_max).
11748         * timezone/private.h (time_t_min): Revert removal.  (time_t_max):
11749         Likewise.
11750
11751 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11752
11753         [BZ #18981]
11754         * sysdeps/i386/fpu/i386-math-asm.h: New file.
11755         * sysdeps/i386/fpu/e_scalb.S: Include <i386-math-asm.h>.
11756         (__ieee754_scalb): Use DBL_NARROW_EVAL.
11757         * sysdeps/i386/fpu/e_scalbf.S: Include <i386-math-asm.h>.
11758         (__ieee754_scalbf): Use FLT_NARROW_EVAL.
11759         * sysdeps/i386/fpu/s_scalbn.S: Include <i386-math-asm.h>.
11760         (__scalbn): Use DBL_NARROW_EVAL.
11761         * sysdeps/i386/fpu/s_scalbnf.S: Include <i386-math-asm.h>.
11762         (__scalbnf): Use FLT_NARROW_EVAL.
11763
11764 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11765
11766         * math/w_tgamma.c (__ieee754_gamma_r): Use explicit sign check.
11767         * math/w_tgammaf.c (__ieee754_gammaf_r): Likewise.
11768         * math/w_tgammal.c (__ieee754_gammal_r): Likewise.
11769         * stdio-common/printf_fp.c (___printf_fp):
11770         Use signbit to get the sign. Use isinf macro to allow inlining.
11771         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.
11772         * stdio-common/printf_size.c (__printf_size): Likewise.
11773
11774 2015-09-18  Mike Frysinger  <vapier@gentoo.org>
11775
11776         * timezone/Makefile ($(testdata)/XT%): Call $(make-target-directory).
11777
11778 2015-09-18  Joseph Myers  <joseph@codesourcery.com>
11779
11780         [BZ #18980]
11781         * sysdeps/generic/math_private.h: Include <float.h>.
11782         (math_narrow_eval): New macro.
11783         [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
11784         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Use
11785         math_narrow_eval on overflowing return value.
11786         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r):
11787         Likewise.
11788         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
11789         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Likewise.
11790         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r):
11791         Likewise.
11792         * sysdeps/ieee754/flt-32/e_sinhf.c (__ieee754_sinhf): Likewise.
11793
11794 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11795
11796         * include/math.h: Remove __isinf_ns, __isinf_nsf, __isinf_nsl.
11797         * math/Makefile: Remove isinf_ns.c.
11798         * math/divtc3.c (__divtc3): Replace __isinf_nsl with isinf.
11799         * math/multc3.c (__multc3): Likewise.
11800         * math/s_casin.c (__casin): Likewise.
11801         * math/s_casinf.c (__casinf): Likewise.
11802         * math/s_casinl.c (__casinl): Likewise.
11803         * math/s_cproj.c (__cproj): Likewise.
11804         * math/s_cprojf.c (__cprojf): Likewise.
11805         * math/s_cprojl.c (__cprofl): Likewise.
11806         * math/s_ctan.c (__ctan): Likewise.
11807         * math/s_ctanf.c (__ctanf): Likewise.
11808         * math/s_ctanh.c (__ctanh): Likewise.
11809         * math/s_ctanhf.c (__ctanhf): Likewise.
11810         * math/s_ctanhl.c (__ctanhl): Likewise.
11811         * math/s_ctanl.c (__ctanl): Likewise.
11812         * math/w_fmod.c (__fmod): Likewise.
11813         * math/w_fmodf.c (__fmodf): Likewise.
11814         * math/w_fmodl.c (_fmodl): Likewise.
11815         * math/w_remainder.c (__remainder): Likewise.
11816         * math/w_remainderf.c (__remainderf): Likewise.
11817         * math/w_remainderl.c (__remainderl): Likewise.
11818         * math/w_scalb.c (__scalb): Likewise.
11819         * math/w_scalbf.c (__scalbf): Likewise.
11820         * math/w_scalbl.c (__scalbl): Likewise.
11821         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Deleted file.
11822         * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Replace __isinf_ns
11823         with isinf.
11824         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Deleted file.
11825         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Deleted file.
11826         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Replace
11827         __isinf_nsf with isinf.
11828         * sysdeps/ieee754/flt-32/math_private.h: Deleted file.
11829         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Deleted file.
11830         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Deleted file.
11831         * sysdeps/ieee754/ldbl-128/s_sincosl.c (__sincosl): Replace __isinf_nsl
11832         with isinf.
11833         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c(__cprojll): Replace
11834         __isinf_nsl with isinf.
11835         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c(__ctanl): Replace __isinf_nsl
11836         with isinf.
11837         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Deleted file.
11838         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Replace
11839         __isinf_nsl with isinf.
11840         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Deleted file.
11841         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Replace __isinf_nsl
11842         with isinf.
11843
11844 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11845
11846         * resolv/base64.c (rcsid): Remove unused static.
11847         * sysdeps/ieee754/dbl-64/atnat2.h (qpi1): Remove unused
11848         static.  (tqpi1): Likewise.
11849         * sysdeps/ieee754/dbl-64/uexp.h (one): Likewise.
11850         * sysdeps/ieee754/dbl-64/upow.h (sqrt_2): Likewise.
11851         * sysdeps/ieee754/flt-32/e_log10f.c (one): Likewise.
11852         * sysdeps/ieee754/flt-32/s_cosf.c (one): Likewise.
11853         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (zero): Likewise.
11854         * sysdeps/ieee754/ldbl-128/s_erfl.c (half): Likewise.
11855         * sysdeps/ieee754/ldbl-128/s_log1pl.c (maxlog): Likewise.
11856         * timezone/private.h (time_t_min): Likewise.  (time_t_max):
11857         Likewise.
11858
11859 2015-09-18  H.J. Lu  <hongjiu.lu@intel.com>
11860
11861         * sysdeps/nptl/jmp-unwind.c: Include <libc-lock.h> instead of
11862         <nptl/pthreadP.h>.
11863         (_longjmp_unwind): Use __libc_ptf_call.
11864         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Likewise.
11865
11866 2015-09-18  David Lamparter  <equinox-gentoo@diac24.net>
11867
11868         * sysdeps/arm/setjmp.S: Change PIC to SHARED.
11869         * sysdeps/arm/__longjmp.S: Likewise.
11870
11871 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11872
11873         * sysdeps/ieee754/dbl-64/s_signbit.c (__signbit):
11874         Use __builtin_signbit.
11875         * sysdeps/ieee754/flt-32/s_signbitf.c (__signbitf):
11876         Use __builtin_signbitf.
11877         * sysdeps/ieee754/ldbl-128/s_signbitl.c (__signbitl):
11878         Use __builtin_signbitl.
11879         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
11880         * sysdeps/ieee754/ldbl-96/s_signbitl.c (__signbitl): Likewise.
11881
11882 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11883
11884         [BZ #15367]
11885         [BZ #17441]
11886
11887         * math/Makefile: Build test-snan.c with -fsignaling-nans.
11888         * math/math.h (fpclassify): Use __builtin_fpclassify when
11889         available.  (signbit): Use __builtin_signbit(f/l).
11890         (isfinite): Use__builtin_isfinite.  (isnormal): Use
11891         __builtin_isnormal.  (isnan): Use __builtin_isnan.
11892         (isinf): Use __builtin_isinf_sign.
11893
11894 2015-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
11895
11896         * benchtests/Makefile: Add bench-math-inlines, link with libm.
11897         * benchtests/bench-math-inlines.c: New benchmark.
11898         * benchtests/bench-util.h: New file.
11899         * benchtests/bench-util.c: New file.
11900         * benchtests/bench-skeleton.c: Add include of bench-util.c/h.
11901
11902 2015-09-18  Carlos O'Donell  <carlos@redhat.com>
11903
11904         * elf/tst-dlmopen1.c: Define TEST_SO.
11905         (do_test): Use TEST_SO.
11906
11907         * elf/dl-load.c: Include libc-internal.h.
11908         (_dl_map_object_from_fd): Use ALIGN_UP and ALIGN_DOWN.
11909
11910 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11911
11912         [BZ #17887]
11913         * time/strptime_l.c (__strptime_internal): Make %z accept
11914         [+-]HH:MM time zones.
11915
11916 2015-09-18  Vincent Bernat  <vincent@bernat.im>
11917
11918         [BZ #17886]
11919         * time/strptime_l.c (__strptime_internal): Make %z accept Z as a
11920         valid time zone.
11921
11922 2015-09-17  Mike Frysinger  <vapier@gentoo.org>
11923
11924         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-fdatasync.c): Delete.
11925         * sysdeps/unix/sysv/linux/alpha/fdatasync.c: Delete.
11926         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11927         (__ASSUME_FDATASYNC): Delete.
11928
11929 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11930
11931         * conform/linknamespace.pl: Require weak undefined symbols to be
11932         in the standard namespace.
11933         (%strong_syms): Rename to %seen_syms.
11934         (%strong_seen): Rename to %seen_where.
11935
11936 2015-09-17  H.J. Lu  <hongjiu.lu@intel.com>
11937
11938         [BZ #18970]
11939         * misc/error.c (error): Replace pthread_setcancelstate with
11940         __pthread_setcancelstate.
11941         (error_at_line): Likewise.
11942         * posix/wordexp.c (parse_comm): Likewise.
11943         * stdlib/fmtmsg.c (fmtmsg): Likewise.
11944         * nptl/forward.c (pthread_setcancelstate): Renamed to ...
11945         (__pthread_setcancelstate): This.
11946         (pthread_setcancelstate): Add an alias.
11947         * nptl/nptl-init.c (pthread_functions): Replace
11948         ptr_pthread_setcancelstate with ptr___pthread_setcancelstate.
11949         * sysdeps/nptl/pthread-functions.h (pthread_functions): Likewise.
11950         * nptl/pthreadP.h (__pthread_setcancelstate): Mark it with
11951         hidden_proto.
11952         * nptl/pthread_setcancelstate.c (__pthread_setcancelstate): Mark
11953         it with hidden_def.
11954         * sysdeps/nptl/libc-lockP.h (__pthread_setcancelstate): New.
11955         (pthread_setcancelstate): Renamed to ...
11956         (__pthread_setcancelstate): This.
11957         * sysdeps/unix/sysv/linux/fatal-prepare.h (FATAL_PREPARE): Use
11958         __libc_ptf_call with __pthread_setcancelstate.
11959
11960 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11961             Andreas Schwab  <schwab@suse.de>
11962
11963         [BZ #17118]
11964         * math/s_ctan.c (__ctan): Determine sign of zero real part of
11965         result when imaginary part of argument is infinite using sine and
11966         cosine.
11967         * math/s_ctanf.c (__ctanf): Likewise.
11968         * math/s_ctanl.c (__ctanl): Likewise.
11969         * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part
11970         of result when real part of argument is infinite using sine and
11971         cosine.
11972         * math/s_ctanhf.c (__ctanhf): Likewise.
11973         * math/s_ctanhl.c (__ctanhl): Likewise.
11974         * math/libm-test.inc (ctan_test_data): Add more tests of ctan.
11975         (ctanh_test_data): Add more tests of ctanh.
11976
11977 2015-09-17  Joseph Myers  <joseph@codesourcery.com>
11978
11979         [BZ #15384]
11980         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Use same constant as
11981         bit-mask as in subtraction.
11982         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c (__finite):
11983         Likewise.
11984         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
11985         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
11986         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (__finitel): Likewise.
11987
11988         [BZ #18951]
11989         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Force
11990         underflow exception for small results.
11991         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
11992         Likewise.
11993         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
11994         Likewise.
11995         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
11996         Likewise.
11997         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
11998         Likewise.
11999         * math/auto-libm-test-in: Add more tests of tgamma.
12000         * math/auto-libm-test-out: Regenerated.
12001
12002 2015-09-17  Andreas Schwab  <schwab@suse.de>
12003
12004         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Readd.
12005
12006 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
12007
12008         [BZ #18977]
12009         * math/bits/mathcalls.h
12010         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j0): Do
12011         not declare.
12012         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (j1):
12013         Likewise.
12014         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (jn):
12015         Likewise.
12016         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y0):
12017         Likewise.
12018         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (y1):
12019         Likewise.
12020         [!__USE_MISC && __USE_XOPEN && !__MATH_DECLARING_DOUBLE] (yn):
12021         Likewise.
12022         * conform/data/math.h-data
12023         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0f): Do not expect
12024         function.
12025         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1f): Likewise.
12026         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnf): Likewise.
12027         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0f): Likewise.
12028         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1f): Likewise.
12029         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynf): Likewise.
12030         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j0l): Likewise.
12031         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (j1l): Likewise.
12032         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (jnl): Likewise.
12033         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y0l): Likewise.
12034         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (y1l): Likewise.
12035         [!ISO99 && !ISO11 && !POSIX && !POSIX2008] (ynl): Likewise.
12036
12037         [BZ #6803]
12038         * math/s_ldexp.c (scalbn): Define as weak alias of __ldexp.
12039         [NO_LONG_DOUBLE] (scalbnl): Define as weak alias of __ldexp.
12040         * math/s_ldexpf.c (scalbnf): Define as weak alias of __ldexpf.
12041         * math/s_ldexpl.c (scalbnl): Define as weak alias of __ldexpl.
12042         * sysdeps/i386/fpu/s_scalbn.S (scalbn): Remove alias.
12043         * sysdeps/i386/fpu/s_scalbnf.S (scalbnf): Likewise.
12044         * sysdeps/i386/fpu/s_scalbnl.S (scalbnl): Likewise.
12045         * sysdeps/ieee754/dbl-64/s_scalbn.c (scalbn): Likewise.
12046         [NO_LONG_DOUBLE] (scalbnl): Likewise.
12047         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (scalbn):
12048         Likewise.
12049         [NO_LONG_DOUBLE] (scalbnl): Likewise.
12050         * sysdeps/ieee754/flt-32/s_scalbnf.c (scalbnf): Likewise.
12051         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (scalbnl): Likewise.
12052         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (scalbnl): Remove
12053         long_double_symbol calls.
12054         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c (scalbnl): Likewise.
12055         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (__ldexpl_2): Define as
12056         strong alias of __ldexpl.
12057         (scalbnl): Define using long_double_symbol.
12058         * sysdeps/m68k/m680x0/fpu/s_scalbn.c (__CONCATX(scalbn,suffix)):
12059         Remove alias.
12060         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c (scalbnl): Likewise.
12061         * sysdeps/x86_64/fpu/s_scalbnl.S (scalbnl): Likewise.
12062         * math/libm-test.inc (scalbn_test_data): Add errno expectations.
12063         (scalbln_test_data): Add more errno expectations.
12064
12065 2015-09-16  Justus Winter  <4winter@informatik.uni-hamburg.de>
12066
12067         Cache the host port like we cache the task port.  This way we do not
12068         need to call the kernel just to get the port.  Furthermore, we no
12069         longer increase the reference count on every invocation of
12070         `mach_host_self'.
12071
12072         * mach/mach/mach_traps.h (__mach_host_self, mach_host_self):
12073         Protect declarations against the macro expansion.
12074         * mach/mach_init.c (__mach_host_self_): New variable.
12075         (mach_init): Initialize `__mach_host_self_'.
12076         * mach/mach_init.h (__mach_host_self_): New declaration.
12077         (__mach_host_self, mach_host_self): New macros.
12078         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup):
12079         Release reference.
12080
12081 2015-09-16  Joseph Myers  <joseph@codesourcery.com>
12082
12083         [BZ #4404]
12084         * po/de.po: Update from Translation Project.
12085
12086         [BZ #16415]
12087         * sysdeps/ieee754/ldbl-128/s_expm1l.c (maxlog): Remove variable.
12088         (__expm1l): Remove code to handle positive infinity and overflow.
12089         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (maxlog): Remove
12090         variable.
12091         (__expm1l): Remove code to handle positive infinity and overflow.
12092
12093 2015-09-16  Paul Eggert  <eggert@cs.ucla.edu>
12094             Paul Pluzhnikov  <ppluzhnikov@google.com>
12095
12096         [BZ #18872]
12097         * stdio-common/Makefile (tst-printf-bz18872): New test.
12098         (tst-printf-bz18872-mem.out): Likewise.
12099         * stdio-common/tst-printf-bz18872.sh: Generate new test.
12100         * stdio-common/vfprintf.c: Fix memory leaks.
12101
12102 2015-09-16  Andreas Schwab  <schwab@suse.de>
12103
12104         [BZ #17244]
12105         * sysdeps/unix/sysv/linux/semctl.c (__old_semctl, __new_semctl):
12106         Remove extra va_start/va_end calls.
12107
12108         [BZ #17243]
12109         * posix/execl.c (execl): Add missing va_end.
12110         * posix/execle.c (execle): Likewise.
12111         * posix/execlp.c (execlp): Likewise.
12112
12113 2015-09-15  Roland McGrath  <roland@hack.frob.com>
12114
12115         * misc/sys/param.h [!MAXHOSTNAMELEN && HOST_NAME_MAX]
12116         (MAXHOSTNAMELEN): Define it to HOST_NAME_MAX.
12117
12118 2015-09-15  Joseph Myers  <joseph@codesourcery.com>
12119
12120         [BZ #18967]
12121         * math/math.h (__MATH_DECLARING_DOUBLE): New macro.  Define and
12122         undefine around includes of <bits/mathcalls.h>.
12123         * math/bits/mathcalls.h [!__USE_MISC && __USE_XOPEN2K] (isnan): Do
12124         not declare function.
12125         [!__USE_MISC && __USE_XOPEN2K] (gamma): Likewise.
12126         [!__USE_MISC && (!__MATH_DECLARING_DOUBLE || __USE_XOPEN2K8)]
12127         (scalb): Likewise.
12128         * math/tgmath.h [!__USE_MISC && __USE_XOPEN_EXTENDED] (scalb): Do
12129         not define macro.
12130         * conform/Makefile (test-xfail-XOPEN2K/math.h/conform): Remove
12131         variable.
12132         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
12133         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
12134         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
12135
12136         [BZ #18857]
12137         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c (__nearbyintl): Just
12138         return non-finite argument without doing ordered comparisons on
12139         it.
12140
12141         [BZ #16296]
12142         * math/fenv.h (fegetround): Use __attribute_pure__.
12143         * include/fenv.h (__fegetround): Likewise.
12144
12145         [BZ #18595]
12146         * math/s_ctan.c (__ctan): Force underflow exception for results
12147         whose real or imaginary part has small absolute value.
12148         * math/s_ctanf.c (__ctanf): Likewise.
12149         * math/s_ctanh.c (__ctanh): Likewise.
12150         * math/s_ctanhf.c (__ctanhf): Likewise.
12151         * math/s_ctanhl.c (__ctanhl): Likewise.
12152         * math/s_ctanl.c (__ctanl): Likewise.
12153         * math/auto-libm-test-in: Do not allow missing underflow for ctan
12154         and ctanh.  Add more tests of ctan and ctanh.
12155
12156         [BZ #15918]
12157         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Simplify
12158         handling of cases where one argument is an infinity.
12159
12160         [BZ #18875]
12161         [BZ #18966]
12162         * sysdeps/i386/fpu/e_exp10.S (dbl_min): New object.
12163         (MO): New macro.
12164         (__ieee754_exp10): For small results, force underflow exception
12165         and remove excess range and precision from return value.
12166         * sysdeps/i386/fpu/e_exp10f.S (flt_min): New object.
12167         (MO): New macro.
12168         (__ieee754_exp10f): For small results, force underflow exception
12169         and remove excess range and precision from return value.
12170         * math/auto-libm-test-in: Add more tests of exp10.
12171         * math/auto-libm-test-out: Regenerated.
12172
12173 2015-09-14  Joseph Myers  <joseph@codesourcery.com>
12174
12175         [BZ #18875]
12176         [BZ #18961]
12177         * sysdeps/i386/fpu/e_exp.S (dbl_min): New object.
12178         (MO): New macro.
12179         (__ieee754_exp): For small results, force underflow exception and
12180         remove excess range and precision from return value.
12181         (__exp_finite): Likewise.
12182         * sysdeps/i386/fpu/e_expf.S (flt_min): New object.
12183         (MO): New macro.
12184         (__ieee754_expf): For small results, force underflow exception and
12185         remove excess range and precision from return value.
12186         (__expf_finite): Likewise.
12187         * math/auto-libm-test-in: Add more tests of exp.
12188         * math/auto-libm-test-out: Regenerated.
12189
12190         [BZ #16521]
12191         [BZ #18875]
12192         * math/e_exp2l.c (__ieee754_exp2l): Force underflow exception for
12193         small results.
12194         * sysdeps/i386/fpu/e_exp2.S (dbl_min): New object.
12195         (MO): New macro.
12196         (__ieee754_exp2): For small results, force underflow exception and
12197         remove excess range and precision from return value.
12198         * sysdeps/i386/fpu/e_exp2f.S (flt_min): New object.
12199         (MO): New macro.
12200         (__ieee754_exp2f): For small results, force underflow exception
12201         and remove excess range and precision from return value.
12202         * sysdeps/i386/fpu/e_exp2l.S (ldbl_min): New object.
12203         (MO): New macro.
12204         (__ieee754_exp2l): Force underflow exception for small results.
12205         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
12206         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
12207         * sysdeps/x86_64/fpu/e_exp2l.S (ldbl_min): New object.
12208         (MO): New macro.
12209         (__ieee754_exp2l): Force underflow exception for small results.
12210         * math/auto-libm-test-in: Add more tests or exp2.
12211         * math/auto-libm-test-out: Regenerated.
12212
12213 2015-09-14  Carlos O'Donell  <carlos@redhat.com>
12214
12215         * malloc/malloc.c (systrim): Use ALIGN_DOWN.
12216
12217         * Makefile ($(objpfx)check-local-headers.out): Redirect stdin from
12218         /dev/null.
12219
12220 2015-09-13  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12221
12222         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12223         io fs process)): Drop spurious backslash.
12224
12225 2015-09-12  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
12226
12227         * sysdeps/unix/sysv/linux/getsysstats.c (__get_phys_pages):
12228         Use sysinfo system call instead of parsing /proc/meminfo.
12229         * sysdeps/unix/sysv/linux/getsysstats.c (__get_avphys_pages):
12230         Likewise.
12231
12232 2015-09-11  Mike Frysinger  <vapier@gentoo.org>
12233
12234         [BZ #16985]
12235         * programs/localedef.c (main): Display argv[remaining] when
12236         output_path is NULL.
12237
12238 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
12239
12240         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
12241         asinh, atan, atan2, atanh, cabs, carg, cos, csqrt, erfc, exp,
12242         exp10, exp2, log, log1p, log2, pow, sin, sincos, sinh, tan and
12243         tanh.
12244         * math/auto-libm-test-out: Regenerated.
12245         * sysdeps/i386/fpu/libm-test-ulps: Update.
12246         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
12247         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12248         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12249
12250 2015-09-11  Roland McGrath  <roland@hack.frob.com>
12251
12252         * sysdeps/nacl/Makefile [$(subdir) = misc] (sysdep_headers):
12253         Use 'override' keyword to freeze the value here, preventing
12254         the addition of sys/mtio.h by sysdeps/gnu/Makefile.
12255
12256 2015-09-11  Joseph Myers  <joseph@codesourcery.com>
12257
12258         [BZ #14912]
12259         * sysdeps/aarch64/bits/atomic.h: Move to ...
12260         * sysdeps/aarch64/atomic-machine.h: ...here.
12261         (_AARCH64_BITS_ATOMIC_H): Rename macro to
12262         _AARCH64_ATOMIC_MACHINE_H.
12263         * sysdeps/alpha/bits/atomic.h: Move to ...
12264         * sysdeps/alpha/atomic-machine.h: ...here.
12265         * sysdeps/arm/bits/atomic.h: Move to ...
12266         * sysdeps/arm/atomic-machine.h: ...here.  Update comments.
12267         * bits/atomic.h: Move to ...
12268         * sysdeps/generic/atomic-machine.h: ...here.
12269         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12270         * sysdeps/i386/bits/atomic.h: Move to ...
12271         * sysdeps/i386/atomic-machine.h: ...here.
12272         * sysdeps/ia64/bits/atomic.h: Move to ...
12273         * sysdeps/ia64/atomic-machine.h: ...here.
12274         * sysdeps/m68k/coldfire/bits/atomic.h: Move to ...
12275         * sysdeps/m68k/coldfire/atomic-machine.h: ...here.
12276         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12277         * sysdeps/m68k/m680x0/m68020/bits/atomic.h: Move to ...
12278         * sysdeps/m68k/m680x0/m68020/atomic-machine.h: ...here.
12279         * sysdeps/microblaze/bits/atomic.h: Move to ...
12280         * sysdeps/microblaze/atomic-machine.h: ...here.
12281         * sysdeps/mips/bits/atomic.h: Move to ...
12282         * sysdeps/mips/atomic-machine.h: ...here.
12283         (_MIPS_BITS_ATOMIC_H): Rename macro to _MIPS_ATOMIC_MACHINE_H.
12284         * sysdeps/powerpc/bits/atomic.h: Move to ...
12285         * sysdeps/powerpc/atomic-machine.h: ...here.  Update comments.
12286         * sysdeps/powerpc/powerpc32/bits/atomic.h: Move to ...
12287         * sysdeps/powerpc/powerpc32/atomic-machine.h: ...here.  Update
12288         comments.  Include <atomic-machine.h> instead of <bits/atomic.h>.
12289         * sysdeps/powerpc/powerpc64/bits/atomic.h: Move to ...
12290         * sysdeps/powerpc/powerpc64/atomic-machine.h: ...here.  Include
12291         <atomic-machine.h> instead of <bits/atomic.h>.
12292         * sysdeps/s390/bits/atomic.h: Move to ...
12293         * sysdeps/s390/atomic-machine.h: ...here.
12294         * sysdeps/sparc/sparc32/bits/atomic.h: Move to ...
12295         * sysdeps/sparc/sparc32/atomic-machine.h: ...here.
12296         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12297         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: Move to ...
12298         * sysdeps/sparc/sparc32/sparcv9/atomic-machine.h: ...here.
12299         * sysdeps/sparc/sparc64/bits/atomic.h: Move to ...
12300         * sysdeps/sparc/sparc64/atomic-machine.h: ...here.
12301         * sysdeps/tile/bits/atomic.h: Move to ...
12302         * sysdeps/tile/atomic-machine.h: ...here.
12303         * sysdeps/tile/tilegx/bits/atomic.h: Move to ...
12304         * sysdeps/tile/tilegx/atomic-machine.h: ...here.  Include
12305         <sysdeps/tile/atomic-machine.h> instead of
12306         <sysdeps/tile/bits/atomic.h>.
12307         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12308         * sysdeps/tile/tilepro/bits/atomic.h: Move to ...
12309         * sysdeps/tile/tilepro/atomic-machine.h: ...here.  Include
12310         <sysdeps/tile/atomic-machine.h> instead of
12311         <sysdeps/tile/bits/atomic.h>.
12312         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12313         * sysdeps/unix/sysv/linux/arm/bits/atomic.h: Move to ...
12314         * sysdeps/unix/sysv/linux/arm/atomic-machine.h: ...here.  Include
12315         <sysdeps/arm/atomic-machine.h> instead of
12316         <sysdeps/arm/bits/atomic.h>.
12317         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Move to ...
12318         * sysdeps/unix/sysv/linux/hppa/atomic-machine.h: ...here.
12319         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12320         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Move to ...
12321         * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: ...here.
12322         (_BITS_ATOMIC_H): Rename macro to _ATOMIC_MACHINE_H.
12323         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: Move to ...
12324         * sysdeps/unix/sysv/linux/nios2/atomic-machine.h: ...here.
12325         (_NIOS2_BITS_ATOMIC_H): Rename macro to _NIOS2_ATOMIC_MACHINE_H.
12326         * sysdeps/unix/sysv/linux/sh/bits/atomic.h: Move to ...
12327         * sysdeps/unix/sysv/linux/sh/atomic-machine.h: ...here.
12328         * sysdeps/x86_64/bits/atomic.h: Move to ...
12329         * sysdeps/x86_64/atomic-machine.h: ...here.
12330         * include/atomic.h: Include <atomic-machine.h> instead of
12331         <bits/atomic.h>.
12332
12333         * sysdeps/mips/mips32/libm-test-ulps: Update.
12334         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
12335
12336         [BZ #18952]
12337         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r): Do
12338         not convert non-integer negative arguments to int to determine the
12339         value of signgam.
12340         * math/auto-libm-test-in: Add more tests of lgamma.
12341         * math/auto-libm-test-out: Regenerated.
12342
12343         * math/auto-libm-test-in: Add more tests of acosh, atanh, cbrt,
12344         cosh, csqrt, erfc, expm1 and lgamma.
12345         * math/auto-libm-test-out: Regenerated.
12346         * sysdeps/i386/fpu/libm-test-ulps: Update.
12347         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12348
12349 2015-09-10  Joseph Myers  <joseph@codesourcery.com>
12350
12351         [BZ #2542]
12352         [BZ #2543]
12353         [BZ #2558]
12354         * sysdeps/ieee754/dbl-64/e_lgamma_r.c (__ieee754_lgamma_r): Call
12355         __lgamma_neg for arguments from -28.0 to -2.0.
12356         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Call
12357         __lgamma_negf for arguments from -15.0 to -2.0.
12358         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
12359         Call __lgamma_negl for arguments from -48.0 or -50.0 to -2.0.
12360         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (__ieee754_lgammal_r):
12361         Call __lgamma_negl for arguments from -33.0 to -2.0.
12362         * sysdeps/ieee754/dbl-64/lgamma_neg.c: New file.
12363         * sysdeps/ieee754/dbl-64/lgamma_product.c: Likewise.
12364         * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12365         * sysdeps/ieee754/flt-32/lgamma_productf.c: Likewise.
12366         * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
12367         * sysdeps/ieee754/ldbl-128/lgamma_productl.c: Likewise.
12368         * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
12369         * sysdeps/ieee754/ldbl-128ibm/lgamma_productl.c: Likewise.
12370         * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
12371         * sysdeps/ieee754/ldbl-96/lgamma_product.c: Likewise.
12372         * sysdeps/ieee754/ldbl-96/lgamma_productl.c: Likewise.
12373         * sysdeps/generic/math_private.h (__lgamma_negf): New prototype.
12374         (__lgamma_neg): Likewise.
12375         (__lgamma_negl): Likewise.
12376         (__lgamma_product): Likewise.
12377         (__lgamma_productl): Likewise.
12378         * math/Makefile (libm-calls): Add lgamma_neg and lgamma_product.
12379         * math/auto-libm-test-in: Add more tests of lgamma.
12380         * math/auto-libm-test-out: Regenerated.
12381         * sysdeps/i386/fpu/libm-test-ulps: Update.
12382         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12383
12384 2015-09-09  Justin Maggard  <jmaggard@netgear.com>
12385
12386         [BZ #18675]
12387         * sysdeps/posix/fpathconf.c (__fpathconf): Use __fstatvfs64.
12388
12389 2015-09-08  Joseph Myers  <joseph@codesourcery.com>
12390
12391         [BZ #14912]
12392         * bits/libc-lock.h: Move to ...
12393         * sysdeps/generic/libc-lock.h: ...here.
12394         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12395         * sysdeps/mach/hurd/bits/libc-lock.h: Move to ...
12396         * sysdeps/mach/hurd/libc-lock.h: ...here.
12397         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12398         [_LIBC]: Include <libc-lockP.h> instead of <bits/libc-lockP.h>.
12399         * sysdeps/mach/bits/libc-lock.h: Move to ...
12400         * sysdeps/mach/libc-lock.h: ...here.
12401         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12402         * sysdeps/nptl/bits/libc-lock.h: Move to ...
12403         * sysdeps/nptl/libc-lock.h: ...here.
12404         (_BITS_LIBC_LOCK_H): Rename macro to _LIBC_LOCK_H.
12405         * sysdeps/nptl/bits/libc-lockP.h: Move to ...
12406         * sysdeps/nptl/libc-lockP.h: ...here.
12407         (_BITS_LIBC_LOCKP_H): Rename macro to _LIBC_LOCKP_H.
12408         * crypt/crypt_util.c: Include <libc-lock.h> instead of
12409         <bits/libc-lock.h>.
12410         * dirent/scandir-tail.c: Likewise.
12411         * dlfcn/dlerror.c: Likewise.
12412         * elf/dl-close.c: Likewise.
12413         * elf/dl-iteratephdr.c: Likewise.
12414         * elf/dl-lookup.c: Likewise.
12415         * elf/dl-open.c: Likewise.
12416         * elf/dl-support.c: Likewise.
12417         * elf/dl-writev.h: Likewise.
12418         * elf/rtld.c: Likewise.
12419         * grp/fgetgrent.c: Likewise.
12420         * gshadow/fgetsgent.c: Likewise.
12421         * gshadow/sgetsgent.c: Likewise.
12422         * iconv/gconv_conf.c: Likewise.
12423         * iconv/gconv_db.c: Likewise.
12424         * iconv/gconv_dl.c: Likewise.
12425         * iconv/gconv_int.h: Likewise.
12426         * iconv/gconv_trans.c: Likewise.
12427         * include/link.h: Likewise.
12428         * inet/getnameinfo.c: Likewise.
12429         * inet/getnetgrent.c: Likewise.
12430         * inet/getnetgrent_r.c: Likewise.
12431         * intl/bindtextdom.c: Likewise.
12432         * intl/dcigettext.c: Likewise.
12433         * intl/finddomain.c: Likewise.
12434         * intl/gettextP.h: Likewise.
12435         * intl/loadmsgcat.c: Likewise.
12436         * intl/localealias.c: Likewise.
12437         * intl/textdomain.c: Likewise.
12438         * libidn/idn-stub.c: Likewise.
12439         * libio/libioP.h: Likewise.
12440         * locale/duplocale.c: Likewise.
12441         * locale/freelocale.c: Likewise.
12442         * locale/newlocale.c: Likewise.
12443         * locale/setlocale.c: Likewise.
12444         * login/getutent_r.c: Likewise.
12445         * login/getutid_r.c: Likewise.
12446         * login/getutline_r.c: Likewise.
12447         * login/utmp-private.h: Likewise.
12448         * login/utmpname.c: Likewise.
12449         * malloc/mtrace.c: Likewise.
12450         * misc/efgcvt.c: Likewise.
12451         * misc/error.c: Likewise.
12452         * misc/fstab.c: Likewise.
12453         * misc/getpass.c: Likewise.
12454         * misc/mntent.c: Likewise.
12455         * misc/syslog.c: Likewise.
12456         * nis/nis_call.c: Likewise.
12457         * nis/nis_callback.c: Likewise.
12458         * nis/nss-default.c: Likewise.
12459         * nis/nss_compat/compat-grp.c: Likewise.
12460         * nis/nss_compat/compat-initgroups.c: Likewise.
12461         * nis/nss_compat/compat-pwd.c: Likewise.
12462         * nis/nss_compat/compat-spwd.c: Likewise.
12463         * nis/nss_nis/nis-alias.c: Likewise.
12464         * nis/nss_nis/nis-ethers.c: Likewise.
12465         * nis/nss_nis/nis-grp.c: Likewise.
12466         * nis/nss_nis/nis-hosts.c: Likewise.
12467         * nis/nss_nis/nis-network.c: Likewise.
12468         * nis/nss_nis/nis-proto.c: Likewise.
12469         * nis/nss_nis/nis-pwd.c: Likewise.
12470         * nis/nss_nis/nis-rpc.c: Likewise.
12471         * nis/nss_nis/nis-service.c: Likewise.
12472         * nis/nss_nis/nis-spwd.c: Likewise.
12473         * nis/nss_nisplus/nisplus-alias.c: Likewise.
12474         * nis/nss_nisplus/nisplus-ethers.c: Likewise.
12475         * nis/nss_nisplus/nisplus-grp.c: Likewise.
12476         * nis/nss_nisplus/nisplus-hosts.c: Likewise.
12477         * nis/nss_nisplus/nisplus-initgroups.c: Likewise.
12478         * nis/nss_nisplus/nisplus-network.c: Likewise.
12479         * nis/nss_nisplus/nisplus-proto.c: Likewise.
12480         * nis/nss_nisplus/nisplus-pwd.c: Likewise.
12481         * nis/nss_nisplus/nisplus-rpc.c: Likewise.
12482         * nis/nss_nisplus/nisplus-service.c: Likewise.
12483         * nis/nss_nisplus/nisplus-spwd.c: Likewise.
12484         * nis/ypclnt.c: Likewise.
12485         * nptl/libc_pthread_init.c: Likewise.
12486         * nss/getXXbyYY.c: Likewise.
12487         * nss/getXXent.c: Likewise.
12488         * nss/getXXent_r.c: Likewise.
12489         * nss/nss_db/db-XXX.c: Likewise.
12490         * nss/nss_db/db-netgrp.c: Likewise.
12491         * nss/nss_db/nss_db.h: Likewise.
12492         * nss/nss_files/files-XXX.c: Likewise.
12493         * nss/nss_files/files-alias.c: Likewise.
12494         * nss/nsswitch.c: Likewise.
12495         * posix/regex_internal.h: Likewise.
12496         * posix/wordexp.c: Likewise.
12497         * pwd/fgetpwent.c: Likewise.
12498         * resolv/res_hconf.c: Likewise.
12499         * resolv/res_libc.c: Likewise.
12500         * shadow/fgetspent.c: Likewise.
12501         * shadow/lckpwdf.c: Likewise.
12502         * shadow/sgetspent.c: Likewise.
12503         * socket/opensock.c: Likewise.
12504         * stdio-common/reg-modifier.c: Likewise.
12505         * stdio-common/reg-printf.c: Likewise.
12506         * stdio-common/reg-type.c: Likewise.
12507         * stdio-common/vfprintf.c: Likewise.
12508         * stdio-common/vfscanf.c: Likewise.
12509         * stdlib/abort.c: Likewise.
12510         * stdlib/cxa_atexit.c: Likewise.
12511         * stdlib/fmtmsg.c: Likewise.
12512         * stdlib/random.c: Likewise.
12513         * stdlib/setenv.c: Likewise.
12514         * string/strsignal.c: Likewise.
12515         * sunrpc/auth_none.c: Likewise.
12516         * sunrpc/bindrsvprt.c: Likewise.
12517         * sunrpc/create_xid.c: Likewise.
12518         * sunrpc/key_call.c: Likewise.
12519         * sunrpc/rpc_thread.c: Likewise.
12520         * sysdeps/arm/backtrace.c: Likewise.
12521         * sysdeps/generic/ldsodefs.h: Likewise.
12522         * sysdeps/generic/stdio-lock.h: Likewise.
12523         * sysdeps/generic/unwind-dw2-fde.c: Likewise.
12524         * sysdeps/i386/backtrace.c: Likewise.
12525         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
12526         * sysdeps/m68k/backtrace.c: Likewise.
12527         * sysdeps/mach/hurd/cthreads.c: Likewise.
12528         * sysdeps/mach/hurd/dirstream.h: Likewise.
12529         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12530         * sysdeps/nptl/malloc-machine.h: Likewise.
12531         * sysdeps/nptl/stdio-lock.h: Likewise.
12532         * sysdeps/posix/dirstream.h: Likewise.
12533         * sysdeps/posix/getaddrinfo.c: Likewise.
12534         * sysdeps/posix/system.c: Likewise.
12535         * sysdeps/pthread/aio_suspend.c: Likewise.
12536         * sysdeps/s390/s390-32/backtrace.c: Likewise.
12537         * sysdeps/s390/s390-64/backtrace.c: Likewise.
12538         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
12539         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
12540         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c: Likewise.
12541         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c: Likewise.
12542         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c: Likewise.
12543         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
12544         * sysdeps/unix/sysv/linux/system.c: Likewise.
12545         * sysdeps/x86_64/backtrace.c: Likewise.
12546         * time/alt_digit.c: Likewise.
12547         * time/era.c: Likewise.
12548         * time/tzset.c: Likewise.
12549         * wcsmbs/wcsmbsload.c: Likewise.
12550         * nptl/tst-initializers1.c (do_test): Refer to <libc-lock.h>
12551         instead of <bits/libc-lock.h> in comment.
12552
12553 2015-09-08  Andrew Bennett  <andrew.bennett@imgtec.com>
12554
12555         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIO32] (MIPS_PUSH_MIPS2):
12556         Only use .set mips2 if the current ISA is below mips2.
12557         * sysdeps/mips/sys/tas.h [_MIPS_SIM == _ABIO32] (_test_and_set):
12558         Likewise.
12559         * sysdeps/mips/nptl/tls.h (READ_THREAD_POINTER): Only use .set
12560         mips32r2 if the current ISA is below mips32r2.
12561         * sysdeps/mips/tls-macros.h (TLS_RDHWR): New define.
12562         (TLS_IE): Updated to use the TLD_RDHWR macro.
12563         (TLS_LE): Likewise.
12564         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Moved out of #ifdef
12565         __ASSEMBLER__ condition.
12566
12567 2015-09-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12568
12569         Fix parallel build of before-compile targets.
12570
12571         * sysdeps/mach/Makefile ($(patsubst
12572         mach%,m\%h%,$(mach-before-compile))): Move rule to dedicated
12573         mach-before-compile target.
12574         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12575         io fs process)): Move rule to dedicated hurd-before-compile target.
12576
12577 2015-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12578
12579         Fix rules generating headers in hurd/ and mach/ when initial make call
12580         has subdir= explicitly set.
12581
12582         * sysdeps/mach/Makefile ($(patsubst
12583         mach%,m\%h%,$(mach-before-compile))): Force subdir to mach when
12584         calling $(MAKE).
12585         * sysdeps/mach/hurd/Makefile ($(patsubst %,$(hurd-objpfx)hurd/%.%,auth
12586         io fs process)): Force subdir to hurd when calling $(MAKE).
12587         ($(common-objpfx)hurd/../mach/RPC_task_get_sampled_pcs.c): Force
12588         subdir to mach when calling $(MAKE).
12589
12590 2015-09-06  Manolis Ragkousis  <manolis837@gmail.com>
12591
12592         Check sysheaders when looking for Mach and Hurd headers
12593
12594         * sysdeps/mach/configure.ac: Add sysheaders check.
12595         * sysdeps/mach/configure: Regenerate.
12596         * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
12597         * sysdeps/mach/hurd/configure: Regenerate.
12598
12599 2015-09-04  Roland McGrath  <roland@hack.frob.com>
12600
12601         [BZ #18921]
12602         * sysdeps/posix/opendir.c (need_isdir_precheck) [O_DIRECTORY]:
12603         Fix inverted sense of test of 'o_directory_works' value.
12604         Reported by Pádraig Brady <P@draigBrady.com>, diagnosed by
12605         Bernhard Voelker <mail@bernhard-voelker.de>.
12606
12607 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12608
12609         [BZ #14912]
12610         * bits/linkmap.h: Move to ...
12611         * sysdeps/generic/linkmap.h: ...here.
12612         * sysdeps/aarch64/bits/linkmap.h: Move to ...
12613         * sysdeps/aarch64/linkmap.h: ...here.
12614         * sysdeps/arm/bits/linkmap.h: Move to ...
12615         * sysdeps/arm/linkmap.h: ...here.
12616         * sysdeps/hppa/bits/linkmap.h: Move to ...
12617         * sysdeps/hppa/linkmap.h: ...here.
12618         * sysdeps/ia64/bits/linkmap.h: Move to ...
12619         * sysdeps/ia64/linkmap.h: ...here.
12620         * sysdeps/mips/bits/linkmap.h: Move to ...
12621         * sysdeps/mips/linkmap.h: ...here.
12622         * sysdeps/s390/bits/linkmap.h: Move to ...
12623         * sysdeps/s390/linkmap.h: ...here.
12624         * sysdeps/sh/bits/linkmap.h: Move to ...
12625         * sysdeps/sh/linkmap.h: ...here.
12626         * sysdeps/x86/bits/linkmap.h: Move to ...
12627         * sysdeps/x86/linkmap.h: ...here.
12628         * include/link.h: Include <linkmap.h> instead of <bits/linkmap.h>.
12629
12630 2015-09-04  Andreas Schwab  <schwab@suse.de>
12631
12632         [BZ #18635]
12633         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
12634         (__makecontext): Terminate FDE before return label.
12635         (__novec_makecontext): Likewise.
12636
12637 2015-09-04  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12638
12639         * sysdeps/unix/sysv/linux/socketpair.c: Use the address of the
12640         first member of struct sv in syscall macro.
12641
12642 2015-09-04  Joseph Myers  <joseph@codesourcery.com>
12643
12644         [BZ #14912]
12645         * bits/stdio-lock.h: Move to ...
12646         * sysdeps/generic/stdio-lock.h: ...here.
12647         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12648         * sysdeps/nptl/bits/stdio-lock.h: Move to ...
12649         * sysdeps/nptl/stdio-lock.h: ...here.
12650         (_BITS_STDIO_LOCK_H): Rename macro to _STDIO_LOCK_H.
12651         * include/libio.h: Include <stdio-lock.h> instead of
12652         <bits/stdio-lock.h>.
12653         * sysdeps/nptl/fork.c: Likewise.
12654         * sysdeps/pthread/flockfile.c: Likewise.
12655         * sysdeps/pthread/ftrylockfile.c: Likewise.
12656         * sysdeps/pthread/funlockfile.c: Likewise.
12657
12658         [BZ #14912]
12659         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Move to ...
12660         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: ...here.
12661         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: Include
12662         <m68k-vdso.h> instead of <bits/m68k-vdso.h>.
12663         * sysdeps/unix/sysv/linux/m68k/init-first.c: Likewise.
12664         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
12665         * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
12666
12667 2015-09-03  Roland McGrath  <roland@hack.frob.com>
12668
12669         * elf/Makefile (test-xfail-tst-protected1a): New variable.
12670         (test-xfail-tst-protected1b): New variable.
12671
12672 2015-09-03  Joseph Myers  <joseph@codesourcery.com>
12673
12674         [BZ #14912]
12675         * bits/libc-tsd.h: Move to ...
12676         * sysdeps/generic/libc-tsd.h: ...here.
12677         (_GENERIC_BITS_LIBC_TSD_H): Rename macro to _GENERIC_LIBC_TSD_H.
12678         * sysdeps/mach/hurd/bits/libc-tsd.h: Move to ...
12679         * sysdeps/mach/hurd/libc-tsd.h: ...here.
12680         (_BITS_LIBC_TSD_H): Rename macro to _LIBC_TSD_H.
12681         * include/ctype.h: Include <libc-tsd.h> instead of
12682         <bits/libc-tsd.h>.
12683         * include/rpc/rpc.h: Likewise.
12684         * locale/localeinfo.h: Likewise.
12685         * sunrpc/rpc_thread.c: Likewise.
12686         * sysdeps/mach/hurd/malloc-machine.h: Likewise.
12687         * sysdeps/nptl/malloc-machine.h: Likewise.
12688
12689         * Makefile (headers): Remove bits/libc-lock.h.
12690         * libio/Makefile (headers): Remove bits/stdio-lock.h.
12691
12692         * libio/libio.h [_IO_MTSAFE_IO]: Remove include of
12693         <bits/stdio-lock.h> and commented-out include of <comthread.h>.
12694         * include/libio.h [!_ISOMAC && _IO_MTSAFE_IO]: Include
12695         <bits/stdio-lock.h>.
12696         * stdio-common/scanf15.c (_IO_MTSAFE_IO): Undefine.
12697         * stdio-common/scanf17.c (_IO_MTSAFE_IO): Likewise.
12698
12699 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12700
12701         [BZ #18757]
12702         * libio/iofopncook.c (_IO_fopencookie): Set errno on failure.
12703         * libio/test-fmemopen.c (do_bz18820): Extend the test to cover
12704         BZ #18757.
12705
12706 2015-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
12707
12708         * malloc/mtrace.pl: Filter out NULL entries.
12709
12710 2015-09-01  Joseph Myers  <joseph@codesourcery.com>
12711
12712         * inet/netinet/in.h (IPPROTO_MPLS): New enum value and macro.
12713         * sysdeps/unix/sysv/linux/bits/in.h (IP_BIND_ADDRESS_NO_PORT): New
12714         macro.
12715
12716         * sysdeps/gnu/netinet/tcp.h (TCP_NOTSENT_LOWAT): New macro.
12717         (TCP_CC_INFO): Likewise.
12718         (TCP_SAVE_SYN): Likewise.
12719         (TCP_SAVED_SYN): Likewise.
12720
12721 2015-08-31  Brett Neumeier <brett@neumeier.us>
12722
12723         [BZ #18870]
12724         * sysdeps/sparc/sparc32/sem_open.c: Add missing #include
12725
12726 2015-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12727
12728         [BZ #18873]
12729         Fix broken overflow check in posix_fallocate
12730         * sysdeps/posix/posix_fallocate.c (posix_fallocate):
12731         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
12732         Fix parenthesization typo.
12733
12734 2015-08-28  Mike Frysinger  <vapier@gentoo.org>
12735
12736         [BZ #18887]
12737         * misc/Makefile (tests): Add tst-mntent-blank-corrupt and
12738         tst-mntent-blank-passno.
12739         * misc/mntent_r.c (__getmntent_r): Do not read past buffer[0].
12740         * misc/tst-mntent-blank-corrupt.c: New test.
12741         * misc/tst-mntent-blank-passno.c: New test ripped from ...
12742         * misc/tst-mntent.c (do_test): ... here.
12743
12744 2015-08-29  Mike Frysinger  <vapier@gentoo.org>
12745
12746         [BZ #4404]
12747         * po/de.po: Fix SIGALRM typo.
12748
12749 2015-08-28  James Perkins  <james@loowit.net>
12750
12751         * time/tst-strptime2.c (tests): Replace short list of test
12752         strings for strptime %z specifier with code which exhaustively
12753         tests every combination of sign and 0 to 5 digits. Tests for
12754         rejection of invalid strings.
12755
12756 2015-08-28  James Perkins  <james@loowit.net>
12757
12758         [BZ #16141]
12759         * time/strptime_l.c (__strptime_internal): Fix %z minutes
12760         calculation, removing incorrect decimal time rounding, so that
12761         all minute values result in a valid seconds value.
12762         * time/strptime_l.c (__strptime_internal): Extend %z time zone
12763         offset range limits to UTC-99:59 through UTC+99:59 to parse
12764         current and historical use cases.
12765         * time/tst-strptime2.c (tests): Modify and add tests for the
12766         strptime %z input field descriptor, specifically conversion of
12767         minutes to seconds and validating an offset range of -9959 to
12768         +9959.
12769
12770 2015-08-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
12771             Dmitry V. Levin  <ldv@altlinux.org>
12772
12773         [BZ #18877]
12774         * posix/Makefile (tests): Add tst-mmap-offset.
12775         * posix/tst-mmap.c: New file.
12776         * sysdeps/unix/sysv/linux/generic/wordsize-32/mmap.c (__mmap): Fix
12777         offset calculation for negative values.
12778
12779 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12780
12781         * sysdeps/i386/init-arch.h: New file.
12782         * sysdeps/i386/i586/init-arch.h: Likewise.
12783         * sysdeps/i386/i686/init-arch.h: Likewise.
12784         * sysdeps/x86/cpu-features.c (init_cpu_features): Set bit_I586
12785         bit if CX8 is available.  Set bit_I686 bit if CMOV is available.
12786         * sysdeps/x86/cpu-features.h (bit_I586): New.
12787         (bit_I686): Likewise.
12788         (bit_CX8): Likewise.
12789         (bit_CMOV): Likewise.
12790         (index_CX8): Likewise.
12791         (index_CMOV): Likewise.
12792         (index_I586): Likewise.
12793         (index_I686): Likewise.
12794         (reg_CX8): Likewise.
12795         (reg_CMOV): Likewise.
12796         (HAS_I586): Defined as HAS_ARCH_FEATURE (I586) if i586 isn't
12797         available at compile-time.
12798         (HAS_I686): Defined as HAS_ARCH_FEATURE (I686) if i686 isn't
12799         available at compile-time.
12800         * sysdeps/x86/init-arch.h (USE_I586): New macro.
12801         (USE_I686): Likewise.
12802
12803 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12804
12805         * sysdeps/i386/bcopy.S: New file.
12806         * sysdeps/i386/bzero.S: Likewise.
12807         * sysdeps/i386/memcpy.S: Likewise.
12808         * sysdeps/i386/memmove.S: Likewise.
12809         * sysdeps/i386/mempcpy.S: Likewise.
12810         * sysdeps/i386/memset.S: Likewise.
12811         * sysdeps/i386/bzero.c: Removed.
12812         * sysdeps/i386/memset.c: Likewise.
12813         * sysdeps/i386/i586/memcpy_chk.S: Likewise.
12814         * sysdeps/i386/i586/mempcpy_chk.S: Likewise.
12815         * sysdeps/i386/i586/memset_chk.S: Likewise.
12816         * sysdeps/i386/i686/memcpy_chk.S: Moved to ...
12817         * sysdeps/i386/memcpy_chk.S: Here.
12818         * sysdeps/i386/i686/memmove_chk.S: Moved to ...
12819         * sysdeps/i386/memmove_chk.S: Here.
12820         * sysdeps/i386/i686/mempcpy_chk.S: Moved to ...
12821         * sysdeps/i386/mempcpy_chk.S: Likewise.
12822         * sysdeps/i386/i686/memset_chk.S: Moved to ...
12823         * sysdeps/i386/memset_chk.S: Likewise.
12824
12825 2015-08-27  Steve Ellcey  <sellcey@imgtec.com>
12826
12827         * soft-fp/fmasf4.c: Add include of sys/cdefs.h.
12828         Move DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT to front of
12829         file, move DIAG_POP_NEEDS_COMMENT to end of file.
12830         * soft-fp/fmadf4.c: Ditto.
12831         * soft-fp/fmatf4.c: Ditto.
12832
12833 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12834
12835         * sysdeps/i386/i586/Implies: Removed.
12836         * sysdeps/i386/i686/Implies: Likewise.
12837
12838 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12839
12840         * sysdeps/i386/i486/strlen.S: Moved to ...
12841         * sysdeps/i386/strlen.S: Here.
12842
12843 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12844
12845         * sysdeps/i386/i486/strcat.S: Moved to ...
12846         * sysdeps/i386/strcat.S: Here.
12847
12848 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12849
12850         * sysdeps/i386/i486/pthread_spin_trylock.S: Moved to ...
12851         * sysdeps/i386/pthread_spin_trylock.S: Here.
12852         * sysdeps/i386/i586/pthread_spin_trylock.S: Removed.
12853         * sysdeps/i386/i686/pthread_spin_trylock.S: Updated.
12854
12855 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12856
12857         * sysdeps/i386/i486/string-inlines.c: Moved to ...
12858         * sysdeps/i386/string-inlines.c: Here.
12859
12860 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12861
12862         * sysdeps/i386/i486/htonl.S: Moved ...
12863         * sysdeps/i386/htonl.S: here.
12864
12865 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12866
12867         * sysdeps/i386/i486/bits/atomic.h: Moved to ...
12868         * sysdeps/i386/bits/atomic.h: Here.
12869
12870 2015-08-27  H.J. Lu  <hongjiu.lu@intel.com>
12871
12872         * sysdeps/i386/i486/Versions: Removed.
12873
12874 2015-08-27  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
12875
12876         [BZ #2898]
12877         * misc/mktemp.c: Add mkdtemp to the link_warning message.
12878         Based on patch by Aurelien Jarno.
12879
12880 2015-08-26  Stan Shebs  <stanshebs@google.com>
12881
12882         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <libc-internal.h>.
12883         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
12884
12885 2015-08-26  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
12886
12887         * sysdeps/powerpc/bits/hwcap.h: Add PPC_FEATURE2_HTM_NOSC.
12888         * sysdeps/powerpc/dl-procinfo.c:
12889         (_dl_powerpc_cap_flags): Added descriptor for this hwcap
12890         feature so it shows when LD_SHOW_AUXV=1.
12891
12892 2015-08-26  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
12893
12894         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
12895         (__arch_compare_and_exchange_val_32_acq): Remove and use common
12896         definition.  ISA 2.07B no longer requires full sync.
12897
12898 2015-08-26  Mike Frysinger  <vapier@gentoo.org>
12899
12900         [BZ #18863]
12901         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (siginfo_t): Add _sigsys.
12902         (si_call_addr): Define.
12903         (si_syscall): Define.
12904         (si_arch): Define.
12905
12906 2015-08-26  H.J. Lu  <hongjiu.lu@intel.com>
12907
12908         * sysdeps/i386/i586/bzero.S (USE_AS_BZERO): New.
12909         * sysdeps/i386/i686/bzero.S (USE_AS_BZERO): Likewise.
12910         * sysdeps/i386/i586/memset.S (BZERO_P): Removed.
12911         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12912         (__memset_zero_constant_len_parameter): New.
12913         * sysdeps/i386/i686/memset.S (BZERO_P): Removed.
12914         Check USE_AS_BZERO/SHARED instead of BZERO_P/PIC.
12915         (__memset_zero_constant_len_parameter): Don't define if
12916         __memset_chk or USE_AS_BZERO are defined.
12917
12918         * sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
12919         Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
12920         * sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
12921
12922         * sysdeps/x86/Makefile [$(subdir) == elf] (CFLAGS-.os,
12923         tests-special, $(objpfx)tst-ld-sse-use.out): Moved to ...
12924         * sysdeps/i386/Makefile [$(subdir) == elf] (CFLAGS-.os,
12925         tests-special, $(objpfx)tst-ld-sse-use.out): Here.  Update
12926         comments.
12927         * sysdeps/x86_64/Makefile [$(subdir) == elf] (CFLAGS-.os): Add
12928         -mno-mmx for $(all-rtld-routines).
12929         * sysdeps/x86/tst-ld-sse-use.sh: Moved to ...
12930         * sysdeps/i386/tst-ld-sse-use.sh: Here.  Replace x86-64 with
12931         i386.
12932
12933 2015-08-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
12934
12935         * sysdeps/generic/unwind.h
12936         (_Unwind_Word): Use __mode__(__unwind_word__)
12937         instead of __mode__(__word__).
12938         (_Unwind_Sword): Likewise.
12939
12940         * sysdeps/s390/s390-64/utf8-utf16-z9.c
12941         (MAX_NEEDED_INPUT): New define.
12942         (MAX_NEEDED_OUTPUT): New define.
12943
12944         * NEWS: New item for IBM z13 string optimizations.
12945
12946         * sysdeps/s390/multiarch/memrchr-c.c: New File.
12947         * sysdeps/s390/multiarch/memrchr-vx.S: Likewise.
12948         * sysdeps/s390/multiarch/memrchr.c: Likewise.
12949         * sysdeps/s390/multiarch/Makefile
12950         (sysdep_routines): Add memrchr functions.
12951         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12952         (__libc_ifunc_impl_list_common): Add ifunc test for memrchr.
12953
12954         * sysdeps/s390/multiarch/wmemcmp-c.c: New File.
12955         * sysdeps/s390/multiarch/wmemcmp-vx.S: Likewise.
12956         * sysdeps/s390/multiarch/wmemcmp.c: Likewise.
12957         * sysdeps/s390/multiarch/Makefile
12958         (sysdep_routines): Add wmemcmp functions.
12959         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12960         (__libc_ifunc_impl_list_common): Add ifunc test for wmemcmp.
12961         * benchtests/bench-wmemcmp.c: New File.
12962         * benchtests/Makefile (wcsmbs-bench): Add wmemcmp.
12963
12964         * sysdeps/s390/multiarch/wmemset-c.c: New File.
12965         * sysdeps/s390/multiarch/wmemset-vx.S: Likewise.
12966         * sysdeps/s390/multiarch/wmemset.c: Likewise.
12967         * sysdeps/s390/multiarch/Makefile
12968         (sysdep_routines): Add wmemset functions.
12969         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12970         (__libc_ifunc_impl_list_common): Add ifunc test for wmemset.
12971         * wcsmbs/wmemset.c: Use WMEMSET if defined.
12972         * string/test-memset.c: Add wmemset support.
12973         * wcsmbs/test-wmemset.c: New File.
12974         * wcsmbs/Makefile (strop-tests): Add wmemset.
12975         * benchtests/bench-memset.c: Add wmemset support.
12976         * benchtests/bench-wmemset.c: New File.
12977         * benchtests/Makefile (wcsmbs-bench): Add wmemset.
12978
12979         * sysdeps/s390/multiarch/memccpy-c.c: New File.
12980         * sysdeps/s390/multiarch/memccpy-vx.S: Likewise.
12981         * sysdeps/s390/multiarch/memccpy.c: Likewise.
12982         * sysdeps/s390/multiarch/Makefile
12983         (sysdep_routines): Add memccpy functions.
12984         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
12985         (__libc_ifunc_impl_list_common): Add ifunc test for memccpy.
12986         * string/memccpy.c: Use MEMCCPY if defined.
12987
12988         * sysdeps/s390/multiarch/memchr-vx.S: New File.
12989         * sysdeps/s390/multiarch/memchr.c: Likewise.
12990         * sysdeps/s390/multiarch/rawmemchr-c.c: Likewise.
12991         * sysdeps/s390/multiarch/rawmemchr-vx.S: Likewise.
12992         * sysdeps/s390/multiarch/rawmemchr.c: Likewise.
12993         * sysdeps/s390/multiarch/wmemchr-c.c: Likewise.
12994         * sysdeps/s390/multiarch/wmemchr-vx.S: Likewise.
12995         * sysdeps/s390/multiarch/wmemchr.c: Likewise.
12996         * sysdeps/s390/s390-32/multiarch/memchr.c: Likewise.
12997         * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
12998         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memchr, wmemchr
12999         and rawmemchr functions.
13000         * sysdeps/s390/multiarch/ifunc-impl-list-common.c
13001         (__libc_ifunc_impl_list_common): Add ifunc test for memchr, rawmemchr
13002         and wmemchr.
13003         * wcsmbs/wmemchr.c: Use WMEMCHR if defined.
13004         * string/test-memchr.c: Add wmemchr support.
13005         * wcsmbs/test-wmemchr.c: New File.
13006         * wcsmbs/Makefile (strop-tests): Add wmemchr.
13007         * benchtests/bench-memchr.c: Add wmemchr support.
13008         * benchtests/bench-wmemchr.c: New File.
13009         * benchtests/Makefile (wcsmbs-bench): wmemchr.
13010
13011         * sysdeps/s390/multiarch/strcspn-c.c: New File.
13012         * sysdeps/s390/multiarch/strcspn-vx.S: Likewise.
13013         * sysdeps/s390/multiarch/strcspn.c: Likewise.
13014         * sysdeps/s390/multiarch/wcscspn-c.c: Likewise.
13015         * sysdeps/s390/multiarch/wcscspn-vx.S: Likewise.
13016         * sysdeps/s390/multiarch/wcscspn.c: Likewise.
13017         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcspn and
13018         wcscspn functions.
13019         * sysdeps/s390/multiarch/ifunc-impl-list.c
13020         (__libc_ifunc_impl_list): Add ifunc test for strcspn, wcscspn.
13021         * wcsmbs/wcscspn.c: Use WCSCSPN if defined.
13022         * string/test-strcspn.c: Add wcscspn support.
13023         * wcsmbs/test-wcscspn.c: New File.
13024         * wcsmbs/Makefile (strop-tests): Add wcscspn.
13025         * benchtests/bench-strcspn.c: Add wcscspn support.
13026         * benchtests/bench-wcscspn.c: New File.
13027         * benchtests/Makefile (wcsmbs-bench): Add wcscspn.
13028
13029         * sysdeps/s390/multiarch/strpbrk-c.c: New File.
13030         * sysdeps/s390/multiarch/strpbrk-vx.S: Likewise.
13031         * sysdeps/s390/multiarch/strpbrk.c: Likewise.
13032         * sysdeps/s390/multiarch/wcspbrk-c.c: Likewise.
13033         * sysdeps/s390/multiarch/wcspbrk-vx.S: Likewise.
13034         * sysdeps/s390/multiarch/wcspbrk.c: Likewise.
13035         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strpbrk and
13036         wcspbrk functions.
13037         * sysdeps/s390/multiarch/ifunc-impl-list.c
13038         (__libc_ifunc_impl_list): Add ifunc test for strpbrk, wcspbrk.
13039         * wcsmbs/wcspbrk.c: Use WCSPBRK if defined.
13040         * string/test-strpbrk.c: Add wcspbrk support.
13041         * wcsmbs/test-wcspbrk.c: New File.
13042         * wcsmbs/Makefile (strop-tests): Add wcspbrk.
13043         * benchtests/bench-strpbrk.c: Add wcspbrk support.
13044         * benchtests/bench-wcspbrk.c: New File.
13045         * benchtests/Makefile (wcsmbs-bench): Add wcspbrk.
13046
13047         * sysdeps/s390/multiarch/strspn-c.c: New File.
13048         * sysdeps/s390/multiarch/strspn-vx.S: Likewise.
13049         * sysdeps/s390/multiarch/strspn.c: Likewise.
13050         * sysdeps/s390/multiarch/wcsspn-c.c: Likewise.
13051         * sysdeps/s390/multiarch/wcsspn-vx.S: Likewise.
13052         * sysdeps/s390/multiarch/wcsspn.c: Likewise.
13053         * wcsmbs/wcsspn.c: Use WCSSPN if defined.
13054         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strspn and
13055         wcsspn functions.
13056         * sysdeps/s390/multiarch/ifunc-impl-list.c
13057         (__libc_ifunc_impl_list): Add ifunc test for strspn, wcsspn.
13058         * string/test-strspn.c: Add wcsspn support.
13059         * wcsmbs/test-wcsspn.c: New File.
13060         * wcsmbs/Makefile (strop-tests): Add wcsspn.
13061         * benchtests/bench-strspn.c: Add wcsspn support.
13062         * benchtests/bench-wcsspn.c: New File.
13063         * benchtests/Makefile (wcsmbs-bench): Add wcsspn.
13064
13065         * sysdeps/s390/multiarch/strrchr-c.c: New File.
13066         * sysdeps/s390/multiarch/strrchr-vx.S: Likewise.
13067         * sysdeps/s390/multiarch/strrchr.c: Likewise.
13068         * sysdeps/s390/multiarch/wcsrchr-c.c: Likewise.
13069         * sysdeps/s390/multiarch/wcsrchr-vx.S: Likewise.
13070         * sysdeps/s390/multiarch/wcsrchr.c: Likewise.
13071         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strrchr and
13072         wcsrchr functions.
13073         * sysdeps/s390/multiarch/ifunc-impl-list.c
13074         (__libc_ifunc_impl_list): Add ifunc test for strrchr, wcsrchr.
13075         * benchtests/bench-wcsrchr.c: New File.
13076         * benchtests/Makefile (wcsmbs-bench): Add wcsrchr.
13077
13078         * sysdeps/s390/multiarch/strchrnul-c.c: New File.
13079         * sysdeps/s390/multiarch/strchrnul-vx.S: Likewise.
13080         * sysdeps/s390/multiarch/strchrnul.c: Likewise.
13081         * sysdeps/s390/multiarch/wcschrnul-c.c: Likewise.
13082         * sysdeps/s390/multiarch/wcschrnul-vx.S: Likewise.
13083         * sysdeps/s390/multiarch/wcschrnul.c: Likewise.
13084         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchrnul and
13085         wcschrnul functions.
13086         * sysdeps/s390/multiarch/ifunc-impl-list.c
13087         (__libc_ifunc_impl_list): Add ifunc test for strchrnul, wcschrnul.
13088         * wcsmbs/wcschrnul.c: Use WCSCHRNUL if defined.
13089         * string/test-strchr.c: Add wcschrnul support.
13090         * wcsmbs/test-wcschrnul.c: New File.
13091         * wcsmbs/Makefile (strop-tests): Add wcschrnul.
13092         * benchtests/bench-strchr.c: Add wcschrnul support.
13093         * benchtests/bench-wcschrnul.c: New File.
13094         * benchtests/Makefile (wcsmbs-bench): Add wcschrnul.
13095
13096         * sysdeps/s390/multiarch/strchr-c.c: New File.
13097         * sysdeps/s390/multiarch/strchr-vx.S: Likewise.
13098         * sysdeps/s390/multiarch/strchr.c: Likewise.
13099         * sysdeps/s390/multiarch/wcschr-c.c: Likewise.
13100         * sysdeps/s390/multiarch/wcschr-vx.S: Likewise.
13101         * sysdeps/s390/multiarch/wcschr.c: Likewise.
13102         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strchr and
13103         wcschr functions.
13104         * sysdeps/s390/multiarch/ifunc-impl-list.c
13105         (__libc_ifunc_impl_list): Add ifunc test for strchr, wcschr.
13106         * string/strchr.c (STRCHR): Define and use macro.
13107         * benchtests/bench-wcschr.c: New File.
13108         * benchtests/Makefile (wcsmbs-bench): Add wcschr.
13109
13110         * sysdeps/s390/multiarch/strncmp-c.c: New File.
13111         * sysdeps/s390/multiarch/strncmp-vx.S: Likewise.
13112         * sysdeps/s390/multiarch/strncmp.c: Likewise.
13113         * sysdeps/s390/multiarch/wcsncmp-c.c: Likewise.
13114         * sysdeps/s390/multiarch/wcsncmp-vx.S: Likewise.
13115         * sysdeps/s390/multiarch/wcsncmp.c: Likewise.
13116         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncmp and
13117         wcsncmp functions.
13118         * sysdeps/s390/multiarch/ifunc-impl-list.c
13119         (__libc_ifunc_impl_list): Add ifunc test for strncmp, wcsncmp.
13120         * wcsmbs/wcsncmp.c (WCSNCMP): Define and use macro.
13121         * benchtests/bench-strncmp.c: Add wcsncmp support.
13122         * benchtests/bench-wcsncmp.c: New File.
13123         * benchtests/Makefile (wcsmbs-bench): Add wcsncmp.
13124
13125         * sysdeps/s390/multiarch/strcmp-vx.S: New File.
13126         * sysdeps/s390/multiarch/strcmp.c: Likewise.
13127         * sysdeps/s390/multiarch/wcscmp-c.c: Likewise.
13128         * sysdeps/s390/multiarch/wcscmp-vx.S: Likewise.
13129         * sysdeps/s390/multiarch/wcscmp.c: Likewise.
13130         * sysdeps/s390/s390-32/multiarch/strcmp.c: Likewise.
13131         * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
13132         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcmp and
13133         wcscmp functions.
13134         * sysdeps/s390/multiarch/ifunc-impl-list.c
13135         (__libc_ifunc_impl_list): Add ifunc test for strcmp, wcscmp.
13136         * string/strcmp.c (STRCMP): Define and use macro.
13137         * benchtests/bench-wcscmp.c: New File.
13138         * benchtests/Makefile (wcsmbs-bench): Add wcscmp.
13139         * sysdeps/s390/bits/string.h: Fix typo: _HAVE_STRING_ARCH_strcmp
13140         instead of _HAVE_STRING_ARCH_memchr.
13141
13142         * sysdeps/s390/multiarch/strncat-c.c: New File.
13143         * sysdeps/s390/multiarch/strncat-vx.S: Likewise.
13144         * sysdeps/s390/multiarch/strncat.c: Likewise.
13145         * sysdeps/s390/multiarch/wcsncat-c.c: Likewise.
13146         * sysdeps/s390/multiarch/wcsncat-vx.S: Likewise.
13147         * sysdeps/s390/multiarch/wcsncat.c: Likewise.
13148         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncat and
13149         wcsncat functions.
13150         * sysdeps/s390/multiarch/ifunc-impl-list.c
13151         (__libc_ifunc_impl_list): Add ifunc test for strncat, wcsncat.
13152         * wcsmbs/wcsncat.c (WCSNCAT): Define and use macro.
13153         * string/test-strncat.c: Add wcsncat support.
13154         * wcsmbs/test-wcsncat.c: New File.
13155         * wcsmbs/Makefile (strop-tests): Add wcsncat.
13156         * benchtests/bench-strncat.c: Add wcsncat support.
13157         * benchtests/bench-wcsncat.c: New File.
13158         * benchtests/Makefile (wcsmbs-bench): Add wcsncat.
13159
13160         * sysdeps/s390/multiarch/strcat-c.c: New File.
13161         * sysdeps/s390/multiarch/strcat-vx.S: Likewise.
13162         * sysdeps/s390/multiarch/strcat.c: Likewise.
13163         * sysdeps/s390/multiarch/wcscat-c.c: Likewise.
13164         * sysdeps/s390/multiarch/wcscat-vx.S: Likewise.
13165         * sysdeps/s390/multiarch/wcscat.c: Likewise.
13166         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcat and
13167         wcscat functions.
13168         * sysdeps/s390/multiarch/ifunc-impl-list.c
13169         (__libc_ifunc_impl_list): Add ifunc test for strcat, wcscat.
13170         * string/strcat.c (STRCAT): Define and use macro.
13171         * wcsmbs/wcscat.c: Use WCSCAT if defined.
13172         * string/test-strcat.c: Add wcscat support.
13173         * wcsmbs/test-wcscat.c: New File.
13174         * wcsmbs/Makefile (strop-tests): Add wcscat.
13175         * benchtests/bench-strcat.c: Add wcscat support.
13176         * benchtests/bench-wcscat.c: New File.
13177         * benchtests/Makefile (wcsmbs-bench): Add wcscat.
13178
13179         * sysdeps/s390/multiarch/stpncpy-c.c: New File.
13180         * sysdeps/s390/multiarch/stpncpy-vx.S: Likewise.
13181         * sysdeps/s390/multiarch/stpncpy.c: Likewise.
13182         * sysdeps/s390/multiarch/wcpncpy-c.c: Likewise.
13183         * sysdeps/s390/multiarch/wcpncpy-vx.S: Likewise.
13184         * sysdeps/s390/multiarch/wcpncpy.c: Likewise.
13185         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpncpy and
13186         wcpncpy functions.
13187         * sysdeps/s390/multiarch/ifunc-impl-list.c
13188         (__libc_ifunc_impl_list): Add ifunc test for stpncpy, wcpncpy.
13189         * wcsmbs/wcpncpy.c: Use WCPNCPY if defined.
13190         * string/test-stpncpy.c: Add wcpncpy support.
13191         * wcsmbs/test-wcpncpy.c: New File.
13192         * wcsmbs/Makefile (strop-tests): Add wcpncpy.
13193         * benchtests/bench-stpncpy.c: Add wcpncpy support.
13194         * benchtests/bench-wcpncpy.c: New File.
13195         * benchtests/Makefile (wcsmbs-bench): Add wcpncpy.
13196
13197         * sysdeps/s390/multiarch/strncpy-vx.S: New File.
13198         * sysdeps/s390/multiarch/strncpy.c: Likewise.
13199         * sysdeps/s390/multiarch/wcsncpy-c.c: Likewise.
13200         * sysdeps/s390/multiarch/wcsncpy-vx.S: Likewise.
13201         * sysdeps/s390/multiarch/wcsncpy.c: Likewise.
13202         * sysdeps/s390/s390-32/multiarch/strncpy.c: Likewise.
13203         * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
13204         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strncpy and
13205         wcsncpy functions.
13206         * wcsmbs/wcsncpy.c: Use WCSNCPY if defined.
13207         * sysdeps/s390/multiarch/ifunc-impl-list.c
13208         (__libc_ifunc_impl_list): Add ifunc test for strncpy, wcsncpy.
13209         * string/test-strncpy.c: Add wcsncpy support.
13210         * wcsmbs/test-wcsncpy.c: New File.
13211         * wcsmbs/Makefile (strop-tests): Add wcsncpy.
13212         * benchtests/bench-strncpy.c: Add wcsncpy support.
13213         * benchtests/bench-wcsncpy.c: New File.
13214         * benchtests/Makefile (wcsmbs-bench): Add wcsncpy
13215
13216         * sysdeps/s390/multiarch/stpcpy-c.c: New File.
13217         * sysdeps/s390/multiarch/stpcpy-vx.S: Likewise.
13218         * sysdeps/s390/multiarch/stpcpy.c: Likewise.
13219         * sysdeps/s390/multiarch/wcpcpy-c.c: Likewise.
13220         * sysdeps/s390/multiarch/wcpcpy-vx.S: Likewise.
13221         * sysdeps/s390/multiarch/wcpcpy.c: Likewise.
13222         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add stpcpy and
13223         wcpcpy functions.
13224         * string/stpcpy.c: Use STPCPY if defined.
13225         * wcsmbs/wcpcpy.c: Use WCPCPY if defined.
13226         * sysdeps/s390/multiarch/ifunc-impl-list.c
13227         (__libc_ifunc_impl_list): Add ifunc test for stpcpy, wcpcpy.
13228         * string/test-stpcpy.c: Add wcpcpy support.
13229         * wcsmbs/test-wcpcpy.c: New File.
13230         * wcsmbs/Makefile (strop-tests): Add wcpcpy.
13231         * benchtests/bench-stpcpy.c: Add wcpcpy support.
13232         * benchtests/bench-wcpcpy.c: New File.
13233         * benchtests/Makefile (wcsmbs-bench): Add wcpcpy.
13234
13235         * sysdeps/s390/multiarch/strcpy-vx.S: New File.
13236         * sysdeps/s390/multiarch/strcpy.c: Likewise.
13237         * sysdeps/s390/multiarch/wcscpy-c.c: Likewise.
13238         * sysdeps/s390/multiarch/wcscpy-vx.S: Likewise.
13239         * sysdeps/s390/multiarch/wcscpy.c: Likewise.
13240         * sysdeps/s390/s390-32/multiarch/strcpy.c: Likewise.
13241         * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
13242         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strcpy and
13243         wcscpy functions.
13244         * sysdeps/s390/multiarch/ifunc-impl-list.c
13245         (__libc_ifunc_impl_list): Add ifunc test for strcpy, wcscpy.
13246         * benchtests/bench-wcscpy.c: New File.
13247         * benchtests/Makefile (wcsmbs-bench): Add wcscpy.
13248
13249         * sysdeps/s390/multiarch/strnlen-c.c: New File.
13250         * sysdeps/s390/multiarch/strnlen-vx.S: Likewise.
13251         * sysdeps/s390/multiarch/strnlen.c: Likewise.
13252         * sysdeps/s390/multiarch/wcsnlen-c.c: Likewise.
13253         * sysdeps/s390/multiarch/wcsnlen-vx.S: Likewise.
13254         * sysdeps/s390/multiarch/wcsnlen.c: Likewise.
13255         * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add strnlen and
13256         wcsnlen functions.
13257         * sysdeps/s390/multiarch/ifunc-impl-list.c
13258         (__libc_ifunc_impl_list): Add ifunc test for strnlen, wcsnlen.
13259         * wcsmbs/wcsnlen.c: Use WCSNLEN if defined.
13260         * string/test-strnlen.c: Add wcsnlen support.
13261         * wcsmbs/test-wcsnlen.c: New File.
13262         * wcsmbs/Makefile (strop-tests): Add wcsnlen.
13263         * benchtests/bench-strnlen.c: Add wcsnlen support.
13264         * benchtests/bench-wcsnlen.c: New File.
13265         * benchtests/Makefile (wcsmbs-bench): Add wcsnlen.
13266
13267         * sysdeps/s390/multiarch/Makefile: New File.
13268         * sysdeps/s390/multiarch/strlen-c.c: Likewise.
13269         * sysdeps/s390/multiarch/strlen-vx.S: Likewise.
13270         * sysdeps/s390/multiarch/strlen.c: Likewise.
13271         * sysdeps/s390/multiarch/wcslen-c.c: Likewise.
13272         * sysdeps/s390/multiarch/wcslen-vx.S: Likewise.
13273         * sysdeps/s390/multiarch/wcslen.c: Likewise.
13274         * string/strlen.c (STRLEN): Define and use macro.
13275         * sysdeps/s390/multiarch/ifunc-impl-list.c
13276         (IFUNC_VX_IMPL): New macro function.
13277         (__libc_ifunc_impl_list): Add ifunc test for strlen, wcslen.
13278         * benchtests/Makefile (wcsmbs-bench): New variable.
13279         (string-bench-all): Added wcsmbs-bench.
13280         * benchtests/bench-wcslen.c: New File.
13281
13282         * sysdeps/s390/multiarch/ifunc-resolve.h (s390_vx_libc_ifunc,
13283         s390_vx_libc_ifunc2): New macro function.
13284
13285         * config.h.in (HAVE_S390_VX_ASM_SUPPORT): New macro undefine.
13286         * sysdeps/s390/configure.ac: Add test for S390 vector instruction
13287         assembler support.
13288         * sysdeps/s390/configure: Regenerated.
13289
13290         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z13.
13291         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
13292
13293         * sysdeps/s390/dl-procinfo.c (_dl_s390_platforms): Add vector flag.
13294         * sysdeps/s390/dl-procinfo.h: Add vector capability.
13295         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h (HWCAP_S390_VX): Define.
13296
13297         * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
13298         Remove ifunc-resolve, add memset-s390, memcpy-s390, memcmp-s390.
13299         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Delete File.
13300         * sysdeps/s390/s390-32/multiarch/memcmp.S: Move to ...
13301         * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: ... here.
13302         (memcmp, bcmp): Use __memcmp_default as alias source.
13303         * sysdeps/s390/s390-32/multiarch/memcmp.c: New File.
13304         * sysdeps/s390/s390-32/memcmp.S (__memcmp_g5):
13305         Rename to __memcmp_default.
13306         * sysdeps/s390/s390-32/multiarch/memcpy.S: Move to ...
13307         * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: ... here.
13308         (memcpy): Use __memcpy_default as alias source.
13309         * sysdeps/s390/s390-32/multiarch/memcpy.c: New File.
13310         * sysdeps/s390/s390-32/memcpy.S (__memcpy_g5):
13311         Rename to __memcpy_default.
13312         * sysdeps/s390/s390-32/multiarch/memset.S: Move to ...
13313         * sysdeps/s390/s390-32/multiarch/memset-s390.S: ... here.
13314         (memset): Use __memset_default as alias source.
13315         * sysdeps/s390/s390-32/multiarch/memset.c: New File.
13316         * sysdeps/s390/s390-32/memset.S (__memset_g5):
13317         Rename to __memset_default.
13318         * sysdeps/s390/s390-64/multiarch/Makefile (sysdep_routines):
13319         Remove ifunc-resolve, add memset-s390x, memcpy-s390x, memcmp-s390x.
13320         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Delete File.
13321         * sysdeps/s390/s390-64/multiarch/memcmp.S: Move to ...
13322         * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: ... here.
13323         (memcmp, bcmp): Use __memcmp_default as alias source.
13324         * sysdeps/s390/s390-64/multiarch/memcmp.c: New File.
13325         * sysdeps/s390/s390-64/memcmp.S (__memcmp_z900):
13326         Rename to __memcmp_default.
13327         * sysdeps/s390/s390-64/multiarch/memcpy.S: Move to ...
13328         * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: ... here.
13329         (memcpy): Use __memcpy_default as alias source.
13330         * sysdeps/s390/s390-64/multiarch/memcpy.c: New File.
13331         * sysdeps/s390/s390-64/memcpy.S (__memcpy_z900):
13332         Rename to __memcpy_default.
13333         * sysdeps/s390/s390-64/multiarch/memset.S: Move to ...
13334         * sysdeps/s390/s390-64/multiarch/memset-s390x.S: ... here.
13335         (memset): Use __memset_default as alias source.
13336         * sysdeps/s390/s390-64/multiarch/memset.c: New File.
13337         * sysdeps/s390/s390-64/memset.S (__memset_z900):
13338         Rename to __memset_default.
13339         * sysdeps/s390/multiarch/ifunc-resolve.h: New File.
13340         * sysdeps/s390/multiarch/ifunc-impl-list.c: New File.
13341
13342         [BZ #18610]
13343         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Rename
13344         __ieee_instruction_pointer to __unused.
13345         * sysdeps/s390/fpu/fesetenv.c (__fesetenv): Remove usage of
13346         __ieee_instruction_pointer.
13347         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Fix dxc-field handling.
13348         * sysdeps/s390/fpu/fgetexcptflg.c (fegetexceptflag): Likewise.
13349         * sysdeps/s390/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
13350         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
13351         * sysdeps/s390/fpu/fpu_control.h (_FPU_RESERVED):
13352         Mark dxc-field as reserved.
13353
13354 2015-08-25  Roland McGrath  <roland@hack.frob.com>
13355
13356         * sysdeps/nacl/start.c (_start): Call __nacl_main instead of main
13357         if the weak reference is not null.
13358
13359 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13360
13361         * sysdeps/x86_64/strcmp.S: Remove "#if !IS_IN (libc)".
13362
13363         [BZ #11214]
13364         * sysdeps/unix/sysv/linux/Makefile (tst-getpid2-ENV): Removed.
13365
13366 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13367
13368         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: Define new macros.
13369         * sysdeps/unix/sysv/linux/accept.c: Call direct system call.
13370         * sysdeps/unix/sysv/linux/bind.c: Call direct system call.
13371         * sysdeps/unix/sysv/linux/connect.c: Call direct system call.
13372         * sysdeps/unix/sysv/linux/getpeername.c: Call direct system call.
13373         * sysdeps/unix/sysv/linux/getsockname.c: Call direct system call.
13374         * sysdeps/unix/sysv/linux/getsockopt.c: Call direct system call.
13375         * sysdeps/unix/sysv/linux/listen.c: Call direct system call.
13376         * sysdeps/unix/sysv/linux/recv.c: Call direct system call.
13377         * sysdeps/unix/sysv/linux/recvfrom.c: Call direct system call.
13378         * sysdeps/unix/sysv/linux/recvmsg.c: Call direct system call.
13379         * sysdeps/unix/sysv/linux/send.c: Call direct system call.
13380         * sysdeps/unix/sysv/linux/sendmsg.c: Call direct system call.
13381         * sysdeps/unix/sysv/linux/sendto.c: Call direct system call.
13382         * sysdeps/unix/sysv/linux/setsockopt.c: Call direct system call.
13383         * sysdeps/unix/sysv/linux/shutdown.c: Call direct system call.
13384         * sysdeps/unix/sysv/linux/socket.c: Call direct system call.
13385         * sysdeps/unix/sysv/linux/socketpair.c: Call direct system call.
13386
13387 2015-08-25  Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
13388
13389         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION): Use
13390         register other than r0 for tabort, it has special meaning.
13391         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION): Likewise.
13392         * sysdeps/unix.sysv/linux/powerpc/syscall.S (syscall): Abort
13393         transaction before starting syscall.
13394
13395 2015-08-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13396
13397         * sysdeps/powerpc/powerpc64/power7/strstr.S: Handle worst case.
13398
13399 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13400
13401         * sysdeps/x86_64/strlen.S: Replace %xmm[8-12] with %xmm[0-4].
13402
13403         * sysdeps/x86_64/rtld-memcmp.c: Removed.
13404         * sysdeps/x86_64/rtld-memset.S: Likewise.
13405         * sysdeps/x86_64/rtld-strchr.S: Likewise.
13406         * sysdeps/x86_64/rtld-strlen.S: Likewise.
13407         * sysdeps/x86_64/multiarch/rtld-memcmp.c: Likewise.
13408         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
13409
13410         * sysdeps/x86_64/memset.S: Replace %xmm8 with %xmm0.
13411
13412 2015-08-25  Ondřej Bílka  <neleai@seznam.cz>
13413
13414         * debug/strcpy_chk.c: Improve performance.
13415         * debug/stpcpy_chk.c: Likewise.
13416         * sysdeps/x86_64/strcpy_chk.S: Remove.
13417         * sysdeps/x86_64/stpcpy_chk.S: Remove.
13418
13419         [BZ #18240]
13420         * misc/hsearch_r.c (__hcreate_r): Handle overflow.
13421
13422 2015-08-25  H.J. Lu  <hongjiu.lu@intel.com>
13423
13424         [BZ #15128]
13425         * sysdeps/x86_64/Makefile [$(subdir) == elf] (tests): Add
13426         ifuncmain8.
13427         (modules-names): Add ifuncmod8.
13428         ($(objpfx)ifuncmain8): New rule.
13429         * sysdeps/x86_64/dl-machine.h: Include <dl-procinfo.h> and
13430         <cpuid.h>.
13431         (elf_machine_runtime_setup): Use _dl_runtime_resolve_sse,
13432         _dl_runtime_resolve_avx, or _dl_runtime_resolve_avx512,
13433         _dl_runtime_profile_sse, _dl_runtime_profile_avx, or
13434         _dl_runtime_profile_avx512, based on HAS_ARCH_FEATURE.
13435         * sysdeps/x86_64/dl-trampoline.S: Rewrite.
13436         * sysdeps/x86_64/dl-trampoline.h: Likewise.
13437         * sysdeps/x86_64/ifuncmain8.c: New file.
13438         * sysdeps/x86_64/ifuncmod8.c: Likewise.
13439         * sysdeps/x86_64/nptl/tcb-offsets.sym (RTLD_SAVESPACE_SSE):
13440         Removed.
13441         * sysdeps/x86_64/nptl/tls.h (__128bits): Removed.
13442         (tcbhead_t): Change rtld_must_xmm_save to __glibc_unused1.
13443         Change rtld_savespace_sse to __glibc_unused2.
13444         (RTLD_CHECK_FOREIGN_CALL): Removed.
13445         (RTLD_ENABLE_FOREIGN_CALL): Likewise.
13446         (RTLD_PREPARE_FOREIGN_CALL): Likewise.
13447         (RTLD_FINALIZE_FOREIGN_CALL): Likewise.
13448
13449 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
13450
13451         * sysdeps/aarch64/bzero.S (__bzero): Remove.
13452
13453 2015-08-24  Wilco Dijkstra  <wdijkstr@arm.com>
13454
13455         * sysdeps/aarch64/fpu/math_private.h (libc_feholdsetround_aarch64_ctx):
13456         Unconditionally set __fpcr to avoid uninialized warning.
13457         (libc_feholdsetround_noex_aarch64_ctx): Likewise.
13458
13459 2015-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
13460
13461         * malloc/arena.c (arena_get_retry): Don't use main_arena if it
13462         is corrupt.
13463
13464         * malloc/arena.c (arena_get2): Drop unused argument.
13465         (arena_lock): Adjust.
13466         (arena_get_retry): Likewise.
13467
13468 2015-08-24  Andreas Schwab  <schwab@suse.de>
13469
13470         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_IPC64):
13471         Don't define.
13472         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
13473         (__ASSUME_IPC64): Don't undef.
13474         * sysdeps/unix/sysv/linux/msgctl.c: Don't check for __ASSUME_IPC64.
13475         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
13476         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
13477         * sysdeps/unix/sysv/linux/i386/msgctl.c: Remove.
13478         * sysdeps/unix/sysv/linux/i386/semctl.c: Remove.
13479         * sysdeps/unix/sysv/linux/i386/shmctl.c: Remove.
13480         * sysdeps/unix/sysv/linux/m68k/msgctl.c: Remove.
13481         * sysdeps/unix/sysv/linux/m68k/semctl.c: Remove.
13482         * sysdeps/unix/sysv/linux/m68k/shmctl.c: Remove.
13483         * sysdeps/unix/sysv/linux/s390/s390-32/msgctl.c: Remove.
13484         * sysdeps/unix/sysv/linux/s390/s390-32/semctl.c: Remove.
13485         * sysdeps/unix/sysv/linux/s390/s390-32/shmctl.c: Remove.
13486         * sysdeps/unix/sysv/linux/sh/msgctl.c: Remove.
13487         * sysdeps/unix/sysv/linux/sh/semctl.c: Remove.
13488         * sysdeps/unix/sysv/linux/sh/shmctl.c: Remove.
13489         * sysdeps/unix/sysv/linux/sparc/sparc32/msgctl.c: Remove.
13490         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Remove.
13491         * sysdeps/unix/sysv/linux/sparc/sparc32/shmctl.c: Remove.
13492         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Remove.
13493         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Remove.
13494         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Remove.
13495
13496 2015-08-21  Mike Frysinger  <vapier@gentoo.org>
13497
13498         * manual/Makefile (install): Only build manual when perl is available.
13499
13500 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13501
13502         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Replace
13503         '#undef memcpy' by '#undef memchr'.
13504
13505 2015-08-21  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13506
13507         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: Make
13508         memchr not point to the internal __GI_memchr implementation.
13509
13510 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13511
13512         * timezone/Makefile (CFLAGS-zdump.c): Remove
13513         -Wno-strict-prototypes.
13514         (CFLAGS-zic.c): Likewise.
13515         (CFLAGS-ialloc.c): Likewise.
13516         (CFLAGS-scheck.c): Likewise.
13517
13518         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Do not add
13519         -Wno-error=undef.
13520
13521 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13522
13523         * i386/i686/multiarch/strcasestr-c.c: Removed.
13524         * x86_64/multiarch/strcasestr.c: Likewise.
13525         * x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
13526         Remove strcasestr.
13527
13528 2015-08-20  Joseph Myers  <joseph@codesourcery.com>
13529
13530         * math/Makefile (CFLAGS): Don't add -Wno-uninitialized.
13531
13532         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Always initialize
13533         variables for high and low parts before possibly modifying them.
13534
13535 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13536
13537         * sysdeps/i386/i686/multiarch/init-arch.h: Removed.
13538         * sysdeps/unix/sysv/linux/x86/init-arch.h: Likewise.
13539         * sysdeps/x86_64/cacheinfo.c: Include <init-arch.h> instead
13540         of "multiarch/init-arch.h".
13541         * sysdeps/x86_64/multiarch/init-arch.h: Renamed to ...
13542         * sysdeps/x86/init-arch.h: This.
13543
13544 2015-08-20  H.J. Lu  <hongjiu.lu@intel.com>
13545
13546         * sysdeps/i386/i686/multiarch/init-arch.c: Removed.
13547         * sysdeps/unix/sysv/linux/x86/init-arch.c: Likewise.
13548
13549 2015-08-20  Ondřej Bílka  <neleai@seznam.cz>
13550
13551         [BZ #17787]
13552         * manual/macros.texi: Add twoexp macro.
13553         * manual/filesys.texi: Fix exponents.
13554         * manual/llio.texi: Likewise.
13555         * manual/stdio.texi: Likewise.
13556
13557 2015-08-20  Florian Weimer  <fweimer@redhat.com>
13558
13559         * sysdeps/x86/elide.h (ELIDE_UNLOCK): Document crash due to
13560         incorrect use.
13561
13562 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13563
13564         [BZ #18370]
13565         * math/s_csqrt.c (__csqrt): Force underflow exception for results
13566         whose real or imaginary part has small absolute value.
13567         * math/s_csqrtf.c (__csqrtf): Likewise.
13568         * math/s_csqrtl.c (__csqrtl): Likewise.
13569         * math/auto-libm-test-in: Add more tests of csqrt.
13570         * math/auto-libm-test-out: Regenerated.
13571         * sysdeps/i386/fpu/libm-test-ulps: Update.
13572
13573 2015-08-19  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
13574
13575         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_set_ppr_med_high,
13576         __ppc_set_ppr_very_low): New functions.
13577         * manual/platform.texi: Add documentation about
13578         __ppc_set_ppr_med_high and __ppc_set_ppr_very_low.
13579
13580 2015-08-19  Wilco Dijkstra  <wdijkstr@arm.com>
13581
13582         * string/stpncpy.c (stpncpy): Improve performance using
13583         __strnlen/memcpy/memset.
13584
13585 2015-08-19  Andrew Senkevich  <andrew.senkevich@intel.com>
13586
13587         [BZ #18796]
13588         * scripts/test-installation.pl: Don't add -lmvec to build options if
13589         libmvec wasn't built.
13590
13591 2015-08-19   Petar Jovanovic  <petar.jovanovic@rt-rk.com>
13592
13593         [BZ #14341]
13594         * elf/dynamic-link.h (elf_machine_lazy_rel): Properly handle the
13595         case when there is a gap between DT_REL and DT_JMPREL sections.
13596         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc.
13597         (LDFLAGS-tst-split-dynreloc): New.
13598         (tst-split-dynreloc-ENV): Likewise.
13599         * sysdeps/x86_64/tst-split-dynreloc.c: New file.
13600         * sysdeps/x86_64/tst-split-dynreloc.lds: Likewise.
13601
13602 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13603
13604         [BZ #18822]
13605         * sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
13606         attribute_hidden.
13607         (__xstat64_conv): Likewise.
13608         (__xstat32_conv): Likewise.
13609
13610 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13611
13612         [BZ #18822]
13613         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
13614         Don't load %ebx when calling __setcontext.  Call __setcontext
13615         with HIDDEN_JUMPTARGET.
13616         * sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
13617         libc_hidden_def.
13618
13619 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13620
13621         * sysdeps/i386/i686/Makefile
13622         [$(subdir) == string] (sysdep_routines): Moved to ...
13623         * sysdeps/i386/Makefile: Here.
13624         * sysdeps/i386/i686/cacheinfo.c: Moved to ...
13625         * sysdeps/i386/cacheinfo.c: Here.
13626         * sysdeps/unix/sysv/linux/i386/sysconf.c: Removed.
13627         * sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.
13628         * sysdeps/unix/sysv/linux/x86_64/sysconf.c: Moved to ...
13629         * sysdeps/unix/sysv/linux/x86/sysconf.c: Here.
13630
13631 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
13632
13633         * sysdeps/x86/cpu-features.h (HAS_I586): Defined to 1 if
13634         __i586__ is defined.
13635         (HAS_I686): Defined to 1 if __i686__ is defined.
13636
13637 2015-08-19  Joseph Myers  <joseph@codesourcery.com>
13638
13639         * elf/Makefile [$(have-z-execstack) = yes]
13640         (CPPFLAGS-tst-execstack.c): New variable.
13641
13642         * login/tst-utmp.c [_HAVE_UT_TYPE || defined UTMPX]: Change
13643         conditional to [defined UTMPX || _HAVE_UT_TYPE].
13644         [_HAVE_UT_TV || defined UTMPX]: Change conditional to [defined
13645         UTMPX || _HAVE_UT_TV].
13646         [_HAVE_UT_TV - 0 || defined UTMPX]: Change conditional to [defined
13647         UTMPX || _HAVE_UT_TV - 0].
13648
13649 2015-08-18  Joseph Myers  <joseph@codesourcery.com>
13650
13651         * sysdeps/mips/dl-machine.h [__mips_isa_rev < 6]: Change
13652         conditionals to [!defined __mips_isa_rev || __mips_isa_rev < 6].
13653         * sysdeps/mips/machine-gmon.h [__mips_isa_rev < 6]: Likewise.
13654
13655 2015-08-18  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
13656
13657         * sysdeps/powerpc/dl-procinfo.c:
13658         (_dl_powerpc_cap_flags): Added missing strings for some
13659         hwcap features.
13660         * sysdeps/powerpc/dl-procinfo.h: Updated hwcap bit count.
13661
13662 2015-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13663
13664         Port the 0x7efe...feff pattern to GCC 6.
13665         See Steve Ellcey's bug report in:
13666         https://sourceware.org/ml/libc-alpha/2015-07/msg00673.html
13667         * string/memrchr.c (MEMRCHR):
13668         * string/rawmemchr.c (RAWMEMCHR):
13669         * string/strchr.c (strchr):
13670         * string/strchrnul.c (STRCHRNUL):
13671         Rewrite code to avoid issues with signed shift overflow.
13672
13673 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
13674
13675         * sysdeps/x86/cpu-features.c (init_cpu_features): Check
13676         whether cpuid is available only if HAS_CPUID is 0.
13677         * sysdeps/x86/cpu-features.h (HAS_CPUID): New.
13678         (HAS_I586): Likewise.
13679         (HAS_I686): Likewise.
13680
13681 2015-08-18  Zack Weinberg  <zackw@panix.com>
13682
13683         * misc/Versions (libc): Add GLIBC_2.23.
13684
13685 2015-08-18  Alan Modra  <amodra@gmail.com>
13686
13687         [BZ #18421]
13688         * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
13689         .Lp__global.
13690         (_start): Load %dp via .Lp__global.
13691         [!SHARED]: Use .section .rodata.
13692
13693 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13694
13695         * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
13696         * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
13697
13698 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13699
13700         * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
13701         * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
13702
13703 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13704
13705         * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
13706         * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
13707
13708 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13709
13710         * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
13711         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
13712
13713 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13714
13715         * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
13716         * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
13717
13718 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13719
13720         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
13721         SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
13722
13723 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13724
13725         * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
13726
13727 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13728
13729         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
13730         kernel-features.h include.  Delete __ASSUME_LWS_CAS checks.
13731         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
13732         (__ASSUME_LWS_CAS): Delete.
13733
13734 2015-08-18  Mike Frysinger  <vapier@gentoo.org>
13735
13736         * sysdeps/hppa/configure.ac: Delete binutils tls checks.
13737         * sysdeps/hppa/configure: Regenerated.
13738         * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
13739         * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
13740         * sysdeps/hppa/nptl/tls.h: Likewise.
13741
13742 2015-08-17  Joseph Myers  <joseph@codesourcery.com>
13743
13744         [BZ #18823]
13745         * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
13746         for scaling up small arguments.
13747         * math/s_csqrtf.c (__csqrtf): Likewise.
13748         * math/s_csqrtl.c (__csqrtl): Likewise.
13749         * math/auto-libm-test-in: Add more tests of csqrt.
13750         * math/auto-libm-test-out: Regenerated.
13751
13752 2015-08-17  Andreas Schwab  <schwab@suse.de>
13753
13754         * sysdeps/unix/sysv/linux/powerpc/Versions (libm): Add empty
13755         version set GLIBC_2.19.
13756
13757 2015-08-16  Zack Weinberg  <zackw@panix.com>
13758
13759         [BZ #18681]
13760         * misc/regexp.h: This interface is no longer supported.
13761         Remove all contents, leaving only an #error directive.
13762         * misc/regexp.c (loc1, loc2, locs, step, advance):
13763         Demote to compatibility symbols.
13764
13765 2015-08-15  Paul Pluzhnikov  <ppluzhnikov@google.com>
13766
13767         [BZ #18084]
13768         * debug/tst-backtrace2.c (do_test): Add test for BZ #18084.
13769         * sysdeps/arm/backtrace.c (__backtrace): Handle size <= 0.
13770         * sysdeps/i386/backtrace.c (__backtrace): Likewise.
13771         * sysdeps/m68k/backtrace.c (__backtrace): Likewise.
13772         * sysdeps/microblaze/backtrace.c (__backtrace): Likewise.
13773         * sysdeps/s390/s390-32/backtrace.c (__backtrace): Likewise.
13774         * sysdeps/s390/s390-64/backtrace.c (__backtrace): Likewise.
13775         * sysdeps/sparc/backtrace.c (__backtrace): Likewise.
13776         * sysdeps/x86_64/backtrace.c (__backtrace): Likewise.
13777
13778 2015-08-15  Zack Weinberg  <zackw@panix.com>
13779
13780         [BZ #18795]
13781         * string/bits/string3.h (stpncpy): Call __stpncpy_chk if the
13782         buffer length is known to be too large, not if it's known to be
13783         small enough.
13784         * debug/tst-chk1.c (do_test): Do all tests for catching a buffer
13785         overflow at runtime, involving a length parameter, twice: once
13786         with a compile-time constant length parameter, once without.
13787
13788 2015-08-14  Joseph Myers  <joseph@codesourcery.com>
13789
13790         [BZ #18824]
13791         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Increase threshold for
13792         scaling x * y up instead of down.
13793         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13794         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13795         * math/auto-libm-test-in: Add more tests of fma.
13796         * math/auto-libm-test-out: Regenerated.
13797
13798 2015-08-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
13799
13800         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
13801
13802 2015-08-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
13803
13804         * sysdeps/x86_64/fpu/multiarch/s_floorf.S (__floorf): Remove
13805         unnecessary movq.
13806         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S (__nearbyint):
13807         Likewise.
13808
13809 2015-08-13  Joseph Myers  <joseph@codesourcery.com>
13810
13811         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
13812         asinh, atan, atan2, atanh, cabs, cbrt, cosh, csqrt, erf, erfc,
13813         exp, exp2, lgamma, log, log1p, log2, pow, sin, sincos, tan, tanh
13814         and tgamma.
13815         * math/auto-libm-test-out: Regenerated.
13816         * sysdeps/i386/fpu/libm-test-ulps: Update.
13817         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13818
13819         [BZ #16520]
13820         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
13821         (__tanh): Force underflow exception for arguments with small
13822         absolute value.
13823         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
13824         (__tanhf): Force underflow exception for arguments with small
13825         absolute value.
13826         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
13827         (__tanhl): Force underflow exception for arguments with small
13828         absolute value.
13829         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
13830         (__tanhl): Force underflow exception for arguments with small
13831         absolute value.
13832         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
13833         (__tanhl): Force underflow exception for arguments with small
13834         absolute value.
13835         * math/auto-libm-test-in: Add more tests of tanh.
13836         * math/auto-libm-test-out: Regenerated.
13837         * sysdeps/i386/fpu/libm-test-ulps: Update.
13838
13839 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13840
13841         * sysdeps/x86/cpu-features.c (init_cpu_features): Call
13842         __get_cpuid_max if not compiling for i586, i686 nor x86-64.
13843
13844 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13845
13846         * sysdeps/unix/sysv/linux/x86/elision-conf.h: Don't include
13847         <cpuid.h>.
13848
13849 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13850
13851         * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
13852         Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
13853
13854 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13855
13856         * math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
13857         Remove $(objpfx)init-arch.o.
13858         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Remove
13859         init-arch.
13860         * sysdeps/x86_64/fpu/math-tests-arch.h (avx_usable): Removed.
13861         (INIT_ARCH_EXT): Defined as empty.
13862         (CHECK_ARCH_EXT): Replace HAS_XXX with HAS_ARCH_FEATURE (XXX).
13863         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Remove
13864         __init_cpu_features call.  Replace HAS_XXX with
13865         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13866         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Likewise.
13867         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Likewise.
13868         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Likewise.
13869         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Likewise.
13870         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
13871         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Likewise.
13872         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Likewise.
13873         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
13874         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Likewise.
13875         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Likewise.
13876         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
13877         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Likewise.
13878         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Likewise.
13879         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
13880         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Likewise.
13881         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Likewise.
13882         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
13883         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
13884         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: Likewise.
13885         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: Likewise.
13886         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
13887         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: Likewise.
13888         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: Likewise.
13889         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
13890         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: Likewise.
13891         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: Likewise.
13892         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
13893         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: Likewise.
13894         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: Likewise.
13895         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
13896         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S: Likewise.
13897         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S: Likewise.
13898         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
13899         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: Likewise.
13900         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: Likewise.
13901
13902 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13903
13904         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Replace HAS_XXX
13905         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13906         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13907         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Likewise.
13908         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Likewise.
13909         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Likewise.
13910         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Likewise.
13911         * sysdeps/i386/i686/multiarch/s_fma.c: Likewise.
13912         * sysdeps/i386/i686/multiarch/s_fmaf.c: Likewise.
13913         * sysdeps/i386/i686/multiarch/bcopy.S: Remove __init_cpu_features
13914         call.  Merge SHARED and !SHARED.  Add LOAD_GOT_AND_RTLD_GLOBAL_RO.
13915         Use LOAD_FUNC_GOT_EAX to load function address.  Replace HAS_XXX
13916         with HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13917         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13918         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13919         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13920         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13921         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13922         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13923         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13924         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13925         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13926         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13927         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13928         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13929         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13930         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13931         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13932         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13933         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13934         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13935         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13936         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13937         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13938         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13939         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13940         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13941         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13942         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13943         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13944         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13945         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13946         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13947
13948 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13949
13950         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Replace HAS_XXX with
13951         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13952         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13953         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13954         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13955         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
13956         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13957         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Likewise.
13958         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
13959         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13960         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13961         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Use
13962         LOAD_RTLD_GLOBAL_RO_RDX and HAS_CPU_FEATURE (SSE4_1).
13963         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Likewise.
13964         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Likewise.
13965         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Likewise.
13966         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S : Likewise.
13967         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Likewise.
13968         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Likewise.
13969         * sysdeps/x86_64/fpu/multiarch/s_rintf.S : Likewise.
13970         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Likewise.
13971         * sysdeps/x86_64/multiarch/sched_cpucount.c: Likewise.
13972         * sysdeps/x86_64/multiarch/strstr.c: Likewise.
13973         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
13974         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
13975         * sysdeps/x86_64/multiarch/test-multiarch.c: Likewise.
13976         * sysdeps/x86_64/multiarch/memcmp.S: Remove __init_cpu_features
13977         call.  Add LOAD_RTLD_GLOBAL_RO_RDX.  Replace HAS_XXX with
13978         HAS_CPU_FEATURE/HAS_ARCH_FEATURE (XXX).
13979         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
13980         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
13981         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
13982         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
13983         * sysdeps/x86_64/multiarch/memset.S: Likewise.
13984         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
13985         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
13986         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
13987         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
13988         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
13989         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
13990         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
13991         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
13992         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
13993
13994 2015-08-13  H.J. Lu  <hongjiu.lu@intel.com>
13995
13996         * sysdeps/i386/dl-machine.h: Include <cpu-features.c>.
13997         (dl_platform_init): Call init_cpu_features.
13998         * sysdeps/i386/dl-procinfo.c (_dl_x86_cpu_features): New.
13999         * sysdeps/i386/i686/cacheinfo.c
14000         (DISABLE_PREFERRED_MEMORY_INSTRUCTION): Removed.
14001         * sysdeps/i386/i686/multiarch/Makefile (aux): Remove init-arch.
14002         * sysdeps/i386/i686/multiarch/Versions: Removed.
14003         * sysdeps/i386/i686/multiarch/ifunc-defines.sym (KIND_OFFSET):
14004         Removed.
14005         * sysdeps/i386/ldsodefs.h: Include <cpu-features.h>.
14006         * sysdeps/unix/sysv/linux/x86/Makefile
14007         (libpthread-sysdep_routines): Remove init-arch.
14008         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Include
14009         <sysdeps/x86_64/dl-procinfo.c> instead of
14010         sysdeps/generic/dl-procinfo.c>.
14011         * sysdeps/x86/Makefile [$(subdir) == csu] (gen-as-const-headers):
14012         Add cpu-features-offsets.sym and rtld-global-offsets.sym.
14013         [$(subdir) == elf] (sysdep-dl-routines): Add dl-get-cpu-features.
14014         [$(subdir) == elf] (tests): Add tst-get-cpu-features.
14015         [$(subdir) == elf] (tests-static): Add
14016         tst-get-cpu-features-static.
14017         * sysdeps/x86/Versions: New file.
14018         * sysdeps/x86/cpu-features-offsets.sym: Likewise.
14019         * sysdeps/x86/cpu-features.c: Likewise.
14020         * sysdeps/x86/cpu-features.h: Likewise.
14021         * sysdeps/x86/dl-get-cpu-features.c: Likewise.
14022         * sysdeps/x86/libc-start.c: Likewise.
14023         * sysdeps/x86/rtld-global-offsets.sym: Likewise.
14024         * sysdeps/x86/tst-get-cpu-features-static.c: Likewise.
14025         * sysdeps/x86/tst-get-cpu-features.c: Likewise.
14026         * sysdeps/x86_64/dl-procinfo.c: Likewise.
14027         * sysdeps/x86_64/cacheinfo.c (__cpuid_count): Removed.
14028         Assume USE_MULTIARCH is defined and don't check it.
14029         (is_intel): Replace __cpu_features with GLRO(dl_x86_cpu_features).
14030         (is_amd): Likewise.
14031         (max_cpuid): Likewise.
14032         (intel_check_word): Likewise.
14033         (__cache_sysconf): Don't call __init_cpu_features.
14034         (__x86_preferred_memory_instruction): Removed.
14035         (init_cacheinfo): Don't call __init_cpu_features. Replace
14036         __cpu_features with GLRO(dl_x86_cpu_features).
14037         * sysdeps/x86_64/dl-machine.h: <cpu-features.c>.
14038         (dl_platform_init): Call init_cpu_features.
14039         * sysdeps/x86_64/ldsodefs.h: Include <cpu-features.h>.
14040         * sysdeps/x86_64/multiarch/Makefile (aux): Remove init-arch.
14041         * sysdeps/x86_64/multiarch/Versions: Removed.
14042         * sysdeps/x86_64/multiarch/cacheinfo.c: Likewise.
14043         * sysdeps/x86_64/multiarch/init-arch.c: Likewise.
14044         * sysdeps/x86_64/multiarch/ifunc-defines.sym (KIND_OFFSET):
14045         Removed.
14046         * sysdeps/x86_64/multiarch/init-arch.h: Rewrite.
14047
14048 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
14049
14050         [BZ #18820]
14051         * libio/Makefile (test-fmemopen-mem): New test.
14052         * libio/test-fmemopen.c (do_bz18820): New test.
14053         * libio/fmemopen.c (__fmemopen): Fix memory leak.
14054         * libio/oldfmemopen.c (__old_fmemopen): Likewise.
14055
14056 2015-08-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
14057
14058         [BZ #16734]
14059         * libio/libioP.h (ROUND_TO_PAGE, ALLOC_BUF, ALLOC_WBUF): Delete.
14060         (FREE_BUF): Delete.
14061         * libio/libio.h (_IO_FILE_complete): Delete unused _freeres_size.
14062         * libio/genops.c (_IO_setb): Use malloc and free directly.
14063         (_IO_default_doallocate, _IO_default_finish): Likewise.
14064         ( _IO_unbuffer_all): Likewise.
14065         ( libc_freeres_fn): Likewise.
14066         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
14067         * libio/wfiledoalloc.c (_IO_wfile_doallocate): Likewise.
14068         * libio/wgenops.c (_IO_wsetb, _IO_wdefault_finish): Likewise.
14069         (_IO_wdefault_doallocate): Likewise.
14070
14071 2015-08-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
14072
14073         [BZ #18086]
14074         * sysdeps/posix/nice.c (nice): Restore old errno.
14075         * posix/tst-nice.c (do_test): Add test for BZ #18086.
14076
14077 2015-08-10  Ondrej Bilka  <neleai@seznam.cz>
14078
14079         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Fix ifunc.
14080
14081 2015-08-10  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14082
14083         * sysdeps/powerpc/powerpc64/power7/memmove.S (bcopy): Changing to
14084         __bcopy and add a weak_alias to bcopy.
14085         * sysdeps/powerpc/powerpc64/power7/strstr.S (strstr): Use __strnlen
14086         for static build.
14087
14088         * string/stpcpy.c (__stpcpy): Use STPCPY to redefine symbol name and
14089         cleanup macro usage.
14090         * string/strcpy.c (strcpt): Use STRCPY to redefine symbol name.
14091         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.S: Remove file.
14092         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
14093         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.S: Likewise.
14094         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
14095         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: Likewise.
14096         * sysdeps/powerpc/powerpc64/power7/strcpy.S: Likewise.
14097         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
14098         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
14099         * sysdeps/powerpc/powerpc64/strcpy.S: Likewise.
14100         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
14101         [SHARED && IS_IN (libc)]: Include <string/strcpy.c>.
14102         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
14103         [SHARED && IS_IN (libc)]: Include <string/stpcpy.c>.
14104         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
14105         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: Likewise.
14106         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: Likewise.
14107         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: Likewise.
14108         * sysdeps/powerpc/powerpc64/power7/strcpy.c: Likewise.
14109
14110         * sysdeps/powerpc/powerpc64/power7/strnlen.S (__strnlen): Add
14111         libc_hidden_def.
14112         (strnlen): Remove libc_hidden_builtin_def and add libc_hidden_def.
14113
14114         * sysdeps/powerpc/powerpc64/power7/Makefile [$(subdir) = string]
14115         (sysdep_routines): Add strstr-ppc64.
14116         * sysdeps/powerpc/powerpc64/power7/strstr-ppc64.c: New file.
14117
14118 2015-08-10  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
14119
14120         [BZ #18778]
14121         * elf/Makefile (tests): Add Add tst-nodelete2.
14122         (modules-names): Add tst-nodelete2mod.
14123         (tst-nodelete2mod.so-no-z-defs): New.
14124         ($(objpfx)tst-nodelete2): Likewise.
14125         ($(objpfx)tst-nodelete2.out): Likewise.
14126         (LDFLAGS-tst-nodelete2): Likewise.
14127         * elf/dl-close.c (_dl_close_worker): Move DF_1_NODELETE clearing
14128         out of loop through all loaded libraries.
14129         * elf/tst-nodelete2.c: New file.
14130         * elf/tst-nodelete2mod.c: Likewise.
14131         * elf/tst-znodelete-zlib.cc: Delete.
14132
14133 2015-08-11  Andreas Schwab  <schwab@suse.de>
14134
14135         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Don't define.
14136         * sysdeps/unix/sysv/linux/wordsize-64/openat.c
14137         (__openat64_nocancel): Likewise.
14138
14139 2015-08-11  Joseph Myers  <joseph@codesourcery.com>
14140
14141         * math/auto-libm-test-in: Add more tests of acosh, asin, asinh,
14142         atanh, cabs, carg, cbrt, cosh, csqrt, erf, erfc, exp, exp10,
14143         expm1, hypot, log, log10, log1p, log2, pow, sinh, tan and tgamma.
14144         * math/auto-libm-test-out: Regenerated.
14145         * sysdeps/i386/fpu/libm-test-ulps: Update.
14146         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14147
14148 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
14149
14150         [BZ #18790]
14151         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Increase
14152         threshold for returning +/- 1.
14153         * math/auto-libm-test-in: Add more tests of tanh.
14154         * math/auto-libm-test-out: Regenerated.
14155         * sysdeps/i386/fpu/libm-test-ulps: Update.
14156
14157 2015-08-10  Andreas Schwab  <schwab@suse.de>
14158
14159         [BZ #18781]
14160         * sysdeps/unix/sysv/linux/openat.c (__OPENAT) [MORE_OFLAGS]: Add
14161         MORE_OFLAGS to oflag.
14162         * io/test-lfs.c (do_test): Test openat64.
14163
14164 2015-08-10  Joseph Myers  <joseph@codesourcery.com>
14165
14166         [BZ #18789]
14167         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Use
14168         smaller threshold for returning the argument.
14169         * math/auto-libm-test-in: Add more tests of sinh.
14170         * math/auto-libm-test-out: Regenerated.
14171         * sysdeps/i386/fpu/libm-test-ulps: Update.
14172
14173 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
14174
14175         [BZ #18674]
14176         * sysdeps/i386/tst-auditmod3b.c (la_objsearch): Add a missing
14177         break.
14178
14179 2015-08-09  Andreas Schwab  <schwab@linux-m68k.org>
14180
14181         * timezone/Makefile (tzbases, tzlinks, tzfiles): Don't define.
14182         (generated): Don't add $(addprefix z.,$(tzfiles)).
14183
14184 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14185
14186         * nptl/tst-cancel-wrappers.sh: Change 3rd arg to gensub to 1.
14187         * scripts/sysd-rules.awk: Likewise.
14188
14189 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14190
14191         * iconvdata/tst-tables.sh: Change echo -n to printf.
14192         * nss/db-Makefile: Likewise.
14193         * posix/tst-getconf.sh: Likewise.
14194         * stdio-common/tst-unbputc.sh: Likewise.
14195
14196 2015-08-09  Mike Frysinger  <vapier@gentoo.org>
14197
14198         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]: Move all
14199         MADV_*_PAGES defines behind this feature check.
14200
14201 2015-08-09  John David Anglin  <danglin@gcc.gnu.org>
14202
14203         [BZ #18480]
14204         * sysdeps/unix/sysv/linux/hppa/sysdep.h (LOAD_ARGS_0, LOAD_ARGS_1,
14205         LOAD_ARGS_2, LOAD_ARGS_3, LOAD_ARGS_4, LOAD_ARGS_5, LOAD_ARGS_6):
14206         Define.
14207         (LOAD_REGS_0, LOAD_REGS_1, LOAD_REGS_2, LOAD_REGS_3, LOAD_REGS_4,
14208         LOAD_REGS_5, LOAD_REGS_6): Update.
14209         (INTERNAL_SYSCALL): Update using new LOAD defines.
14210         (INTERNAL_SYSCALL_NCS): Likewise.
14211         * sysdeps/unix/sysv/linux/hppa/syscall.c (syscall): Likewise.
14212
14213 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
14214
14215         [BZ #16734]
14216         * libio/genops.c (_IO_unbuffer_all): Free wide buffer as well.
14217
14218 2015-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
14219
14220         [BZ #17905]
14221         * catgets/Makefile (tst-catgets-mem): New test.
14222         * catgets/catgets.c (catopen): Don't use unbounded alloca.
14223         * catgets/open_catalog.c (__open_catalog): Likewise.
14224         * catgets/tst-catgets.c (do_bz17905): Test unbounded alloca.
14225
14226 2015-08-08  John David Anglin  <danglin@gcc.gnu.org>
14227
14228         [BZ #18787]
14229         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (_LWS_CLOBBER): Revise
14230         clobber registers.
14231         (atomic_compare_and_exchange_val_acq): Use register asms to assign
14232         operand registers.  Use register %r20 for EAGAIN and EDEADLOCK checks.
14233         Cast return to __typeof (oldval).
14234
14235 2015-08-08  Mike Frysinger  <vapier@gentoo.org>
14236
14237         * sysdeps/unix/sysv/linux/microblaze/sysdep.h: Wrap the whole file
14238         in _LINUX_MICROBLAZE_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h
14239         and delete sys/syscall.h include.
14240
14241 2015-08-07  Joseph Myers  <joseph@codesourcery.com>
14242
14243         [BZ #16517]
14244         * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
14245         (tan): Force underflow exception for arguments with small absolute
14246         value.
14247         * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
14248         (__kernel_tanf): Force underflow exception for arguments with
14249         small absolute value.
14250         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
14251         (__kernel_tanl): Force underflow exception for arguments with
14252         small absolute value.
14253         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
14254         (__kernel_tanl): Force underflow exception for arguments with
14255         small absolute value.
14256         * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
14257         (__kernel_tanl): Force underflow exception for arguments with
14258         small absolute value.
14259         * math/auto-libm-test-in: Add more tests of tan.
14260         * math/auto-libm-test-out: Regenerated.
14261
14262 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14263
14264         Fix sysdeps/i386/fpu/s_scalbn.S build
14265
14266         * math/Versions (libc: GLIBC_2_22): New (empty) version set.
14267
14268 2015-08-07  Mike Frysinger  <vapier@gentoo.org>
14269
14270         * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
14271
14272 2015-08-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14273
14274         Fix gcrt0.o compilation
14275
14276         When static-start-installed-name is different from
14277         start-installed-name, we must not use the shared objects.
14278
14279         * csu/Makefile
14280         (extra-objs): Add gmon-start.o when building shared library and
14281         $(static-start-installed-name) is different from
14282         $(start-installed-name).
14283         $(objpfx)g$(static-start-installed-name): When building shared
14284         library and $(static-start-installed-name) is different from
14285         $(static-start-installed-name), revert to non-shared rule,
14286         i.e. using $(objpfx)% and gmon-start.o.
14287
14288 2015-08-06  Joseph Myers  <joseph@codesourcery.com>
14289
14290         [BZ #16519]
14291         * sysdeps/ieee754/dbl-64/e_sinh.c: Include <float.h>.
14292         (__ieee754_sinh): Force underflow exception for arguments with
14293         small absolute value.
14294         * sysdeps/ieee754/flt-32/e_sinhf.c: Include <float.h>.
14295         (__ieee754_sinhf): Force underflow exception for arguments with
14296         small absolute value.
14297         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Include <float.h>.
14298         (__ieee754_sinhl): Force underflow exception for arguments with
14299         small absolute value.
14300         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Include <float.h>.
14301         (__ieee754_sinhl): Force underflow exception for arguments with
14302         small absolute value.
14303         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Include <float.h>.
14304         (__ieee754_sinhl): Force underflow exception for arguments with
14305         small absolute value.
14306         * math/auto-libm-test-in: Add more tests of sinh.
14307         * math/auto-libm-test-out: Regenerated.
14308         * sysdeps/i386/fpu/libm-test-ulps: Update.
14309
14310 2015-08-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
14311
14312         * libio/oldfileops.c: Include unistd.h.
14313
14314 2015-08-06  Mike Frysinger  <vapier@gentoo.org>
14315
14316         * stdlib/isomac.c: Include ctype.h.
14317
14318 2015-08-06  Arjun Shankar  <arjun.is@lostca.se>
14319
14320         * dirent/tst-seekdir.c (main): Converted to ...
14321         (do_test): ... this.
14322         (TEST_FUNCTION): New macro.
14323         Include test-skeleton.c.
14324         * elf/tst-dlmodcount.c (main): Converted to ...
14325         (do_test): ... this.
14326         (TEST_FUNCTION): New macro.
14327         Include test-skeleton.c.
14328         * elf/tst-order-main.c (main): Converted to ...
14329         (do_test): ... this.
14330         (TEST_FUNCTION): New macro.
14331         Include test-skeleton.c.
14332         * elf/tst-pie2.c (main): Converted to ...
14333         (do_test): ... this.
14334         (TEST_FUNCTION): New macro.
14335         Include test-skeleton.c.
14336         * inet/tst-ether_aton.c (main): Converted to ...
14337         (do_test): ... this.
14338         (TEST_FUNCTION): New macro.
14339         Include test-skeleton.c.
14340         * misc/tst-mntent.c (main): Converted to ...
14341         (do_test): ... this.
14342         (TEST_FUNCTION): New macro.
14343         Include test-skeleton.c.
14344         * misc/tst-tsearch.c (main): Converted to ...
14345         (do_test): ... this.
14346         (TEST_FUNCTION): New macro.
14347         Include test-skeleton.c.
14348         * posix/tst-regexloc.c (main): Converted to ...
14349         (do_test): ... this.
14350         (TEST_FUNCTION): New macro.
14351         Include test-skeleton.c.
14352         * resolv/tst-aton.c (main): Converted to ...
14353         (do_test): ... this.
14354         (TEST_FUNCTION): New macro.
14355         Include test-skeleton.c.
14356         * stdio-common/test-fwrite.c (main): Converted to ...
14357         (do_test): ... this.
14358         (TEST_FUNCTION): New macro.
14359         Include test-skeleton.c.
14360         * stdio-common/tst-ferror.c (main): Converted to ...
14361         (do_test): ... this.
14362         (TEST_FUNCTION): New macro.
14363         Include test-skeleton.c.
14364         * stdio-common/tst-printf.c (main): Converted to ...
14365         (do_test): ... this.
14366         (TEST_FUNCTION): New macro.
14367         Include test-skeleton.c.
14368         * stdio-common/tst-printfsz.c (main): Converted to ...
14369         (do_test): ... this.
14370         (TEST_FUNCTION): New macro.
14371         Include test-skeleton.c.
14372         * stdlib/tst-strtod.c (main): Converted to ...
14373         (do_test): ... this.
14374         (TEST_FUNCTION): New macro.
14375         Include test-skeleton.c.
14376         * string/tst-strlen.c (main): Converted to ...
14377         (do_test): ... this.
14378         (TEST_FUNCTION): New macro.
14379         Include test-skeleton.c.
14380         * string/tst-svc.c (main): Converted to ...
14381         (do_test): ... this.
14382         (TEST_FUNCTION): New macro.
14383         Include test-skeleton.c.
14384         * time/tst-strptime.c (main): Converted to ...
14385         (do_test): ... this.
14386         (TEST_FUNCTION): New macro.
14387         Include test-skeleton.c.
14388         * timezone/tst-timezone.c (main): Converted to ...
14389         (do_test): ... this.
14390         (TEST_FUNCTION): New macro.
14391         Include test-skeleton.c.
14392
14393 2015-08-05  Zack Weinberg  <zackw@panix.com>
14394
14395         * misc/regexp.h: Update comments.
14396
14397 2015-08-05  Andreas Schwab  <schwab@linux-m68k.org>
14398
14399         [BZ #18635]
14400         * sysdeps/unix/sysv/linux/m68k/m680x0/makecontext.S: Add nop
14401         before return label.
14402
14403 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14404
14405         [BZ #18661]
14406         * sysdeps/x86_64/fpu/s_cosf.S (__cosf): Align stack to 16 bytes
14407         when calling __errno_location.
14408         * sysdeps/x86_64/fpu/s_sincosf.S (__sincosf): Likewise.
14409         * sysdeps/x86_64/fpu/s_sinf.S (__sinf): Likewise.
14410
14411 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14412
14413         [BZ #18661]
14414         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S
14415         (__lll_timedwait_tid): Align stack to 16 bytes when calling
14416         __gettimeofday.
14417
14418 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14419
14420         [BZ #18661]
14421         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
14422         (__start_context): Don't use pop to restore %rdi so that stack
14423         is aligned to 16 bytes when calling __setcontext.
14424
14425 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14426
14427         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Compile
14428         only for libc.
14429         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
14430
14431 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14432
14433         * string/string.h: (mempcpy): Redirect to __mempcpy_inline.
14434         (__mempcpy): Likewise.  (__mempcpy_inline): New inline function.
14435         * sysdeps/sparc/bits/string.h: (_HAVE_STRING_ARCH_mempcpy): Define.
14436
14437 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14438
14439         * string/memccpy.c (memccpy):
14440         Improve performance by using memchr/memcpy/__mempcpy.
14441
14442 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14443
14444         * string/strncpy.c (strncpy):
14445         Improve performance by using __strnlen/memcpy.
14446
14447 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14448
14449         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
14450         Optimize to avoid an unnecessary FPCR read.
14451
14452 2015-08-05  Wilco Dijkstra  <wdijkstr@arm.com>
14453
14454         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
14455         Optimize to reduce FPCR/FPSR accesses.
14456
14457 2015-08-05  H.J. Lu  <hongjiu.lu@intel.com>
14458
14459         * locale/loadarchive.c (_nl_archive_subfreeres): Also check
14460         dead->data[category] != NULL.
14461
14462 2015-08-05  Joseph Myers  <joseph@codesourcery.com>
14463
14464         [BZ #18647]
14465         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): For large y
14466         and |x| close to 1, use absolute value of x when computing log.
14467         * math/auto-libm-test-in: Add more tests of pow.
14468         * math/auto-libm-test-out: Regenerated.
14469
14470 2015-08-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14471
14472         * sysdeps/unix/sysv/linux/arm/mmap.c: Add file.
14473         * sysdeps/unix/sysv/linux/arm/mmap.S: Remove file.
14474         * sysdeps/unix/sysv/linux/arm/mmap64.S: Likewise.
14475
14476 2015-08-05  Marko Myllynen  <myllynen@redhat.com>
14477
14478         [BZ #18525]
14479         * locales/km_KH: Remove timezone definition.
14480         * locales/lo_LA: Likewise.
14481         * locales/my_MM: Likewise.
14482         * locales/nan_TW@latin: Likewise.
14483         * locales/th_TH: Likewise.
14484         * locales/uk_UA: Likewise.
14485
14486 2015-08-05  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
14487
14488         [BZ #18265]
14489         * wcsmbs/wchar.h (wcscat): Add __nonnull attribute.
14490         (wcsncat): Likewise.
14491         (wcscmp): Likewise.
14492         (wcsncmp): Likewise.
14493
14494 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14495
14496         * test-skeleton.c (usage): New function.
14497         (main): Call usage when opt is '?'.
14498
14499 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14500
14501         * sysdeps/unix/sysv/linux/mmap64.c: Move MMAP2_PAGE_SHIFT define
14502         before first use.
14503
14504 2015-08-05  Mike Frysinger  <vapier@gentoo.org>
14505
14506         * nptl/allocatestack.c (allocate_stack): Move stacktop decl down to
14507         bottom and under _STACK_GROWS_DOWN.  Move the stacktop assignment
14508         in there too.
14509
14510 2015-08-05  Carlos O'Donell  <carlos@systemhalted.org>
14511
14512         * version.h (RELEASE): Set to "development".
14513         (VERSION): Set to "2.22.90"
14514
14515         * version.h (RELEASE): Set to "stable".
14516         (VERSION): Set to "2.22"
14517         * include/features.h (__GLIBC_MINOR__): Set to 22.
14518
14519 2015-08-04  Chris Metcalf  <cmetcalf@ezchip.com>
14520
14521         * sysdeps/tile/tilepro/bits/atomic.h (__atomic_update):
14522         Restructure macro to avoid "value computed is not used" warning.
14523         (atomic_compare_and_exchange_val_acq): Likewise.
14524
14525 2015-08-04  Andreas Schwab  <schwab@suse.de>
14526
14527         [BZ #18635]
14528         * sysdeps/unix/sysv/linux/i386/makecontext.S: Terminate FDE before
14529         ret.
14530         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext): Remove.
14531
14532 2015-08-01  Carlos O'Donell  <carlos@redhat.com>
14533
14534         * po/pl.po: Updated translation.
14535         * po/uk.po: Likewise.
14536         * po/fi.po: Likewise.
14537         * po/ko.po: Likewise.
14538         * po/ru.po: Likewise.
14539         * po/vi.po: Likewise.
14540
14541 2015-07-31  Zack Weinberg  <zackw@panix.com>
14542
14543         [BZ #18681]
14544         * regexp.h: Add unconditional #warning stating that this header
14545         will be removed soon.  Revise banner comment to match.
14546         (compile): Consistently use ERROR instead of RETURN to report
14547         errors (partial fix for bz#18681).
14548         * regexp.c: Don't include regexp.h. Remove some unnecessary
14549         declarations.
14550
14551 2015-07-31  Carlos O'Donell  <carlos@redhat.com>
14552
14553         * po/libc.pot: Regenerated.
14554
14555 2015-07-30  Andrew Senkevich  <andrew.senkevich@intel.com>
14556
14557         [BZ #18740]
14558         * sysdeps/x86_64/fpu/Makefile (double-vlen2-arch-ext-cflags,
14559         float-vlen4-arch-ext-cflags): Removed.
14560         * math/Makefile (CFLAGS-test-double-vlen2-wrappers.c,
14561         CFLAGS-test-float-vlen4-wrappers.c): Likewise.
14562
14563 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14564
14565         [BZ #14113]
14566         * sysdeps/hppa/nptl/bits/pthreadtypes.h (pthread_mutex_t): Change
14567         aligned to __aligned__.
14568         (pthread_cond_t, pthread_rwlock_t): Likewise.
14569
14570 2015-07-30  Torvald Riegel  <triegel@redhat.com>
14571
14572         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: Remove file.
14573
14574 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14575
14576         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Include bits/wordsize.h.
14577         (struct sigaction): Change sa_flags from a long to an int, and add
14578         __glibc_reserved0 before it for padding when __WORDSIZE is 64.
14579
14580 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14581
14582         * hppa/sysdep.h: Delete sys/syscall.h and config.h includes.
14583         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Delete
14584         sysdeps/generic/sysdep.h include.
14585         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Wrap the whole file in
14586         _LINUX_HPPA_SYSDEP_H defines.  Include sysdeps/unix/sysdep.h and
14587         sysdeps/hppa/sysdep.h.
14588         (ENTRY, PSEUDO): Undefine before defining.
14589
14590 2015-07-30  Mike Frysinger  <vapier@gentoo.org>
14591
14592         * sysdeps/unix/sysv/linux/hppa/sysdep.h (INLINE_SYSCALL): Rewrite
14593         from scratch to use INTERNAL_SYSCALL.
14594
14595 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
14596
14597         [BZ #18078]
14598         * scripts/check-localplt.awk: Support alternate relocations.
14599         * scripts/localplt.awk: Also check relocations in DT_RELA/DT_REL
14600         sections.
14601         * sysdeps/unix/sysv/linux/i386/localplt.data: Mark free and
14602         malloc entries with + REL R_386_GLOB_DAT.
14603         * sysdeps/x86_64/localplt.data: New file.
14604
14605 2015-07-29  Andrew Senkevich  <andrew.senkevich@intel.com>
14606
14607         [BZ #18731]
14608         * sysdeps/x86_64/fpu/math-tests-arch.h: Added AVX runtime check.
14609         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
14610         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
14611
14612 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14613
14614         * sysdeps/unix/sysv/linux/ia64/localplt.data: Delete __tls_get_addr.
14615
14616 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14617
14618         * sysdeps/ia64/bits/atomic.h (atomic_exchange_and_add): Define
14619         directly in terms of __sync_fetch_and_add and delete (int) cast.
14620
14621 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14622
14623         * sysdeps/unix/sysv/linux/ia64/Makefile (CPPFLAGS): Delete
14624         the -D_ASM_IA64_CURRENT_H flag.
14625
14626 2015-07-27  Mike Frysinger  <vapier@gentoo.org>
14627
14628         [BZ #18641]
14629         * pwd/pwd.h (putpwent): Delete __nonnull markings.
14630
14631 2015-07-27  Andreas Schwab  <schwab@suse.de>
14632
14633         * conform/conformtest.pl (checknamespace): Filter out string
14634         literals while tokenizing.
14635
14636 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14637
14638         * sysdeps/nios2/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14639         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Handle
14640         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14641
14642 2015-07-26  Chung-Lin Tang  <cltang@codesourcery.com>
14643
14644         * nptl/tst-join7mod.c: Add #include <string.h>.
14645
14646 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14647
14648         * sysdeps/nios2/libm-test-ulps: Update.
14649
14650 2015-07-25  Chung-Lin Tang  <cltang@codesourcery.com>
14651
14652         * sysdeps/unix/sysv/linux/nios2/setcontext.S (__setcontext):
14653         Fix order of arguments to the rt_sigprocmask syscall.
14654         * sysdeps/unix/sysv/linux/nios2/swapcontext.S (__swapcontext):
14655         Likewise.
14656
14657 2015-07-24  Roland McGrath  <roland@hack.frob.com>
14658
14659         * sysdeps/nacl/bits/fcntl.h (O_SHLOCK, O_EXLOCK): Macros removed.
14660
14661 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14662
14663         [BZ #18457]
14664         * nptl/Makefile (tests): New test case tst-join7.
14665         (modules-names): New test case module tst-join7mod.
14666         * nptl/tst-join7.c: New file.
14667         * nptl/tst-join7mod.c: New file.
14668         * Makeconfig (tls-model): Pass -ftls-model=initial-exec for
14669         all translation units in libc.so, libpthread.so and rtld.
14670
14671 2015-07-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14672
14673         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14674
14675 2015-07-24  Andrew Senkevich  <andrew.senkevich@intel.com>
14676
14677         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Fixed AVX512 IFUNC.
14678         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Likewise.
14679         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Likewise.
14680         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Likewise.
14681         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Likewise.
14682         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Likewise.
14683         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: Likewise.
14684         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: Likewise.
14685         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: Likewise.
14686         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: Likewise.
14687         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S: Likewise.
14688         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: Likewise.
14689         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Fixed wrappers to AVX2.
14690         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
14691         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: Fixed KNL
14692         implementation.
14693
14694 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14695
14696         [BZ #17711]
14697         * sysdeps/aarch64/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14698         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Handle
14699         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14700         * sysdeps/arm/dl-sysdep.h (DL_EXTERN_PROTECTED_DATA): Define.
14701         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Handle
14702         ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA.
14703
14704 2015-07-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14705
14706         * stdlib/cxa_thread_atexit_impl.c: Use the lock name dl_load_lock
14707         instead of just saying load lock in the comments.
14708
14709 2015-07-23  Roland McGrath  <roland@hack.frob.com>
14710
14711         * sysdeps/unix/Subdirs: Moved ...
14712         * sysdeps/posix/Subdirs: ... here.
14713         * login/pty.h (struct termios, struct winsize): Add forward decls.
14714         * login/openpty.c (openpty): Put ioctl call under [TIOCSWINSZ].
14715         * sysdeps/nacl/glob.c: Just #include <sysdeps/wordsize-64/glob.c>.
14716         * sysdeps/arm/nacl/libc.abilist: Updated.
14717         * sysdeps/nacl/libutil.abilist: New file.
14718
14719         * bits/signum.h: Update comments to mention 1003.1-2013 too.
14720         (SIGWINCH): New macro.
14721
14722         * sysdeps/nacl/getdtsz.c (getdtablesize): Add missing weak_alias.
14723         * sysdeps/arm/nacl/libc.abilist: Add it.
14724
14725 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14726
14727         * conform/linknamespace.pl (@whitelist): Add matherrf and matherrl.
14728
14729 2015-07-23  Mike Frysinger  <vapier@gentoo.org>
14730
14731         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14732         Swap __glibc_reserved0 and sa_flags order.
14733
14734 2015-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
14735
14736         [BZ #18657]
14737         * elf/dl-close.c (_dl_close_worker): Don't unload DSO if there
14738         are pending TLS destructor calls.
14739         * include/link.h (struct link_map): Add concurrency note for
14740         L_TLS_DTOR_COUNT.
14741         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
14742         Don't touch the link map flag.  Atomically increment
14743         l_tls_dtor_count.
14744         (__call_tls_dtors): Atomically decrement l_tls_dtor_count.
14745         Avoid taking the load lock and don't touch the link map flag.
14746         * stdlib/tst-tls-atexit-nodelete.c: New test case.
14747         * stdlib/Makefile (tests): Use it.
14748         * stdlib/tst-tls-atexit.c (do_test): dlopen
14749         tst-tls-atexit-lib.so again before dlclose.  Add conditionals
14750         to allow tst-tls-atexit-nodelete test case to use it.
14751
14752 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14753
14754         * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
14755         to bits/types.h.
14756         (msgqnum_t): New typedef.
14757         (msglen_t): Likewise.
14758         (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
14759         and msg_qbytes type to msglen_t.
14760
14761 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14762
14763         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
14764         pad0 to __glibc_reserved0.
14765         (struct stat64): Likewise.
14766
14767 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14768
14769         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h (struct sigaction):
14770         Change sa_flags from a long to an int and add __glibc_reserved0 before
14771         it for padding.
14772
14773 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
14774
14775         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Make struct
14776         anonymous by deleting "siginfo" name.
14777
14778 2015-07-21  Roland McGrath  <roland@hack.frob.com>
14779
14780         * sysdeps/nacl/nacl-interface-list.h: Remove nacl_irt_filename.
14781         * sysdeps/nacl/open.c (__libc_open): Use __nacl_irt_dev_filename
14782         rather than __nacl_irt_filename.
14783         * sysdeps/nacl/xstat.c (__xstat): Likewise.
14784
14785         * NEWS: New item for arm-nacl port.
14786         * sysdeps/arm/nacl/libc.abilist: New file.
14787         * sysdeps/nacl/ld.abilist: New file.
14788         * sysdeps/nacl/libBrokenLocale.abilist: New file.
14789         * sysdeps/nacl/libanl.abilist: New file.
14790         * sysdeps/nacl/libcrypt.abilist: New file.
14791         * sysdeps/nacl/libdl.abilist: New file.
14792         * sysdeps/nacl/libm.abilist: New file.
14793         * sysdeps/nacl/libpthread.abilist: New file.
14794         * sysdeps/nacl/libresolv.abilist: New file.
14795         * sysdeps/nacl/librt.abilist: New file.
14796
14797 2015-07-21  Chris Metcalf  <cmetcalf@ezchip.com>
14798
14799         * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call
14800         __startcontext to initialize the new context.
14801         * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set
14802         up CFI directive to forbid further backtracing.
14803
14804 2015-07-21  Marko Myllynen  <myllynen@redhat.com>
14805
14806         * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map
14807         reference.
14808         * charmaps/ANSI_X3.4-1968: Likewise.
14809         * charmaps/BS_4730: Likewise.
14810         * charmaps/BS_VIEWDATA: Likewise.
14811         * charmaps/CP1250: Likewise.
14812         * charmaps/CP1251: Likewise.
14813         * charmaps/CP1252: Likewise.
14814         * charmaps/CP1253: Likewise.
14815         * charmaps/CP1254: Likewise.
14816         * charmaps/CP1255: Likewise.
14817         * charmaps/CP1256: Likewise.
14818         * charmaps/CSN_369103: Likewise.
14819         * charmaps/EBCDIC-DK-NO: Likewise.
14820         * charmaps/GB_1988-80: Likewise.
14821         * charmaps/GREEK-CCITT: Likewise.
14822         * charmaps/GREEK7: Likewise.
14823         * charmaps/INIS-8: Likewise.
14824         * charmaps/ISIRI-3342: Likewise.
14825         * charmaps/ISO_2033-1983: Likewise.
14826         * charmaps/ISO_5427-EXT: Likewise.
14827         * locales/POSIX: Likewise.
14828         * locales/ar_SA: Likewise.
14829         * locales/be_BY: Likewise.
14830         * locales/be_BY@latin: Likewise.
14831         * locales/ca_ES: Likewise.
14832         * locales/cs_CZ: Likewise.
14833         * locales/da_DK: Likewise.
14834         * locales/de_BE: Likewise.
14835         * locales/de_CH: Likewise.
14836         * locales/de_LU: Likewise.
14837         * locales/en_AU: Likewise.
14838         * locales/en_BW: Likewise.
14839         * locales/en_CA: Likewise.
14840         * locales/en_DK: Likewise.
14841         * locales/en_GB: Likewise.
14842         * locales/en_IE: Likewise.
14843         * locales/en_NZ: Likewise.
14844         * locales/en_ZA: Likewise.
14845         * locales/en_ZW: Likewise.
14846         * locales/es_AR: Likewise.
14847         * locales/es_BO: Likewise.
14848         * locales/es_CL: Likewise.
14849         * locales/es_CO: Likewise.
14850         * locales/es_DO: Likewise.
14851         * locales/es_EC: Likewise.
14852         * locales/es_ES: Likewise.
14853         * locales/es_HN: Likewise.
14854         * locales/es_MX: Likewise.
14855         * locales/es_PA: Likewise.
14856         * locales/es_PE: Likewise.
14857         * locales/es_PY: Likewise.
14858         * locales/es_SV: Likewise.
14859         * locales/es_US: Likewise.
14860         * locales/es_UY: Likewise.
14861         * locales/es_VE: Likewise.
14862         * locales/et_EE: Likewise.
14863         * locales/fa_IR: Likewise.
14864         * locales/fo_FO: Likewise.
14865         * locales/fr_CA: Likewise.
14866         * locales/fr_CH: Likewise.
14867         * locales/gv_GB: Likewise.
14868         * locales/he_IL: Likewise.
14869         * locales/hr_HR: Likewise.
14870         * locales/id_ID: Likewise.
14871         * locales/is_IS: Likewise.
14872         * locales/it_CH: Likewise.
14873         * locales/iw_IL: Likewise.
14874         * locales/kl_GL: Likewise.
14875         * locales/ko_KR: Likewise.
14876         * locales/kw_GB: Likewise.
14877         * locales/lg_UG: Likewise.
14878         * locales/lt_LT: Likewise.
14879         * locales/lv_LV: Likewise.
14880         * locales/mi_NZ: Likewise.
14881         * locales/nhn_MX: Likewise.
14882         * locales/nl_BE: Likewise.
14883         * locales/pl_PL: Likewise.
14884         * locales/sk_SK: Likewise.
14885         * locales/sl_SI: Likewise.
14886         * locales/sv_FI: Likewise.
14887         * locales/tl_PH: Likewise.
14888         * locales/tr_TR: Likewise.
14889         * locales/vi_VN: Likewise.
14890
14891 2015-07-21  Khem Raj  <raj.khem@gmail.com>
14892
14893         [BZ #17475]
14894         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Adjust for rename
14895         of tu_IN and bh_IN.
14896
14897 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
14898
14899         [BZ #18694]
14900         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Include
14901         bits/wordsize.h.
14902         (sigaction): Declare __glibc_reserved0 only when __WORDSIZE is 64.
14903
14904 2015-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
14905
14906         * stdlib/tst-tls-atexit-lib.c (do_foo): Rename to reg_dtor.
14907         * stdlib/tst-tls-atexit.c: (is_loaded): New function.
14908         (spawn_thread): New function.
14909         (load): Rename to reg_dtor_and_close.  Move dlopen to...
14910         (do_test): ... here.  Use IS_LOADED to test for its
14911         availability.
14912
14913 2015-07-21  Andreas Schwab  <schwab@linux-m68k.org>
14914
14915         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
14916
14917 2015-07-20  H.J. Lu  <hongjiu.lu@intel.com>
14918
14919         [BZ #18696]
14920         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (_sigfault): Add
14921         si_addr_bnd.
14922         (si_lower): New.
14923         (si_upper): Likewise.
14924
14925 2015-07-16  David S. Miller  <davem@davemloft.net>
14926
14927         * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
14928
14929 2015-07-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14930
14931         * libio/fmemopen.c (__fmemopen): Fix 'w' openmode with provided
14932         buffer.
14933         * stdio-common/tst-fmemopen2.c (do_test_with_buffer): Fix typo and
14934         fail output information.
14935
14936 2015-07-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14937
14938         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strstr-power7
14939         and strstr-ppc64..
14940         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
14941         * sysdeps/powerpc/powerpc64/power7/strstr.S: New File.
14942         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: New File.
14943         * sysdeps/powerpc/powerpc64/multiarch/strstr-ppc64.c: New File.
14944         * sysdeps/powerpc/powerpc64/multiarch/strstr.c: New File.
14945
14946 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
14947
14948         * sysdeps/hppa/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
14949         * sysdeps/hppa/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
14950         * sysdeps/ia64/Versions (GLIBC_PRIVATE): Delete _dl_unmap.
14951         * sysdeps/ia64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
14952
14953 2015-07-16  Mike Frysinger  <vapier@gentoo.org>
14954
14955         * elf/dl-symaddr.c (_dl_symbol_address): Add rtld_hidden_def.
14956         * sysdeps/hppa/dl-lookupcfg.h (_dl_symbol_address): Add
14957         rtld_hidden_proto.
14958         * sysdeps/ia64/dl-lookupcfg.h (_dl_symbol_address): Likewise.
14959
14960 2015-07-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
14961
14962         * tst-nodelete-opened.c (do_test): Add comment to clarify how
14963         the test can fail.
14964
14965         * stdlib/cxa_thread_atexit_impl.c: Whitespace fixup.
14966
14967         [BZ #18676]
14968         * elf/tst-nodelete-opened.c: New test case.
14969         * elf/tst-nodelete-opened-lib.c: New test case module.
14970         * elf/Makefile (tests, modules-names): Use them.
14971         * elf/dl-open.c (dl_open_worker): Set DF_1_NODELETE flag
14972         early.
14973
14974 2015-07-15  David S. Miller  <davem@davemloft.net>
14975
14976         * sysdeps/sparc/nptl/pthread_barrier_init.c: Include
14977         futex-intenal.h
14978         * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax.
14979         * sysdeps/sparc/sparc64/Makefile: Likewise.
14980         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
14981         Remove space from macro define.
14982         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
14983
14984 2015-07-15  Pravin Satpute  <psatpute@redhat.com>
14985
14986         [BZ #17475]
14987         * locale/iso-639.def: Update Bhili and Tulu language codes as
14988         per iso639-3.
14989
14990 2015-07-15  Arjun Shankar  <arjun.is@lostca.se>
14991
14992         * elf/tst-leaks1.c (main): Converted to ...
14993         (do_test): ... this.
14994         (TEST_FUNCTION): New macro.
14995         Include test-skeleton.c.
14996         * localedata/tst-langinfo.c (main): Converted to ...
14997         (do_test): ... this.
14998         (TEST_FUNCTION): New macro.
14999         Include test-skeleton.c.
15000         * math/test-fpucw.c (main): Converted to ...
15001         (do_test): ... this.
15002         (TEST_FUNCTION): New macro.
15003         Include test-skeleton.c.
15004         * math/test-tgmath.c (main): Converted to ...
15005         (do_test): ... this.
15006         (TEST_FUNCTION): New macro.
15007         Include test-skeleton.c.
15008         * math/test-tgmath2.c (main): Converted to ...
15009         (do_test): ... this.
15010         (TEST_FUNCTION): New macro.
15011         Include test-skeleton.c.
15012         * setjmp/tst-setjmp.c (main): Converted to ...
15013         (do_test): ... this.
15014         (TEST_FUNCTION): New macro.
15015         Include test-skeleton.c.
15016         * stdio-common/tst-sscanf.c (main): Converted to ...
15017         (do_test): ... this.
15018         (TEST_FUNCTION): New macro.
15019         Include test-skeleton.c.
15020         * sysdeps/x86_64/tst-audit6.c (main): Converted to ...
15021         (do_test): ... this.
15022         (TEST_FUNCTION): New macro.
15023         Include test-skeleton.c.
15024
15025         * elf/tst-audit9.c (main): Converted to ...
15026         (do_test): ... this.
15027         (TEST_FUNCTION): New macro.
15028         Include test-skeleton.c.
15029
15030 2015-07-15  Mike Frysinger  <vapier@gentoo.org>
15031
15032         * timezone/tst-tzset.c (TIMEOUT): Define to 5.
15033
15034 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
15035
15036         * sysdeps/i386/i686/Makefile (test-xfail-tst-makecontext):
15037         New variable.
15038
15039 2015-07-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
15040
15041         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15042
15043 2015-07-14  Roland McGrath  <roland@hack.frob.com>
15044
15045         * sysdeps/generic/dl-fileid.h: New file.
15046         * sysdeps/posix/dl-fileid.h: New file.
15047         * sysdeps/nacl/dl-fileid.h: New file.
15048         * include/link.h: Include <dl-fileid.h>.
15049         (struct link_map): Replace l_dev and l_ino with l_file_id.
15050         * elf/dl-load.c (_dl_map_object_from_fd): Use _dl_get_file_id rather
15051         than __fxstat64.  Use _dl_file_id_match_p rather than comparing l_dev
15052         and l_ino directly.  Initialize l_file_id rather than l_dev and l_ino.
15053
15054 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
15055
15056         * stdlib/tst-tls-atexit.c (do_test): Fix typo.
15057
15058 2015-07-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15059
15060         * elf/Makefile [ifeq (yes,$(build-shared)) (tests)] (tst-nodelete):
15061         Add iff $CXX is set.
15062         [ifeq (yes,$(build-shared)) (modules-names)] (tst-nodelete-rtldmod):
15063         Likewise.
15064         (tst-nodelete-zmodiff): Likewise.
15065         * nptl/Makefile [[ifeq (,$(CXX))] (tests-unsupported)]: Add tst-once5.
15066
15067 2015-07-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
15068
15069         * stdlib/tst-tls-atexit.c (load): Fix up whitespace.
15070
15071 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
15072
15073         * sysdeps/aarch64/fpu/math_private.h
15074         (define math_opt_barrier): Add AArch64 version.
15075         (math_force_eval): Likewise.
15076
15077 2015-07-13  Wilco Dijkstra  <wdijkstr@arm.com>
15078
15079         * sysdeps/aarch64/strlen.S (strlen): Optimize strlen.
15080
15081 2015-07-11  H.J. Lu  <hongjiu.lu@intel.com>
15082
15083         * stdio-common/tst-fmemopen2.c (do_test_without_buffer): Replace
15084         %ld with %jd and cast to intmax_t.
15085         (do_test_length_zero): Likewise.
15086
15087 2015-07-10  Roland McGrath  <roland@hack.frob.com>
15088
15089         * sysdeps/nacl/pthread_condattr_setclock.c: New file.
15090
15091 2015-07-10  Chris Metcalf  <cmetcalf@ezchip.com>
15092
15093         * sysdeps/tile/libm-test-ulps: Regenerated.
15094
15095         * math/test-fenvinline.c (feenable_test) [FE_ALL_EXCEPT == 0]:
15096         Comment out the whole function, not just its body.
15097
15098 2015-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
15099
15100         * stdlib/tst-tls-atexit.c (load): Remove unnecessary mutex
15101         locks.
15102
15103         * stdlib/tst-tls-atexit.c (load): Avoid boolean coercion.
15104
15105 2015-07-10  Torvald Riegel  <triegel@redhat.com>
15106
15107         * nptl/sem_waitcommon.c (__new_sem_wait_slow): Update comments.
15108         (sem_assume_only_signals_cause_futex_EINTR): Remove.
15109
15110 2015-07-10  Torvald Riegel  <triegel@redhat.com>
15111
15112         * sysdeps/nptl/futex-internal.h: New file.
15113         * sysdeps/nacl/futex-internal.h: New file.
15114         * sysdeps/unix/sysv/linux/futex-internal.h: New file.
15115         * nptl/allocatestack.c (setxid_mark_thread): Use futex wrappers with
15116         error checking.
15117         (setxid_unmark_thread): Likewise.
15118         (__nptl_setxid): Likewise.
15119         (__wait_lookup_done): Likewise.
15120         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
15121         * nptl/nptl-init.c (sighandler_setxid): Likewise.
15122         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
15123         * nptl/pthread_once.c (clear_once_control): Likewise.
15124         (__pthread_once_slow): Likewise.
15125         * nptl/unregister-atfork.c (__unregister_atfork): Likewise.
15126         * sysdeps/nacl/exit-thread.h (__exit_thread): Likewise.
15127         * sysdeps/nptl/aio_misc.h (AIO_MISC_NOTIFY, AIO_MISC_WAIT): Likewise.
15128         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15129         * sysdeps/nptl/gai_misc.h (GAI_MISC_NOTIFY, GAI_MISC_WAIT): Likewise.
15130         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock_slow):
15131         Likewise.
15132         (__pthread_rwlock_rdlock): Likewise.
15133         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
15134         Likewise.
15135         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
15136         Likewise.
15137         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
15138         Likewise.
15139         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Likewise.
15140         * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock_slow:
15141         Likewise.
15142         * nptl/pthread_rwlock_init (__pthread_rwlock_init): Remove
15143         __ASSUME_PRIVATE_FUTEX check.
15144         * nptl/pthread_rwlockattr_setpshared (pthread_rwlockattr_setpshared):
15145         Check that shared futexes are supported.
15146         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Use futex
15147         wrappers with error checking.
15148         * nptl/pthread_barrier_init.c (pthread_barrier_init): Add comments,
15149         remove attribute sanity check and __ASSUME_PRIVATE_FUTEX check.
15150         * nptl/pthread_barrierattr_setpshared.c
15151         (pthread_barrierattr_setpshared): Check that shared futexes are
15152         supported.
15153         * nptl/pthread_condattr_setpshared.c (pthread_condattr_setpshared):
15154         Likewise.
15155         * nptl/pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
15156         Likewise.
15157         * nptl/sem_init.c (futex_private_if_supported): Remove.
15158         (__new_sem_init): Adapt and check that shared futexes are supported.
15159         * nptl/sem_open.c (sem_open): Likewise.
15160         * nptl/sem_post.c (futex_wake): Remove.
15161         * nptl/sem_waitcommon.c (futex_abstimed_wait, futex_wake): Remove.
15162         (do_futex_wait): Use futex wrappers with error checking.
15163         * nptl/sem_wait.c: Include lowlevellock.h.
15164         * sysdeps/sparc/nptl/pthread_barrier_init.c (__pthread_barrier_init):
15165         Use futex_supports_pshared.
15166         * sysdeps/sparc/nptl/pthread_barrier_wait.c (pthread_barrier_wait):
15167         Use futex wrappers with error checking.
15168         * sysdeps/sparc/sparc32/pthread_barrier_wait.c (pthread_barrier_wait):
15169         Likewise.
15170         * sysdeps/sparc/sparc32/sem_init.c (futex_private_if_supported): Remove.
15171         * sysdeps/sparc/sparc32/sem_post.c (futex_wake): Likewise.
15172         * sysdeps/sparc/sparc32/sem_open.c (sem_open): Use FUTEX_SHARED.
15173         * sysdeps/sparc/sparc32/sem_waitcommon.c (futex_abstimed_wait): Remove.
15174         (futex_wake): Likewise.
15175         (sem_assume_only_signals_cause_futex_EINTR): Likewise.
15176         (do_futex_wait): Use futex wrappers with error checking.
15177         (__new_sem_wait_slow): Update EINTR handling.
15178         * sysdeps/sparc/sparc32/sem_wait.c: Include lowlevellock.h.
15179
15180 2015-07-09  Martin Sebor  <msebor@redhat.com>
15181
15182         [BZ #18435]
15183         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
15184         Revert commit ed225df3ad9cbac3c22ec3f0fbbed1f9c61d1c54.
15185         * nptl/Makefile (test-xfail-tst-once5): Define.
15186
15187 2015-07-09  Roland McGrath  <roland@hack.frob.com>
15188
15189         * include/stdio.h: Add rtld_hidden_proto (__libc_fatal).
15190         * elf/dl-minimal.c: For readability, reorder some definitions and
15191         introduce more page breaks.  Include <stdio.h>.
15192         (__libc_fatal): New function.
15193
15194         * include/unistd.h: Add rtld_hidden_proto for _exit.
15195         * posix/_exit.c: Add rtld_hidden_def.
15196         * sysdeps/mach/hurd/_exit.c: Likewise.
15197         * sysdeps/nacl/_exit.c: Likewise.
15198         * sysdeps/unix/sysv/linux/_exit.c: Likewise.
15199         * sysdeps/unix/sysv/linux/i386/_exit.S: Likewise.
15200
15201 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
15202
15203         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Improve
15204         bndmov encoding with zero displacement.
15205
15206 2015-07-09  Igor Zamyatin  <igor.zamyatin@intel.com>
15207             H.J. Lu  <hongjiu.lu@intel.com>
15208
15209         [BZ #18134]
15210         * sysdeps/i386/configure.ac: Set HAVE_MPX_SUPPORT.
15211         * sysdeps/i386/configure: Regenerated.
15212         * sysdeps/i386/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
15213         (_dl_runtime_profile): Save and restore Intel MPX return bound
15214         registers when calling _dl_call_pltexit.  Add
15215         PRESERVE_BND_REGS_PREFIX before return.
15216         * sysdeps/i386/link-defines.sym (LRV_BND0_OFFSET): New.
15217         (LRV_BND1_OFFSET): Likewise.
15218         * sysdeps/x86/bits/link.h (La_i86_retval): Add lrv_bnd0 and
15219         lrv_bnd1.
15220         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix
15221         typo in bndmov encoding.
15222         * sysdeps/x86_64/dl-trampoline.h: Properly save and restore
15223         Intel MPX bound registers.  Add PRESERVE_BND_REGS_PREFIX before
15224         branch instructions to preserve bounds.
15225
15226 2015-07-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15227
15228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
15229         [GLIBC_2.22]: Add fmemopen.
15230
15231 2015-07-09  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15232
15233         * sysdeps/mach/hurd/mlock.c (mlock): When __get_privileged_ports
15234         returns an error, also try to use host port from __mach_host_self for
15235         the __vm_wire call.
15236         * sysdeps/mach/hurd/munlock.c (munlock): Likewise.
15237
15238 2015-07-09  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15239
15240         [BZ #18400]
15241         [BZ #18648]
15242         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (struct elf_prpsinfo):
15243         Fix pr_uid and pr_gid members.
15244         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (greg_t): Change the
15245         definition to elf_greg_t.
15246
15247 2015-07-08  Roland McGrath  <roland@hack.frob.com>
15248
15249         [BZ #18383]
15250         * sysdeps/arm/configure.ac (libc_cv_arm_tpoff_addend): New check.
15251         Emit test-xfail-tst-tlsalign{,-static}=yes if it fails.
15252         * sysdeps/arm/configure: Regenerated.
15253         * elf/Makefile (test-xfail-tst-tlsalign): Variable removed.
15254         (test-xfail-tst-tlsalign-static): Variable removed.
15255
15256         * Makerules (do-install-so): Use $(LN_S) rather than explicit 'ln -s'.
15257         * elf/Makefile ($(objpfx)$(rtld-installed-name)): Use $(make-link)
15258         rather than explicit 'ln -s'.
15259
15260         * resolv/rpc/netdb.h: New file.
15261         * resolv/Makefile [sunrpc not in $(subdirs)] (headers): Add it.
15262
15263 2015-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15264
15265         * stdio-common/tst-fmemopen2.c (do_test): Add test for NULL and zero
15266         length buffers.
15267         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
15268         test-skeleton.c.
15269
15270         [BZ #6544]
15271         [BZ #11216]
15272         [BZ #12836]
15273         [BZ #13151]
15274         [BZ #13152]
15275         [BZ #14292]
15276         * include/stdio.h (fmemopen): Remove hidden prototype.
15277         (__fmemopen): Add new hidden prototype.
15278         * libio/Makefile: Add oldfmemopen object.
15279         * libio/Versions [GLIBC_2.22]: Add new fmemopen symbol.
15280         * libio/fmemopen.c (__fmemopen): Function rewrite to be POSIX
15281         compliance.
15282         * libio/oldfmemopen.c: New file: old fmemopen implementation for
15283         symbol compatibility.
15284         * stdio-common/Makefile [tests]: Add new tst-fmemopen3.
15285         * stdio-common/psiginfo.c [psiginfo]: Call __fmemopen instead of
15286         fmemopen.
15287         * stdio-common/tst-fmemopen3.c: New file: more fmemopen tests, focus
15288         on append and read mode.
15289         * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.22]: Add
15290         fmemopen.
15291         * sysdeps/unix/sysv/linux/alpha/libc.abilist [GLIBC_2.22]: Likewise.
15292         * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.22]: Likewise.
15293         * sysdeps/unix/sysv/linux/i386/libc.abilist [GLIBC_2.22]: Likewise.
15294         * sysdeps/unix/sysv/linux/ia64/libc.abilist [GLIBC_2.22]:
15295         Likewise.
15296         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
15297         [GLIBC_2.22]: Likewise.
15298         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist [GLIBC_2.22]:
15299         Likewise.
15300         * sysdeps/unix/sysv/linux/microblaze/libc.abilist [GLIBC_2.22]:
15301         Likewise.
15302         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
15303         [GLIBC_2.22]: Likewise.
15304         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
15305         [GLIBC_2.22]: Likewise.
15306         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
15307         [GLIBC_2.22]: Likewise.
15308         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
15309         [GLIBC_2.22]: Likewise.
15310         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
15311         [GLIBC_2.22]: Likewise.
15312         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
15313         [GLIBC_2.22]: Likewise.
15314         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
15315         [GLIBC_2.22]: Likewise.
15316         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist [GLIBC_2.22]:
15317         Likewise.
15318         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist [GLIBC_2.22]:
15319         Likewise.
15320         * sysdeps/unix/sysv/linux/sh/libc.abilist [GLIBC_2.22]: Likewise.
15321         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
15322         [GLIBC_2.22]: Likewise.
15323         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
15324         [GLIBC_2.22]: Likewise.
15325         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist
15326         [GLIBC_2.22]: Likewise.
15327         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist
15328         [GLIBC_2.22]: Likewise.
15329         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist [GLIBC_2.22]:
15330         Likewise.
15331         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist [GLIBC_2.22]:
15332         Likewise.
15333         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist [GLIBC_2.22]:
15334         Likewise.
15335         * sysdeps/unix/sysv/linux/hppa/libc.abilist [GLIBC_2.22]: Likewise.
15336         * sysdeps/unix/sysv/linux/nios2/libc.abilist [GLIBC_2.22]: Likewise.
15337
15338 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
15339
15340         [BZ #18643]
15341         * sysdeps/unix/sysv/linux/bits/in.h: Define IPV6_RECVPATHMTU,
15342         IPV6_PATHMTU, and IPV6_DONTFRAG.
15343
15344 2015-07-08  Feng Gao  <gfree.wind@gmail.com>
15345
15346         * libio/fileops.c: Use "|" instead of "+" when combine _IO_LINE_BUF
15347         and _IO_UNBUFFERED.
15348         * libio/oldfileops.c: Likewise.
15349         * libio/wfileops.c: Likewise.
15350
15351 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
15352
15353         * nscd/selinux.c: Delete selinux/flask.h include.
15354
15355 2015-07-08  Mike Frysinger  <vapier@gentoo.org>
15356
15357         [BZ #18641]
15358         * pwd/pwd.h (fgetpwent): Add __nonnull markings.
15359         (putpwent): Likewise.
15360         (getpwnam): Likewise.
15361         (getpwent_r): Likewise.
15362         (getpwuid_r): Likewise.
15363         (getpwnam_r): Likewise.
15364         (fgetpwent_r): Likewise.
15365
15366 2015-07-08  Carlos O'Donell  <carlos@redhat.com>
15367
15368         [BZ #18557]
15369         * inet/rcmd.c (__validuser2_sa): Check user first to
15370         short-circuit host check.
15371
15372 2015-07-07  Pavel Kopyl  <p.kopyl@samsung.com>
15373             Mikhail Ilin  <m.ilin@samsung.com>
15374
15375         [BZ #17833]
15376         * elf/Makefile (tests): Add tst-nodelete.
15377         (modules-names): Add tst-nodelete-uniquemod.
15378         (tst-nodelete-uniquemod.so-no-z-defs): New.
15379         (tst-nodelete-rtldmod.so-no-z-defs): Likewise.
15380         (tst-nodelete-zmod.so-no-z-defs): Likewise.
15381         ($(objpfx)tst-nodelete): Likewise.
15382         ($(objpfx)tst-nodelete.out): Likewise.
15383         (LDFLAGS-tst-nodelete): Likewise.
15384         (LDFLAGS-tst-nodelete-zmod.so): Likewise.
15385         * elf/dl-close.c (_dl_close_worker): Add a parameter to
15386         implement forced object deletion.
15387         (_dl_close): Pass false to _dl_close_worker.
15388         * elf/dl-open.c (_dl_open): Pass true to _dl_close_worker.
15389         * elf/tst-nodelete.cc: New file.
15390         * elf/tst-nodeletelib.cc: Likewise.
15391         * elf/tst-znodeletelib.cc: Likewise.
15392         * include/dlfcn.h (_dl_close_worker): Add a new parameter.
15393
15394 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15395
15396         [BZ #18508]
15397         * stdlib/Makefile ($(objpfx)tst-makecontext3):
15398         Depend on $(libdl).
15399         * stdlib/tst-makecontext.c (cf): Test if _Unwind_Backtrace
15400         is not called infinitely times.
15401         (backtrace_helper): New function.
15402         (trace_arg): New struct.
15403         (st1): Enlarge stack size.
15404         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
15405         (__makecontext_ret): Omit cfi_startproc and cfi_endproc.
15406         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
15407         Likewise.
15408
15409 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15410
15411         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15412
15413 2015-07-07  Stefan Liebler  <stli@linux.vnet.ibm.com>
15414
15415         * sysdeps/unix/sysv/linux/s390/bits/sem.h:
15416         Include sys/types.h instead of bits/types.h.
15417         Remove inclusion of bits/wordsize.h.
15418
15419 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15420
15421         * sysdeps/x86_64/tst-auditmod10b.c (la_symbind32): New.
15422         * sysdeps/x86_64/tst-auditmod4b.c (la_symbind32): Likewise.
15423         * sysdeps/x86_64/tst-auditmod5b.c (la_symbind32): Likewise.
15424         * sysdeps/x86_64/tst-auditmod6b.c (la_symbind32): Likewise.
15425         * sysdeps/x86_64/tst-auditmod6c.c (la_symbind32): Likewise.
15426         * sysdeps/x86_64/tst-auditmod7b.c (la_symbind32): Likewise.
15427
15428 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15429
15430         * sysdeps/i386/Makefile (gen-as-const-headers)[elf]: Add
15431         link-defines.sym.
15432         * sysdeps/i386/dl-trampoline.S: Include <link-defines.h>.
15433         (_dl_runtime_profile): Use LONG_DOUBLE_SIZE, LRV_SIZE,
15434         LRV_EAX_OFFSET, LRV_EDX_OFFSET, LRV_ST0_OFFSET, LRV_ST1_OFFSET
15435         and LR_SIZE.
15436         * sysdeps/i386/link-defines.sym: New file.
15437
15438 2015-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15439
15440         * sysdeps/i386/Makefile (tests)[elf]: Add tst-audit3.
15441         (modules-names): Add tst-auditmod3a tst-auditmod3b.
15442         ($(objpfx)tst-audit3): New rule.
15443         ($(objpfx)tst-audit3.out): Likewise.
15444         * sysdeps/i386/tst-audit3.c: New file.
15445         * sysdeps/i386/tst-audit3.h: Likewise.
15446         * sysdeps/i386/tst-auditmod3a.c: Likewise.
15447         * sysdeps/i386/tst-auditmod3b.c: Likewise.
15448
15449 2015-07-07  Torvald Riegel  <triegel@redhat.com>
15450
15451         [BZ #18633]
15452         * sysdeps/x86/bits/string.h (__memmove_g): Do not create invalid
15453         pointer in C code.
15454         (__strcat_c): Likewise.
15455         (__strcat_g): Likewise.
15456
15457 2015-07-07  Cyril Hrubis <chrubis@suse.cz>
15458
15459         [BZ #18592]
15460         * misc/sbrk.c: Set errno to ENOMEM on overflow.
15461
15462 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15463
15464         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt):
15465         New function.  (__ieee754_sqrtf): New function.
15466         * sysdeps/aarch64/fpu/e_sqrt.c (__ieee754_sqrt):
15467         New function.
15468         * sysdeps/aarch64/fpu/e_sqrtf.c (__ieee754_sqrtf):
15469         New function.
15470
15471 2015-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
15472
15473         * sysdeps/ieee754/support.c: Remove unused file.
15474
15475 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15476
15477         * sysdeps/unix/sysv/linux/aarch64/getcontext.S (__getcontext): Use q
15478         registers instead of d ones so the layout is kernel abi compatible.
15479         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext): Likewise.
15480         * sysdeps/unix/sysv/linux/aarch64/swapcontext.S (__swapcontext):
15481         Likewise.
15482
15483 2015-07-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15484
15485         * sysdeps/aarch64/libm-test-ulps: Regenerated.
15486
15487 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15488
15489         [BZ #18619]
15490         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Force underflow
15491         and return argument in case of subnormal argument.
15492
15493 2015-07-01  Martin Sebor  <msebor@redhat.com>
15494
15495         [BZ #18435]
15496         * nptl/Makefile: Add tst-once5.cc.
15497         * nptl/pthreadP.h (pthread_cleanup_push, pthread_cleanup_pop):
15498         Remove macro redefinitions.
15499         * nptl/tst-once5.cc: New test.
15500
15501 2015-07-01  Joseph Myers  <joseph@codesourcery.com>
15502
15503         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
15504
15505         * sysdeps/arm/libm-test-ulps: Regenerated.
15506
15507         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
15508         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
15509
15510 2015-06-30  Torvald Riegel  <triegel@redhat.com>
15511
15512         * nptl/DESIGN-systemtap-probes.txt: Remove lll_lock_wait,
15513         lll_lock_wait_private and lll_futex_wake probes.
15514
15515         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15516         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (BUSY_WAIT_NOP):
15517         Likewise.
15518         * sysdeps/i386/i486/bits/atomic.h (atomic_delay): Rename to
15519         atomic_spin_nop.
15520         * sysdeps/x86_64/bits/atomic.h: Likewise.
15521         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (BUSY_WAIT_NOP): Rename
15522         to atomic_spin_nop and move ...
15523         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop):
15524         ... here and ...
15525         * sysdeps/sparc/sparc64/bits/atomic.h: ... here.
15526         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
15527         atomic_spin_nop instead of BUSY_WAIT_NOP.
15528         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
15529         Likewise.
15530         * sysdeps/nacl/lll_timedwait_tid.c (__lll_timedwait_tid): Likewise.
15531         * sysdeps/nacl/lowlevellock.h (BUSY_WAIT_NOP): Remove.
15532         (lll_wait_tid): Use atomic_spin_nop instead of BUSY_WAIT_NOP.
15533         * nscd/nscd-client.h (__nscd_acquire_maplock): Use atomic_spin_nop
15534         instead of atomic_delay.
15535
15536 2015-06-29  Joseph Myers  <joseph@codesourcery.com>
15537
15538         [BZ #18613]
15539         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Take log of
15540         X_ADJ not X when adjusting exponent.
15541         (__ieee754_gamma_r): Do intermediate computations in
15542         round-to-nearest then adjust overflowing and underflowing results
15543         as needed.
15544         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Take log
15545         of X_ADJ not X when adjusting exponent.
15546         (__ieee754_gammaf_r): Do intermediate computations in
15547         round-to-nearest then adjust overflowing and underflowing results
15548         as needed.
15549         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Take
15550         log of X_ADJ not X when adjusting exponent.
15551         (__ieee754_gammal_r): Do intermediate computations in
15552         round-to-nearest then adjust overflowing and underflowing results
15553         as needed.  Use 1.0L not 1.0f as numerator of division.
15554         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Take
15555         log of X_ADJ not X when adjusting exponent.
15556         (__ieee754_gammal_r): Do intermediate computations in
15557         round-to-nearest then adjust overflowing and underflowing results
15558         as needed.  Use 1.0L not 1.0f as numerator of division.
15559         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Take log
15560         of X_ADJ not X when adjusting exponent.
15561         (__ieee754_gammal_r): Do intermediate computations in
15562         round-to-nearest then adjust overflowing and underflowing results
15563         as needed.  Use 1.0L not 1.0f as numerator of division.
15564         * math/libm-test.inc (tgamma_test_data): Remove one test.  Moved
15565         to auto-libm-test-in.
15566         (tgamma_test): Use ALL_RM_TEST.
15567         * math/auto-libm-test-in: Add one test of tgamma.  Mark some other
15568         tests of tgamma with spurious-overflow.
15569         * math/auto-libm-test-out: Regenerated.
15570         * math/gen-libm-have-vector-test.sh: Do not check for START.
15571         * sysdeps/i386/fpu/libm-test-ulps: Update.
15572         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15573
15574         [BZ #18612]
15575         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): For small
15576         arguments, just return 0.5 times the argument, with underflow
15577         forced as needed.
15578         * math/auto-libm-test-in: Add more tests of j1.
15579         * math/auto-libm-test-out: Regenerated.
15580
15581         [BZ #16559]
15582         * sysdeps/ieee754/dbl-64/e_j1.c: Include <float.h>.
15583         (__ieee754_j1): Force underflow exception for small results.
15584         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
15585         * sysdeps/ieee754/flt-32/e_j1f.c: Include <float.h>.
15586         (__ieee754_j1f): Force underflow exception for small results.
15587         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15588         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15589         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15590         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <float.h>.
15591         (__ieee754_j1l): Force underflow exception for small results.
15592         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15593         * math/auto-libm-test-in: Add more tests of j1 and jn.
15594         * math/auto-libm-test-out: Regenerated.
15595
15596         * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro.
15597         * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise.
15598         (PF_MPLS): Likewise.
15599         (AF_IB): Likewise.
15600         (AF_MPLS): Likewise.
15601         * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum
15602         value and macro.
15603         (MS_RMT_MASK): Include MS_LAZYTIME.
15604
15605 2015-06-26  Mel Gorman  <mgorman@suse.de>
15606
15607         [BZ #18502]
15608         * malloc/arena.c (heap_trim): Don't try to shrink a heap that is
15609         already minimal.
15610
15611 2015-06-26  Matthew Fortune  <matthew.fortune@imgtec.com>
15612
15613         * elf/elf.h (DT_MIPS_RLD_MAP_REL): New macro.
15614         (DT_MIPS_NUM): Update.
15615         * sysdeps/mips/dl-machine.h (ELF_MACHINE_DEBUG_SETUP): Handle
15616         DT_MIPS_RLD_MAP_REL.
15617
15618 2015-06-25  Joseph Myers  <joseph@codesourcery.com>
15619
15620         [BZ #16559]
15621         [BZ #18602]
15622         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Set
15623         round-to-nearest internally then recompute results that
15624         underflowed to zero in the original rounding mode.
15625         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
15626         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
15627         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15628         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
15629         * math/libm-test.inc (jn_test): Use ALL_RM_TEST.
15630         * sysdeps/i386/fpu/libm-test-ulps: Update.
15631         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15632
15633 2015-06-25  Andrew Senkevich  <andrew.senkevich@intel.com>
15634
15635         * NEWS: Fixed description of link with vector math library.
15636
15637 2015-06-25  Andreas Schwab  <schwab@suse.de>
15638
15639         [BZ #18549]
15640         * libio/fmemopen.c (fmemopen_write): Fix bounds check for ENOSPC.
15641         * libio/test-fmemopen.c (do_test): Add test for it.
15642
15643 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15644
15645         [BZ #17841]
15646         * Makeconfig (no-pie-ldflag): New.
15647         (+link): Set to $(+link-pie) if default to PIE.
15648         (+link-tests): Set to $(+link-pie-tests) if default to PIE.
15649         * config.make.in (build-pie-default): New.
15650         * configure.ac (libc_cv_pie_default): New.  Set to yes if -fPIE
15651         is default.  AC_SUBST.
15652         * configure: Regenerated.
15653         * elf/Makefile (LDFLAGS-tst-dlopen-aout): New.
15654
15655 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15656
15657         * nptl/descr.h (struct pthread): Change type of field setxid_futex
15658         to 'unsigned int'.
15659
15660         * resolv/gai_misc.h (struct waitlist): Change type of field
15661         counterp to 'volatile unsigned int *'.
15662         * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Use unsigned types for
15663         FUTEXADDR and OLDVAL.
15664         * resolv/getaddrinfo_a.c (getaddrinfo_a):
15665         Give local variable TOTAL type 'volatile unsigned int'.
15666         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15667         * resolv/gai_suspend.c (gai_suspend):
15668         Give local variable CNTR type 'unsigned int'.
15669
15670         * sysdeps/pthread/aio_misc.h (struct waitlist): Change type of field
15671         counterp to 'volatile unsigned int *'.
15672         * sysdeps/pthread/aio_suspend.c [DONT_NEED_AIO_MISC_COND]
15673         (do_aio_misc_wait): Give argument CNTR type 'unsigned int *'.
15674         (aio_suspend): Give local variable CNTR type 'unsigned int'.
15675         * sysdeps/pthread/lio_listio.c (lio_listio_internal):
15676         Give local variable TOTAL type 'volatile unsigned int'.
15677         (struct async_waitlist): Change type of field counter to 'unsigned int'.
15678
15679 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15680
15681         [BZ #18383]
15682         * csu/libc-tls.c (__libc_setup_tls) [TLS_TCB_AT_TP]: Align
15683         TCB_OFFSET to MAX_ALIGN, not just TCBALIGN.  Add comment.
15684         * elf/Makefile (test-xfail-tst-tlsalign{,-static}): Remove
15685         comment for i386/x86-64.
15686         (test-xfail-tst-tlsalign-extern-static): Removed.
15687
15688 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15689
15690         * math/test-double.h: New file.
15691         * math/test-float.h: Likewise.
15692         * math/test-ldouble.h: Likewise.
15693         * math/test-math-inline.h: Likewise.
15694         * math/test-math-no-inline.h: Likewise.
15695         * math/test-math-scalar.h: Likewise.
15696         * math/test-math-vector.h: Likewise.
15697         * math/test-vec-loop.h: Remove file.  Contents moved into
15698         test-math-vector.h.
15699         * math/libm-test.inc (MATHCONST): Do not document macro.
15700         * math/test-double.c: Include test-double.h, test-math-no-inline.h
15701         and test-math-scalar.h.
15702         (FUNC): Remove macro.
15703         (FUNC_TEST): Likewise.
15704         (FLOAT): Likewise.
15705         (MATHCONST): Likewise.
15706         (PRINTF_EXPR): Likewise.
15707         (PRINTF_XEXPR): Likewise.
15708         (PRINTF_NEXPR): Likewise.
15709         (TEST_DOUBLE): Likewise.
15710         (TEST_MATHVEC): Likewise.
15711         (__NO_MATH_INLINES): Likewise.
15712         * math/test-float.c: Include test-float.h, test-math-no-inline.h
15713         and test-math-scalar.h.
15714         (FUNC): Remove macro.
15715         (FUNC_TEST): Likewise.
15716         (FLOAT): Likewise.
15717         (MATHCONST): Likewise.
15718         (PRINTF_EXPR): Likewise.
15719         (PRINTF_XEXPR): Likewise.
15720         (PRINTF_NEXPR): Likewise.
15721         (TEST_FLOAT): Likewise.
15722         (TEST_MATHVEC): Likewise.
15723         (__NO_MATH_INLINES): Likewise.
15724         * math/test-idouble.c: Include test-double.h, test-math-inline.h
15725         and test-math-scalar.h.
15726         (FUNC): Remove macro.
15727         (FUNC_TEST): Likewise.
15728         (FLOAT): Likewise.
15729         (MATHCONST): Likewise.
15730         (PRINTF_EXPR): Likewise.
15731         (PRINTF_XEXPR): Likewise.
15732         (PRINTF_NEXPR): Likewise.
15733         (TEST_DOUBLE): Likewise.
15734         (TEST_MATHVEC): Likewise.
15735         (TEST_INLINE): Likewise.
15736         (__NO_MATH_INLINES): Likewise.
15737         * math/test-ifloat.c: Include test-float.h, test-math-inline.h and
15738         test-math-scalar.h.
15739         (FUNC): Remove macro.
15740         (FUNC_TEST): Likewise.
15741         (FLOAT): Likewise.
15742         (MATHCONST): Likewise.
15743         (PRINTF_EXPR): Likewise.
15744         (PRINTF_XEXPR): Likewise.
15745         (PRINTF_NEXPR): Likewise.
15746         (TEST_FLOAT): Likewise.
15747         (TEST_MATHVEC): Likewise.
15748         (TEST_INLINE): Likewise.
15749         (__NO_MATH_INLINES): Likewise.
15750         * math/test-ildoubl.c: Include test-ldouble.h, test-math-inline.h
15751         and test-math-scalar.h.
15752         (FUNC): Remove macro.
15753         (FUNC_TEST): Likewise.
15754         (FLOAT): Likewise.
15755         (MATHCONST): Likewise.
15756         (PRINTF_EXPR): Likewise.
15757         (PRINTF_XEXPR): Likewise.
15758         (PRINTF_NEXPR): Likewise.
15759         (TEST_LDOUBLE): Likewise.
15760         (TEST_MATHVEC): Likewise.
15761         (TEST_INLINE): Likewise.
15762         (__NO_MATH_INLINES): Likewise.
15763         * math/test-ldouble.c: Include test-ldouble.h,
15764         test-math-no-inline.h and test-math-scalar.h.
15765         (FUNC): Remove macro.
15766         (FUNC_TEST): Likewise.
15767         (FLOAT): Likewise.
15768         (MATHCONST): Likewise.
15769         (PRINTF_EXPR): Likewise.
15770         (PRINTF_XEXPR): Likewise.
15771         (PRINTF_NEXPR): Likewise.
15772         (TEST_LDOUBLE): Likewise.
15773         (TEST_MATHVEC): Likewise.
15774         (__NO_MATH_INLINES): Likewise.
15775         * math/test-double-vlen2.h: Include test-double.h,
15776         test-math-no-inline.h and test-math-vector.h.
15777         (FLOAT): Remove macro.
15778         (FUNC): Likewise.
15779         (MATHCONST): Likewise.
15780         (PRINTF_EXPR): Likewise.
15781         (PRINTF_XEXPR): Likewise.
15782         (PRINTF_NEXPR): Likewise.
15783         (TEST_DOUBLE): Likewise.
15784         (TEST_MATHVEC): Likewise.
15785         (__NO_MATH_INLINES): Likewise.
15786         (CNCT): Likewise.
15787         (CONCAT): Likewise.
15788         (WRAPPER_NAME): Likewise.
15789         (WRAPPER_DECL): Likewise.
15790         (WRAPPER_DECL_ff): Likewise.
15791         (WRAPPER_DECL_fFF): Likewise.
15792         (VECTOR_WRAPPER): Likewise.
15793         (VECTOR_WRAPPER_ff): Likewise.
15794         (VECTOR_WRAPPER_fFF): Likewise.
15795         (VEC_LEN): New macro.
15796         * math/test-double-vlen4.h: Include test-double.h,
15797         test-math-no-inline.h and test-math-vector.h.
15798         (FLOAT): Remove macro.
15799         (FUNC): Likewise.
15800         (MATHCONST): Likewise.
15801         (PRINTF_EXPR): Likewise.
15802         (PRINTF_XEXPR): Likewise.
15803         (PRINTF_NEXPR): Likewise.
15804         (TEST_DOUBLE): Likewise.
15805         (TEST_MATHVEC): Likewise.
15806         (__NO_MATH_INLINES): Likewise.
15807         (CNCT): Likewise.
15808         (CONCAT): Likewise.
15809         (WRAPPER_NAME): Likewise.
15810         (WRAPPER_DECL): Likewise.
15811         (WRAPPER_DECL_ff): Likewise.
15812         (WRAPPER_DECL_fFF): Likewise.
15813         (VECTOR_WRAPPER): Likewise.
15814         (VECTOR_WRAPPER_ff): Likewise.
15815         (VECTOR_WRAPPER_fFF): Likewise.
15816         (VEC_LEN): New macro.
15817         * math/test-double-vlen8.h: Include test-double.h,
15818         test-math-no-inline.h and test-math-vector.h.
15819         (FLOAT): Remove macro.
15820         (FUNC): Likewise.
15821         (MATHCONST): Likewise.
15822         (PRINTF_EXPR): Likewise.
15823         (PRINTF_XEXPR): Likewise.
15824         (PRINTF_NEXPR): Likewise.
15825         (TEST_DOUBLE): Likewise.
15826         (TEST_MATHVEC): Likewise.
15827         (__NO_MATH_INLINES): Likewise.
15828         (CNCT): Likewise.
15829         (CONCAT): Likewise.
15830         (WRAPPER_NAME): Likewise.
15831         (WRAPPER_DECL): Likewise.
15832         (WRAPPER_DECL_ff): Likewise.
15833         (WRAPPER_DECL_fFF): Likewise.
15834         (VECTOR_WRAPPER): Likewise.
15835         (VECTOR_WRAPPER_ff): Likewise.
15836         (VECTOR_WRAPPER_fFF): Likewise.
15837         (VEC_LEN): New macro.
15838         * math/test-float-vlen4.h: Include test-float.h,
15839         test-math-no-inline.h and test-math-vector.h.
15840         (FLOAT): Remove macro.
15841         (FUNC): Likewise.
15842         (MATHCONST): Likewise.
15843         (PRINTF_EXPR): Likewise.
15844         (PRINTF_XEXPR): Likewise.
15845         (PRINTF_NEXPR): Likewise.
15846         (TEST_FLOAT): Likewise.
15847         (TEST_MATHVEC): Likewise.
15848         (__NO_MATH_INLINES): Likewise.
15849         (CNCT): Likewise.
15850         (CONCAT): Likewise.
15851         (WRAPPER_NAME): Likewise.
15852         (WRAPPER_DECL): Likewise.
15853         (WRAPPER_DECL_ff): Likewise.
15854         (WRAPPER_DECL_fFF): Likewise.
15855         (VECTOR_WRAPPER): Likewise.
15856         (VECTOR_WRAPPER_ff): Likewise.
15857         (VECTOR_WRAPPER_fFF): Likewise.
15858         (VEC_LEN): New macro.
15859         * math/test-float-vlen8.h: Include test-float.h,
15860         test-math-no-inline.h and test-math-vector.h.
15861         (FLOAT): Remove macro.
15862         (FUNC): Likewise.
15863         (MATHCONST): Likewise.
15864         (PRINTF_EXPR): Likewise.
15865         (PRINTF_XEXPR): Likewise.
15866         (PRINTF_NEXPR): Likewise.
15867         (TEST_FLOAT): Likewise.
15868         (TEST_MATHVEC): Likewise.
15869         (__NO_MATH_INLINES): Likewise.
15870         (CNCT): Likewise.
15871         (CONCAT): Likewise.
15872         (WRAPPER_NAME): Likewise.
15873         (WRAPPER_DECL): Likewise.
15874         (WRAPPER_DECL_ff): Likewise.
15875         (WRAPPER_DECL_fFF): Likewise.
15876         (VECTOR_WRAPPER): Likewise.
15877         (VECTOR_WRAPPER_ff): Likewise.
15878         (VECTOR_WRAPPER_fFF): Likewise.
15879         (VEC_LEN): New macro.
15880         * math/test-float-vlen16.h: Include test-float.h,
15881         test-math-no-inline.h and test-math-vector.h.
15882         (FLOAT): Remove macro.
15883         (FUNC): Likewise.
15884         (MATHCONST): Likewise.
15885         (PRINTF_EXPR): Likewise.
15886         (PRINTF_XEXPR): Likewise.
15887         (PRINTF_NEXPR): Likewise.
15888         (TEST_FLOAT): Likewise.
15889         (TEST_MATHVEC): Likewise.
15890         (__NO_MATH_INLINES): Likewise.
15891         (CNCT): Likewise.
15892         (CONCAT): Likewise.
15893         (WRAPPER_NAME): Likewise.
15894         (WRAPPER_DECL): Likewise.
15895         (WRAPPER_DECL_ff): Likewise.
15896         (WRAPPER_DECL_fFF): Likewise.
15897         (VECTOR_WRAPPER): Likewise.
15898         (VECTOR_WRAPPER_ff): Likewise.
15899         (VECTOR_WRAPPER_fFF): Likewise.
15900         (VEC_LEN): New macro.
15901         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Do not include
15902         test-vec-loop.h.
15903         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
15904         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
15905         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
15906         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
15907         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
15908         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
15909         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
15910
15911 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15912
15913         * sysdeps/nacl/glob.c (getlogin_r): Macro renamed to ...
15914         (__getlogin_r): ... this.
15915
15916 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15917
15918         [BZ #18594]
15919         * math/s_ccosh.c (__ccosh): Compare with least normal value
15920         instead of comparing class with FP_SUBNORMAL.
15921         * math/s_ccoshf.c (__ccoshf): Likewise.
15922         * math/s_ccoshl.c (__ccoshl): Likewise.
15923         * math/s_cexp.c (__cexp): Likewise.
15924         * math/s_cexpf.c (__cexpf): Likewise.
15925         * math/s_cexpl.c (__cexpl): Likewise.
15926         * math/s_csin.c (__csin): Likewise.
15927         * math/s_csinf.c (__csinf): Likewise.
15928         * math/s_csinh.c (__csinh): Likewise.
15929         * math/s_csinhf.c (__csinhf): Likewise.
15930         * math/s_csinhl.c (__csinhl): Likewise.
15931         * math/s_csinl.c (__csinl): Likewise.
15932         * math/s_ctan.c (__ctan): Likewise.
15933         * math/s_ctanf.c (__ctanf): Likewise.
15934         * math/s_ctanh.c (__ctanh): Likewise.
15935         * math/s_ctanhf.c (__ctanhf): Likewise.
15936         * math/s_ctanhl.c (__ctanhl): Likewise.
15937         * math/s_ctanl.c (__ctanl): Likewise.
15938         * math/auto-libm-test-in: Add more tests of ccos, ccosh, cexp,
15939         csin, csinh, ctan and ctanh.
15940         * math/auto-libm-test-out: Regenerated.
15941         * math/libm-test.inc (cexp_test): Use ALL_RM_TEST.
15942         * sysdeps/i386/fpu/libm-test-ulps: Update.
15943         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15944
15945 2015-06-24  Roland McGrath  <roland@hack.frob.com>
15946
15947         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): When sched_getcpu
15948         return value is wrong, print the expected value too.
15949
15950 2015-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15951
15952         [BZ #18585]
15953         * elf/readlib.c (is_gdb_python_file): New.
15954         (process_file): Don't issue errors on filenames with -gdb.py
15955         suffix.
15956
15957 2015-06-24  Joseph Myers  <joseph@codesourcery.com>
15958
15959         * math/auto-libm-test-in: Add more tests of csin and csinh.
15960         * math/auto-libm-test-out: Regenerated.
15961         * math/libm-test.inc (csin_test_data): Remove tests moved to
15962         auto-libm-test-in.
15963         (csinh_test_data): Likewise.
15964
15965         [BZ #18593]
15966         * math/s_csin.c (__csin): Negate before rather than after possibly
15967         overflowing multiplication.
15968         * math/s_csinf.c (__csinf): Likewise.
15969         * math/s_csinh.c (__csinh): Likewise.
15970         * math/s_csinhf.c (__csinhf): Likewise.
15971         * math/s_csinhl.c (__csinhl): Likewise.
15972         * math/s_csinl.c (__csinl): Likewise.
15973         * math/auto-libm-test-in: Add some tests of csin and csinh.
15974         * math/auto-libm-test-out: Regenerated.
15975         * math/libm-test.inc (csin_test_data): Use AUTO_TESTS_c_c.
15976         (csinh_test_data): Likewise.
15977         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15978
15979         [BZ #18586]
15980         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Force
15981         underflow exception for small results.
15982
15983 2015-06-24  Andrew Senkevich  <andrew.senkevich@intel.com>
15984
15985         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
15986         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: Renamed
15987         variable and included header.
15988         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: Likewise.
15989         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: Likewise.
15990         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: Likewise.
15991         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: Likewise.
15992         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: Likewise.
15993         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S: Likewise.
15994         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S: Likewise.
15995         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S: Likewise.
15996         * sysdeps/x86_64/fpu/svml_s_trig_data.S: New file.
15997         * sysdeps/x86_64/fpu/svml_s_trig_data.h: Likewise.
15998         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: Removed file.
15999         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: Likewise.
16000         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: Likewise.
16001         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: Likewise.
16002         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: Likewise.
16003         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: Likewise.
16004
16005 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
16006
16007         [BZ #16526]
16008         [BZ #16538]
16009         * sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
16010         (__sin): Force underflow exception for arguments with small
16011         absolute value.
16012         * sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
16013         (__kernel_sinf): Force underflow exception for arguments with
16014         small absolute value.
16015         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
16016         (__kernel_sincosl): Force underflow exception for arguments with
16017         small absolute value.
16018         * sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
16019         (__kernel_sinl): Force underflow exception for arguments with
16020         small absolute value.
16021         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
16022         (__kernel_sincosl): Force underflow exception for arguments with
16023         small absolute value.
16024         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
16025         (__kernel_sinl): Force underflow exception for arguments with
16026         small absolute value.
16027         * sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
16028         (__kernel_sinl): Force underflow exception for arguments with
16029         small absolute value.
16030         * sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
16031         (__kernel_sinf): Force underflow exception for arguments with
16032         small absolute value.
16033         * math/auto-libm-test-in: Add more tests of sin and sincos.
16034         * math/auto-libm-test-out: Regenerated.
16035
16036         [BZ #18245]
16037         [BZ #18583]
16038         * sysdeps/ieee754/k_standardl.c: Include <fenv.h>.
16039         (__kernel_standard_l): Use feholdexcept and fesetenv around
16040         conversion to double instead of special-casing overflow and
16041         underflow.
16042         * math/libm-test.inc (fmod_test_data): Add more tests.
16043         (remainder_test_data): Likewise.
16044         (sqrt_test_data): Likewise.
16045
16046 2015-06-23  Torvald Riegel  <triegel@redhat.com>
16047
16048         [BZ #17403]
16049         * sysdeps/x86_64/bits/atomic.h: (atomic_full_barrier,
16050         atomic_read_barrier, atomic_write_barrier): Define.
16051         * sysdeps/i386/i486/bits/atomic.h (atomic_full_barrier,
16052         atomic_read_barrier, atomic_write_barrier): Define.
16053
16054 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
16055
16056         * math/Makefile [$(PERL) != no]
16057         ($(addprefix $(objpfx), $(addsuffix .o, $(libm-vec-tests)))): Move
16058         dependency on libm-test.stmp below the inclusion of Rules.
16059
16060 2015-06-23  Andrew Senkevich  <andrew.senkevich@intel.com>
16061
16062         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Fixed files list.
16063         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: Renamed variable
16064         and included header.
16065         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: Likewise.
16066         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: Likewise.
16067         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: Likewise.
16068         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: Likewise.
16069         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: Likewise.
16070         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: Likewise.
16071         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: Likewise.
16072         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: Likewise.
16073         * sysdeps/x86_64/fpu/svml_d_trig_data.S: New file.
16074         * sysdeps/x86_64/fpu/svml_d_trig_data.h: Likewise.
16075         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: Removed unneeded include.
16076         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: Likewise.
16077         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: Likewise.
16078         * sysdeps/x86_64/fpu/svml_d_cos_data.S: Removed file.
16079         * sysdeps/x86_64/fpu/svml_d_cos_data.h: Likewise.
16080         * sysdeps/x86_64/fpu/svml_d_sin_data.S: Likewise.
16081         * sysdeps/x86_64/fpu/svml_d_sin_data.h: Likewise.
16082         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: Likewise.
16083         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: Likewise.
16084
16085 2015-06-23  Joseph Myers  <joseph@codesourcery.com>
16086
16087         [BZ #18371]
16088         * math/s_csqrt.c (__csqrt): Avoid multiplication by 0.5 where
16089         intermediate but not final result might underflow.
16090         * math/s_csqrtf.c (__csqrtf): Likewise.
16091         * math/s_csqrtl.c (__csqrtl): Likewise.
16092         * math/auto-libm-test-in: Add more tests of csqrt.
16093         * math/auto-libm-test-out: Regenerated.
16094         * sysdeps/i386/fpu/libm-test-ulps: Update.
16095
16096         [BZ #18219]
16097         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Reduce
16098         threshold on absolute value of exponent for which scaling is used.
16099         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
16100         * math/auto-libm-test-in: Add more tests of exp2.
16101         * math/auto-libm-test-out: Regenerated.
16102
16103 2015-06-23  Dmitry V. Levin  <ldv@altlinux.org>
16104
16105         [BZ #17977]
16106         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix unlocking
16107         when initializing interface list, based on the bug analysis
16108         and the patch proposed by Eric Newton.
16109         * resolv/tst-res_hconf_reorder.c: New test.
16110         * resolv/Makefile [$(have-thread-library) = yes] (tests): Add
16111         tst-res_hconf_reorder.
16112         ($(objpfx)tst-res_hconf_reorder): Depend on $(libdl)
16113         and $(shared-thread-library).
16114         (tst-res_hconf_reorder-ENV): New variable.
16115
16116         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix typo
16117         in comment.
16118
16119 2015-06-22  Joseph Myers  <joseph@codesourcery.com>
16120
16121         [BZ #16353]
16122         * sysdeps/i386/fpu/s_expm1.S (dbl_min): New object.
16123         (__expm1): Force underflow exception for arguments with small
16124         absolute value.
16125         * sysdeps/i386/fpu/s_expm1f.S (flt_min): New object.
16126         (__expm1f): Force underflow exception for arguments with small
16127         absolute value.
16128         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <float.h>.
16129         (__expm1): Force underflow exception for arguments with small
16130         absolute value.
16131         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <float.h>.
16132         (__expm1f): Force underflow exception for arguments with small
16133         absolute value.
16134         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
16135         Check for small arguments before calling __expm1.
16136         * math/auto-libm-test-in: Do not mark underflow exceptions as
16137         possibly missing for bug 16353.
16138         * math/auto-libm-test-out: Regenerated.
16139
16140 2015-06-22  Andreas Schwab  <schwab@suse.de>
16141
16142         [BZ #18513]
16143         * resolv/nss_dns/dns-host.c (getanswer_r): Record TTL also for
16144         PTR queries.
16145
16146 2015-06-22  Leonhard Holz  <leonhard.holz@web.de>
16147
16148         * string/strcoll_l.c (STRCOLL): Remove unnecessary memset.
16149
16150         * string/strcoll_l.c: Remove unused struct element idxnow.
16151
16152 2015-06-21  Joseph Myers  <joseph@codesourcery.com>
16153
16154         [BZ #18569]
16155         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Force
16156         underflow and return argument in case of subnormal argument.
16157         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
16158         Likewise.
16159         * math/auto-libm-test-in: Add more tests of expm1.
16160         * math/auto-libm-test-out: Regenerated.
16161
16162         [BZ #16361]
16163         * sysdeps/i386/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
16164         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
16165         tiny results.
16166         * sysdeps/x86_64/fpu/e_expl.S [!USE_AS_EXPM1L] (cmin): New object.
16167         (IEEE754_EXPL) [!USE_AS_EXPM1L]: Force underflow exception for
16168         tiny results.
16169         * math/auto-libm-test-in: Add more tests of exp and exp10.  Do not
16170         mark underflow exceptions as possibly missing for bug 16361.
16171         * math/auto-libm-test-out: Regenerated.
16172
16173 2015-06-19  Joseph Myers  <joseph@codesourcery.com>
16174
16175         * conform/data/sys/select.h-data [XOPEN2K8] (pselect): Expect.
16176         * conform/Makefile (test-xfail-XOPEN2K8/sys/select.h/conform):
16177         Remove variable.
16178         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
16179         (test-xfail-XOPEN2K8/utmpx.h/conform).
16180
16181         * conform/conformtest.pl ($xerrors): New variable.
16182         (note_error): New function.
16183         (compiletest): New argument $xfail.  Use not_error.
16184         (runtest): Likewise.
16185         (top level): Handle xfail- lines.  Update calls to compiletest and
16186         runtest.  Handle xfail- and optional- in headers listed with
16187         allow-header.
16188         * conform/data/fcntl.h-data (O_TTY_INIT): Use xfail-.
16189         (O_EXEC): Likewise.
16190         (O_SEARCH): Likewise.
16191         * conform/data/stropts.h-data (ioctl): Likewise.
16192         * conform/data/sys/ipc.h-data (ipc_perm.mode): Likewise.
16193         * conform/data/sys/sem.h-data (semid_ds.sem_nsems): Likewise.
16194         * conform/data/sys/socket.h-data (msghdr.msg_iovlen): Likewise.
16195         (msghdr.msg_controllen): Likewise.
16196         (cmsghdr.cmsg_len): Likewise.
16197         * conform/data/utmpx.h-data (utmpx.ut_tv): Likewise.
16198         * conform/Makefile (test-xfail-XPG3/sys/ipc.h/conform): Remove
16199         variable.
16200         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
16201         (test-xfail-XPG4/stropts.h/conform): Likewise.
16202         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
16203         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
16204         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
16205         (test-xfail-UNIX98/stropts.h/conform): Likewise.
16206         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
16207         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
16208         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
16209         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
16210         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
16211         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
16212         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
16213         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
16214         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
16215         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
16216         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
16217         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
16218         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
16219         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
16220         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
16221
16222 2015-06-19  Andrew Senkevich  <andrew.senkevich@intel.com>
16223
16224         * sysdeps/ieee754/ldbl-opt/s_sin.c (__DECL_SIMD_sincos_disable,
16225         __DECL_SIMD_sincos_disablef, __DECL_SIMD_sincos_disablel): Added empty
16226         definitions for proper unfolding of __MATHDECL_VEC.
16227
16228 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16229
16230         * benchtests/bench-strcoll.c:
16231         Include string.h.
16232         (main): Remove unused variable res.
16233
16234 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16235
16236         * timezone/Makefile (%/UTC %/Universal):
16237         Generate test-result files for UTC and Universal.
16238
16239 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
16240
16241         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
16242
16243 2015-06-18  Joseph Myers  <joseph@codesourcery.com>
16244
16245         [BZ #16350]
16246         * sysdeps/i386/fpu/s_asinh.S (__asinh): Force underflow exception
16247         for arguments with small absolute value.
16248         * sysdeps/i386/fpu/s_asinhf.S (__asinhf): Likewise.
16249         * sysdeps/i386/fpu/s_asinhl.S (__asinhl): Likewise.
16250         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <float.h>.
16251         (__asinh): Force underflow exception for arguments with small
16252         absolute value.
16253         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <float.h>.
16254         (__asinhf): Force underflow exception for arguments with small
16255         absolute value.
16256         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include <float.h>.
16257         (__asinhl): Force underflow exception for arguments with small
16258         absolute value.
16259         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Include <float.h>.
16260         (__asinhl): Force underflow exception for arguments with small
16261         absolute value.
16262         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include <float.h>.
16263         (__asinhl): Force underflow exception for arguments with small
16264         absolute value.
16265         * math/auto-libm-test-in: Do not mark underflow exceptions as
16266         possibly missing for bug 16350.
16267         * math/auto-libm-test-out: Regenerated.
16268
16269         * include/bits/ipc.h: Remove file.
16270         * conform/Makefile (test-xfail-XPG3/sys/msg.h/conform): Remove
16271         variable.
16272         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
16273         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
16274         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
16275         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
16276         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
16277         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
16278         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
16279         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
16280         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
16281
16282         * math/auto-libm-test-in: Remove spurious underflow allowance for
16283         tests of cexp.
16284         * math/auto-libm-test-out: Regenerated.
16285
16286         [BZ #18558]
16287         * sysdeps/unix/sysv/linux/bits/in.h (MCAST_JOIN_GROUP): Remove
16288         unconditional definition.
16289         (MCAST_BLOCK_SOURCE): Likewise.
16290         (MCAST_UNBLOCK_SOURCE): Likewise.
16291         (MCAST_LEAVE_GROUP): Likewise.
16292         (MCAST_JOIN_SOURCE_GROUP): Likewise.
16293         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
16294         (MCAST_MSFILTER): Likewise.
16295         * conform/Makefile (test-xfail-XOPEN2K/arpa/inet.h/conform):
16296         Remove variable.
16297         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
16298         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
16299         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
16300         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
16301         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
16302
16303 2015-06-18  Andrew Senkevich  <andrew.senkevich@intel.com>
16304
16305         * NEWS: Mention addition of x86_64 vector sincosf.
16306         * math/test-float-vlen16.h: Added wrapper for sincosf tests.
16307         * math/test-float-vlen4.h: Likewise.
16308         * math/test-float-vlen8.h: Likewise.
16309         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16310         * sysdeps/x86/fpu/bits/math-vector.h: Added sincosf SIMD declaration.
16311         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16312         * sysdeps/x86_64/fpu/Versions: New versions added.
16313         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16314         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16315         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16316         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core.S
16317         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S
16318         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core.S
16319         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S
16320         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core.S
16321         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S
16322         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S
16323         * sysdeps/x86_64/fpu/svml_s_sincosf4_core.S
16324         * sysdeps/x86_64/fpu/svml_s_sincosf8_core.S
16325         * sysdeps/x86_64/fpu/svml_s_sincosf8_core_avx.S
16326         * sysdeps/x86_64/fpu/svml_s_sincosf_data.S: New file.
16327         * sysdeps/x86_64/fpu/svml_s_sincosf_data.h: New file.
16328         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 3 argument wrappers.
16329         * sysdeps/x86_64/fpu/test-float-vlen16.c: : Vector sincosf tests.
16330         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Likewise.
16331         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16332         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16333         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16334         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16335         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16336         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16337
16338         * NEWS: Mention addition of x86_64 vector sincos.
16339         * bits/libm-simd-decl-stubs.h: Added stubs for sincos.
16340         * math/math.h (__MATHDECL_VEC): New macro.
16341         * math/bits/mathcalls.h: Added sincos declaration with __MATHDECL_VEC.
16342         * math/gen-libm-have-vector-test.sh: Added generation of sincos wrapper
16343         declaration under condition.
16344         * math/test-vec-loop.h (TEST_VEC_LOOP): Refactored.
16345         * math/test-double-vlen2.h: Added wrapper for sincos tests, reflected
16346         TEST_VEC_LOOP change.
16347         * math/test-double-vlen4.h: Likewise.
16348         * math/test-double-vlen8.h: Likewise.
16349         * math/test-float-vlen16.h: Reflected TEST_VEC_LOOP change.
16350         * math/test-float-vlen4.h: Likewise.
16351         * math/test-float-vlen8.h: Likewise.
16352         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16353         * sysdeps/x86/fpu/bits/math-vector.h: Added sincos SIMD declaration.
16354         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16355         * sysdeps/x86_64/fpu/Versions: New versions added.
16356         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16357         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16358         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16359         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: New file.
16360         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core_sse4.S: New file.
16361         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: New file.
16362         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core_avx2.S: New file.
16363         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: New file.
16364         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S: New file.
16365         * sysdeps/x86_64/fpu/svml_d_sincos2_core.S: New file.
16366         * sysdeps/x86_64/fpu/svml_d_sincos4_core.S: New file.
16367         * sysdeps/x86_64/fpu/svml_d_sincos4_core_avx.S: New file.
16368         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: New file.
16369         * sysdeps/x86_64/fpu/svml_d_sincos_data.S: New file.
16370         * sysdeps/x86_64/fpu/svml_d_sincos_data.h: New file.
16371         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added wrappers for sincos.
16372         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Vector sincos tests.
16373         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16374         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16375         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16376         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16377         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16378         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16379         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16380
16381         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16382         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16383         redirections for powf.
16384         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16385         * sysdeps/x86_64/fpu/Versions: New versions added.
16386         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16387         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16388         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16389         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Added 2 argument wrappers.
16390         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core.S: New file.
16391         * sysdeps/x86_64/fpu/multiarch/svml_s_powf16_core_avx512.S: New file.
16392         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core.S: New file.
16393         * sysdeps/x86_64/fpu/multiarch/svml_s_powf4_core_sse4.S: New file.
16394         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core.S: New file.
16395         * sysdeps/x86_64/fpu/multiarch/svml_s_powf8_core_avx2.S: New file.
16396         * sysdeps/x86_64/fpu/svml_s_powf16_core.S: New file.
16397         * sysdeps/x86_64/fpu/svml_s_powf4_core.S: New file.
16398         * sysdeps/x86_64/fpu/svml_s_powf8_core.S: New file.
16399         * sysdeps/x86_64/fpu/svml_s_powf8_core_avx.S: New file.
16400         * sysdeps/x86_64/fpu/svml_s_powf_data.S: New file.
16401         * sysdeps/x86_64/fpu/svml_s_powf_data.h: New file.
16402         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector powf tests.
16403         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16404         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16405         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16406         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16407         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16408         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16409         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16410         * math/test-float-vlen16.h: Fixed 2 argument macro.
16411         * math/test-float-vlen4.h: Likewise.
16412         * math/test-float-vlen8.h: Likewise.
16413         * NEWS: Mention addition of x86_64 vector powf.
16414
16415 2015-06-17  Joseph Myers  <joseph@codesourcery.com>
16416
16417         * math/s_ctanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16418         and redefine.
16419         * math/s_ctanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
16420         and redefine.
16421         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c: Remove file.
16422         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
16423         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
16424
16425         [BZ #18553]
16426         * resource/getpriority.c (getpriority): Rename to __getpriority
16427         and define as weak alias of __getpriority.
16428         * resource/setpriority.c (setpriority): Rename to __setpriority
16429         and define as weak alias of __setpriority.
16430         * sysdeps/mach/hurd/getpriority.c (getpriority): Rename to
16431         __getpriority and define as weak alias of __getpriority.
16432         * sysdeps/mach/hurd/setpriority.c (setpriority): Rename to
16433         __setpriority and define as weak alias of __setpriority.
16434         * sysdeps/unix/syscalls.list (getpriority): Use __getpriority as
16435         strong name.
16436         (setpriority): Use __setpriority as strong name.
16437         * sysdeps/unix/sysv/linux/getpriority.c (getpriority): Rename to
16438         __getpriority and define as weak alias of __getpriority.
16439         * include/sys/resource.h (__getpriority): Declare.  Use
16440         libc_hidden_proto.
16441         (__setpriority): Likewise.
16442         (getpriority): Don't use libc_hidden_proto.
16443         (setpriority): Likewise.
16444         * sysdeps/posix/nice.c (nice): Call __getpriority instead of
16445         getpriority.  Call __setpriority instead of setpriority.
16446         * conform/Makefile (test-xfail-XPG3/unistd.h/linknamespace):
16447         Remove variable.
16448
16449         [BZ #18547]
16450         * misc/getttyent.c (getttynam): Rename to __getttynam and define
16451         as weak alias of __getttynam.  Use prototype function definition.
16452         Call __setttyent, __getttyent and __endttyent instead of
16453         setttyent, getttyent and endttyent.
16454         (getttyent): Rename to __getttyent and define as weak alias of
16455         __getttyent.  Call __setttyent instead of setttyent.  Call
16456         __fgets_unlocked instead of fgets_unlocked.
16457         (setttyent): Rename to __setttyent and define as weak alias of
16458         __setttyent.
16459         (endttyent): Rename to __endttyent and define as weak alias of
16460         __endttyent.
16461         * include/ttyent.h (__getttyent): Declare.  Use libc_hidden_proto.
16462         (__setttyent): Likewise.
16463         (__endttyent): Likewise.
16464         (getttyent): Don't use libc_hidden_proto.
16465         (setttyent): Likewise.
16466         (endttyent): Likewise.
16467         * misc/ttyslot.c (ttyslot): Call __setttyent, __getttyent and
16468         __endttyent instead of setttyent, getttyent and endttyent.
16469         * conform/Makefile (test-xfail-XPG4/unistd.h/linknamespace):
16470         Remove variable.
16471
16472         [BZ #18546]
16473         * socket/recv.c (__recv): Use libc_hidden_def.
16474         * socket/socket.c (__socket): Likewise.
16475         * sysdeps/mach/hurd/recv.c (__recv): Likewise.
16476         * sysdeps/mach/hurd/socket.c (__socket): Likewise.
16477         * sysdeps/unix/sysv/linux/generic/recv.c (__recv): Likewise.
16478         * sysdeps/unix/sysv/linux/recv.c (__recv): Use libc_hidden_weak.
16479         * sysdeps/unix/sysv/linux/socket.c (__socket): Use
16480         libc_hidden_def.
16481         * sysdeps/unix/sysv/linux/x86_64/recv.c (__recv): Use
16482         libc_hidden_weak.
16483         * include/sys/socket.h (__socket): Do not use attribute_hidden.
16484         Use libc_hidden_proto.
16485         (__recv): Likewise.
16486         * socket/Versions (libc): Export __recv and __socket at version
16487         GLIBC_PRIVATE.
16488         * sysdeps/unix/sysv/linux/mq_notify.c (helper_thread): Call __recv
16489         instead of recv.
16490         (init_mq_netlink): Call __socket instead of socket.
16491         * conform/Makefile (test-xfail-POSIX/mqueue.h/linknamespace):
16492         Remove variable.
16493
16494         [BZ #18545]
16495         * rt/mq_timedreceive.c (mq_timedreceive): Rename to
16496         __mq_timedreceive and define as alias of __mq_timedreceive.  Use
16497         hidden_weak.
16498         * rt/mq_timedsend.c (mq_timedsend): Rename to __mq_timedsend and
16499         define as alias of __mq_timedsend.  Use hidden_weak.
16500         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Use
16501         __mq_timedsend as strong name.
16502         (mq_timedreceive): Use __mq_timedreceive as strong name.
16503         * include/mqueue.h (__mq_timedsend): Declare.  Use hidden_proto.
16504         (__mq_timedreceive): Likewise.
16505         * sysdeps/unix/sysv/linux/mq_receive.c (mq_receive): Call
16506         __mq_timedreceive instead of mq_timedreceive.
16507         * sysdeps/unix/sysv/linux/mq_send.c (mq_send): Call __mq_timedsend
16508         instead of mq_timedsend.
16509         * conform/Makefile (test-xfail-UNIX98/mqueue.h/linknamespace):
16510         Remove variable.
16511
16512         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use
16513         hidden_def and hidden_weak instead of libc_hidden_def and
16514         libc_hidden_weak.
16515         (top level): Refer to hidden_def in comment.
16516         * sysdeps/unix/syscall-template.S (syscall_hidden_def): New
16517         macro.  Use it instead of libc_hidden_def.
16518         * sysdeps/unix/sysv/linux/syscalls.list (mq_timedsend): Do not
16519         specify __GI_* name explicitly.
16520         (mq_timedreceive): Likewise.
16521         (mq_setattr): Likewise.
16522
16523         [BZ #18544]
16524         * nptl/pthread_barrier_init.c (pthread_barrier_init): Rename to
16525         __pthread_barrier_init and define as weak alias of
16526         __pthread_barrier_init.
16527         * sysdeps/sparc/nptl/pthread_barrier_init.c
16528         (pthread_barrier_init): Likewise.
16529         * nptl/pthread_barrier_wait.c (pthread_barrier_wait): Rename to
16530         __pthread_barrier_wait and define as weak alias of
16531         __pthread_barrier_wait.
16532         * sysdeps/sparc/nptl/pthread_barrier_wait.c
16533         (pthread_barrier_wait): Likewise.
16534         * sysdeps/sparc/sparc32/pthread_barrier_wait.c
16535         (pthread_barrier_wait): Likewise.
16536         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S
16537         (pthread_barrier_wait): Likewise.
16538         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S
16539         (pthread_barrier_wait): Likewise.
16540         * nptl/Versions (libpthread): Export __pthread_barrier_init and
16541         __pthread_barrier_wait at version GLIBC_PRIVATE.
16542         * include/pthread.h (__pthread_barrier_init): Declare.
16543         (__pthread_barrier_wait): Likewise.
16544         * sysdeps/unix/sysv/linux/mq_notify.c (notification_function):
16545         Call __pthread_barrier_wait instead of pthread_barrier_wait.
16546         (helper_thread): Likewise.
16547         (init_mq_netlink): Call __pthread_barrier_init instead of
16548         pthread_barrier_init.
16549
16550         [BZ #18542]
16551         * libio/iovswscanf.c (__vswscanf): Use libc_hidden_def.
16552         (vswscanf): Use ldbl_weak_alias instead of ldbl_strong_alias
16553         * include/wchar.h (__vswscanf): Declare.  Use libc_hidden_proto.
16554         * libio/swscanf.c (__swscanf): Call __vswscanf instead of
16555         vswscanf.
16556         * conform/Makefile (test-xfail-UNIX98/wchar.h/linknamespace):
16557         Remove variable.
16558
16559         [BZ #18540]
16560         * libio/iofflush.c [!_IO_MTSAFE_IO] (__fflush_unlocked): Define as
16561         strong alias of _IO_fflush.  Use libc_hidden_def.
16562         * libio/iofflush_u.c (fflush_unlocked): Rename to
16563         __fflush_unlocked and define as weak alias of __fflush_unlocked.
16564         Use libc_hidden_weak.
16565         * include/stdio.h (__fflush_unlocked): Declare.  Use
16566         libc_hidden_proto.
16567         * misc/getpass.c (getpass): Call __fflush_unlocked instead of
16568         fflush_unlocked.
16569         * conform/Makefile (test-xfail-UNIX98/unistd.h/linknamespace):
16570         Remove variable.
16571
16572         [BZ #18539]
16573         * stdlib/fmtmsg.c (addseverity): Rename to __addseverity and
16574         define as weak alias of __addseverity.
16575         * conform/Makefile (test-xfail-XPG4/fmtmsg.h/linknamespace):
16576         Remove variable.
16577         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
16578         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
16579         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
16580
16581         [BZ #18536]
16582         * misc/tsearch.c (__tsearch): Use libc_hidden_def.
16583         (__tfind): Likewise.
16584         (__tdelete): Likewise.
16585         (__twalk): Likewise.
16586         * misc/Versions (libc): Add __tdelete, __tfind, __tsearch and
16587         __twalk to GLIBC_PRIVATE.
16588         * include/search.h (__tsearch): Use libc_hidden_proto.
16589         (__tfind): Likewise.
16590         (__tdelete): Likewise.
16591         (__twalk): Likewise.
16592         * nptl/sem_close.c (sem_close): Call __twalk instead of twalk.
16593         Call __tdelete instead of tdelete.
16594         * nptl/sem_open.c (check_add_mapping): Call __tfind instead of
16595         tfind.  Call __tsearch instead of tsearch.
16596         * sysdeps/sparc/sparc32/sem_open.c (check_add_mapping): Likewise.
16597         * conform/Makefile (test-xfail-POSIX/semaphore.h/linknamespace):
16598         Remove variable.
16599         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
16600
16601         [BZ #18534]
16602         * stdio-common/dprintf.c (__dprintf): Use libc_hidden_def.
16603         (dprintf): Define as a weak alias of __dprintf, not a strong
16604         alias.
16605         * include/stdio.h (__dprintf): Declare.  Use libc_hidden_proto.
16606         * misc/syslog.c (__vsyslog_chk): Call __dprintf instead of
16607         dprintf.
16608         * conform/Makefile (test-xfail-XPG4/syslog.h/linknamespace):
16609         Remove variable.
16610         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
16611         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
16612
16613         [BZ #18533]
16614         * misc/syslog.c (vsyslog): Define as a weak alias of __vsyslog,
16615         not a strong alias.
16616         * conform/Makefile (test-xfail-XOPEN2K8/syslog.h/linknamespace):
16617         Remove variable.
16618
16619         [BZ #18532]
16620         * inet/in6_addr.c (in6addr_any): Rename to __in6addr_any and
16621         define as weak alias of __in6addr_any.  Use libc_hidden_data_weak.
16622         (in6addr_loopback): Rename to __in6addr_loopback and define as
16623         weak alias of __in6addr_loopback.  Use libc_hidden_data_weak.
16624         * include/netinet/in.h (__in6addr_loopback): Declare.  Use
16625         libc_hidden_proto.
16626         (__in6addr_any): Likewise.
16627         * inet/gethstbyad_r.c (PREPROCESS): Use __in6addr_any instead of
16628         in6addr_any.
16629         * conform/Makefile (test-xfail-XPG4/netdb.h/linknamespace): Remove
16630         variable.
16631         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
16632
16633 2015-06-17  Andrew Senkevich  <andrew.senkevich@intel.com>
16634
16635         * bits/libm-simd-decl-stubs.h: Added stubs for pow.
16636         * math/bits/mathcalls.h: Added pow declaration with __MATHCALL_VEC.
16637         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16638         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16639         redirections for pow.
16640         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16641         * sysdeps/x86_64/fpu/Versions: New versions added.
16642         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16643         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16644         build of SSE, AVX2 and AVX512 IFUNC versions.
16645         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Added 2 argument wrappers.
16646         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: New file.
16647         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core_sse4.S: New file.
16648         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: New file.
16649         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core_avx2.S: New file.
16650         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: New file.
16651         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core_avx512.S: New file.
16652         * sysdeps/x86_64/fpu/svml_d_pow2_core.S: New file.
16653         * sysdeps/x86_64/fpu/svml_d_pow4_core.S: New file.
16654         * sysdeps/x86_64/fpu/svml_d_pow4_core_avx.S: New file.
16655         * sysdeps/x86_64/fpu/svml_d_pow8_core.S: New file.
16656         * sysdeps/x86_64/fpu/svml_d_pow_data.S: New file.
16657         * sysdeps/x86_64/fpu/svml_d_pow_data.h: New file.
16658         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector pow test.
16659         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16660         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16661         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16662         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16663         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16664         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16665         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16666         * NEWS: Mention addition of x86_64 vector pow.
16667
16668         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16669         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16670         redirections for expf.
16671         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16672         * sysdeps/x86_64/fpu/Versions: New versions added.
16673         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16674         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16675         build of SSE, AVX2 and AVX512 IFUNC versions.
16676         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core.S: New file.
16677         * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core_avx512.S: New file.
16678         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core.S: New file.
16679         * sysdeps/x86_64/fpu/multiarch/svml_s_expf4_core_sse4.S: New file.
16680         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core.S: New file.
16681         * sysdeps/x86_64/fpu/multiarch/svml_s_expf8_core_avx2.S: New file.
16682         * sysdeps/x86_64/fpu/svml_s_expf16_core.S: New file.
16683         * sysdeps/x86_64/fpu/svml_s_expf4_core.S: New file.
16684         * sysdeps/x86_64/fpu/svml_s_expf8_core.S: New file.
16685         * sysdeps/x86_64/fpu/svml_s_expf8_core_avx.S: New file.
16686         * sysdeps/x86_64/fpu/svml_s_expf_data.S: New file.
16687         * sysdeps/x86_64/fpu/svml_s_expf_data.h: New file.
16688         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector expf tests.
16689         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16690         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16691         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16692         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16693         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16694         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16695         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16696         * NEWS: Mention addition of x86_64 vector expf.
16697
16698         * bits/libm-simd-decl-stubs.h: Added stubs for exp.
16699         * math/bits/mathcalls.h: Added exp declaration with __MATHCALL_VEC.
16700         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16701         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16702         redirections for exp.
16703         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16704         * sysdeps/x86_64/fpu/Versions: New versions added.
16705         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16706         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16707         build of SSE, AVX2 and AVX512 IFUNC versions.
16708         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: New file.
16709         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core_sse4.S: New file.
16710         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: New file.
16711         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core_avx2.S: New file.
16712         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: New file.
16713         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core_avx512.S: New file.
16714         * sysdeps/x86_64/fpu/svml_d_exp2_core.S: New file.
16715         * sysdeps/x86_64/fpu/svml_d_exp4_core.S: New file.
16716         * sysdeps/x86_64/fpu/svml_d_exp4_core_avx.S: New file.
16717         * sysdeps/x86_64/fpu/svml_d_exp8_core.S: New file.
16718         * sysdeps/x86_64/fpu/svml_d_exp_data.S: New file.
16719         * sysdeps/x86_64/fpu/svml_d_exp_data.h: New file.
16720         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector exp test.
16721         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16722         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16723         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16724         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16725         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16726         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16727         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16728         * NEWS: Mention addition of x86_64 vector exp.
16729
16730         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16731         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16732         redirections for logf.
16733         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16734         * sysdeps/x86_64/fpu/Versions: New versions added.
16735         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16736         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16737         build of SSE, AVX2 and AVX512 IFUNC versions.
16738         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core.S: New file.
16739         * sysdeps/x86_64/fpu/multiarch/svml_s_logf16_core_avx512.S: New file.
16740         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core.S: New file.
16741         * sysdeps/x86_64/fpu/multiarch/svml_s_logf4_core_sse4.S: New file.
16742         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core.S: New file.
16743         * sysdeps/x86_64/fpu/multiarch/svml_s_logf8_core_avx2.S: New file.
16744         * sysdeps/x86_64/fpu/svml_s_logf16_core.S: New file.
16745         * sysdeps/x86_64/fpu/svml_s_logf4_core.S: New file.
16746         * sysdeps/x86_64/fpu/svml_s_logf8_core.S: New file.
16747         * sysdeps/x86_64/fpu/svml_s_logf8_core_avx.S: New file.
16748         * sysdeps/x86_64/fpu/svml_s_logf_data.S: New file.
16749         * sysdeps/x86_64/fpu/svml_s_logf_data.h: New file.
16750         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector logf tests.
16751         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16752         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16753         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16754         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16755         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16756         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16757         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16758         * NEWS: Mention addition of x86_64 vector logf.
16759
16760         * bits/libm-simd-decl-stubs.h: Added stubs for log.
16761         * math/bits/mathcalls.h: Added log declaration with __MATHCALL_VEC.
16762         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16763         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration and asm
16764         redirections for log.
16765         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16766         * sysdeps/x86_64/fpu/Versions: New versions added.
16767         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16768         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16769         build of SSE, AVX2 and AVX512 IFUNC versions.
16770         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: New file.
16771         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core_sse4.S: New file.
16772         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: New file.
16773         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core_avx2.S: New file.
16774         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: New file.
16775         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core_avx512.S: New file.
16776         * sysdeps/x86_64/fpu/svml_d_log2_core.S: New file.
16777         * sysdeps/x86_64/fpu/svml_d_log4_core.S: New file.
16778         * sysdeps/x86_64/fpu/svml_d_log4_core_avx.S: New file.
16779         * sysdeps/x86_64/fpu/svml_d_log8_core.S: New file.
16780         * sysdeps/x86_64/fpu/svml_d_log_data.S: New file.
16781         * sysdeps/x86_64/fpu/svml_d_log_data.h: New file.
16782         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector log
16783         test.
16784         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16785         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16786         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16787         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
16788         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
16789         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
16790         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
16791         * NEWS: Mention addition of x86_64 vector log.
16792
16793 2015-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16794
16795         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Fix
16796         cfi_adjust_cfa_offset argument.
16797         (_dl_tlsdesc_undefweak, _dl_tlsdesc_dynamic): Likewise.
16798         (_dl_tlsdesc_resolve_rela, _dl_tlsdesc_resolve_hold): Likewise.
16799
16800         [BZ #18034]
16801         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Declare.
16802         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Define.
16803         (_dl_tlsdesc_undefweak): Guarantee TLSDESC entry and argument load-load
16804         ordering using ldar.
16805         (_dl_tlsdesc_dynamic): Likewise.
16806         (_dl_tlsdesc_return_lazy): Likewise.
16807         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Use
16808         relaxed atomics instead of volatile and synchronize with release store.
16809         (_dl_tlsdesc_resolve_hold_fixup): Use relaxed atomics instead of
16810         volatile.
16811         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
16812
16813 2015-06-15  Andrew Senkevich  <andrew.senkevich@intel.com>
16814
16815         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New symbols added.
16816         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for sinf.
16817         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16818         * sysdeps/x86_64/fpu/Versions: New versions added.
16819         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16820         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines): Added
16821         build of SSE, AVX2 and AVX512 IFUNC versions.
16822         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core.S: New file.
16823         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf16_core_avx512.S: New file.
16824         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core.S: New file.
16825         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf4_core_sse4.S: New file.
16826         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core.S: New file.
16827         * sysdeps/x86_64/fpu/multiarch/svml_s_sinf8_core_avx2.S: New file.
16828         * sysdeps/x86_64/fpu/svml_s_sinf16_core.S: New file.
16829         * sysdeps/x86_64/fpu/svml_s_sinf4_core.S: New file.
16830         * sysdeps/x86_64/fpu/svml_s_sinf8_core.S: New file.
16831         * sysdeps/x86_64/fpu/svml_s_sinf8_core_avx.S: New file.
16832         * sysdeps/x86_64/fpu/svml_s_sinf_data.S: New file.
16833         * sysdeps/x86_64/fpu/svml_s_sinf_data.h: New file.
16834         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: Vector sinf tests.
16835         * sysdeps/x86_64/fpu/test-float-vlen16.c: Likewise.
16836         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: Likewise.
16837         * sysdeps/x86_64/fpu/test-float-vlen4.c: Likewise.
16838         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: Likewise.
16839         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: Likewise.
16840         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: Likewise.
16841         * sysdeps/x86_64/fpu/test-float-vlen8.c: Likewise.
16842         * NEWS: Mention addition of x86_64 vector sinf.
16843
16844 2015-06-14  Joseph Myers  <joseph@codesourcery.com>
16845
16846         * conform/list-header-symbols.pl (%extra_syms): Add in6addr_any
16847         and in6addr_loopback for XOPEN2K, XOPEN2K8 and POSIX2008.
16848         * conform/Makefile (test-xfail-XOPEN2K/netdb.h/linknamespace):
16849         Remove variable.
16850         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
16851         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
16852
16853 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16854
16855         [BZ #18530]
16856         * libio/iofputs.c [!_IO_MTSAFE_IO] (__fputs_unlocked): Define as
16857         strong alias of _IO_fputs.  Use libc_hidden_def.
16858         * libio/iofputs_u.c (fputs_unlocked): Rename to __fputs_unlocked
16859         and define as weak alias of __fputs_unlocked.  Use
16860         libc_hidden_weak.
16861         * include/stdio.h (__fputs_unlocked): Declare.  Use
16862         libc_hidden_proto.
16863         * misc/syslog.c (__vsyslog_chk): Call __fputs_unlocked instead of
16864         fputs_unlocked.
16865
16866         [BZ #18529]
16867         * resolv/netdb.h [__USE_POSIX]: Change condition to
16868         [__USE_XOPEN2K].
16869         * conform/data/netdb.h-data [XPG4 || UNIX98] (struct addrinfo): Do
16870         not expect.
16871         [XPG4 || UNIX98] (AI_PASSIVE): Likewise.
16872         [XPG4 || UNIX98] (AI_CANONNAME): Likewise.
16873         [XPG4 || UNIX98] (AI_NUMERICHOST): Likewise.
16874         [XPG4 || UNIX98] (AI_V4MAPPED): Likewise.
16875         [XPG4 || UNIX98] (AI_ALL): Likewise.
16876         [XPG4 || UNIX98] (AI_ADDRCONFIG): Likewise.
16877         [XPG4 || UNIX98] (AI_NUMERICSERV): Likewise.
16878         [XPG4 || UNIX98] (NI_NOFQDN): Likewise.
16879         [XPG4 || UNIX98] (NI_NUMERICHOST): Likewise.
16880         [XPG4 || UNIX98] (NI_NAMEREQD): Likewise.
16881         [XPG4 || UNIX98] (NI_NUMERICSERV): Likewise.
16882         [XPG4 || UNIX98] (NI_DGRAM): Likewise.
16883         [XPG4 || UNIX98] (EAI_AGAIN): Likewise.
16884         [XPG4 || UNIX98] (EAI_BADFLAGS): Likewise.
16885         [XPG4 || UNIX98] (EAI_FAIL): Likewise.
16886         [XPG4 || UNIX98] (EAI_FAMILY): Likewise.
16887         [XPG4 || UNIX98] (EAI_MEMORY): Likewise.
16888         [XPG4 || UNIX98] (EAI_NONAME): Likewise.
16889         [XPG4 || UNIX98] (EAI_SERVICE): Likewise.
16890         [XPG4 || UNIX98] (EAI_SOCKTYPE): Likewise.
16891         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16892         [XPG4 || UNIX98] (EAI_SYSTEM): Likewise.
16893         [XPG4 || UNIX98] (freeaddrinfo): Likewise.
16894         [XPG4 || UNIX98] (gai_strerror): Likewise.
16895         [XPG4 || UNIX98] (getaddrinfo): Likewise.
16896         [XPG4 || UNIX98] (getnameinfo): Likewise.
16897
16898         [BZ #18528]
16899         * grp/grp.h (endgrent): Condition on [__USE_MISC ||
16900         __USE_XOPEN_EXTENDED], not [__USE_XOPEN_EXTENDED ||
16901         __USE_XOPEN2K8].
16902         (getgrent): Likewise.
16903         * conform/data/grp.h-data [XPG3 || POSIX2008] (getgrent): Do not
16904         expect.
16905         [XPG3 || POSIX2008] (endgrent): Likewise.
16906         [XPG3] (setgrent): Likewise.
16907         * conform/Makefile (test-xfail-XPG3/grp.h/conform): Remove
16908         variable.
16909         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
16910
16911         [BZ #18527]
16912         * login/getlogin_r.c (getlogin_r): Rename to __getlogin_r and
16913         define as weak alias of __getlogin_r.  Use libc_hidden_weak.
16914         * sysdeps/mach/hurd/getlogin_r.c (getlogin_r): Likewise.
16915         * sysdeps/unix/getlogin_r.c (getlogin_r): Likewise.
16916         * sysdeps/unix/sysv/linux/getlogin_r.c (getlogin_r): Likewise.
16917         * include/unistd.h (__getlogin_r): Declare.  Use
16918         libc_hidden_proto.
16919         * posix/glob.c (glob): Call __getlogin_r instead of getlogin_r.
16920         * conform/Makefile (test-xfail-XPG3/glob.h/linknamespace): Remove
16921         variable.
16922         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
16923         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
16924         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
16925
16926 2015-06-12  Martin Sebor  <msebor@redhat.com>
16927
16928         [BZ #18512]
16929         * Makerules (check-install-supported): New target.
16930         (install): Add check-install-supported as a dependency.
16931         * manual/install.texi (Installing the C Library): Document
16932         that overriding prefix and exec_prefix is not supported.
16933         Mention DESTDIR.
16934         * INSTALL: Regenerate from the above.
16935
16936 2015-06-12  Joseph Myers  <joseph@codesourcery.com>
16937
16938         [BZ #18519]
16939         * posix/Versions (libc): Export __libc_pread at version
16940         GLIBC_PRIVATE.
16941         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Call __libc_pread
16942         instead of pread.
16943         * conform/Makefile (test-xfail-POSIX/aio.h/linknamespace): Remove
16944         variable.
16945
16946         [BZ #18522]
16947         * misc/efgcvt_r.c
16948         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0) && !LONG_DOUBLE_CVT]
16949         (cvt_symbol): Use weak_alias instead of strong_alias.
16950         [LONG_DOUBLE_COMPAT (libc, GLIBC_2_0)] (cvt_symbol): Likewise.
16951         * conform/Makefile (test-xfail-XPG4/stdlib.h/linknamespace):
16952         Remove variable.
16953         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
16954         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
16955
16956         [BZ #18520]
16957         * inet/herrno.c (h_errno): Rename to __h_errno.
16958         (__libc_h_errno): Define as alias of __h_errno not h_errno.
16959         * include/netdb.h [IS_IN_LIB && !IS_IN (libc)] (h_errno): Define
16960         to __h_errno instead of h_errno.
16961         * nptl/herrno.c (h_errno): Rename to __h_errno.
16962         (__h_errno_location): Refer to __h_errno not h_errno.
16963         * resolv/Versions (h_errno): Rename to __h_errno.
16964         * conform/Makefile (test-xfail-XOPEN2K8/grp.h/linknamespace):
16965         Remove variable.
16966         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
16967
16968 2015-06-11  Andrew Senkevich  <andrew.senkevich@intel.com>
16969
16970         * configure.ac: More strict check for AVX512 assembler support.
16971         * configure: Regenerated.
16972
16973         * bits/libm-simd-decl-stubs.h: Added stubs for sin.
16974         * math/bits/mathcalls.h: Added sin declaration with __MATHCALL_VEC.
16975         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
16976         * sysdeps/x86/fpu/bits/math-vector.h: SIMD declaration for sin.
16977         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
16978         * sysdeps/x86_64/fpu/Versions: New versions added.
16979         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16980         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
16981         Added build of SSE, AVX2 and AVX512 IFUNC versions.
16982         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: New file.
16983         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core_sse4.S: New file.
16984         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: New file.
16985         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core_avx2.S: New file.
16986         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: New file.
16987         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core_avx512.S: New file.
16988         * sysdeps/x86_64/fpu/svml_d_sin2_core.S: New file.
16989         * sysdeps/x86_64/fpu/svml_d_sin4_core.S: New file.
16990         * sysdeps/x86_64/fpu/svml_d_sin4_core_avx.S: New file.
16991         * sysdeps/x86_64/fpu/svml_d_sin8_core.S: New file.
16992         * sysdeps/x86_64/fpu/svml_d_sin_data.S: New file.
16993         * sysdeps/x86_64/fpu/svml_d_sin_data.h: New file.
16994         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: Added vector sin
16995         test.
16996         * sysdeps/x86_64/fpu/test-double-vlen2.c: Likewise.
16997         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: Likewise.
16998         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: Likewise.
16999         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: Likewise.
17000         * sysdeps/x86_64/fpu/test-double-vlen4.c: Likewise.
17001         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: Likewise.
17002         * sysdeps/x86_64/fpu/test-double-vlen8.c: Likewise.
17003         * NEWS: Mention addition of x86_64 vector sin.
17004
17005 2015-06-11  Florian Weimer  <fweimer@redhat.com>
17006
17007         * nptl/pthread_key_create.c (__pthread_key_create): Fix typo in
17008         comment.
17009
17010 2015-06-10  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>
17011
17012         [BZ #18479]
17013         * nptl/pt-interp.c: New file.
17014         * nptl/Makefile (libpthread-routines, libpthread-shared-only-routines):
17015         Add pt-interp.
17016         [[$(build-shared) = yes] ($(objpfx)pt-interp.os): Depend on
17017         $(common-objpfx)runtime-linker.h.
17018
17019 2015-06-10  Dmitry V. Levin  <ldv@altlinux.org>
17020
17021         * Makeconfig (+interp): Remove unused variable.
17022         * elf/Makefile ($(objpfx)interp.os): Define for [$(build-shared) = yes]
17023         only.  Depend on $(common-objpfx)runtime-linker.h instead of
17024         $(elf-objpfx)runtime-linker.h.
17025         ($(elf-objpfx)runtime-linker.h): Rename to
17026         $(common-objpfx)runtime-linker.h and move ...
17027         * Makerules [$(build-shared) = yes]: ... here.
17028         * elf/interp.c: Include <runtime-linker.h> instead of
17029         <elf/runtime-linker.h>.
17030
17031 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17032
17033         * sysdeps/unix/sysv/linux/i386/gettimeofday.c
17034         (__gettimeofday_syscall): Remove vsyscall fallback.
17035         * sysdeps/unix/sysv/linux/i386/time.c (__time_syscall): Likewise.
17036         * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday_syscall):
17037         Add syscall fallback function.
17038         (gettimeofday_ifunc): Use __gettimeofday_syscall as fallback mechanism
17039         if vDSO is not present.
17040         * sysdeps/unix/sysv/linux/x86/time.c (__time_syscall): Add syscall
17041         fallback function.
17042         (time_ifunc): Use __time_syscall as fallback mechanism if vDSO is not
17043         present.
17044         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Remove file.
17045         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
17046
17047 2015-06-09  Joseph Myers  <joseph@codesourcery.com>
17048
17049         [BZ #18497]
17050         * wcsmbs/wcscmp.c [!WCSCMP] (WCSCMP): Define as __wcscmp instead
17051         of wcscmp.
17052         (wcscmp): Define as weak alias of WCSCMP.
17053         * wcsmbs/wcscoll.c (STRCOLL): Define as __wcscoll instead of
17054         wcscoll.
17055         (USE_HIDDEN_DEF): Define.
17056         [!USE_IN_EXTENDED_LOCALE_MODEL] (wcscoll): Define as weak alias of
17057         __wcscoll.  Don't use libc_hidden_weak.
17058         * wcsmbs/wcscoll_l.c (STRCMP): Define as __wcscmp instead of
17059         wcscmp.
17060         * sysdeps/i386/i686/multiarch/wcscmp-c.c
17061         [SHARED] (libc_hidden_def): Define __GI___wcscmp instead of
17062         __GI_wcscmp.
17063         (weak_alias): Undefine and redefine.
17064         * sysdeps/i386/i686/multiarch/wcscmp.S (wcscmp): Rename to
17065         __wcscmp and define as weak alias of __wcscmp.
17066         * sysdeps/x86_64/wcscmp.S (wcscmp): Likewise.
17067         * include/wchar.h (__wcscmp): Declare.  Use libc_hidden_proto.
17068         (__wcscoll): Likewise.
17069         (wcscmp): Don't use libc_hidden_proto.
17070         (wcscoll): Likewise.
17071         * posix/regcomp.c (build_range_exp): Call __wcscoll instead of
17072         wcscoll.
17073         * posix/regexec.c (check_node_accept_bytes): Likewise.
17074         * conform/Makefile (test-xfail-XPG3/regex.h/linknamespace): Remove
17075         variable.
17076         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
17077         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
17078
17079         [BZ #18507]
17080         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
17081         __fstatvfs and define as weak alias of __fstatvfs.  Use
17082         libc_hidden_weak.
17083         * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
17084         and define as weak alias of __statvfs.  Use libc_hidden_weak.
17085         * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
17086         Define as alias of __fstatvfs, not fstatvfs.
17087         (fstatvfs64): Likewise.
17088         * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
17089         Define as alias of __statvfs, not statvfs.
17090         (statvfs64): Likewise.
17091         * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
17092         Remove variable.
17093
17094 2015-06-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17095
17096         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17097         (HAVE_GETCPU_VSYSCALL): Define.
17098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17099         (HAVE_GETCPU_VSYSCALL): Likewise.
17100         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Remove file.
17101         * sysdeps/unix/sysv/linux/sched_getcpu.c
17102         (HAVE_VSYSCALL) [HAVE_GETCPU_VSYSCALL]: Define.
17103         (sched_getcpu): Use INLINE_VSYSCALL instead of INLINE_SYSCALL.
17104         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (getcpu): Add vDSO
17105         prototype.
17106         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17107         (__vdso_platform_setup): Remove vsyscall getcpu fallback.
17108         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Remove file.
17109         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (HAVE_GETCPU_VSYSCALL):
17110         Define.
17111         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: Remove file.
17112         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
17113         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c: Likewise.
17114         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
17115
17116 2015-06-09  Andrew Senkevich  <andrew.senkevich@intel.com>
17117
17118         * sysdeps/x86_64/fpu/Makefile: New file.
17119         * sysdeps/x86_64/fpu/Versions: New file.
17120         * sysdeps/x86_64/fpu/svml_d_cos_data.S: New file.
17121         * sysdeps/x86_64/fpu/svml_d_cos_data.h: New file.
17122         * sysdeps/x86_64/fpu/svml_d_cos2_core.S: New file.
17123         * sysdeps/x86_64/fpu/svml_d_cos4_core.S: New file.
17124         * sysdeps/x86_64/fpu/svml_d_cos4_core_avx.S: New file.
17125         * sysdeps/x86_64/fpu/svml_d_cos8_core.S: New file.
17126         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: New file.
17127         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: New file.
17128         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core_sse4.S: New file.
17129         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: New file.
17130         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core_avx2.S: New file.
17131         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: New file.
17132         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core_avx512.S: New file.
17133         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
17134         Added build of SSE, AVX2 and AVX512 IFUNC versions.
17135         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cos.
17136         * math/bits/mathcalls.h: Added cos declaration with __MATHCALL_VEC.
17137         * sysdeps/x86_64/configure.ac: Options for libmvec build.
17138         * sysdeps/x86_64/configure: Regenerated.
17139         * sysdeps/x86_64/sysdep.h (cfi_offset_rel_rsp): New macro.
17140         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New file.
17141         * manual/install.texi (Configuring and compiling): Document
17142         --disable-mathvec.
17143         * INSTALL: Regenerated.
17144         * NEWS: Mention addition of libmvec and x86_64 vector cos.
17145
17146         * math/Makefile: Added rules for vector tests.
17147         * math/gen-libm-have-vector-test.sh: Added generation of wrapper
17148         declaration under condition.
17149         * math/test-double-vlen2.h: New file.
17150         * math/test-double-vlen4.h: New file.
17151         * math/test-double-vlen8.h: New file.
17152         * math/test-vec-loop.h: Added initialization macro.
17153         * sysdeps/x86_64/fpu/Makefile: Added variables for vector tests.
17154         * sysdeps/x86_64/fpu/libm-test-ulps: Regenarated.
17155         * sysdeps/x86_64/fpu/math-tests-arch.h: New file.
17156         * sysdeps/x86_64/fpu/test-double-vlen2-wrappers.c: New file.
17157         * sysdeps/x86_64/fpu/test-double-vlen2.c: New file.
17158         * sysdeps/x86_64/fpu/test-double-vlen4-avx2-wrappers.c: New file.
17159         * sysdeps/x86_64/fpu/test-double-vlen4-avx2.c: New file.
17160         * sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: New file.
17161         * sysdeps/x86_64/fpu/test-double-vlen4.c: New file.
17162         * sysdeps/x86_64/fpu/test-double-vlen8-wrappers.c: New file.
17163         * sysdeps/x86_64/fpu/test-double-vlen8.c: New file.
17164
17165         * sysdeps/x86_64/fpu/Makefile (libmvec-support): Added new files.
17166         * sysdeps/x86_64/fpu/Versions: New versions added.
17167         * sysdeps/x86_64/fpu/svml_s_cosf4_core.S: New file.
17168         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core.S: New file.
17169         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf4_core_sse4.S: New file.
17170         * sysdeps/x86_64/fpu/svml_s_cosf8_core_avx.S: New file.
17171         * sysdeps/x86_64/fpu/svml_s_cosf8_core.S: New file.
17172         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core.S: New file.
17173         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf8_core_avx2.S: New file.
17174         * sysdeps/x86_64/fpu/svml_s_cosf16_core.S: New file.
17175         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core.S: New file.
17176         * sysdeps/x86_64/fpu/multiarch/svml_s_cosf16_core_avx512.S: New file.
17177         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: New file.
17178         * sysdeps/x86_64/fpu/svml_s_cosf_data.S: New file.
17179         * sysdeps/x86_64/fpu/svml_s_cosf_data.h: New file.
17180         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines):
17181         Added build of SSE, AVX2 and AVX512 IFUNC versions.
17182         * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: New versions added.
17183         * sysdeps/x86/fpu/bits/math-vector.h: Added SIMD declaration for cosf.
17184         * NEWS: Mention addition of x86_64 vector cosf.
17185
17186         * math/Makefile: Added CFLAGS for new tests.
17187         * math/test-float-vlen16.h: New file.
17188         * math/test-float-vlen4.h: New file.
17189         * math/test-float-vlen8.h: New file.
17190         * math/test-double-vlen2.h: Fixed 2 argument macro and comment.
17191         * sysdeps/x86_64/fpu/Makefile: Added new tests and variables.
17192         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
17193         * sysdeps/x86_64/fpu/test-float-vlen16-wrappers.c: New file.
17194         * sysdeps/x86_64/fpu/test-float-vlen16.c: New file.
17195         * sysdeps/x86_64/fpu/test-float-vlen4-wrappers.c: New file.
17196         * sysdeps/x86_64/fpu/test-float-vlen4.c: New file.
17197         * sysdeps/x86_64/fpu/test-float-vlen8-avx2-wrappers.c: New file.
17198         * sysdeps/x86_64/fpu/test-float-vlen8-avx2.c: New file.
17199         * sysdeps/x86_64/fpu/test-float-vlen8-wrappers.c: New file.
17200         * sysdeps/x86_64/fpu/test-float-vlen8.c: New file.
17201
17202 2015-06-09 Marko Myllynen  <myllynen@redhat.com>
17203
17204         * locale/C-ctype.c (PREDEFINED_CLASSES): Remove.
17205         * locale/programs/ld-ctype.c: Likewise.
17206
17207 2015-06-08  Andrew Senkevich  <andrew.senkevich@intel.com>
17208
17209         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX512F_Usable,
17210         bit_AVX512DQ_Usable, bit_Opmask_state, bit_ZMM0_15_state,
17211         bit_ZMM16_31_state): New macro.
17212         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17213         Check and set bit_AVX512F_Usable, bit_AVX512DQ_Usable.
17214
17215 2015-06-08  Joseph Myers  <joseph@codesourcery.com>
17216
17217         * include/stdio.h (__open_memstream): Say "C++ tests" in comment.
17218
17219 2015-06-06  Justus Winter  <4winter@informatik.uni-hamburg.de>
17220
17221         * mach/mach/mach_traps.h (thread_switch): Fix typo in comment.
17222
17223 2015-06-05  Joseph Myers  <joseph@codesourcery.com>
17224
17225         [BZ #18498]
17226         * libio/memstream.c (open_memstream): Rename to __open_memstream
17227         and define as weak alias of __open_memstream.
17228         * include/stdio.h (__open_memstream): Declare.  Use
17229         libc_hidden_proto.
17230         (open_memstream): Don't use libc_hidden_proto.
17231         * misc/syslog.c (__vsyslog_chk): Call __open_memstream instead of
17232         open_memstream.
17233         * posix/getopt.c (_getopt_internal_r): Likewise.
17234         * conform/Makefile (test-xfail-XPG3/stdio.h/linknamespace): Remove
17235         variable.
17236         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
17237         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
17238         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
17239
17240         [BZ #18496]
17241         * posix/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
17242         instead of wcrtomb.
17243
17244         [BZ #18483]
17245         * signal/signal.h [__USE_XOPEN2K] (psignal): Change condition to
17246         [__USE_XOPEN2K8].  Remove redundant #endif.
17247         [__USE_XOPEN2K] (psiginfo): Change condition to [__USE_XOPEN2K8].
17248         Remove redundant #if.
17249         * conform/Makefile (test-xfail-XOPEN2K/signal.h/linknamespace):
17250         Remove variable.
17251         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
17252         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
17253
17254         [BZ #18495]
17255         * wctype/wcfuncs.c (__iswalnum): Use libc_hidden_def.
17256         (__iswlower): Likewise.
17257         * include/wctype.h (__iswalnum): Declare.  Use libc_hidden_proto.
17258         (__iswlower): Likewise.
17259         * posix/regcomp.c (re_compile_fastmap_iter): Call __towlower
17260         instead of towlower.
17261         * posix/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
17262         instead of iswlower.  Call __towupper instead of towupper.
17263         * posix/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
17264         instead of iswalnum.
17265
17266 2015-06-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17267
17268         * malloc/tst-malloc-backtrace.c (do_test): Redirect libc fatal
17269         errors to stderr.
17270
17271 2015-06-05  Florian Weimer  <fweimer@redhat.com>
17272
17273         [BZ #15661]
17274         [BZ #17322]
17275         * sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
17276         Check for overflow properly.  Check for O_APPEND.  Ignore large
17277         file system block sizes.  Add comments about problems.
17278         * sysdeps/posix/posix_fallocate.c (posix_fallocate): Likewise.
17279         * manual/filesys.texi (Storage Allocation): New node.
17280
17281 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17282
17283         * sysdeps/unix/sysdep.h [SYSCALL_CANCEL]: New macro: define
17284         cancellable syscalls.
17285         (SYS_ify): Add guard to no redefine it.
17286         (INLINE_SYSCALL): Likewise.
17287         * sysdeps/unix/sysv/linux/accept4.c (accept4): Remove
17288         LIBC_CANCEL_ASYNC/INLINE_SYSCALL/LIBC_CANCEL_RESET and use
17289         SYSCALL_CANCEL instead.
17290         * sysdeps/unix/sysv/linux/alpha/fdatasync.c (__fdatasync): Likewise.
17291         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
17292         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
17293         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
17294         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
17295         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Likewise.
17296         * sysdeps/unix/sysv/linux/fallocate.c (fallocate): Likewise.
17297         * sysdeps/unix/sysv/linux/fallocate64.c (fallocate64): Likewise.
17298         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
17299         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
17300         * sysdeps/unix/sysv/linux/generic/pause.c (__libc_pause): Likewise.
17301         * sysdeps/unix/sysv/linux/generic/poll.c (__poll): Likewise.
17302         * sysdeps/unix/sysv/linux/generic/recv.c (__libc_recv): Likewise.
17303         * sysdeps/unix/sysv/linux/generic/select.c (__select): Likewise.
17304         * sysdeps/unix/sysv/linux/generic/send.c (__libc_send): Likewise.
17305         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
17306         Likewise.
17307         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
17308         (__libc_pread64): Likewise.
17309         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c
17310         (__libc_preadv): Likewise.
17311         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c
17312         (__libc_readv64): Likewise.
17313         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
17314         (__libc_pwrite): Likewise.
17315         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
17316         (__libc_pwrite64): Likewise.
17317         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c
17318         (__libc_pwritev): Likewise.
17319         * sysdeps/sysv/linux/generic/wordsize-32/pwritev64.c
17320         (__libc_pwritev64): Likewise.
17321         * sysdeps/unix/sysv/linux/i386/fcntl.c (__libc_fcntl): Likewise.
17322         * sysdeps/unix/sysv/linux/mips/mips32/sync_file_range.c
17323         (sync_file_range): Likewise.
17324         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate.c (fallocate):
17325         Likewise.
17326         * sysdeps/unix/sysv/linux/mips/mips64/n32/fallocate64.c (fallocate64):
17327         Likewise.
17328         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
17329         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
17330         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
17331         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
17332         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
17333         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
17334         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
17335         * sysdeps/unix/sysv/linux/openat.c (__libc_openat): Likewise.
17336         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
17337         Likewise.
17338         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
17339         (__libc_read64): Likewise.
17340         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_write):
17341         Likewise.
17342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c (__libc_write64):
17343         Likewise.
17344         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c (__libc_fcntl):
17345         Likewise.
17346         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c (__libc_pread):
17347         Likewise.
17348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
17349         (__libc_pread64): Likewise.
17350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c (__libc_pwrite):
17351         Likewise.
17352         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
17353         (__libc_pwrite64): Likewise.
17354         * sysdeps/sysv/linux/powerpc/powerpc64/sync_file_range.c
17355         (sync_file_range): Likewise.
17356         * sysdeps/unix/sysv/linux/ppoll.c (ppoll): Likewise.
17357         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
17358         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
17359         * sysdeps/unix/sysv/linux/preadv.c (__libc_preadv): Likewise.
17360         * sysdeps/unix/sysv/linux/pselect.c (__pselect): Likewise.
17361         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
17362         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
17363         * sysdeps/unix/sysv/linux/pwritev.c (PWRITEV): Likewise.
17364         * sysdeps/unix/sysv/linux/readv.c (__libc_readv): Likewise.
17365         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
17366         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
17367         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
17368         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
17369         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
17370         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_pwrite64): Likewise.
17371         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
17372         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
17373         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
17374         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
17375         Likewise.
17376         * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
17377         Likewise.
17378         * sysdeps/unix/sysv/linux/tcdrain.c (__libc_tcdrain): Likewise.
17379         * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
17380         Likewise.
17381         * sysdeps/unix/sysv/linux/wait.c (__libc_wait): Likewise.
17382         * sysdeps/unix/sysv/linux/waitid.c (__waitid): Likewise.
17383         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Likewise.
17384         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c (fallocate):
17385         Likewise.
17386         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c (preadv): Likewise.
17387         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c (pwritev): Likewise.
17388         * sysdeps/unix/sysv/linux/writev.c (__libc_writev): Likewise.
17389         * sysdeps/unix/sysv/linux/x86_64/recv.c (__libc_recv): Likewise.
17390         * sysdeps/unix/sysv/linux/x86_64/send.c (__libc_send): Likewise.
17391
17392 2015-06-04  Nathan Lynch  <nathan_lynch@codesourcery.com>
17393
17394         * sysdeps/unix/sysv/linux/arm/Makefile: (sysdep_routines):
17395         Include dl-vdso.
17396         * sysdeps/unix/sysv/linux/arm/init-first.c: New file:
17397         Use VDSO routines for gettimeofday, clock_gettime if
17398         available.
17399         * sysdeps/unix/sysv/linux/arm/libc-vdso.h: New file:
17400         Declare VDSO symbols.
17401         * sysdeps/unix/sysv/linux/arm/sysdep.h:
17402         [HAVE_GETTIMEOFDAY_VSYSCALL]: Define.
17403         [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17404         * sysdeps/unix/sysv/linux/arm/Versions: Add
17405         __vdso_clock_gettime.
17406
17407 2015-06-04  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17408
17409         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Rewrite to
17410         be an inline implementation regardless of library is built within.
17411         (open_not_cancel_2): Likewise.
17412         (__read_nocancel): Likewise.
17413         (__write_nocancel): Likewise.
17414         (openat_not_cancel): Likewise.
17415         (openat_not_cancel_3): Likewise.
17416         (openat64_not_cancel): Likewise.
17417         (openat64_not_cancel_3): Likewise.
17418         (__close_nocancel): Likewise.
17419         (pause_not_cancel): Likewise.
17420         (nanosleep_not_cancel): Likewise.
17421         (sigsuspend_not_cancel): Likewise.
17422
17423 2015-06-04  Torvald Riegel  <triegel@redhat.com>
17424
17425         [BZ #14958]
17426         * nptl/pthread_rwlock_rdlock.c (__pthread_rwlock_rdlock): Add missing
17427         wake-up.
17428         (__pthread_rwlock_rdlock_slow): Likewise.
17429         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
17430         Likewise.
17431         * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
17432         Likewise.
17433         * nptl/pthread_rwlock_unlock.c (__pthread_rwlock_unlock): Add comments.
17434         * nptl/tst-rwlock16.c: New file.
17435         * nptl/Makefile (tests): Add new test.
17436
17437 2015-06-04  Torvald Riegel  <triegel@redhat.com>
17438
17439         [BZ #18324]
17440         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock): Add
17441         missing wake-up of readers.
17442         * nptl/tst-rwlock15.c: New file.
17443         * nptl/Makefile (tests): Add new test.
17444
17445 2015-06-03  Roland McGrath  <roland@hack.frob.com>
17446
17447         * sysdeps/nacl/nacl-interfaces.c (try_supply): New static function.
17448         (PASTE_NAME (__nacl_supply_interface_, MODULE_NAME)): New function.
17449         * sysdeps/nacl/nacl-interfaces.h: Declare __nacl_supply_interface_libc
17450         and __nacl_supply_interface_rtld.
17451         * sysdeps/nacl/nacl_interface_ext_supply.c: New file.
17452         * sysdeps/nacl/Makefile [$(subdir) = csu] (sysdep_routines): Add it.
17453         * sysdeps/nacl/Versions (ld: GLIBC_PRIVATE):
17454         Add __nacl_supply_interface_rtld.
17455         (libc: GLIBC_2.22): Add nacl_interface_ext_supply.
17456
17457 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17458
17459         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
17460         isfinite.
17461         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
17462         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
17463
17464 2015-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
17465
17466         * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
17467         __signbit* with standard C99 macros.
17468         * math/e_exp10l.c: Likewise.
17469         * math/e_exp2l.c: Likewise.
17470         * math/e_scalb.c: Likewise.
17471         * math/e_scalbf.c: Likewise.
17472         * math/e_scalbl.c: Likewise.
17473         * math/s_ldexp.c: Likewise.
17474         * math/s_ldexpf.c: Likewise.
17475         * math/s_ldexpl.c: Likewise.
17476         * math/w_atan2.c: Likewise.
17477         * math/w_atan2f.c: Likewise.
17478         * math/w_atan2l.c: Likewise.
17479         * math/w_cosh.c: Likewise.
17480         * math/w_coshf.c: Likewise.
17481         * math/w_coshl.c: Likewise.
17482         * math/w_exp10.c: Likewise.
17483         * math/w_exp10f.c: Likewise.
17484         * math/w_exp10l.c: Likewise.
17485         * math/w_exp2.c: Likewise.
17486         * math/w_exp2f.c: Likewise.
17487         * math/w_exp2l.c: Likewise.
17488         * math/w_fmod.c: Likewise.
17489         * math/w_fmodf.c: Likewise.
17490         * math/w_fmodl.c: Likewise.
17491         * math/w_hypot.c: Likewise.
17492         * math/w_hypotf.c: Likewise.
17493         * math/w_hypotl.c: Likewise.
17494         * math/w_jnl.c: Likewise.
17495         * math/w_lgamma.c: Likewise.
17496         * math/w_lgamma_r.c: Likewise.
17497         * math/w_lgammaf.c: Likewise.
17498         * math/w_lgammaf_r.c: Likewise.
17499         * math/w_lgammal.c: Likewise.
17500         * math/w_lgammal_r.c: Likewise.
17501         * math/w_pow.c: Likewise.
17502         * math/w_powf.c: Likewise.
17503         * math/w_powl.c: Likewise.
17504         * math/w_remainder.c: Likewise.
17505         * math/w_remainderf.c: Likewise.
17506         * math/w_remainderl.c: Likewise.
17507         * math/w_scalb.c: Likewise.
17508         * math/w_scalbf.c: Likewise.
17509         * math/w_scalbl.c: Likewise.
17510         * math/w_scalbln.c: Likewise.
17511         * math/w_scalblnf.c: Likewise.
17512         * math/w_scalblnl.c: Likewise.
17513         * math/w_sinh.c: Likewise.
17514         * math/w_sinhf.c: Likewise.
17515         * math/w_sinhl.c: Likewise.
17516         * math/w_tgamma.c: Likewise.
17517         * math/w_tgammaf.c: Likewise.
17518         * math/w_tgammal.c: Likewise.
17519         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17520         * sysdeps/ieee754/dbl-64/e_exp10.c: Likewise.
17521         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17522         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17523         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17524         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17525         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
17526         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17527         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17528         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17529         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17530         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
17531         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17532         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17533         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17534         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17535         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17536         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
17537         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
17538         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17539         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17540         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
17541         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17542         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17543         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
17544         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
17545         * sysdeps/ieee754/ldbl-128ibm/w_expl.c: Likewise.
17546         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17547         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17548         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17549         * sysdeps/ieee754/ldbl-opt/nldbl-finite.c: Likewise.
17550         * sysdeps/ieee754/ldbl-opt/nldbl-isinf.c: Likewise.
17551         * sysdeps/ieee754/ldbl-opt/nldbl-isnan.c: Likewise.
17552         * sysdeps/ieee754/ldbl-opt/nldbl-signbit.c: Likewise.
17553         * stdio-common/printf_fp.c: Likewise.
17554         * stdio-common/printf_fphex.c: Likewise.
17555         * stdio-common/printf_size.c: Likewise.
17556
17557 2015-06-03  Joseph Myers  <joseph@codesourcery.com>
17558
17559         [BZ #18470]
17560         * posix/fnmatch.c (fnmatch) [_LIBC]: Call __strnlen instead of
17561         strnlen.
17562         * conform/Makefile (test-xfail-XPG3/fnmatch.h/linknamespace):
17563         Remove variable.
17564         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
17565         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
17566         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
17567         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
17568         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
17569         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
17570         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
17571         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
17572         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
17573         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
17574
17575         [BZ #18468]
17576         * wcsmbs/wmemchr.c (wmemchr): Rename to __wmemchr and define as
17577         weak alias of __wmemchr.  Use libc_hidden_weak.
17578         * include/wchar.h (__wmemchr): Declare.  Use libc_hidden_proto.
17579         * posix/fnmatch.c [HANDLE_MULTIBYTE] (MEMCHR): Use __wmemchr
17580         instead of wmemchr.
17581
17582 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17583
17584         [BZ #18383]
17585         * elf/tst-tlsalign-extern.c: New file.
17586         * elf/tst-tlsalign-extern-static.c: New file.
17587         * elf/tst-tlsalign-vars.c: New file.
17588         * elf/Makefile (tests-static): Add tst-tlsalign-extern-static.
17589         [$(build-shared) = yes] (tests): Add tst-tlsalign-extern.
17590         ($(objpfx)tst-tlsalign-extern): Depend on tst-tlsalign-vars.o.
17591         ($(objpfx)tst-tlsalign-extern-static): Likewise.
17592         (test-xfail-tst-tlsalign-extern-static): New variable.
17593
17594 2015-06-02  Joseph Myers  <joseph@codesourcery.com>
17595
17596         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
17597         Use variable name _sc_err instead of err.
17598         [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
17599         instead of ret.
17600         * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
17601         (INLINE_SYSCALL): Use variable name _sc_err instead of err.
17602         * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
17603         (INLINE_SYSCALL): Likewise.
17604
17605         * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def.
17606         * include/string.h (__strnlen): Use libc_hidden_proto.
17607         * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def.
17608         * sysdeps/i386/i686/multiarch/strnlen-c.c [SHARED]
17609         (libc_hidden_def): Define __GI___strnlen as well as __GI_strnlen.
17610         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-power7.S
17611         (libc_hidden_def): Undefine and redefine.
17612         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c
17613         [SHARED] (libc_hidden_def): Define __GI___strnlen as well as
17614         __GI_strnlen.
17615         * sysdeps/powerpc/powerpc32/power7/strnlen.S (__strnlen): Use
17616         libc_hidden_def.
17617         * sysdeps/tile/tilegx/strnlen.c (__strnlen): Likewise.
17618
17619         [BZ #18469]
17620         * wctype/wcfuncs.c (towlower): Rename to __towlower and define as
17621         weak alias of __towlower.  Use libc_hidden_weak.
17622         (towupper): Rename to __towupper and define as weak alias of
17623         __towupper.  Use libc_hidden_weak.
17624         * include/wctype.h (__towlower): Declare.  Use libc_hidden_proto.
17625         (__towupper): Likewise.
17626         * posix/fnmatch.c [HANDLE_MULTIBYTE && _LIBC] (FOLD): Use
17627         __towlower instead of towlower.
17628
17629 2015-06-02  Roland McGrath  <roland@hack.frob.com>
17630
17631         * stdlib/setenv.c [__GNUC__,__GNUC_MINOR__ < 4,7]: Use
17632         "-Wuninitialized" rather than "-Wmaybe-uninitialized" in pragma.
17633
17634 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17635
17636         * sysdeps/aarch64/libm-test-ulps: Update.
17637
17638 2015-06-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17639
17640         * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL):
17641         Define.
17642         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17643         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
17644         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17645         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17646         * sysdeps/unix/sysv/linux/timespec_get.c: Include errno.h.
17647         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: Remove file.
17648         * sysdeps/unix/sysv/linux/x86/timespec_get.c: Likewise.
17649
17650 2015-06-01  Martin Sebor  <msebor@redhat.com>
17651
17652         [BZ #18116]
17653         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
17654         (__setcontext): Use extended four-operand version of mtsf whenever
17655         possible.
17656         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
17657         (__novec_swapcontext): Likewise.
17658
17659 2015-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
17660
17661         * benchtests/scripts/compare_bench.py: New file.
17662         * benchtests/scripts/import_bench.py (mean): New function.
17663         (split_list): Likewise.
17664         (do_for_all_timings): Likewise.
17665         (compress_timings): Likewise.
17666
17667         * benchtests/scripts/import_bench.py: New file.
17668         * benchtests/scripts/validate_benchout.py: Import import_bench
17669         instead of jsonschema.
17670         (validate_bench): Remove function.
17671         (main): Use import_bench.
17672
17673 2015-06-01  Steve Ellcey  <sellcey@imgtec.com>
17674
17675         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Use a union to
17676         copy data from cur_ifr->ifr_addr and cur_ifr->ifr_netmask.
17677
17678 2015-05-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17679
17680         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17681
17682 2015-05-28  Roland McGrath  <roland@hack.frob.com>
17683
17684         * sysdeps/nacl/exit-thread.h (__exit_thread): If not detached,
17685         set THREAD_SELF->tid to a magic value and futex-wake it.
17686         Pass its address to the thread_exit system call.
17687         * sysdeps/nacl/pthread-pids.h (__nacl_get_tid): Assert that TID's low
17688         bit is clear.
17689         * sysdeps/nacl/lowlevellock.h: New file.
17690         * sysdeps/nacl/lll_timedwait_tid.c: New file.
17691
17692         * sysdeps/nacl/lowlevellock-futex.h (lll_futex_timed_wait):
17693         Add TIMEOUT to current time, don't subtract it.
17694
17695 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
17696
17697         [BZ #2981]
17698         [BZ #18422]
17699         * Makefile ($(objpfx)tst-audit2): Depend on $(libdl).
17700         ($(objpfx)tst-audit2.out): Also depend on
17701         $(objpfx)tst-auditmod9b.so.
17702         * elf/tst-audit2.c: Include <dlfcn.h>.
17703         (calloc_called): New.
17704         (calloc): Allow to be called more than once.
17705         (do_test): dllopen/dlclose $ORIGIN/tst-auditmod9b.so.
17706
17707 2015-05-28  Wilco Dijkstra  <wdijkstr@arm.com>
17708
17709         * sysdeps/ieee754/dbl-64/s_fabs.c: (__fabs): Call __builtin_fabs.
17710         * sysdeps/ieee754/flt-32/s_fabsf.c: (__fabsf): Likewise.
17711
17712 2015-05-27  Marko Myllynen  <myllynen@redhat.com>
17713
17714         * stdlib/monetary.h: Fix comment.
17715
17716 2015-05-26  Chris Metcalf  <cmetcalf@ezchip.com>
17717
17718         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_SYSCALL):
17719         Avoid using variables in #defines that might cause shadowing.
17720         (INTERNAL_VSYSCALL_CALL): Likewise.
17721
17722 2015-05-26  Roland McGrath  <roland@hack.frob.com>
17723
17724         * sysdeps/nacl/lll_timedlock_wait.c: New file.
17725
17726         * nptl/lowlevellock.c (__lll_timedlock_wait): Moved ...
17727         * nptl/lll_timedlock_wait.c: ... to this new file.
17728         * nptl/Makefile (libpthread-routines): Add it.
17729         * nptl/lowlevellock.c (__lll_timedwait_tid): Moved ...
17730         * nptl/lll_timedwait_tid.c: ... to this new file.
17731         * nptl/Makefile (libpthread-routines): Add it.
17732         * sysdeps/sparc/sparc32/lll_timedlock_wait.c: New file.
17733         * sysdeps/sparc/sparc32/lll_timedwait_tid.c: New file.
17734         * sysdeps/unix/sysv/linux/i386/i486/lll_timedlock_wait.c: New file.
17735         * sysdeps/unix/sysv/linux/i386/i586/lll_timedlock_wait.c: New file.
17736         * sysdeps/unix/sysv/linux/i386/i686/lll_timedlock_wait.c: New file.
17737         * sysdeps/unix/sysv/linux/i386/i486/lll_timedwait_tid.c: New file.
17738         * sysdeps/unix/sysv/linux/i386/i586/lll_timedwait_tid.c: New file.
17739         * sysdeps/unix/sysv/linux/i386/i686/lll_timedwait_tid.c: New file.
17740         * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: New file.
17741         * sysdeps/unix/sysv/linux/x86_64/lll_timedwait_tid.c: New file.
17742
17743 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17744
17745         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: Remove file.
17746         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
17747         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
17748         * sysdeps/unix/sysv/linux/aarch64/sysdep.h
17749         (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
17750         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17751         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17752         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17753         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17754         * sysdeps/unix/sysv/linux/tile/sysdep.h
17755         (HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
17756         * sysdeps/unix/sysv/linux/gettimeofday.c: New file: gettimeofday
17757         using vDSO syscall macro.
17758
17759 2015-05-26  Andriy Rysin  <arysin@gmail.com>
17760
17761         [BZ #17293]
17762         * uk_UA: Fix sorting order for Ukrainian locale
17763
17764 2015-05-26  Marko Myllynen  <myllynen@redhat.com>
17765
17766         * stdlib/monetary.h: Fix comment.
17767
17768 2015-05-26  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17769
17770         [BZ #18234]
17771         * conform/data/sys/stat.h-data (struct stat): Add tests for st_atim,
17772         st_mtim and st_ctim members.
17773         * sysdeps/nacl/bits/stat.h (struct stat, struct stat64): Make
17774         st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8 only.
17775         * sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat,):
17776         (struct stat64): Likewise.
17777         * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat,):
17778         (struct stat64): Likewise.
17779         * sysdeps/unix/sysv/linux/microblaze/bits/stat.h (struct stat,):
17780         (struct stat64): Likewise.
17781
17782 2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17783
17784         * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
17785         Define and include sysdep-vdso.h.
17786         * sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
17787         Likewise.
17788         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
17789         Likewise.
17790         * sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
17791         Define with VDSO_SYMBOL and use PTR_MANGLE.
17792         (__vdso_clock_gettime): Likewise.
17793         (__vdso_clock_getres): Likewise.
17794         (_libc_vdso_platform_setup): Likewise.
17795         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
17796         Likewise.
17797         (_libc_vdso_platform_setup): Likewise.
17798         * sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
17799         Likewise.
17800         (__vdso_clock_gettime): Likewise.
17801         (__vdso_clock_getres): Likewise.
17802         (__vdso_get_tbfreq): Likewise.
17803         (__vdso_getcpu): Likewise.
17804         (__vdso_time): Likewise.
17805         (__vdso_sigtramp_rt64): Likewise.
17806         (__vdso_signtramp32): Likewise.
17807         (__vdso_sigtramp_rt32): Likewise.
17808         (_libc_vdso_platform_setup): Likewise.
17809         * sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
17810         Likewise.
17811         (__vdso_clock_gettime): Likewise.
17812         (__vdso_clock_getres): Likewise.
17813         (_libc_vdso_platform_setup): Likewise.
17814         * sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
17815         Likewise.
17816         (__vdso_clock_gettime): Likewise.
17817         (_libc_vdso_platform_setup): Likewise.
17818         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
17819         Likewise.
17820         (__vdso_getcpu): Likewise.
17821         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
17822         Use VDSO_SYMBOL macro to define.
17823         (__vdso_clock_gettime): Likewise.
17824         (__vdso_clock_getres): Likewise.
17825         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
17826         Likewise.
17827         (__vdso_clock_gettime): Likewise.
17828         (__vdso_clock_getres): Likewise.
17829         (__vdso_get_tbfreq): Likewise.
17830         (__vdso_getcpu): Likewise.
17831         (__vdso_time): Likewise.
17832         (__vdso_sigtramp_rt64): Likewise.
17833         (__vdso_signtramp32): Likewise.
17834         (__vdso_sigtramp_rt32): Likewise.
17835         * sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
17836         Likewise.
17837         (__vdso_clock_gettime): Likewise.
17838         (__vdso_clock_getres): Likewise.
17839         * sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
17840         Likewise.
17841         (__vdso_clock_gettime): Likewise.
17842         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
17843         Likewise.
17844         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
17845         macro.
17846         (INTERNAL_VSYSCALL): Likewise.
17847         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
17848         Remove macro.
17849         (INTERNAL_VSYSCALL): Likewise.
17850         (INTERNAL_VSYSCALL_NCS): Likewise.
17851         (INTERNAL_VSYSCALL_CALL): New macro.
17852         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17853         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
17854         Likewise.
17855         (INTERNAL_VSYSCALL): Likewise.
17856         (INTERNAL_VSYSCALL_NCS): Likewise.
17857         (INTERNAL_VSYSCALL_CALL): New macro.
17858         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
17859         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
17860         (INLINE_VSYSCALL): Remove macro.
17861         (INTERNAL_VSYSCALL): Remove macro.
17862         (INTERNAL_VSYSCALL_NCS): Remove macro.
17863         (INTERNAL_VSYSCALL_CALL): New macro.
17864         (INTERNAL_VSYSCALL_CALL_TYPE): New macro.
17865         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
17866         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17867         (HAVE_CLOCK_GETRES_VSYSCALL): New define.
17868         (HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
17869         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
17870         (INLINE_VSYSCALL): Remove macro.
17871         (INTERNAL_VSYSCALL): Likewise.
17872         (INTERNAL_VSYSCALL_NCS): Likewise.
17873         (INTERNAL_VSYSCALL_CALL): New macro.
17874         (INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
17875         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
17876         PTR_DEMANGLE on vDSO pointer.
17877         (INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
17878         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
17879         macro.
17880         (INTERNAL_SYSCALL): Likewise.
17881         (INTERNAL_VSYSCALL_NCS): Remove macro.
17882         (INTERNAL_VSYSCALL_CALL): New macro.
17883         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
17884         Remove macro.
17885         (INTERNAL_VSYSCALL): Likewise.
17886         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
17887         sysdep-vdso.h instead of libc-vdso.h.
17888         * sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
17889         definition.
17890         (INLINE_VSYSCALL): Likewise.
17891         (HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
17892         * sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
17893         definition.
17894         (INLINE_VSYSCALL): Likewise.
17895         (INTERNAL_VSYSCALL): Likewise.
17896         (HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17897         * sysdeps/unix/sysv/linux/timespec_get.c
17898         (INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
17899         (timespec_get): Use ANSI prototype.
17900         * sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
17901         and definition for Linux.
17902
17903 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
17904
17905         * elf/Makefile (localplt-built-dso): libmvec added to localplt test.
17906         * include/libc-symbols.h: libmvec_hidden_* macro series added.
17907
17908 2015-05-22  H.J. Lu  <hongjiu.lu@intel.com>
17909
17910         [BZ #2981]
17911         [BZ #18410]
17912         * elf/dl-reloc.c (_dl_relocate_object): Don't issue an error
17913         for missing DT_PLTRELSZ.
17914
17915 2015-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17916
17917         Remove obsolete aliases that broke 'locale -a'
17918         [BZ #18412]
17919         * intl/locale.alias: Remove obsolete aliases "bokmål" and "français"
17920         which caused 'locale -a' to output Latin-1 data in UTF-8 locales,
17921         breaking some applications that use 'locale -a' output.
17922         Change the encoding of this file from Latin-1 to ASCII to avoid
17923         other potential problems with people grepping this file.
17924
17925 2015-05-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17926
17927         * nptl/Makefile (CFLAGS-accept.c): Add -fexceptions and
17928         -fasynchronous-unwind-tables.
17929         (CFLAGS-sendto.c): Likewise.
17930         (CFLAGS-sendmsg.c): Likewise.
17931         (CFLAGS-connect.c): Likewise.
17932         (CFLAGS-recvmsg.c): Likewise.
17933         (CFLAGS-recvfrom.c): Likewise.
17934         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_invalid): Define.
17935         (SOCKETCALL): New macro: non-cancellable socketcall.
17936         (SOCKETCALL_CANCEL): New macro: cancellable socketcall.
17937         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = socket]: Remove
17938         internal_accept4, internal_recvmmsg, and internal_sendmmsg rules.
17939         * sysdeps/unix/sysv/linux/accept.c: New file.
17940         * sysdeps/unix/sysv/linux/bind.c: Likewise.
17941         * sysdeps/unix/sysv/linux/connect.c: Likewise.
17942         * sysdeps/unix/sysv/linux/getpeername.c: Likewise.
17943         * sysdeps/unix/sysv/linux/getsockname.c: Likewise.
17944         * sysdeps/unix/sysv/linux/getsockopt.c: Likewise.
17945         * sysdeps/unix/sysv/linux/listen.c: Likewise.
17946         * sysdeps/unix/sysv/linux/recv.c: Likewise.
17947         * sysdeps/unix/sysv/linux/recvfrom.c: Likewise.
17948         * sysdeps/unix/sysv/linux/recvmsg.c: Likewise.
17949         * sysdeps/unix/sysv/linux/send.c: Likewise.
17950         * sysdeps/unix/sysv/linux/sendmsg.c: Likewise.
17951         * sysdeps/unix/sysv/linux/sendto.c: Likewise.
17952         * sysdeps/unix/sysv/linux/setsockopt.c: Likewise.
17953         * sysdeps/unix/sysv/linux/shutdown.c: Likewise.
17954         * sysdeps/unix/sysv/linux/socket.c: Likewise.
17955         * sysdeps/unix/sysv/linux/socketpair.c: Likewise.
17956         * sysdeps/unix/sysv/linux/recvmmsg.c (__internal_recvmmsg): Remove
17957         prototype.
17958         (recvmmsg) [__ASSUME_RECVMMSG_SOCKETCALL]: Add C based implementation.
17959         (recvmmsg) [!__ASSUME_RECVMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17960         instead of __internal_xxx function.
17961         * sysdeps/unix/sysv/linux/accept4.c (__internal_accept4): Remove
17962         prototype.
17963         (accept4) [__ASSUME_ACCEPT4_SOCKETCALL]: Add C based implementation.
17964         (accept4) [!__ASSUME_ACCEPT4_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17965         instead of __internal_xxx function.
17966         * sysdeps/unix/sysv/linux/sendmmsg.c (__internal_sendmmsg): Remove
17967         prototype.
17968         (sendmmsg) [__ASSUME_SENDMMSG_SOCKETCALL]: Add C based implementation.
17969         (sendmmsg) [!__ASSUME_SENDMMSG_SOCKETCALL]: Use SOCKETCALL_CANCEL macro
17970         instead of __internal_xxx function.
17971         * sysdeps/unix/sysv/linux/accept.S: Remove file.
17972         * sysdeps/unix/sysv/linux/bind.S: Likewise.
17973         * sysdeps/unix/sysv/linux/connect.S: Likewise.
17974         * sysdeps/unix/sysv/linux/getpeername.S: Likewise.
17975         * sysdeps/unix/sysv/linux/getsockname.S: Likewise.
17976         * sysdeps/unix/sysv/linux/getsockopt.S: Likewise.
17977         * sysdeps/unix/sysv/linux/arm/internal_accept4.S: Likewise.
17978         * sysdeps/unix/sysv/linux/arm/internal_recvmmsg.S: Likewise.
17979         * sysdeps/unix/sysv/linux/arm/internal_sendmmsg.S: Likewise.
17980         * sysdeps/unix/sysv/linux/i386/accept4.S: Likewise.
17981         * sysdeps/unix/sysv/linux/i386/internal_accept4.S: Likewise.
17982         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
17983         * sysdeps/unix/sysv/linux/internal_accept4.S: Likewise.
17984         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: Likewise.
17985         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: Likewise.
17986         * sysdeps/unix/sysv/linux/listen.S: Likewise.
17987         * sysdeps/unix/sysv/linux/microblaze/socket.S: Likewise.
17988         * sysdeps/unix/sysv/linux/mips/mips32/internal_accept4.S: Likewise.
17989         * sysdeps/unix/sysv/linux/mips/mips32/internal_recvmmsg.S: Likewise.
17990         * sysdeps/unix/sysv/linux/mips/mips32/internal_sendmmsg.S: Likewise.
17991         * sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Likewise.
17992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
17993         * sysdeps/unix/sysv/linux/recv.S: Likewise.
17994         * sysdeps/unix/sysv/linux/recvfrom.S: Likewise.
17995         * sysdeps/unix/sysv/linux/recvmsg.S: Likewise.
17996         * sysdeps/unix/sysv/linux/s390/s390-32/socket.S: Likewise.
17997         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
17998         * sysdeps/unix/sysv/linux/send.S: Likewise.
17999         * sysdeps/unix/sysv/linux/sendmsg.S: Likewise.
18000         * sysdeps/unix/sysv/linux/sendto.S: Likewise.
18001         * sysdeps/unix/sysv/linux/setsockopt.S: Likewise.
18002         * sysdeps/unix/sysv/linux/sh/socket.S: Likewise.
18003         * sysdeps/unix/sysv/linux/shutdown.S: Likewise.
18004         * sysdeps/unix/sysv/linux/socketpair.S: Likewise.
18005         * sysdeps/unix/sysv/linux/sparc/sparc32/socket.S: Likewise.
18006         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: Likewise.
18007         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
18008         * sysdeps/unix/sysv/linux/hppa/socket.S: Likewise.
18009         * sysdeps/unix/sysv/linux/kernel-features.h: Adjust comment on how
18010         socketcall is implemented in GLIBC.
18011
18012 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
18013
18014         * soft-fp/fmadf4.c: Include <libc-internal.h>.
18015         (__fma): Ignore uninitialized warnings around packing.
18016         * soft-fp/fmasf4.c: Include <libc-internal.h>.
18017         (__fmaf): Ignore uninitialized warnings around packing.
18018         * soft-fp/fmatf4.c: Include <libc-internal.h>.
18019         (__fmal): Ignore uninitialized warnings around packing.
18020
18021         * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <libc-internal.h>.
18022         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
18023         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <libc-internal.h>.
18024         (__kernel_tanl): Ignore uninitialized warnings around use of SIGN.
18025
18026         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Make case 9 in
18027         switch statement into default case.
18028         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Likewise.
18029
18030         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Don't use
18031         a conditional in forcing "inexact".
18032         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
18033         Likewise.
18034
18035 2015-05-22  Roland McGrath  <roland@hack.frob.com>
18036
18037         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
18038         Use a separate INTERNAL_SYSCALL_DECL (err); in a local scope
18039         for each INTERNAL_SYSCALL use.
18040
18041 2015-05-22  Joseph Myers  <joseph@codesourcery.com>
18042
18043         [BZ #438]
18044         * posix/unistd.h (_POSIX2_C_VERSION): New macro.
18045         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): Remove
18046         variable.
18047
18048         [BZ #18444]
18049         * string/basename.c (basename): Rename to __basename and define as
18050         weak alias of __basename.  Use libc_hidden_weak.
18051         * include/string.h (__basename): Declare.  Use libc_hidden_proto.
18052         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Call
18053         __basename instead of basename.
18054         * conform/Makefile (test-xfail-POSIX2008/unistd.h/linknamespace):
18055         Remove variable.
18056         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
18057
18058 2015-05-18  Florian Weimer  <fweimer@redhat.com>
18059
18060         * libio/libioP.h (_IO_MEMBER_TYPE, _IO_CAST_FIELD_ACCESS)
18061         (_IO_JUMPS_FILE_plus): New.
18062         (_IO_WIDE_JUMPS, _IO_CHECK_WIDE, _IO_JUMPS_FUNC): Use
18063         _IO_CAST_FIELD_ACCESS.
18064         * libio/fileops.c (libc_hidden_def, _IO_file_setbuf_mmap,
18065         mmap_remap_check, decide_maybe_mmap): Use _IO_JUMPS_FILE_plus.
18066         * libio/freopen.c (freopen): Likewise.
18067         * libio/freopen64.c (freopen64): Likewise.
18068         * libio/iofopen.c (__fopen_maybe_mmap): Likewise.
18069         * libio/iofopncook.c (_IO_old_fopencookie): Likewise.
18070         * libio/iofwide.c (_IO_fwide): Likewise.
18071         * libio/memstream.c (open_memstream): Likewise.
18072         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18073         * libio/oldiofopen.c (_IO_old_fopen): Likewise.
18074         * libio/oldiopopen.c (_IO_old_popen): Likewise.
18075
18076 2015-05-21  Joseph Myers  <joseph@codesourcery.com>
18077
18078         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Include <libc-internal.h>.
18079         (__ieee754_lgamma_r): Ignore uninitialized warnings around use of
18080         NADJ.
18081         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Include <libc-internal.h>.
18082         (__ieee754_lgammaf_r): Ignore uninitialized warnings around use of
18083         NADJ.
18084         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Include <libc-internal.h>.
18085         (__ieee754_lgammal_r): Ignore uninitialized warnings around use of
18086         NADJ.
18087
18088         * sysdeps/ieee754/dbl-64/mpa.c (norm): Remove if condition on
18089         (p == 4) case.
18090
18091         * conform/linknamespace.pl (@whitelist): Add re_syntax_options.
18092         * conform/Makefile (test-xfail-UNIX98/regex.h/linknamespace):
18093         Remove variable.
18094         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
18095         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
18096         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
18097
18098 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18099
18100         * stdio-common/vfprintf.c (LABEL, JUMP_TABLE_BASE_LABEL, REF):
18101         Adjust jump table label generation macros.
18102
18103 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18104
18105         * stdio-common/vfprintf.c (vfprintf): Move local variables
18106         args_malloced, specs, specs_malloced, and the code after
18107         do_positional to the printf_positional function.
18108         (printf_positional): New function.
18109
18110 2015-05-21  Florian Weimer  <fweimer@redhat.com>
18111
18112         * stdio-common/vfprintf.c (jump_table): Move out of the vfprintf
18113         function.
18114         (NOT_IN_JUMP_RANGE, CHAR_CLASS, LABEL, REF, JUMP, STEP0_3_TABLE,
18115         STEP4_TABLE, process_arg): Move macro definitions
18116         out of the vfprintf function.  (Cosmetic change only.)
18117
18118 2015-05-21  Carlos O'Donell  <carlos@redhat.com>
18119
18120         * benchtests/Makefile (stdio-common-bench): Define.
18121         (benchset): Add stdio-common-bench.
18122         * sprintf-inputs: New file.
18123         * sprintf-source.c: New file.
18124
18125 2015-05-21  Andreas Schwab  <schwab@suse.de>
18126
18127         [BZ #13028]
18128         [BZ #17053]
18129         * resolv/res_init.c (__res_vinit): Remove use of ext.nsmap member
18130         of struct __res_state.
18131         * resolv/res_send.c (__libc_res_nsend): Likewise.
18132         (get_nsaddr): New function.
18133         (res_ourserver_p, send_vc, reopen): Use it instead of accessing
18134         statp directly.
18135
18136 2015-05-20  Joseph Myers  <joseph@codesourcery.com>
18137
18138         * conform/GlibcConform.pm ($CFLAGS{"POSIX"}): Use
18139         -D_POSIX_C_SOURCE=199506L.
18140
18141         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Require.
18142
18143         * conform/data/unistd.h-data (_POSIX_VERSION): Require.
18144         (_POSIX2_C_VERSION): Require if [POSIX || XPG3 || XPG4 || UNIX98].
18145         Do not mention otherwise.
18146         [POSIX] (_XOPEN_VERSION): Do not expect.
18147         [POSIX] (_XOPEN_XCU_VERSION): Likewise.
18148         [POSIX] (_POSIX2_C_BIND): Likewise.
18149         [POSIX] (_POSIX2_VERSION): Likewise.
18150         [POSIX] (_XOPEN_XPG2): Likewise.
18151         [POSIX] (_XOPEN_XPG3): Likewise.
18152         [POSIX] (_XOPEN_XPG4): Likewise.
18153         [POSIX] (_XOPEN_UNIX): Likewise.
18154         [POSIX] (_POSIX_ADVISORY_INFO): Likewise.
18155         [POSIX] (_POSIX_BARRIERS): Likewise.
18156         [POSIX] (_POSIX_CLOCK_SELECTION): Likewise.
18157         [POSIX] (_POSIX_CPUTIME): Likewise.
18158         [POSIX] (_POSIX_MONOTONIC_CLOCK): Likewise.
18159         [POSIX] (_POSIX_READER_WRITER_LOCKS): Likewise.
18160         [POSIX] (_POSIX_SHELL): Likewise.
18161         [POSIX] (_POSIX_SPAWN): Likewise.
18162         [POSIX] (_POSIX_SPIN_LOCKS): Likewise.
18163         [POSIX] (_POSIX_SPORADIC_SERVER): Likewise.
18164         [POSIX] (_POSIX_THREAD_CPUTIME): Likewise.
18165         [POSIX] (_POSIX_TYPED_MEMORY_OBJECTS): Likewise.
18166         [POSIX] (_POSIX_THREAD_SPORADIC_SERVER): Likewise.
18167         [POSIX] (_XBS5_ILP32_OFF32): Likewise.
18168         [POSIX] (_XBS5_ILP32_OFBIG): Likewise.
18169         [POSIX] (_XBS5_LP64_OFF64): Likewise.
18170         [POSIX] (_XBS5_LPBIG_OFFBIG): Likewise.
18171         [POSIX] (_POSIX_TIMEOUTS): Likewise.
18172         [POSIX] (_POSIX2_PBS): Likewise.
18173         [POSIX] (_POSIX2_PBS_ACCOUNTING): Likewise.
18174         [POSIX] (_POSIX2_PBS_CHECKPOINT): Likewise.
18175         [POSIX] (_POSIX2_PBS_LOCATE): Likewise.
18176         [POSIX] (_POSIX2_PBS_MESSAGE): Likewise.
18177         [POSIX] (_POSIX2_PBS_TRACK): Likewise.
18178         [POSIX] (_POSIX_TIMESTAMP_RESOLUTION): Likewise.
18179         [POSIX] (_CS_XBS5_ILP32_OFF32_CFLAGS): Likewise.
18180         [POSIX] (_CS_XBS5_ILP32_OFF32_LDFLAGS): Likewise.
18181         [POSIX] (_CS_XBS5_ILP32_OFF32_LIBS): Likewise.
18182         [POSIX] (_CS_XBS5_ILP32_OFF32_LINTFLAGS): Likewise.
18183         [POSIX] (_CS_XBS5_ILP32_OFFBIG_CFLAGS): Likewise.
18184         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LDFLAGS): Likewise.
18185         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LIBS): Likewise.
18186         [POSIX] (_CS_XBS5_ILP32_OFFBIG_LINTFLAGS): Likewise.
18187         [POSIX] (_CS_XBS5_LP64_OFF64_CFLAGS): Likewise.
18188         [POSIX] (_CS_XBS5_LP64_OFF64_LDFLAGS): Likewise.
18189         [POSIX] (_CS_XBS5_LP64_OFF64_LIBS): Likewise.
18190         [POSIX] (_CS_XBS5_LP64_OFF64_LINTFLAGS): Likewise.
18191         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_CFLAGS): Likewise.
18192         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LDFLAGS): Likewise.
18193         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LIBS): Likewise.
18194         [POSIX] (_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS): Likewise.
18195         [POSIX] (_SC_2_C_BIND): Likewise.
18196         [POSIX] (_SC_2_C_VERSION): Likewise.
18197         [POSIX] (_SC_2_PBS): Likewise.
18198         [POSIX] (_SC_2_PBS_ACCOUNTING): Likewise.
18199         [POSIX] (_SC_2_PBS_CHECKPOINT): Likewise.
18200         [POSIX] (_SC_2_PBS_LOCATE): Likewise.
18201         [POSIX] (_SC_2_PBS_MESSAGE): Likewise.
18202         [POSIX] (_SC_2_PBS_TRACK): Likewise.
18203         [POSIX] (_SC_ATEXIT_MAX): Likewise.
18204         [POSIX] (_SC_BARRIERS): Likewise.
18205         [POSIX] (_SC_BASE): Likewise.
18206         [POSIX] (_SC_CLOCK_SELECTION): Likewise.
18207         [POSIX] (_SC_DEVICE_IO): Likewise.
18208         [POSIX] (_SC_DEVICE_SPECIFIC): Likewise.
18209         [POSIX] (_SC_DEVICE_SPECIFIC_R): Likewise.
18210         [POSIX] (_SC_FD_MGMT): Likewise.
18211         [POSIX] (_SC_FIFO): Likewise.
18212         [POSIX] (_SC_FILE_ATTRIBUTES): Likewise.
18213         [POSIX] (_SC_FILE_LOCKING): Likewise.
18214         [POSIX] (_SC_FILE_SYSTEM): Likewise.
18215         [POSIX] (_SC_IOV_MAX): Likewise.
18216         [POSIX] (_SC_MONOTONIC_CLOCK): Likewise.
18217         [POSIX] (_SC_NETWORKING): Likewise.
18218         [POSIX] (_SC_PAGE_SIZE): Likewise.
18219         [POSIX] (_SC_PASS_MAX): Likewise.
18220         [POSIX] (_SC_PIPE): Likewise.
18221         [POSIX] (_SC_READER_WRITER_LOCKS): Likewise.
18222         [POSIX] (_SC_REGEXP): Likewise.
18223         [POSIX] (_SC_SHELL): Likewise.
18224         [POSIX] (_SC_SIGNALS): Likewise.
18225         [POSIX] (_SC_SINGLE_PROCESS): Likewise.
18226         [POSIX] (_SC_SPIN_LOCKS): Likewise.
18227         [POSIX] (_SC_TYPED_MEMORY_OBJECTS): Likewise.
18228         [POSIX] (_SC_USER_GROUPS): Likewise.
18229         [POSIX] (_SC_USER_GROUPS_R): Likewise.
18230         [POSIX] (_SC_STREAMS): Likewise.
18231         [POSIX] (_SC_XBS5_ILP32_OFF32): Likewise.
18232         [POSIX] (_SC_XBS5_ILP32_OFFBIG): Likewise.
18233         [POSIX] (_SC_XBS5_LP64_OFF64): Likewise.
18234         [POSIX] (_SC_XBS5_LPBIG_OFFBIG): Likewise.
18235         [POSIX] (_SC_THREAD_ROBUST_PRIO_INHERIT): Likewise.
18236         [POSIX] (_SC_THREAD_ROBUST_PRIO_PROTECT): Likewise.
18237         [POSIX] (_PC_FILESIZEBITS): Likewise.
18238         [POSIX] (_PC_REC_INCR_XFER_SIZE): Likewise.
18239         [POSIX] (_PC_REC_MAX_XFER_SIZE): Likewise.
18240         [POSIX] (_PC_REC_MIN_XFER_SIZE): Likewise.
18241         [POSIX] (_PC_REC_XFER_ALIGN): Likewise.
18242         [POSIX] (uid_t): Likewise.
18243         [POSIX] (gid_t): Likewise.
18244         [POSIX] (off_t): Likewise.
18245         [POSIX] (pid_t): Likewise.
18246         [POSIX] (cuserid): Allow.
18247         (_SC_2_CHAR_TERM): Require constant.
18248         (_POSIX_ASYNCHRONOUS_IO): Remove duplicate optional-constant.
18249         * conform/Makefile (test-xfail-POSIX/unistd.h/conform): New
18250         variable.
18251
18252 2015-05-20  Roland McGrath  <roland@hack.frob.com>
18253
18254         * sysdeps/nacl/pthread-pids.h: New file.
18255         * sysdeps/nacl/createthread.c: Include <pthread-pids.h>.
18256         (create_thread): Use __nacl_get_tid to initialize PD->tid.
18257
18258         * nptl/pthread-pids.h: New file.
18259         * sysdeps/unix/sysv/linux/pthread-pids.h: New file.
18260         * nptl/nptl-init.c: Include <pthread-pids.h>.
18261         (__pthread_initialize_minimal_internal):
18262         Call __pthread_initialize_pids instead of set_tid_address syscall.
18263
18264         * sysdeps/unix/sysv/linux/usleep.c: Moved to ...
18265         * sysdeps/posix/usleep.c: ... here.
18266
18267 2015-05-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18268
18269         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = misc)]: Remove
18270         call_pselect6 object.
18271         [$(subdir) = io]: Remove call_sync_file_range object.
18272         * sysdeps/unix/sysv/linux/i386/call_pselect6.S: Remove file.
18273         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Remove file.
18274         * sysdeps/unix/sysv/linux/i386/pselect.c: Remove file.
18275         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: Remove file.
18276
18277 2015-05-20  Wilco Dijkstra  <wdijkstr@arm.com>
18278
18279         * math/s_cproj.c: Add include "math_private.h".
18280         * math/s_cprojf.c: Likewise.
18281         * math/s_cprojl.c: Likewise.
18282
18283 2015-05-19  Joseph Myers  <joseph@codesourcery.com>
18284
18285         [BZ #18244]
18286         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
18287         high mantissa bit when testing whether P is a NaN.
18288         * math/libm-test.inc (remainder_test_data): Add more tests.
18289         (remquo_test_data): Likewise.
18290
18291         [BZ #18049]
18292         * sysdeps/i386/fpu/e_atanhl.S (__ieee754_atanhl): For exponents
18293         below -32, return the argument, with underflow if subnormal.
18294         * math/auto-libm-test-in: Add more tests of atanh.
18295         * math/auto-libm-test-out: Regenerated.
18296
18297 2015-05-19  Roland McGrath  <roland@hack.frob.com>
18298
18299         [BZ #18434]
18300         * nptl/tst-sem15.c: New file.
18301         * nptl/Makefile (tests): Add it.
18302         * nptl/sem_post.c (__new_sem_post) [!__HAVE_64B_ATOMICS]:
18303         s/<</>>/ to fix typo in EOVERFLOW check.
18304         * sysdeps/sparc/sparc32/sem_post.c (__new_sem_post): Likewise.
18305
18306 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
18307
18308         * manual/strings.texi (envz_remove): Fix typo in safety
18309         annotations.
18310
18311 2015-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18312             Steve Ellcey  <sellcey@imgtec.com>
18313
18314         * inet/rcmd.c (rresvport_af): Change ss to anonymous union
18315         in order to avoid strict alias warnings.
18316         (iruserok_af): Ditto for ra.
18317
18318 2015-05-19  James Lemke  <jwlemke@codesourcery.com>
18319
18320         [BZ #17581]
18321         * malloc/hooks.c
18322         (magicbyte): Convert to a function and avoid returning 0x01.
18323         (mem2mem_check): Avoid using a length byte equal to the magic byte.
18324         (mem2chunk_check): Fix unsigned comparisons to zero.
18325         Hoist defs of sz and magic.
18326
18327 2015-05-19  Richard Henderson  <rth@redhat.com>
18328
18329         * soft-fp/op-common.h (_FP_FROM_INT): Don't write to R.
18330
18331         * sysdeps/alpha/fpu/libm-test-ulps: Update.
18332
18333 2015-05-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
18334
18335         [BZ #16159]
18336         * malloc/Makefile (tests): New test case tst-malloc-backtrace.
18337         * malloc/arena.c (arena_lock): Check if arena is corrupt.
18338         (reused_arena): Find a non-corrupt arena.
18339         (heap_trim): Pass arena to unlink.
18340         * malloc/hooks.c (malloc_check_get_size): Pass arena to
18341         malloc_printerr.
18342         (top_check): Likewise.
18343         (free_check): Likewise.
18344         (realloc_check): Likewise.
18345         * malloc/malloc.c (malloc_printerr): Add arena argument.
18346         (unlink): Likewise.
18347         (munmap_chunk): Adjust.
18348         (ARENA_CORRUPTION_BIT): New macro.
18349         (arena_is_corrupt): Likewise.
18350         (set_arena_corrupt): Likewise.
18351         (sysmalloc): Use mmap if there are no usable arenas.
18352         (_int_malloc): Likewise.
18353         (__libc_malloc): Don't fail if arena_get returns NULL.
18354         (_mid_memalign): Likewise.
18355         (__libc_calloc): Likewise.
18356         (__libc_realloc): Adjust for additional argument to
18357         malloc_printerr.
18358         (_int_free): Likewise.
18359         (malloc_consolidate): Likewise.
18360         (_int_realloc): Likewise.
18361         (_int_memalign): Don't touch corrupt arenas.
18362         * malloc/tst-malloc-backtrace.c: New test case.
18363
18364         * Makefile (summarize-tests): Fix return value on success.
18365
18366         * manual/string.texi (Envz Functions): Add envz_remove.
18367
18368 2015-05-18  Roland McGrath  <roland@hack.frob.com>
18369
18370         * sysdeps/posix/opendir.c: Include <stdbool.h>.
18371         (invalid_name): New function, broken out of ...
18372         (__opendirat): ... here.  Call it.
18373         (need_isdir_precheck): New function, broken out of ...
18374         (__opendirat): ... here.  Call it.
18375         Use __fxstatat64, not __xstatat64.
18376         (opendir_oflags): New function, broken out of ...
18377         (__opendirat): ... here.  Call it.
18378         (opendir_tail): New function, broken out of ...
18379         (__opendirat): ... here.  Call it.
18380         (__opendir): Call invalid_name, need_isdir_precheck, __xstat64, and
18381         opendir_tail, rather than punting to __opendirat.
18382         (__opendirat): Conditionalize function definition on [IS_IN (libc)].
18383
18384 2015-05-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
18385
18386         * .gitignore: Ignore generated *.pyc.
18387
18388 2015-05-18  Arjun Shankar  <arjun.is@lostca.se>
18389
18390         * include/stdio.h: Define __need_wint_t.
18391         * test-skeleton.c: Avoid `for' loop initial declaration.
18392         * nptl/tst-initializers1.c: Use test-skeleton.c.
18393
18394 2015-05-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18395
18396         [BZ #18418]
18397         * stdlib/tst-setcontext3.sh: Remove non-portable array use.
18398
18399 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18400
18401         [BZ #16352]
18402         * sysdeps/i386/fpu/e_atanh.S (dbl_min): New object.
18403         (__ieee754_atanh): Force underflow exception for results with
18404         small absolute value.
18405         * sysdeps/i386/fpu/e_atanhf.S (flt_min): New object.
18406         (__ieee754_atanhf): Force underflow exception for results with
18407         small absolute value.
18408         * sysdeps/ieee754/dbl-64/e_atanh.c: Include <float.h>.
18409         (__ieee754_atanh): Force underflow exception for results with
18410         small absolute value.
18411         * sysdeps/ieee754/flt-32/e_atanhf.c: Include <float.h>.
18412         (__ieee754_atanhf): Force underflow exception for results with
18413         small absolute value.
18414         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Include <float.h>.
18415         (__ieee754_atanhl): Force underflow exception for results with
18416         small absolute value.
18417         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Include <float.h>.
18418         (__ieee754_atanhl): Force underflow exception for results with
18419         small absolute value.
18420         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Include <float.h>.
18421         (__ieee754_atanhl): Force underflow exception for results with
18422         small absolute value.
18423         * math/auto-libm-test-in: Do not allow missing underflow
18424         exceptions from atanh.
18425         * math/auto-libm-test-out: Regenerated.
18426
18427         [BZ #18221]
18428         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use 2**-13 not
18429         2**-28 as threshold for returning x or +/- 1/x.
18430         * math/auto-libm-test-in: Add more tests of tan.
18431         * math/auto-libm-test-out: Regenerated.
18432
18433         [BZ #18220]
18434         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
18435         2**26 not 2**58 as threshold for returning x * (log (x) - 1).
18436         * math/auto-libm-test-in: Add another test of lgamma.
18437         * math/auto-libm-test-out: Regenerated.
18438
18439 2015-05-15  Wilco Dijkstra  <wdijkstr@arm.com>
18440
18441         * stdio-common/printf_fp.c (___printf_fp): Use abs.
18442         * stdlib/gmp-impl.h (ABS): Remove define.  (ABSIZ): Remove.
18443         * sysdeps/ieee754/dbl-64/branred.c (__branred): Use fabs.
18444         * sysdeps/ieee754/dbl-64/dla.h (EADD): Use fabs.
18445         (ESUB): Use fabs.  (ADD2): Use fabs.  (SUB2): Use fabs.
18446         (ADD2A): Use fabs.  (SUB2A): Use fabs.
18447         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Use fabs.
18448         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Use fabs.
18449         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use fabs.
18450         (log1): Use fabs.  (my_log2): Use fabs.
18451         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): Use fabs.
18452         * sysdeps/ieee754/dbl-64/mpa.h (ABS): Remove define.
18453         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use fabs.
18454         * sysdeps/ieee754/dbl-64/mydefs.h (ABS): Remove define.
18455         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use fabs.
18456         (__cos): Use fabs.  (slow): Use fabs.  (slow2): Use fabs.
18457         (sloww): Use fabs.  (sloww1): Use fabs.  (sloww2): Use fabs.
18458         (bslow1): Use fabs.  (bslow2): Use fabs.  (cslow2): Use fabs.
18459         (csloww): Use fabs.  (csloww1): Use fabs.  (csloww2): Use fabs.
18460         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Use fabs.
18461         * sysdeps/x86_64/fpu/multiarch/e_log.c: add math.h include.
18462
18463 2015-05-15  Joseph Myers  <joseph@codesourcery.com>
18464
18465         [BZ #18217]
18466         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Use 2**-26 not 2**-56
18467         as threshold for returning 1 - x.
18468         * math/auto-libm-test-in: Add more tests of erfc.
18469         * math/auto-libm-test-out: Regenerated.
18470
18471 2015-05-14  Joseph Myers  <joseph@codesourcery.com>
18472
18473         [BZ #18196]
18474         * sysdeps/ieee754/flt-32/s_atanf.c (__atanf): Use 2^25 not 2^34 as
18475         threshold for large arguments.
18476         * math/auto-libm-test-in: Add another test of atan.
18477         * math/auto-libm-test-out: Regenerated.
18478
18479         [BZ #16339]
18480         * sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
18481         (__log1p): Force underflow exception for results with small
18482         absolute value.
18483         * sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
18484         (__log1pf): Force underflow exception for results with small
18485         absolute value.
18486         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
18487         (__log1p): Force underflow exception for results with small
18488         absolute value.
18489         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
18490         (__log1pf): Force underflow exception for results with small
18491         absolute value.
18492         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
18493         (__log1pl): Force underflow exception for results with small
18494         absolute value.
18495         * math/auto-libm-test-in: Do not allow missing underflow
18496         exceptions from log1p.
18497         * math/auto-libm-test-out: Regenerated.
18498
18499 2015-05-14  Jakub Bogusz  <qboosh@pld-linux.org>
18500             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18501
18502         [BZ #16704]
18503         * sysdeps/unix/make-syscalls.sh: Remove non-portable echo usage.
18504
18505 2015-05-14  Andrew Senkevich  <andrew.senkevich@intel.com>
18506
18507         * Makeconfig (rpath-dirs, all-subdirs): Added mathvec folder.
18508         (libmvec): New variable.
18509         * configure.ac: Added option for mathvec build.
18510         * configure: Regenerated.
18511         * mathvec/Depend: New file.
18512         * mathvec/Makefile: New file.
18513         * shlib-versions: Added libmvec.
18514         * math/Makefile: Added rule for libm.so installation.
18515
18516         * bits/math-vector.h: New file.
18517         * bits/libm-simd-decl-stubs.h: New header.
18518         * math/Makefile (headers): Added new header
18519         libm-simd-decl-stubs.h.
18520         * math/math.h (__MATHCALL_VEC): New macro.
18521
18522         * math/gen-libm-have-vector-test.sh: Script generates series of macros
18523         for conditions in testing functions.
18524         * math/Makefile: Added call of libm-have-vector-test.sh.
18525         * math/libm-test.inc (HAVE_VECTOR): New macros.
18526
18527         * math/libm-test.inc: START refactored.
18528         * math/test-double.c (TEST_MATHVEC): Add define.
18529         * math/test-float.c: Likewise.
18530         * math/test-idouble.c: Likewise.
18531         * math/test-ifloat.c: Likewise.
18532         * math/test-ildoubl.c: Likewise.
18533         * math/test-ldouble.c: Likewise.
18534         * sysdeps/generic/math-tests-arch.h
18535         (INIT_ARCH_EXT, CHECK_ARCH_EXT): New helper macros for runtime
18536         architecture check.
18537
18538         * math/test-double.c (FUNC_TEST): New macro.
18539         * math/test-float.c: Likewise.
18540         * math/test-idouble.c: Likewise.
18541         * math/test-ifloat.c: Likewise.
18542         * math/test-ildoubl.c: Likewise.
18543         * math/test-ldouble.c: Likewise.
18544         * math/libm-test.inc: Use FUNC_TEST for name of tested functions.
18545
18546 2015-05-13  Roland McGrath  <roland@hack.frob.com>
18547
18548         * sysdeps/nacl/fdopendir.c: New file.
18549
18550         * dirent/scandir-tail.c: New file.
18551         * dirent/scandir64-tail.c: New file.
18552         * dirent/Makefile (routines): Add them.
18553         (CFLAGS-scandir-tail.c, CFLAGS-scandir64-tail.c): New variables.
18554         * include/dirent.h (__scandir_tail, __scandir64_tail): Declare them.
18555         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Macro removed.
18556         [!SCANDIR] (SCANDIR_TAIL): New macro.
18557         (SCANDIR): Call __opendir and __scandir_tail, not __scandirat.
18558         * dirent/scandir64.c [!_DIRENT_MATCHES_DIRENT64]
18559         (SCANDIRAT): Macro removed.
18560         (SCANDIR_TAIL): New macro.
18561         * dirent/scandirat.c [!SCANDIRAT] (READDIR): Macro removed.
18562         [!SCANDIRAT] (SCANDIR_TAIL): New macro.
18563         (SCANDIRAT): Just call __opendirat and __scandir_tail.
18564         * dirent/scandirat64.c [!_DIRENT_MATCHES_DIRENT64]
18565         (READDIR): Macro removed.
18566         (SCANDIR_TAIL): New macro.
18567         * sysdeps/unix/sysv/linux/i386/scandir64.c (READDIR): Macro removed.
18568         (SCANDIR_TAIL): New macro.
18569
18570         * dirent/scandirat.c (__scandir_cancel_handler): Function moved ...
18571         * dirent/scandir-cancel.c: ... to this new file.
18572         * dirent/Makefile (routines): Add it.
18573         * dirent/scandirat64.c (SKIP_SCANDIR_CANCEL): Macro removed.
18574         * sysdeps/unix/sysv/linux/i386/scandir64.c
18575         (SKIP_SCANDIR_CANCEL): Macro removed.
18576         * include/dirent.h (__scandir_cancel_handler): Add attribute_hidden.
18577
18578         * dirent/tst-scandir.c: New file.
18579         * dirent/tst-scandir64.c: New file.
18580         * dirent/Makefile (tests): Add them.
18581
18582 2015-05-13  H.J. Lu  <hongjiu.lu@intel.com>
18583
18584         [BZ #18409]
18585         * sysdeps/unix/make-syscalls.sh: Remove a trailing `\'.
18586
18587 2015-05-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18588
18589         * sysdeps/aarch64/tls-macros.h (TLS_GD): Add "cc" to the clobber
18590         list.
18591
18592 2015-05-13  Leonhard Holz  <leonhard.holz@web.de>
18593
18594         * benchtests/bench-strcoll.c: New benchmark.
18595         * benchtests/Makefile: Generate locales and run benchmark.
18596         * benchtests/strcoll-inputs/filelist#C: New benchmark input file.
18597         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Likewise.
18598         * benchtests/strcoll-inputs/lorem_ipsum#ar_SA.UTF-8: Likewise.
18599         * benchtests/strcoll-inputs/lorem_ipsum#cs_CZ.UTF-8: Likewise.
18600         * benchtests/strcoll-inputs/lorem_ipsum#da_DK.UTF-8: Likewise.
18601         * benchtests/strcoll-inputs/lorem_ipsum#el_GR.UTF-8: Likewise.
18602         * benchtests/strcoll-inputs/lorem_ipsum#en_GB.UTF-8: Likewise.
18603         * benchtests/strcoll-inputs/lorem_ipsum#en_US.UTF-8: Likewise.
18604         * benchtests/strcoll-inputs/lorem_ipsum#es_ES.UTF-8: Likewise.
18605         * benchtests/strcoll-inputs/lorem_ipsum#fr_FR.UTF-8: Likewise.
18606         * benchtests/strcoll-inputs/lorem_ipsum#hi_IN.UTF-8: Likewise.
18607         * benchtests/strcoll-inputs/lorem_ipsum#hu_HU.UTF-8: Likewise.
18608         * benchtests/strcoll-inputs/lorem_ipsum#is_IS.UTF-8: Likewise.
18609         * benchtests/strcoll-inputs/lorem_ipsum#it_IT.UTF-8: Likewise.
18610         * benchtests/strcoll-inputs/lorem_ipsum#iw_IL.UTF-8: Likewise.
18611         * benchtests/strcoll-inputs/lorem_ipsum#ja_JP.UTF-8: Likewise.
18612         * benchtests/strcoll-inputs/lorem_ipsum#pl_PL.UTF-8: Likewise.
18613         * benchtests/strcoll-inputs/lorem_ipsum#pt_PT.UTF-8: Likewise.
18614         * benchtests/strcoll-inputs/lorem_ipsum#ru_RU.UTF-8: Likewise.
18615         * benchtests/strcoll-inputs/lorem_ipsum#sr_RS.UTF-8: Likewise.
18616         * benchtests/strcoll-inputs/lorem_ipsum#sv_SE.UTF-8: Likewise.
18617         * benchtests/strcoll-inputs/lorem_ipsum#tr_TR.UTF-8: Likewise.
18618         * benchtests/strcoll-inputs/lorem_ipsum#vi_VN.UTF-8: Likewise.
18619         * benchtests/strcoll-inputs/lorem_ipsum#zh_CN.UTF-8: Likewise.
18620
18621 2015-05-12  Ondřej Bílka  <neleai@seznam.cz>
18622
18623         * sysdeps/x86_64/multiarch/strcspn.S: Remove plt indirection.
18624         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
18625
18626 2015-05-12  Roland McGrath  <roland@hack.frob.com>
18627
18628         * posix/uname-values.h: New file.
18629         * posix/uname.c: Include that instead of <config-name.h>.
18630         * sysdeps/nacl/uname-values.h: New file.
18631         * sysdeps/arm/nacl/uname-values.h: New file.
18632
18633 2015-05-12  Joseph Myers  <joseph@codesourcery.com>
18634
18635         * conform/linknamespace.pl (list_syms): Remove \[.*?\] before
18636         splitting into fields.
18637
18638 2015-05-12  Leonhard Holz  <leonhard.holz@web.de>
18639
18640         * locale/categories.def: Define _NL_COLLATE_ENCODING_TYPE.
18641         * locale/langinfo.h: Add _NL_COLLATE_ENCODING_TYPE to attribute list.
18642         * locale/localeinfo.h: Add enum collation_encoding_type.
18643         * locale/C-collate.c: Set _NL_COLLATE_ENCODING_TYPE to 8bit.
18644         * programs/ld-collate.c (collate_output): Add encoding type info.
18645         * string/strcoll_l.c (STRDIFF): New function.
18646         * (STRCOLL): Use STRDIFF to skip over equal prefix.
18647         * wcsmbs/wcscoll_l.c: Define STRDIFF.
18648
18649 2015-05-11  Joseph Myers  <joseph@codesourcery.com>
18650
18651         [BZ #18397]
18652         * sysdeps/mips/mips32/fpu/fpu_control.c: Move to ....
18653         * sysdeps/mips/mips32/fpu/fpucw-helpers.c: ... here.  Include
18654         <fpu_control.h> instead of <math/fpu_control.c>.
18655         * sysdeps/mips/mips32/fpu/Makefile: New file.
18656
18657 2015-05-11  Andreas Schwab  <schwab@suse.de>
18658
18659         [BZ #18007]
18660         * nis/nss_compat/compat-grp.c (internal_endgrent): Don't call
18661         nss_endgrent.
18662         (_nss_compat_endgrent): Call nss_endgrent.
18663         * nis/nss_compat/compat-pwd.c (internal_endpwent): Don't call
18664         nss_endpwent.
18665         (_nss_compat_endpwent): Call nss_endpwent.
18666         * nis/nss_compat/compat-spwd.c (internal_setspent): Add parameter
18667         needent, call nss_setspent only if non-zero.
18668         (_nss_compat_setspent, _nss_compat_getspent_r): Pass non-zero.
18669         (internal_endspent): Don't call nss_endspent.
18670         (_nss_compat_endspent): Call nss_endspent.
18671         * nss/nss_files/files-XXX.c (position, last_use, keep_stream):
18672         Remove.  All uses removed.
18673         (internal_setent): Remove parameter stayopen, add parameter
18674         stream.  Use it instead of global variable.
18675         (CONCAT(_nss_files_set,ENTNAME)): Pass global stream.
18676         (internal_endent, internal_getent): Add parameter stream.  Use it
18677         instead of global variable.
18678         (CONCAT(_nss_files_end,ENTNAME))
18679         (CONCAT(_nss_files_get,ENTNAME_r)): Pass global stream.
18680         (_nss_files_get##name##_r): Pass local stream.  Remove locking.
18681         * nss/nss_files/files-alias.c (position, last_use): Remove.  All
18682         uses removed.
18683         (internal_setent, internal_endent): Add parameter stream.  Use it
18684         instead of global variable.
18685         (_nss_files_setaliasent, _nss_files_endaliasent): Pass global
18686         stream.
18687         (get_next_alias): Add parameter stream.
18688         (_nss_files_getaliasent_r): Pass global stream.
18689         (_nss_files_getaliasbyname_r): Pass local stream.  Remove locking.
18690         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r)
18691         (_nss_files_gethostbyname4_r): Pass local stream to
18692         internal_setent, internal_getent and internal_endent.  Remove
18693         locking.
18694
18695 2015-05-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
18696
18697         * tst-strfmon1.c (tests): Update expected currency symbol.
18698
18699 2015-05-08  Roland McGrath  <roland@hack.frob.com>
18700
18701         * sysdeps/nacl/gethostname.c: New file.
18702
18703 2015-05-08  Joseph Myers  <joseph@codesourcery.com>
18704
18705         * math/auto-libm-test-in: Add more tests of csqrt, lgamma, log10
18706         and sinh.
18707         * math/auto-libm-test-out: Regenerated.
18708         * sysdeps/i386/fpu/libm-test-ulps: Update.
18709         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18710
18711 2015-05-08  Carlos O'Donell  <carlos@redhat.com>
18712
18713         [BZ #18125]
18714         * stdlib/tst-setcontext3.c: New file.
18715         * stdlib/tst-setcontext3.sh: New file.
18716         * stdlib/Makefile (tests): Add tst-setcontext3.
18717         (tst-setcontext3.out): Custom rule to run tst-setcontext3.sh
18718         to verify test program created output file.
18719         * sysdeps/unix/sysv/linux/aarch64/setcontext.S: Call exit.
18720         * sysdeps/unix/sysv/linux/arm/setcontext.S: Likewise.
18721         * sysdeps/unix/sysv/linux/hppa/setcontext.S: Likewise.
18722         * sysdeps/unix/sysv/linux/nios2/setcontext.S: Likewise.
18723
18724 2015-05-06  Roland McGrath  <roland@hack.frob.com>
18725
18726         [BZ #18383]
18727         * elf/tst-tlsalign.c: New file.
18728         * elf/tst-tlsalign-static.c: New file.
18729         * elf/tst-tlsalign-lib.c: New file.
18730         * elf/Makefile [$(build-shared) = yes] (tests): Add tst-tlsalign.
18731         (tests-static): Add tst-tlsalign-static.
18732         (modules-names): Add tst-tlsalign-lib.
18733         (test-xfail-tst-tlsalign): New variable.
18734         (test-xfail-tst-tlsalign-static): New variable.
18735
18736         * sysdeps/nacl/nacl-test-wrapper.sh (NACL_LOADER):
18737         Use elf_loader_${arch}.nexe rather than loader_${arch}.nexe.
18738
18739 2015-05-06  Joseph Myers  <joseph@codesourcery.com>
18740
18741         * math/auto-libm-test-in: Add more tests of acosh, atanh, cos,
18742         csqrt, erfc, sin and sincos.
18743         * math/auto-libm-test-out: Regenerated.
18744         * sysdeps/i386/fpu/libm-test-ulps: Update.
18745         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18746
18747 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18748
18749         * sysdeps/aarch64/libm-test-ulps: Update.
18750
18751 2015-05-05  Joseph Myers  <joseph@codesourcery.com>
18752
18753         * math/auto-libm-test-in: Add more tests of acosh, atanh, clog,
18754         clog10, csqrt, erfc, exp2, expm1, log10, log2 and sinh.
18755         * math/auto-libm-test-out: Regenerated.
18756         * sysdeps/i386/fpu/libm-test-ulps: Update.
18757         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18758
18759 2015-04-30  Daniel Marjamäki  <daniel.marjamaki@evidente.se>
18760
18761         [BZ #18265]
18762         * wcsmbs/wchar.h (wcscpy): Add __nonnull attribute.
18763         (wcsncpy): Likewise.
18764
18765 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18766
18767         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
18768         Assume __ASSUME_FALLOCATE is always true.
18769         * sysdeps/unix/sysv/linux/posix_fallocate64.c
18770         (__posix_fallocate64_l64): Likweise.
18771         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c
18772         (posix_fallocate): Likewise.
18773         * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c
18774         (__posix_fallocate64_l64): Likewise.
18775         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
18776         [!__ASSUME_FALLOCATE]: Add comment.
18777
18778 2015-05-05  Florian Weimer  <fweimer@redhat.com>
18779
18780         * sysdeps/unix/sysv/linux/i386/Makefile
18781         (sysdep_routines) [$(subdir) = misc]: Remove call_fallocate.
18782         (sysdep_routines) [$(subdir) = io]: Add libc-do-syscall.
18783         * sysdeps/unix/sysv/linux/i386/call_fallocate.S: Remove.
18784         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18785         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18786         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Likewise.
18787         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
18788
18789 2015-05-02  Joseph Myers  <joseph@codesourcery.com>
18790
18791         * math/auto-libm-test-in: Add more tests of atan, clog, clog10,
18792         cos, csqrt, erf, erfc, exp2, lgamma, log1p, sin, sincos, tanh and
18793         tgamma.
18794         * math/auto-libm-test-out: Regenerated.
18795         * sysdeps/i386/fpu/libm-test-ulps: Update.
18796         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18797
18798 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18799
18800         * math/auto-libm-test-in: Add more tests of tgamma.
18801         * math/auto-libm-test-out: Regenerated.
18802         * sysdeps/i386/fpu/libm-test-ulps: Update.
18803         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18804
18805         * math/auto-libm-test-in: Add more tests of tanh.
18806         * math/auto-libm-test-out: Regenerated.
18807         * sysdeps/i386/fpu/libm-test-ulps: Update.
18808         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18809
18810         * math/auto-libm-test-in: Add more tests of tan.
18811         * math/auto-libm-test-out: Regenerated.
18812         * sysdeps/i386/fpu/libm-test-ulps: Update.
18813         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18814
18815         * math/auto-libm-test-in: Add more tests of cos, sin and sincos.
18816         * math/auto-libm-test-out: Regenerated.
18817         * sysdeps/i386/fpu/libm-test-ulps: Update.
18818         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18819
18820         * math/auto-libm-test-in: Add another test of pow.
18821         * math/auto-libm-test-out: Regenerated.
18822         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18823
18824         * math/auto-libm-test-in: Add more tests of lgamma.
18825         * math/auto-libm-test-out: Regenerated.
18826         * sysdeps/i386/fpu/libm-test-ulps: Update.
18827         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18828
18829         * math/auto-libm-test-in: Add more tests of log, log10, log2 and
18830         log1p.
18831         * math/auto-libm-test-out: Regenerated.
18832         * sysdeps/i386/fpu/libm-test-ulps: Update.
18833         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18834
18835 2015-05-01  Mark Wielaard  <mjw@redhat.com>
18836
18837         * elf/elf.h: Add SHF_COMPRESSED section flag, Elf32_Chdr and
18838         Elf64_Chdr structs and ELFCOMPRESS constants.
18839
18840 2015-05-01  Joseph Myers  <joseph@codesourcery.com>
18841
18842         * math/auto-libm-test-in: Add more tests of exp, exp10, exp2 and
18843         expm1.
18844         * math/auto-libm-test-out: Regenerated.
18845         * sysdeps/i386/fpu/libm-test-ulps: Update.
18846         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18847
18848         * math/auto-libm-test-in: Add more tests of erf and erfc.
18849         * math/auto-libm-test-out: Regenerated.
18850         * sysdeps/i386/fpu/libm-test-ulps: Update.
18851         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18852
18853 2015-05-01  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18854
18855         * config.h.in (HAVE_AARCH64_BE): Add.
18856
18857 2015-04-30  Joseph Myers  <joseph@codesourcery.com>
18858
18859         * math/auto-libm-test-in: Add more tests of csqrt.
18860         * math/auto-libm-test-out: Regenerated.
18861         * sysdeps/i386/fpu/libm-test-ulps: Update.
18862         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18863
18864         * math/auto-libm-test-in: Add more tests of cosh and sinh.
18865         * math/auto-libm-test-out: Regenerated.
18866         * sysdeps/i386/fpu/libm-test-ulps: Update.
18867         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18868
18869         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: Remove file.
18870
18871 2015-04-29  Roland McGrath  <roland@hack.frob.com>
18872
18873         * sysdeps/nacl/bits/typesizes.h (__CLOCK_T_TYPE): Use __SLONGWORD_TYPE.
18874         * sysdeps/nacl/nacl-interfaces.h (nacl_abi_clock_t): Use clock_t.
18875
18876         * sysdeps/nacl/euidaccess.c (euidaccess): Renamed to __euidaccess.
18877         (euidaccess, eaccess): Define as weak aliases.
18878
18879         * sysdeps/nacl/bits/typesizes.h (__SUSECONDS_T_TYPE): Use
18880         __SLONGWORD_TYPE rather than __S32_TYPE.  They are the same size,
18881         but __suseconds_t is often 'long int' so some sources assume that
18882         type is being used (e.g. they use %ld to print tv_usec).
18883
18884 2015-04-29  Florian Weimer  <fweimer@redhat.com>
18885
18886         [BZ #18007]
18887         * nss/nss_files/files-XXX.c (CONCAT): Always enable stayopen.
18888         (CVE-2014-8121)
18889         * nss/tst-nss-getpwent.c: New file.
18890         * nss/Makefile (tests): Add new test.
18891
18892 2015-04-28  Joseph Myers  <joseph@codesourcery.com>
18893
18894         [BZ #18346]
18895         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Handle all
18896         exponents less than 48 as cases where high part of mantissa needs
18897         examining to determine whether argument is integral.
18898         * math/libm-test.inc (round_test_data): Add more tests.
18899
18900 2015-04-28  Mark Wielaard  <mjw@redhat.com>
18901
18902         * elf/elf.h (SHF_EXCLUDE): Use unsigned 1 for shift.
18903
18904 2015-04-27  David S. Miller  <davem@davemloft.net>
18905
18906         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Remove
18907         __tls_get_addr.
18908         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
18909
18910 2015-04-27  H.J. Lu  <hongjiu.lu@intel.com>
18911
18912         [BZ#18333]
18913         * time/tzset.c (__tzfile_read): Check tzspec_len == 0.
18914
18915 2015-04-27  Florian Weimer  <fweimer@redhat.com>
18916
18917         [BZ#18333]
18918         * time/tzset.c (parse_tzname): Return error on memory allocation
18919         failure.
18920         * test-skeleton.c (struct temp_name_list): Change type of name
18921         member to non-const.
18922         (add_temp_file): Create a copy of the file name.
18923         (delete_temp_files): Deallocate memory.
18924         (create_temp_file): Add comment.
18925
18926 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18927
18928         * io/posix_fallocate.c (posix_fallocate): Do not set errno.
18929         * io/posix_fallocate64.c (posix_fallocate64): Likewise.
18930
18931 2015-04-24  Roland McGrath  <roland@hack.frob.com>
18932
18933         * sysdeps/arm/configure.ac (PI_STATIC_AND_HIDDEN): Define it.
18934         * sysdeps/arm/configure: Regenerated.
18935
18936 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18937
18938         [BZ #17715]
18939         * time/tzfile.c (__tzfile_read): Check for large values of
18940         tzh_ttisstdcnt and tzh_ttisgmtcnt.  Use malloc instead of alloca.
18941         * time/tzset.c (__tzstring_len): New function, based on the old
18942         __tzstring function.
18943         (__tzstring): Call __tzstring_len.
18944         (parse_tzname): New helper function extracted from
18945         __tzset_parse_tz.  Call __tzstring_len, without making a copy of
18946         the input string.
18947         (parse_offset): New helper function extracted from
18948         __tzset_parse_tz.  Replace switch with fallthrough with
18949         initialization before sscanf.
18950         (parse_rule): Likewise.
18951         (__tzset_parse_tz): Rewrite using the new helper functions.  Use
18952         new-style function definition.
18953         * timezone/Makefile (tests): Add tst-tzset.
18954         (tst-tzset.out): Dependencies on time zone files.
18955         (tst-tzset-ENV): Set TZDIR.
18956         (testdata/XT%): Copy crafted time zone files.
18957         * timezone/README: Mention crafted time zone files.
18958         * timezone/testdata/XT1, timezone/testdata/XT2,
18959         timezone/testdata/XT3, timezone/testdata/XT4: New time zone test
18960         files.
18961         * timezone/tst-tzset.c: New test.
18962
18963 2015-04-24  Florian Weimer  <fweimer@redhat.com>
18964
18965         * Makeconfig (+gccwarn): Remove -Winline.
18966
18967 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
18968
18969         * sysdeps/s390/fpu/libm-test-upls: Regenerate.
18970
18971 2015-04-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
18972
18973         * NEWS: Mention sysconf() cache information support for s390.
18974         * sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
18975
18976 2015-04-22  Wilco Dijkstra  <wdijkstr@arm.com>
18977
18978         * math/k_casinh.c (__kernel_casinh): Use __copysign.
18979         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c
18980         (__nearbyint): Likewise.
18981         * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c
18982         (copysignl): Likewise.
18983
18984 2015-04-21  Arjun Shankar  <arjun.is@lostca.se>
18985
18986         [BZ #18287]
18987         * resolv/nss_dns/dns-host.c (getanswer_r): Adjust buffer length
18988         based on padding.  (CVE-2015-1781)
18989
18990 2015-04-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18991
18992         * nptl/pthread_cond_timedwait.c: Change include bits/libc-vdso.h to just
18993         libc-vdso.h.
18994         * sysdeps/powerpc/powerpc32/backtrace.c: Likewise.
18995         * sysdeps/powerpc/powerpc64/backtrace.c: Likewise.
18996         * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
18997         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
18998         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
18999         * sysdeps/unix/sysv/linux/gettimeofday.c: Likewise.
19000         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Likewise.
19001         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
19002         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
19003         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Likewise.
19004         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
19005         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
19006         * sysdeps/unix/sysv/linux/tile/gettimeofday.c: Likewise.
19007         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise.
19008         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
19009         * sysdeps/unix/sysv/linux/aarch64/bits/libc-vdso.h: Move to ...
19010         * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: ... here.
19011         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Move to ...
19012         * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: ... here.
19013         * sysdeps/unix/sysv/linux/s390/bits/libc-vdso.h: Move to ...
19014         * sysdeps/unix/sysv/linux/s390/libc-vdso.h: ... here.
19015         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Move to ...
19016         * sysdeps/unix/sysv/linux/tile/libc-vdso.h: ... here.
19017
19018 2015-04-19  Paul Eggert  <eggert@cs.ucla.edu>
19019
19020         * stdlib/setenv.c (__add_to_environ):
19021         Dump core quickly if setenv (..., NULL, ...) is called.
19022         This time, do it the right way, and pacify GCC with a pragma.
19023
19024 2015-04-17  Roland McGrath  <roland@hack.frob.com>
19025
19026         * elf/dl-close.c (_dl_close_worker) [DL_NNS == 1]: Just assert that
19027         IMAP->l_prev cannot be null, and #if out the code for the contrary
19028         case, avoiding 'assert (nsid != LM_ID_BASE)' making the compiler
19029         believe that NS (&_dl_ns[NSID]) could point outside the array.
19030
19031         * elf/dl-open.c (_dl_open): Use __glibc_unlikely in invalid namespace
19032         check.  Reject NSID < 0 and NSID >= dl_nns, and check for DL_NNS==1,
19033         before using NSID as an index.
19034
19035 2015-04-17  Il'ya Malakhov <ilmalakhov@yandex.ru>
19036
19037         [BZ #17825]
19038         * sysdeps/sparc/sparc64/memchr.S: Fix signedness handling of length.
19039         * sysdeps/sparc/sparc64/memcmp.S: Likewise.
19040         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
19041
19042 2015-04-17  Roland McGrath  <roland@hack.frob.com>
19043
19044         Add preliminary port to Google Native Client on ARM.
19045         * abi-tags (.*-.*-nacl.*): New entry.
19046         * sysdeps/arm/nacl: New directory.
19047         * sysdeps/nacl: New directory.
19048
19049 2015-04-16  David S. Miller  <davem@davemloft.net>
19050
19051         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Make use of
19052         lowlevellock-futex.h
19053
19054 2015-04-16  Chris Metcalf  <cmetcalf@ezchip.com>
19055
19056         * sysdeps/tile/configure.ac: New file.
19057         * sysdeps/tile/configure: Regenerated.
19058
19059 2015-04-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
19060
19061         * wcsmbs/wcschr.c [WCSCHR] (wcschr): Define as __wcschr.  Remove
19062         conditionals for weak_alias and libc_hidden_weak.
19063         * sysdeps/i386/i686/multiarch/wcschr-c.c [libc]: Undefine
19064         libc_hidden_weak and weak_alias.
19065         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c [libc]:
19066         Undefine libc_hidden_weak. Define libc_hidden_def for SHARED builds
19067         and weak_alias for static one.
19068
19069 2015-04-15  David S. Miller  <davem@davemloft.net>
19070
19071         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
19072
19073 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
19074
19075         [BZ #18206]
19076         * wcsmbs/wcsncmp.c (wcsncmp): Compare as wchar_t, not wint_t.
19077           Use signed comparision instead of substraction to avoid
19078           overflow bug.
19079         * localedata/tests-mbwc/tst_wcsncmp.c (tst_wcsncmp):
19080           Take the sign of ret.
19081         * localedata/tests-mbwc/dat_wcsncmp.c (tst_wcsncmp_loc):
19082           Do not expect precise return values. Only the sign matters.
19083         * wcsmbs/Makefile (strop-tests): Add wcsncmp.
19084         * wcsmbs/test-wcsncmp.c: New File.
19085         * string/test-strncmp.c: Add wcsncmp support.
19086
19087 2015-04-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
19088
19089         [BZ #6792]
19090         * math/w_log1p.c: New file.
19091         * math/w_log1pf.c: Likewise.
19092         * math/w_log1pl.c: Likewise.
19093         * math/Makefile (libm-calls): Add w_log1p.
19094         * math/s_log1pl.c (log1pl): Remove weak_alias.
19095         * sysdeps/i386/fpu/s_log1p.S (log1p): Likewise.
19096         * sysdeps/i386/fpu/s_log1pf.S (log1pf): Likewise.
19097         * sysdeps/i386/fpu/s_log1pl.S (log1pl): Likewise.
19098         * sysdeps/x86_64/fpu/s_log1pl.S (log1pl): Likewise.
19099         * sysdeps/ieee754/dbl-64/s_log1p.c (log1p): Likewise.
19100         [NO_LONG_DOUBLE] (log1pl): Likewise.
19101         * sysdeps/ieee754/flt-32/s_log1pf.c (log1pf): Likewise.
19102         * sysdeps/ieee754/ldbl-128/s_log1pl.c (log1pl): Likewise.
19103         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c
19104         (log1p): Remove long_double_symbol.
19105         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (log1pl): Likewise.
19106         * sysdeps/ieee754/ldbl-64-128/w_log1pl.c: New file.
19107         * sysdeps/ieee754/ldbl-128ibm/w_log1pl.c: Likewise.
19108         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Define empty weak_alias to
19109         remove weak_alias for corresponding log1p function.
19110         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Likewise.
19111         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
19112         * sysdeps/ia64/fpu/w_log1p.c: New file.
19113         * sysdeps/ia64/fpu/w_log1pf.c: Likewise.
19114         * sysdeps/ia64/fpu/w_log1pl.c: Likewise.
19115         * math/libm-test.inc (log1p_test_data): Add errno expectations.
19116
19117 2015-04-10  Joseph Myers  <joseph@codesourcery.com>
19118
19119         [BZ #18247]
19120         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Decrease minimum
19121         decimal exponent by 1.
19122         * stdlib/tst-strtod-round-data: Add more tests.
19123         * stdlib/tst-strtod-round.c (tests): Regenerated.
19124
19125 2015-04-09  Joseph Myers  <joseph@codesourcery.com>
19126
19127         * math/auto-libm-test-in: Add more tests of clog and clog10.
19128         * math/auto-libm-test-out: Regenerated.
19129         * sysdeps/i386/fpu/libm-test-ulps: Update.
19130         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19131
19132 2015-04-09  Roland McGrath  <roland@hack.frob.com>
19133
19134         * Makeconfig (module-cppflags): Exclude all .v.i files.
19135         (skip-module-cppflags): Variable removed.
19136
19137         * configure.ac (libc_config_ok): Initialize before reading
19138         preconfigure scripts, not after.
19139         * configure: Regenerated.
19140
19141         * test-skeleton.c (TIMEOUT): Move #define to top level.
19142         (main): Grok environment variable TEST_DIRECT.  If set, print
19143         test expectation details into that file and then behave as if
19144         given --direct.
19145
19146 2015-04-09  Florian Weimer  <fweimer@redhat.com>
19147
19148         * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
19149         warning on 32-bit.
19150
19151 2015-04-08  David S. Miller  <davem@davemloft.net>
19152
19153         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19154
19155 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
19156
19157         * math/auto-libm-test-in: Add more tests of atanh.
19158         * math/auto-libm-test-out: Regenerated.
19159         * sysdeps/i386/fpu/libm-test-ulps: Update.
19160         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19161
19162         * math/auto-libm-test-in: Add more tests of atan.
19163         * math/auto-libm-test-out: Regenerated.
19164         * sysdeps/i386/fpu/libm-test-ulps: Update.
19165         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19166
19167 2015-04-08  Florian Weimer  <fweimer@redhat.com>
19168
19169         * elf/pldd.c (main): Rewrite to use struct
19170         scratch_buffer instead of extend_alloca.
19171         * elf/pldd-xx.c (find_maps): Likewise.
19172         * grp/initgroups.c: Include <scratch_buffer.h> instead of
19173         <alloca.h>.
19174         * grp/compat-initgroups.c (compat_call): Rewrite to use struct
19175         scratch_buffer instead of extend_alloca.
19176         * nscd/initgrcache.c: Include <scratch_buffer.h>, now needed by
19177         grp/compat-initgroups.c.
19178         * nis/nss_compat/compat-initgroups.c (_nss_compat_initgroups_dyn):
19179         Rewrite to use struct scratch_buffer instead of extend_alloca.
19180         * inet/getnameinfo.c (nrl_domainname, getnameinfo): Likewise.
19181         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
19182
19183 2015-04-08  Joseph Myers  <joseph@codesourcery.com>
19184
19185         * math/auto-libm-test-in: Add more tests of cbrt.
19186         * math/auto-libm-test-out: Regenerated.
19187         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19188
19189         * math/auto-libm-test-in: Add more tests of cabs.
19190         * math/auto-libm-test-out: Regenerated.
19191         * sysdeps/i386/fpu/libm-test-ulps: Update.
19192         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19193
19194         [BZ #18210]
19195         [BZ #18211]
19196         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
19197         (__ieee754_atan2): Set FE_TONEAREST mode for internal
19198         computations.
19199         * math/auto-libm-test-in: Add more tests of atan2, carg, clog and
19200         clog10.
19201         * math/auto-libm-test-out: Regenerated.
19202         * sysdeps/i386/fpu/libm-test-ulps: Update.
19203         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19204
19205         [BZ #18197]
19206         * sysdeps/ieee754/dbl-64/s_atan.c: Include <fenv.h>.
19207         (atan): Set FE_TONEAREST mode for internal computations.
19208         * math/auto-libm-test-in: Add more tests of atan.
19209         * math/auto-libm-test-out: Regenerated.
19210
19211 2015-04-07  James Cowgill  <james410@cowgill.org.uk>
19212
19213         [BZ #17930]
19214         * sysdeps/unix/sysv/linux/mips/bits/shm.h (SHM_NORESERVE): Define.
19215
19216 2015-04-07  Florian Weimer  <fweimer@redhat.com>
19217
19218         * malloc/scratch_buffer_grow_preserve.c: Include <string.h>
19219
19220 2015-04-07  Florian Weimer  <fweimer@redhat.com>
19221
19222         * include/scratch_buffer.h: New file.
19223         * malloc/scratch_buffer_grow.c: Likewise.
19224         * malloc/scratch_buffer_grow_preserve.c: Likewise.
19225         * malloc/scratch_buffer_set_array_size.c: Likewise.
19226         * malloc/tst-scratch_buffer.c: Likewise.
19227         * malloc/Makefile (routines): Add scratch_buffer_grow.
19228         (tests): Add test case.
19229         * malloc/Versions (GLIBC_PRIVATE): Export
19230         __libc_scratch_buffer_grow, __libc_scratch_buffer_grow_preserve,
19231         __libc_scratch_buffer_set_array_size.
19232
19233 2015-04-06  Richard Henderson  <rth@redhat.com>
19234
19235         * sysdeps/unix/alpha/sysdep.h: Unconditionally include dl-sysdep.h.
19236         * sysdeps/alpha/fpu/libm-test-ulps: Update.
19237
19238         * math/test-fenvinline.c (feenable_test): Cast fe_exc to
19239         unsigned int before printing.
19240
19241 2015-04-03  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
19242
19243         [BZ #17596]
19244         * wcsmbs/mbrtowc.c (__mbrtowc): Add check for n=0.
19245         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
19246
19247 2015-04-02  Florian Weimer  <fweimer@redhat.com>
19248
19249         * include/libc-internal.h (libc_max_align_t): Define.
19250
19251 2015-04-02  Andreas Schwab  <schwab@suse.de>
19252
19253         [BZ #16850]
19254         * sysdeps/unix/sysv/linux/aarch64/bits/sigstack.h: New file.
19255
19256 2015-04-02  Mel Gorman  <mgorman@suse.de>
19257
19258         [BZ #17195]
19259         * malloc/arena.c (free): Apply trim threshold to per-thread heaps
19260         as well as the main arena.
19261
19262 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19263
19264         [BZ #18185]
19265         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Limit threads
19266         sharing L2 cache to 2 for Silvermont/Knights Landing.
19267
19268 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19269
19270         [BZ #17711]
19271         * config.make.in (have-protected-data): New.
19272         * configure.ac: Check linker support for protected data symbol.
19273         * configure: Regenerated.
19274         * elf/Makefile (modules-names): Add tst-protected1moda and
19275         tst-protected1modb if $(have-protected-data) is yes.
19276         (tests): Add tst-protected1a and tst-protected1b if
19277         $(have-protected-data) is yes.
19278         ($(objpfx)tst-protected1a): New.
19279         ($(objpfx)tst-protected1b): Likewise.
19280         (tst-protected1modb.so-no-z-defs): Likewise.
19281         * elf/tst-protected1a.c: New file.
19282         * elf/tst-protected1b.c: Likewise.
19283         * elf/tst-protected1mod.h: Likewise.
19284         * elf/tst-protected1moda.c: Likewise.
19285         * elf/tst-protected1modb.c: Likewise.
19286
19287 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19288
19289         [BZ #17711]
19290         * elf/dl-lookup.c (do_lookup_x): When UNDEF_MAP is NULL, which
19291         indicates it is called from do_lookup_x on relocation against
19292         protected data, skip the data definion in the executable from
19293         copy reloc.
19294         (_dl_lookup_symbol_x): Pass ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA,
19295         instead of ELF_RTYPE_CLASS_PLT, to do_lookup_x for
19296         EXTERN_PROTECTED_DATA relocation against STT_OBJECT symbol.
19297         * sysdeps/generic/ldsodefs.h * (ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA):
19298         New.  Defined to 4 if DL_EXTERN_PROTECTED_DATA is defined,
19299         otherwise to 0.
19300         * sysdeps/i386/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
19301         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Set class
19302         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_386_GLOB_DAT.
19303         * sysdeps/x86_64/dl-lookupcfg.h (DL_EXTERN_PROTECTED_DATA): New.
19304         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Set class
19305         to ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for R_X86_64_GLOB_DAT.
19306
19307 2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>
19308
19309         * sysdeps/nptl/pthread.h: Remove duplicate definition of
19310         PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.
19311
19312 2015-03-27  Martin Galvan  <martin.galvan@tallertechnologies.com>
19313
19314         * sysdeps/i386/nptl/tls.h: Swap comments between THREAD_SETMEM and
19315         THREAD_SETMEM_NC.
19316         * sysdeps/x86_64/nptl/tls.h: Ditto.
19317
19318 2015-03-27  Roland McGrath  <roland@hack.frob.com>
19319
19320         * dlfcn/tststatic.c (main): Converted to ...
19321         (do_test): ... this.
19322         (TEST_FUNCTION): New macro.
19323         Include test-skeleton.c.
19324
19325 2015-03-26  Alan Modra  <amodra@gmail.com>
19326
19327         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_fixup_plt):
19328         Don't segfault if ifunc resolver returns a NULL.  Do set plt to
19329         zero for undefined weak.
19330         (elf_machine_plt_conflict): Similarly.
19331
19332 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
19333
19334         * math/auto-libm-test-in: Add more tests of acosh, asinh and
19335         atanh.
19336         * math/auto-libm-test-out: Regenerated.
19337         * sysdeps/i386/fpu/libm-test-ulps: Update.
19338         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19339
19340         * math/auto-libm-test-in: Add another test of asin.
19341         * math/auto-libm-test-out: Regenerated.
19342         * sysdeps/i386/fpu/libm-test-ulps: Update.
19343         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19344
19345         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (LLL_EBX_LOAD):
19346         Remove macro.
19347         (LLL_EBX_REG): Likewise.
19348         (LLL_ENTER_KERNEL): Likewise.
19349
19350         * math/auto-libm-test-in: Add more tests of asin.
19351         * math/auto-libm-test-out: Regenerated.
19352         * sysdeps/i386/fpu/libm-test-ulps: Update.
19353         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19354
19355         [BZ #18138]
19356         * sysdeps/unix/sysv/linux/i386/sysdep.h (struct
19357         libc_do_syscall_args): New structure.
19358         (INTERNAL_SYSCALL_MAIN_0): New macro.
19359         (INTERNAL_SYSCALL_MAIN_1): Likewise.
19360         (INTERNAL_SYSCALL_MAIN_2): Likewise.
19361         (INTERNAL_SYSCALL_MAIN_3): Likewise.
19362         (INTERNAL_SYSCALL_MAIN_4): Likewise.
19363         (INTERNAL_SYSCALL_MAIN_5): Likewise.
19364         (INTERNAL_SYSCALL_MAIN_6): Likewise.  Call __libc_do_syscall.
19365         (INTERNAL_SYSCALL): Define to use INTERNAL_SYSCALL_MAIN_##nr.
19366         Replace conditional definitions by conditional definitions of ....
19367         (INTERNAL_SYSCALL_MAIN_INLINE): ... this.  New macro.
19368         * sysdeps/unix/sysv/linux/i386/libc-do-syscall.S: New file.
19369         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) = nptl]
19370         (libpthread-sysdep_routines): Add libc-do-syscall.
19371         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: Remove file.
19372         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (SYS_futex): Define
19373         to __NR_futex not 240.
19374
19375 2015-03-25  Alan Modra  <amodra@gmail.com>
19376
19377         * NEWS: Advertise TLS optimization.
19378         * elf/elf.h (R_PPC_TLSGD, R_PPC_TLSLD, DT_PPC_OPT, PPC_OPT_TLS): Define.
19379         (DT_PPC_NUM): Increment.
19380         * elf/dynamic-link.h (HAVE_STATIC_TLS): Define.
19381         (CHECK_STATIC_TLS): Use here.
19382         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Optimize
19383         TLS descriptors.
19384         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
19385         * sysdeps/powerpc/dl-tls.c: New file.
19386         * sysdeps/powerpc/Versions: Add __tls_get_addr_opt.
19387         * sysdeps/powerpc/tst-tlsopt-powerpc.c: New tls test.
19388         * sysdeps/unix/sysv/linux/powerpc/Makefile: Add new test.
19389         Build tst-tlsmod2.so with --no-tls-get-addr-optimize.
19390         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Update.
19391         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
19392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
19393
19394 2015-03-25  Alan Modra  <amodra@gmail.com>
19395
19396         * sysdeps/powerpc/powerpc64/configure.ac: Correct "linker support
19397         for overlapping .opd entries" to "support...".
19398         * sysdeps/powerpc/powerpc64/configure: Regenerate
19399
19400 2015-03-25  Joseph Myers  <joseph@codesourcery.com>
19401
19402         * math/auto-libm-test-in: Add more tests of acos.
19403         * math/auto-libm-test-out: Regenerated.
19404         * sysdeps/i386/fpu/libm-test-ulps: Update.
19405         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19406
19407         * math/auto-libm-test-in: Add more tests of expm1.
19408         * math/auto-libm-test-out: Regenerated.
19409         * sysdeps/i386/fpu/libm-test-ulps: Update.
19410         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19411
19412 2015-03-24  Joseph Myers  <joseph@codesourcery.com>
19413
19414         * math/auto-libm-test-in: Add more tests of cosh and sinh.
19415         * math/auto-libm-test-out: Regenerated.
19416         * sysdeps/i386/fpu/libm-test-ulps: Update.
19417         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19418
19419         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
19420         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19421
19422         * math/auto-libm-test-in: Add more tests of log2.
19423         * math/auto-libm-test-out: Regenerated.
19424         * sysdeps/i386/fpu/libm-test-ulps: Update.
19425         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19426
19427 2015-03-23  Roland McGrath  <roland@hack.frob.com>
19428
19429         * libio/iofdopen.c: Move FD_FLAGS declaration into its first use,
19430         inside [F_GETFL].  Remove POSIX_MODE local variable, just test the
19431         _IO_IS_APPENDING bit in READ_WRITE instead.
19432
19433 2015-03-23  Florian Weimer  <fweimer@redhat.com>
19434
19435         * sysdeps/unix/sysv/linux/pthread_setaffinity.c
19436         (__determine_cpumask_size): Replace extend_alloca with a
19437         variable-length array.  Do not treat res == 0 as an error.
19438
19439 2015-03-23  Florian Weimer  <fweimer@redhat.com>
19440
19441         [BZ #18100]
19442         * posix/wordexp.c (eval_expr_multdiv): Check for division by zero
19443         and integer overflow.
19444         * posix/wordexp-test.c (test_case): Add divide-by-zero test.
19445         (main): Add integer overflow tests.
19446         * manual/pattern.texi (Calling Wordexp): Document additional use
19447         for WRDE_SYNTAX.
19448
19449 2015-03-23  Alan Modra  <amodra@gmail.com>
19450
19451         * config.h.in: Remove HAVE_ASM_PPC_REL16.
19452         * sysdeps/powerpc/powerpc32/tls-macros.h: Remove HAVE_ASM_PPC_REL16
19453         and false branch of conditional.
19454         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
19455         Likewise.
19456
19457 2015-03-21  Samuel Thibault  <samuel.thibault@ens-lyon.org
19458
19459         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Depend on
19460         libc-modules.h
19461         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Remove
19462         unused declaration of _hurd_intr_rpc_msg_in_trap.
19463         * mach/mach_init.c (__mach_init): Test whether HAVE_HOST_PAGE_SIZE is
19464         defined instead of whether it is non-zero.
19465         * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Use "+m"
19466         input constraint instead of both input and output constraint.  Use ecx
19467         clobber instead of %ecx.
19468         * sysdeps/mach/hurd/malloc-machine.h (mutex_init, mutex_lock,
19469         mutex_unlock): Use a statement expression instead of an expression list.
19470         * sysdeps/mach/hurd/setitimer.c (_hurd_itimer_thread_stack_size): Set
19471         type to vm_size_t instead of vm_address_t.
19472         * sysdeps/mach/hurd/fork.c (__fork): Test whether STACK_GROWTH_UP is
19473         defined instead of whether it is non-zero.
19474         * hurd/hurd/ioctl.h (_hurd_locked_install_cttyid): New declaration.
19475         * sysdeps/mach/hurd/setsid.c: Include <hurd/ioctl.h>.
19476         * sysdeps/mach/hurd/mmap.c (__mmap): Use 0 instead of NULL for
19477         comparisons with mapaddr.
19478         * nscd/nscd-client.h: Include <time.h>.
19479         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Pass vm_offset_t dummy
19480         9th parameter to __vm_region instead of int.
19481         * bits/termios.h [!__USE_MISC] (EXTPROC): Do not define.
19482         * scripts/check-local-headers.sh (exclude): Add device/,
19483         hurd/hurd_types.h, hurd/ioctl_types.h, hurd/paths.h, hurd/ioctls.defs,
19484         cthreads.h.
19485
19486 2015-03-19  Roland McGrath  <roland@hack.frob.com>
19487
19488         * sysdeps/arm/memcpy.S [ARM_ALWAYS_BX]: Fix computed-jump calculations
19489         to account for alignment padding.
19490         * sysdeps/arm/memmove.S: Likewise.
19491
19492 2015-03-19  Chris Metcalf  <cmetcalf@ezchip.com>
19493
19494         * sysdeps/unix/sysv/linux/generic/README: New file.
19495
19496 2015-03-18  Joseph Myers  <joseph@codesourcery.com>
19497
19498         [BZ #18138]
19499         * nptl/sem_waitcommon.c: Include <kernel-features.h>.
19500         (futex_abstimed_wait)
19501         [__ASSUME_FUTEX_CLOCK_REALTIME && lll_futex_timed_wait_bitset]:
19502         Use lll_futex_timed_wait_bitset with FUTEX_CLOCK_REALTIME instead
19503         of lll_futex_timed_wait.
19504
19505 2015-03-18  Brad Hubbard  <bhubbard@redhat.com>
19506
19507         [BZ #17542]
19508         * sunrpc/svc.c (xprt_register): Use calloc to allocate xports.
19509
19510 2015-03-17  Alexandre Oliva <aoliva@redhat.com>
19511
19512         [BZ #17090]
19513         [BZ #17620]
19514         [BZ #17621]
19515         [BZ #17628]
19516         * NEWS: Update.
19517         * elf/dl-tls.c (_dl_update_slotinfo): Clean up outdated DTV
19518         entries with Static TLS too.  Skip entries past the end of the
19519         allocated DTV, from Alan Modra.
19520         (tls_get_addr_tail): Update to glibc_likely/unlikely.  Move
19521         Static TLS DTV entry set up from...
19522         (_dl_allocate_tls_init): ... here (fix modid assertion), ...
19523         * elf/dl-reloc.c (_dl_nothread_init_static_tls): ... here...
19524         * nptl/allocatestack.c (init_one_static_tls): ... and here...
19525         * elf/dlopen.c (dl_open_worker): Drop l_tls_modid upper bound
19526         for Static TLS.
19527         * elf/tlsdeschtab.h (map_generation): Return size_t.  Check
19528         that the slot we find is associated with the given map before
19529         using its generation count.
19530         * nptl_db/db_info.c: Include ldsodefs.h.
19531         (rtld_global, dtv_slotinfo_list, dtv_slotinfo): New typedefs.
19532         * nptl_db/structs.def (DB_RTLD_VARIABLE): New macro.
19533         (DB_MAIN_VARIABLE, DB_RTLD_GLOBAL_FIELD): Likewise.
19534         (link_map::l_tls_offset): New struct field.
19535         (dtv_t::counter): Likewise.
19536         (rtld_global): New struct.
19537         (_rtld_global): New rtld variable.
19538         (dl_tls_dtv_slotinfo_list): New rtld global field.
19539         (dtv_slotinfo_list): New struct.
19540         (dtv_slotinfo): Likewise.
19541         * nptl_db/td_symbol_list.c: Drop gnu/lib-names.h include.
19542         (td_lookup): Rename to...
19543         (td_mod_lookup): ... this.  Use new mod parameter instead of
19544         LIBPTHREAD_SO.
19545         * nptl_db/td_thr_tlsbase.c: Include link.h.
19546         (dtv_slotinfo_list, dtv_slotinfo): New functions.
19547         (td_thr_tlsbase): Check DTV generation.  Compute Static TLS
19548         addresses even if the DTV is out of date or missing them.
19549         * nptl_db/fetch-value.c (_td_locate_field): Do not refuse to
19550         index zero-length arrays.
19551         * nptl_db/thread_dbP.h: Include gnu/lib-names.h.
19552         (td_lookup): Make it a macro implemented in terms of...
19553         (td_mod_lookup): ... this declaration.
19554         * nptl_db/db-symbols.awk (DB_RTLD_VARIABLE): Override.
19555         (DB_MAIN_VARIABLE): Likewise.
19556
19557 2015-03-16  H.J. Lu  <hongjiu.lu@intel.com>
19558
19559         [BZ #18134]
19560         * sysdeps/x86_64/dl-trampoline.S (PRESERVE_BND_REGS_PREFIX): New.
19561
19562 2015-03-15  Paul Eggert  <eggert@cs.ucla.edu>
19563
19564         * stdlib/setenv.c (__add_to_environ): Revert previous change.
19565
19566 2015-03-14  Andreas Schwab  <schwab@linux-m68k.org>
19567
19568         [BZ #18128]
19569         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (atomic_exchange_and_add)
19570         (atomic_add, atomic_increment_and_test)
19571         (atomic_decrement_and_test): Fix 64-bit arithmetic.
19572
19573 2015-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19574
19575         * stdlib/setenv.c (__add_to_environ):
19576         Dump core quickly if setenv (..., NULL, ...) is called.
19577
19578 2015-03-13  Roland McGrath  <roland@hack.frob.com>
19579
19580         * sysdeps/arm/tls-macros.h: Include <sysdep.h>.
19581         (GET_SPECIAL_RELOC, GET_SPECIAL_PCREL): New macros to encapsulate
19582         all the necessary asm magic in one place.
19583         (TLS_LE, TLS_IE, TLS_LD, TLS_GD): Rewritten as C expressions
19584         using those.
19585
19586 2015-03-13  Carlos O'Donell  <carlos@redhat.com>
19587
19588         [BZ #14906]
19589         * nscd/cache.c (prune_cache): Use TRACED_FILE. Compare and update
19590         traced file mtime. Use consistent log message.
19591         * nscd/connections.c [HAVE_INOTIFY] (install_watches): New function.
19592         (register_traced_file): Call install_watches. Always set mtime.
19593         (invalidate_cache): Iterate over all trace files. Call install_watches.
19594         (inotify_check_files): Don't inline. Handle watching parent
19595         directories and configuration file movement in and out.
19596         (handle_inotify_events): New function.
19597         (main_loop_poll): Call handle_inotify_events.
19598         (main_loop_epoll): Likewise.
19599         * nscd/nscd.h: Define TRACED_FILE, TRACED_DIR, and PATH_MAX.
19600         (struct traced_file): Use array of inotify fds. Add parent directory,
19601         and basename.
19602         (struct database_dyn): Remove unused file_mtime.
19603         (init_traced_file): New inline function.
19604         (define_traced_file): New macro.
19605         * nss/nss_db/db-init.c: Use define_traced_file.
19606         (_nss_db_init): Use init_traced_file.
19607         * nss/nss_files/files-init.c: Use define_traced_file.
19608         (_nss_files_init): Use init_traced_file.
19609
19610 2015-03-12  Joseph Myers  <joseph@codesourcery.com>
19611
19612         * soft-fp/soft-fp.h (_FP_STATIC_ASSERT): New macro.
19613         [_LIBC]: Do not include <stdlib.h>.
19614         [!_LIBC] (abort): Remove declaration.
19615         * soft-fp/op-2.h (_FP_MUL_MEAT_2_120_240_double): Use
19616         _FP_STATIC_ASSERT instead of conditionally calling abort.
19617         * soft-fp/op-common.h (_FP_FROM_INT): Likewise.
19618         (_FP_EXTEND_CNAN): Likewise.
19619         (FP_TRUNC): Likewise.
19620         (__FP_CLZ): Likewise.
19621         * sysdeps/powerpc/nofpu/flt-rounds.c: Include <stdlib.h>.
19622
19623 2015-03-12  Yaakov Selkowitz  <yselkowi@redhat.com>
19624
19625         * manual/string.texi (XPG basename): Fix prototype.
19626
19627 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19628
19629         [BZ #18080]
19630         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S
19631         (__setcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19632         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S
19633         (__setcontext): Likewise.
19634         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S
19635         (__swapcontext): Use SIG_SETMASK instead of SIG_BLOCK.
19636         Call rt_sigprocmask syscall one time to set new signal mask
19637         and retrieve the current signal mask instead of two calls.
19638         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S
19639         (__swapcontext): Likewise.
19640         * stdlib/Makefile (tests): Add new testcase tst-setcontext2.
19641         * stdlib/tst-setcontext2.c: New file.
19642
19643 2015-03-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
19644
19645         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
19646
19647 2015-03-11  Aurelien Jarno  <aurelien@aurel32.net>
19648
19649         [BZ #18093]
19650         * elf/cache.c (load_aux_cache): Regenerate the cache if it has
19651         the wrong size.
19652
19653 2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
19654
19655         [BZ #18043]
19656         * posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
19657
19658 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19659
19660         * config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
19661         * include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (strong_alias):
19662         Remove define.
19663         [HAVE_ASM_GLOBAL_DOT_NAME] (strong_data_alias): Likewise.
19664         [HAVE_ASM_GLOBAL_DOT_NAME] (weak_alias): Likewise.
19665         [HAVE_ASM_GLOBAL_DOT_NAME] (_symbol_version): Likewise.
19666         [HAVE_ASM_GLOBAL_DOT_NAME] (_default_symbol_version): Likewise.
19667         [HAVE_ASM_GLOBAL_DOT_NAME] (HIDDEN_JUMPTARGET): Likewise.
19668         * nptl_db/db-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME] (DOT): Remove
19669         define.
19670         * nptl_db/td_symbol_list.c (td_lookup): Remove
19671         HAVE_ASM_GLOBAL_DOT_NAME code.
19672         * sysdeps/powerpc/powerpc64/configure.ac: Remove
19673         HAVE_ASM_GLOBAL_DOT_NAME check.
19674         * sysdeps/powerpc/powerpc64/configure: Regenerate.
19675         * sysdeps/powerpc/powerpc64/sysdep.h [HAVE_ASM_GLOBAL_DOT_NAME]
19676         (DOT_LABEL): Remove define.
19677         [HAVE_ASM_GLOBAL_DOT_NAME] (BODY_LABEL): Likewise.
19678         [HAVE_ASM_GLOBAL_DOT_NAME] (ENTRY_2): Likewise.
19679         [HAVE_ASM_GLOBAL_DOT_NAME] (END_2): Likewise.
19680         * sysdeps/powerpc/powerpc64/tls-macros.h [HAVE_ASM_GLOBAL_DOT_NAME]
19681         (__TLS_GET_ADDR): Likewise.
19682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h
19683         [HAVE_ASM_GLOBAL_DOT_NAME] (DASHDASHPFX): Likewise.
19684
19685 2015-03-11  Carlos O'Donell  <carlos@redhat.com>
19686
19687         [BZ #18111]
19688         * sysdeps/hppa/fpu/fpu_control.h (_FPU_HPPA_SHIFT_FLAGS): Define.
19689         (_FPU_SETCW): Initialize cw from fpsr before storing.
19690         * sysdeps/hppa/fpu/fsetexcptflg.c: Include fpu_control.h
19691         (fesetexceptflag): Rewrite using fpu_control.h.
19692         * sysdeps/hppa/fpu/feupdateenv.c: Handle FE_DFL_ENV, and FE_NOMASK_ENV.
19693
19694 2015-03-11  John David Anglin  <danglin@gcc.gnu.org>
19695
19696         [BZ #18110]
19697         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Don't modify bufptr in
19698         asms.
19699         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
19700
19701 2015-03-11  Joseph Myers  <joseph@codesourcery.com>
19702
19703         * soft-fp/soft-fp.h (_FP_UNREACHABLE): New macro.
19704         * soft-fp/op-common.h (_FP_MUL): Use _FP_UNREACHABLE instead of
19705         abort.
19706         (_FP_FMA): Likewise.
19707         (_FP_DIV): Likewise.
19708
19709 2015-03-10  Roland McGrath  <roland@hack.frob.com>
19710
19711         * scripts/evaluate-test.sh: Grok exit code 77 as UNSUPPORTED and exit
19712         with 0 in that case.
19713         * Makefile (summarize-tests): New canned sequence, factored out of
19714         commands for targets tests and xtests.  Display summary lines that
19715         don't start with PASS: or XFAIL: rather than ones that do start with
19716         ERROR: or FAIL:.  Make the commands fail if any summary lines fail
19717         to start with X?PASS: or XFAIL: or UNSUPPORTED: rather than if any
19718         do start with ERROR: or FAIL:.
19719         * dlfcn/Makefile (tests): Add bug-atexit3 back here unconditionally
19720         (except for [$(build-shared) = yes]).
19721         (tests-unsupported) [$(CXX) empty]: Add bug-atexit3.
19722         (LDLIBS-bug-atexit3-lib.so): Conditionalize on [$(CXX) nonempty].
19723         ($(objpfx)bug-atexit3, $(objpfx)bug-atexit3.out): Likewise.
19724         * nptl/Makefile: Revert 2015-03-04 changes.
19725         [$(CXX) empty] (tests-unsupported): New variable.
19726         * debug/Makefile: Likewise.
19727
19728         * posix/regcomp.c: Fix comment typos and formatting to harmonize with
19729         gnulib file.  Replace __attribute with __attribute__ throughout.
19730
19731 2015-03-10  Carlos O'Donell  <carlos@redhat.com>
19732
19733         * sysdeps/hppa/fpu/libm-test-ulps: Update.
19734
19735 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19736
19737         [BZ #18104]
19738         * math/auto-libm-test-in: Add another test of pow.
19739         * math/auto-libm-test-out: Regenerated.
19740
19741 2015-03-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19742
19743         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Add
19744         $(config-cflags-nofma).
19745
19746 2015-03-10  Joseph Myers  <joseph@codesourcery.com>
19747
19748         * soft-fp/double.h [SOFT_FP_DOUBLE_H]: New multiple-include guard.
19749         * soft-fp/extended.h [SOFT_FP_EXTENDED_H]: Likewise.
19750         * soft-fp/op-1.h [SOFT_FP_OP_1_H]: Likewise.
19751         * soft-fp/op-2.h [SOFT_FP_OP_2_H]: Likewise.
19752         * soft-fp/op-4.h [SOFT_FP_OP_4_H]: Likewise.
19753         * soft-fp/op-8.h [SOFT_FP_OP_8_H]: Likewise.
19754         * soft-fp/op-common.h [SOFT_FP_OP_COMMON_H]: Likewise.
19755         * soft-fp/quad.h [SOFT_FP_QUAD_H]: Likewise.
19756         * soft-fp/single.h [SOFT_FP_SINGLE_H]: Likewise.
19757         * soft-fp/soft-fp.h (SOFT_FP_H): Define to 1 rather than empty.
19758         Add comment on closing #endif.
19759
19760 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19761
19762         * posix/wordexp.c (CHAR_IN_SET): New macro.
19763         (parse_param): Use it.
19764
19765 2015-03-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19766
19767         * sysdeps/powerpc/fpu/libm-test-ulps: update.
19768
19769 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19770
19771         [BZ #18043]
19772         * posix/wordexp.c (parse_param): Fix buffer overflow.
19773         * posix/wordexp-test.c (test_case): Add test case.
19774
19775 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19776
19777         [BZ #18042]
19778         * posix/wordexp.c (parse_backtick): Fix off-by-one.
19779         * posix/wordexp-test.c (test_case): Add test for BZ #18042.
19780
19781 2015-03-09  Paul Pluzhnikov  <ppluzhnikov@google.com>
19782
19783         [BZ #18043]
19784         * posix/wordexp-test.c (test_case): Add test for BZ #18043
19785         (do_bz18043): Delete.
19786         (at_page_end): New.
19787         (testit): Refactor to have words at the edge of unreadable page.
19788
19789 2015-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
19790
19791         [BZ #16734]
19792         * libio/genops.c (_IO_unbuffer_all): Renamed from _IO_unbuffer_write.
19793         Cleanup read-only streams as well.
19794         (_IO_cleanup): Call _IO_unbuffer_all instead of _IO_unbuffer_write.
19795
19796 2015-03-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19797
19798         * sysdeps/mach/hurd/bits/libc-lock.h [_LIBC]: Include
19799         <bits/libc-lockP.h>
19800
19801 2015-03-07  Joseph Myers  <joseph@codesourcery.com>
19802
19803         * soft-fp/soft-fp.h (_FP_ZERO_INIT): New macro.  Define depending
19804         on [__KERNEL__].
19805         * soft-fp/op-1.h (_FP_FRAC_DECL_1): Use _FP_ZERO_INIT.
19806         * soft-fp/op-2.h (_FP_FRAC_DECL_2): Likewise.
19807         * soft-fp/op-common.h (_FP_DECL): Likewise.
19808
19809 2015-03-06  H.J. Lu  <hongjiu.lu@intel.com>
19810
19811         * elf/ifuncdep2.c (global): Replace
19812         __attribute__((visibility("protected"))) with
19813         asm (".protected global").
19814         * elf/ifuncmod1.c (global): Likewise.
19815         * elf/ifuncmod5.c (global): Likewise.
19816
19817 2015-03-06  Joseph Myers  <joseph@codesourcery.com>
19818
19819         * soft-fp/soft-fp.h [!_LIBC && __KERNEL__]: Include
19820         <asm/sfp-machine.h> instead of <sfp-machine.h>.
19821
19822 2015-03-06  Roland McGrath  <roland@hack.frob.com>
19823
19824         * manual/install.texi (Configuring and compiling):
19825         Document test-wrapper-env-only.
19826         * INSTALL: Regenerated.
19827
19828 2015-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19829
19830         [BZ #18043]
19831         * posix/wordexp.c (parse_param): Fix buffer overflow.
19832         * posix/wordexp-test.c (do_bz18043): Add test case.
19833
19834 2015-03-06  Vincent Bernat  <vincent@bernat.im>
19835
19836         * time/tst-strptime2.c (do_test): Ensure failing tests are
19837         reported correctly.
19838         * time/tst-strptime3.c (do_test): Likewise.
19839
19840 2015-03-06  Samuel Thibault  <samuel.thibault@inria.fr>
19841
19842         Fix aio_error thread-safety.
19843         * sysdeps/pthread/aio_error.c: New file
19844         * sysdeps/pthread/aio_misc.c: Remove optimistic comment about
19845         synchronization.
19846
19847 2015-03-06  Florian Weimer  <fweimer@redhat.com>
19848
19849         * stdio-common/vfprintf.c (THOUSANDS_SEP_T): New typedef.
19850         (group_number, vfprintf): Use it.
19851         (JUMP_TABLE_BASE_LABEL): New preprocessor macro.
19852         (JUMP, REF): Use it.
19853         (WORK_BUFFER_SIZE): New enum constant.
19854         (process_arg, vfprintf): Use it.
19855
19856 2015-03-06  Rical Jasan  <ricaljasan@pacific.net>
19857
19858         * manual/errno.texi (Error Messages): Complete example function
19859         by adding missing #define.
19860         (program_invocation_name): Add statement indicating GNU
19861         extension and reference which header file declares the variable.
19862         (program_invocation_short_name): Likewise.
19863
19864 2015-03-06  Mike Frysinger  <vapier@gentoo.org>
19865
19866         * manual/errno.texi (Error Messages): Delete strerror ISO C89
19867         compatibility note.
19868
19869 2015-03-05  Roland McGrath  <roland@hack.frob.com>
19870
19871         * Makeconfig (test-wrapper-env-only): New variable.
19872         * Rules (make-test-out): If variable $*-ENV-only is nonempty,
19873         then use that with $(test-wrapper-env-only) rather than using
19874         $(test-wrapper-env) $(run-program-env) $($*-ENV).
19875
19876 2015-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19877
19878         [BZ #18082]
19879         * sysdeps/alpha/dl-machine.h (elf_machine_type_class): Replace
19880         ELF_RTYPE_CLASS_NOCOPY with ELF_RTYPE_CLASS_COPY in comments.
19881         * sysdeps/arm/dl-machine.h (elf_machine_type_class): Likewise.
19882         * sysdeps/hppa/dl-machine.h (elf_machine_type_class): Likewise.
19883         * sysdeps/i386/dl-machine.h (elf_machine_type_class): Likewise.
19884         * sysdeps/ia64/dl-machine.h (elf_machine_type_class): Likewise.
19885         * sysdeps/m68k/dl-machine.h (elf_machine_type_class): Likewise.
19886         * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
19887         Likewise.
19888         * sysdeps/nios2/dl-machine.h (elf_machine_type_class): Likewise.
19889         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_type_class):
19890         Likewise.
19891         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_type_class):
19892         Likewise.
19893         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_type_class):
19894         Likewise.
19895         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_type_class):
19896         Likewise.
19897         * sysdeps/sh/dl-machine.h (elf_machine_type_class): Likewise.
19898         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_type_class):
19899         Likewise.
19900         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_type_class):
19901         Likewise.
19902         * sysdeps/tile/dl-machine.h (elf_machine_type_class): Likewise.
19903         * sysdeps/x86_64/dl-machine.h (elf_machine_type_class): Likewise.
19904
19905 2015-03-04  Roland McGrath  <roland@hack.frob.com>
19906
19907         * sysdeps/generic/netinet/if_ether.h: Don't #include <features.h>.
19908         (ETH_ALEN): New macro.
19909         (struct ether_addr): Use it for length of ether_addr_octet.
19910
19911         * nss/test-netdb.c: Don't #include <rpc/netdb.h>.
19912         (setdb): Don't call __nss_configure_lookup for "rpc".
19913         (do_test): Don't call test_rpc.
19914         (output_rpcent, test_rpc): Functions moved ...
19915         * sunrpc/test-rpcent.c: ... to this new file.
19916         * sunrpc/Makefile (tests): Add it.
19917
19918         * nptl/tst-cancel4.c (tf_sigpause) [!SIGCANCEL]: Call pause instead of
19919         __xpg_sigpause.
19920         * nptl/tst-signal3.c: Conditionalize body on [SIGRTMIN].
19921         * nptl/tst-signal6.c: Likewise.
19922         * rt/tst-mqueue5.c: Conditionalize body on [SIGRTMIN && SA_SIGINFO].
19923         * rt/tst-timer4.c: Conditionalize body on [SA_SIGINFO].
19924
19925         * configure.ac (libc_cv_cxx_link_ok): New check.
19926         Reset CXX to empty if it fails to link.
19927         * configure: Regenerated.
19928         * dlfcn/Makefile (tests, modules-names): Add bug-atexit3 and
19929         bug-atexit3-lib only if $(CXX) is nonempty.
19930         * nptl/Makefile (tests): Likewise for tst-cancel24.
19931         (tests, tests-static): Likewise for tst-cancel24-static.
19932         * debug/Makefile (tests): Likewise for tst-chk4, tst-chk5, tst-chk6,
19933         tst-lfschk4, tst-lfschk5, and tst-lfschk6.
19934         * elf/Makefile (tests, modules-names): Likewise for tst-unique3,
19935         tst-unique3lib, tst-unique3lib2, tst-unique4, and tst-unique4lib.
19936
19937 2015-03-04  Andreas Schwab  <schwab@suse.de>
19938
19939         [BZ #17631]
19940         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Don't define
19941         for non-GCC compilers.
19942         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
19943         Likewise.
19944
19945 2015-03-03 Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
19946
19947         [BZ #17776]
19948         * sysdeps/powerpc/bits/fenvinline.h (feraiseexcept): Convert input to
19949         integer before bitwise and assembly operations.
19950         (feclearexcept): Likewise.
19951         * math/test-fenvinline.c: New file.
19952         * math/Makefile: Add test-fenvinline test.
19953
19954 2015-03-03  Alan Modra  <amodra@gmail.com>
19955
19956         [BZ #16512]
19957         * scripts/localplt.awk: Strip off symbol version.
19958         * NEWS: Mention bug fix.
19959
19960 2015-03-02  Roland McGrath  <roland@hack.frob.com>
19961
19962         * sysdeps/pthread/timer_routines.c
19963         (timer_free_list, thread_free_list, thread_active_list): Make static.
19964
19965 2015-03-02  Joseph Myers  <joseph@codesourcery.com>
19966
19967         [BZ #17779]
19968         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
19969         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19970         Undefine.
19971         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19972         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19973         Likewise.
19974         * sysdeps/unix/sysv/linux/sh/kernel-features.h
19975         [__LINUX_KERNEL_VERSION < 0x020625] (__ASSUME_PRLIMIT64):
19976         Likewise.
19977
19978 2015-03-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
19979
19980         [BZ #18036]
19981         * posix/fnmatch_loop.c (END): Detect invalid pattern.
19982         * posix/tst-fnmatch3.c (do_bz18036): Add test case.
19983
19984 2015-03-02  Andreas Schwab  <schwab@suse.de>
19985
19986         * elf/Makefile ($(elf-objpfx)runtime-linker.st): Fix typo in
19987         variable name.
19988
19989 2015-03-02  Florian Weimer  <fweimer@redhat.com>
19990
19991         * nis/nss_nis/nis-initgroups.c (_nss_nis_initgroups_dyn):
19992         Return error status.
19993
19994 2015-02-27  Alexandre Oliva <aoliva@redhat.com>
19995
19996         [BZ #15969]
19997         * locale/findlocale.c (_nl_find_locale): Introduce const
19998         version of loc_name and drop unsafe type casts.
19999
20000 2015-02-27  Roland McGrath  <roland@hack.frob.com>
20001
20002         * dlfcn/tststatic2.c (main): Converted to ...
20003         (do_test): ... this.
20004         (TEST_FUNCTION): New macro.
20005         Include test-skeleton.c.
20006
20007 2015-02-27  H.J. Lu  <hongjiu.lu@intel.com>
20008
20009         [BZ #17711]
20010         * elf/Makefile (tests): Add vismain only if PIE is enabled.
20011         (tests-pie): Add vismain.
20012         (CFLAGS-vismain.c): New.
20013         * elf/vismain.c: Add comments for PIE requirement.
20014
20015 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
20016
20017         [BZ #18046]
20018         [BZ #18047]
20019         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Use
20020         0x1p-56L as threshold for just returning the argument.
20021         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Use
20022         0x1p-32L as threshold for just returning the argument.
20023         * math/auto-libm-test-in: Add more tests of atanh.
20024         * math/auto-libm-test-out: Regenerated.
20025         * sysdeps/i386/fpu/libm-test-ulps: Update.
20026         * sysdeps/x86_64/fpu/libm-test-ulp: Likewise.
20027
20028 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
20029
20030         * string/bcopy.c (bcopy): Call memmove for performance.
20031
20032 2015-02-27  Wilco Dijkstra  wdijkstr@arm.com
20033
20034         * string/bzero.c (__bzero): Call memset for performance.
20035
20036 2015-02-27  John David Anglin  <dave.anglin@bell.net>
20037
20038         [BZ #18068]
20039         * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (__O_SYNC): Change
20040         to 00100000.
20041
20042 2015-02-27  Joseph Myers  <joseph@codesourcery.com>
20043
20044         * sysdeps/ieee754/k_standard.c (CSTR): Add comment.
20045
20046 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
20047
20048         * sysdeps/ieee754/k_standard.c (CSTR): New macro.
20049         (__kernel_standard): Use CSTR macro when setting exc.name.
20050         * sysdeps/ieee754/Makefile [$(subdir) = math]
20051         (CFLAGS-k_standard.c): Remove variable.
20052
20053         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Change last case for
20054         setting p and q from "else if" to "else".
20055         (qzero): Likewise.
20056         * sysdeps/ieee754/dbl-64/e_j1.c (pone): Likewise.
20057         (qone): Likewise.
20058         * sysdeps/ieee754/flt-32/e_j0f.c (pzerof): Likewise.
20059         (qzerof): Likewise.
20060         * sysdeps/ieee754/flt-32/e_j1f.c (ponef): Likewise.
20061         (qonef): Likewise.
20062         * sysdeps/ieee754/ldbl-96/e_j0l.c (pzero): Likewise.
20063         (qzero): Likewise.
20064         * sysdeps/ieee754/ldbl-96/e_j1l.c (pone): Likewise.
20065         (qone): Likewise.
20066
20067         [BZ #18038]
20068         [BZ #18039]
20069         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
20070         return pi/2 for arguments below 0x1p-113L.
20071         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
20072         return pi/2 for arguments below 0x1p-106L.
20073         * math/auto-libm-test-in: Add more tests of acos.
20074         * math/auto-libm-test-out: Regenerated.
20075
20076         [BZ #16351]
20077         * sysdeps/i386/fpu/e_asin.S (dbl_min): New object.
20078         (MO): New macro.
20079         (__ieee754_asin): Force underflow exception for results with small
20080         absolute value.
20081         * sysdeps/i386/fpu/e_asinf.S (flt_min): New object.
20082         (MO): New macro.
20083         (__ieee754_asinf): Force underflow exception for results with
20084         small absolute value.
20085         * sysdeps/ieee754/dbl-64/e_asin.c: Include <float.h> and <math.h>.
20086         (__ieee754_asin): Force underflow exception for results with small
20087         absolute value.
20088         * sysdeps/ieee754/flt-32/e_asinf.c: Include <float.h>.
20089         (__ieee754_asinf): Force underflow exception for results with
20090         small absolute value.
20091         * sysdeps/ieee754/ldbl-128/e_asinl.c: Include <float.h>.
20092         (__ieee754_asinl): Force underflow exception for results with
20093         small absolute value.
20094         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Include <float.h>.
20095         (__ieee754_asinl): Force underflow exception for results with
20096         small absolute value.
20097         * sysdeps/ieee754/ldbl-96/e_asinl.c: Include <float.h>.
20098         (__ieee754_asinl): Force underflow exception for results with
20099         small absolute value.
20100         * sysdeps/x86_64/fpu/multiarch/e_asin.c [HAVE_FMA4_SUPPORT]:
20101         Include <math.h>.
20102         * math/auto-libm-test-in: Do not mark underflow exceptions as
20103         possibly missing for bug 16351.
20104         * math/auto-libm-test-out: Regenerated.
20105
20106         [BZ #18030]
20107         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Adjust exponent
20108         of power of 2 down when low part has opposite sign.
20109         * math/libm-test.inc (logb_test_data): Add more tests.
20110
20111 2015-02-26  Andreas Schwab  <schwab@suse.de>
20112
20113         [BZ #18032]
20114         * posix/fnmatch_loop.c (FCT): Remove extra increment when skipping
20115         over collating symbol inside a bracket expression.  Minor cleanup.
20116         * posix/tst-fnmatch3.c (do_test): Add test case.
20117
20118 2015-02-26  Joseph Myers  <joseph@codesourcery.com>
20119
20120         [BZ #18029]
20121         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl):
20122         Adjust exponent of power of 2 down when low part has opposite
20123         sign.
20124         * math/libm-test.inc (ilogb_test_data): Add more tests.
20125
20126 2015-02-26  Alexandre Oliva  <aoliva@redhat.com>
20127
20128         [BZ #15969]
20129         * locale/findlocale.c (_nl_find_locale): Fix constness error in
20130         the previous change.
20131
20132         [BZ #15969]
20133         * locale/findlocale.c (_nl_find_locale): Retry archive search
20134         after alias expansion.
20135
20136 2015-02-25  Roland McGrath  <roland@hack.frob.com>
20137
20138         * iconv/tst-iconv3.c (main): Converted to ...
20139         (do_test): ... this.
20140         (TEST_FUNCTION): New macro.
20141         Include test-skeleton.c.
20142
20143         * iconv/tst-iconv5.c (testcode, number): Make variables static const.
20144         (convert): Make function static.
20145         (test_unalign): Likewise.  Add const to argument pointee types.
20146         (main): Replace with static function do_test.
20147         Print "Succeeded." only if RET is zero.
20148         (TEST_FUNCTION): New macro.
20149         Include test-skeleton.c.
20150
20151         * iconv/gconv_conf.c (__gconv_get_path): Don't crash if __getcwd
20152         returns a null pointer.
20153
20154 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20155
20156         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Define memcpy
20157         to __memcpy_ppc only for static builds.
20158
20159 2015-02-25  Joseph Myers  <joseph@codesourcery.com>
20160
20161         [BZ #18020]
20162         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use 2**56 and
20163         2**-56 not 2**28 and 2**-29 as thresholds for simpler formulas.
20164         * math/auto-libm-test-in: Add more tests of asinh.
20165         * math/auto-libm-test-out: Regenerated.
20166         * sysdeps/i386/fpu/libm-test-ulps: Update.
20167         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20168
20169 2015-02-25  Cong Wang  <xiyou.wangcong@gmail.com>
20170
20171         [BZ #15850]
20172         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Put in6_pktinfo
20173         and ip6_mtuinfo definitions here.
20174         * sysdeps/unix/sysv/linux/bits/in.h [_UAPI_IPV6_H]: Wrap code
20175         in this define too.  Update comment.
20176
20177 2015-02-24  Benno Schulenberg  <bensberg@justemail.net>
20178
20179         * elf/sprof.c (load_shobj): Tweak error message to match others.
20180
20181 2015-02-24  Kevin Easton  <kevin@guarana.org>
20182
20183         [BZ #16145] (partial fix)
20184         * time/tzset.c (__tz_convert): Unlock tzset_lock earlier
20185         to reduce lock contention.
20186
20187 2015-02-24  Miroslav Lichvar  <mlichvar@redhat.com>
20188
20189         * sysdeps/unix/sysv/linux/bits/timex.h: Update version.
20190         (struct timex): Update time comment.
20191         (ADJ_SETOFFSET): Define.
20192
20193 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
20194
20195         [BZ #18019]
20196         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
20197         2**56 not 2**28 as threshold for log (2x) formula.
20198         * math/auto-libm-test-in: Add more tests of acosh.
20199         * math/auto-libm-test-out: Regenerated.
20200         * sysdeps/i386/fpu/libm-test-ulps: Update.
20201         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20202
20203 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
20204
20205         * include/alloca.h [_STACK_GROWS_DOWN] (extend_alloca): Add
20206         parenthesis around the buf assignment.
20207         [_STACK_GROWS_UP] (extend_alloca): Add a char* cast.
20208
20209 2015-02-24  Joseph Myers  <joseph@codesourcery.com>
20210
20211         [BZ #16783]
20212         * sysdeps/i386/fpu/e_scalb.S (__ieee754_scalb): Do not handle
20213         arguments (NaN, -Inf) the same as (+/-Inf, -Inf).
20214         * sysdeps/i386/fpu/e_scalbf.S (__ieee754_scalbf): Likewise.
20215         * sysdeps/i386/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
20216         * sysdeps/x86_64/fpu/e_scalbl.S (__ieee754_scalbl): Likewise.
20217         * math/libm-test.inc (scalb_test_data): Add more tests.
20218
20219 2015-02-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
20220
20221         [BZ #17916]
20222         * libio/fileops.c (_IO_new_file_fopen): Limit stack use
20223         * libio/tst-fopenloc.c (do_test, do_bz17916): Add a large ccs= test
20224
20225 2015-02-24  Eric Rannaud  <e@nanocritical.com>
20226
20227         [BZ #17523]
20228         * io/fcntl.h (__OPEN_NEEDS_MODE): New macro.
20229         * io/bits/fcntl2.h (open): Use it.
20230         (openat): Likewise.
20231         * io/open.c (__libc_open): Likewise.
20232         * io/open64.c (__libc_open64): Likewise.
20233         * io/open64_2.c (__open64_2): Likewise.
20234         * io/open_2.c (__open_2): Likewise.
20235         * io/openat.c (__openat): Likewise.
20236         * io/openat64.c (__openat64): Likewise.
20237         * io/openat64_2.c (__openat64_2): Likewise.
20238         * io/openat_2.c (__openat_2): Likewise.
20239         * sysdeps/mach/hurd/open.c (__libc_open): Likewise.
20240         * sysdeps/mach/hurd/openat.c (__openat): Likewise.
20241         * sysdeps/posix/open64.c (__libc_open64): Likewise.
20242         * sysdeps/unix/sysv/linux/dl-openat64.c (openat64): Likewise.
20243         * sysdeps/unix/sysv/linux/generic/open.c (__libc_open): Likewise.
20244         (__open_nocancel): Likewise.
20245         * sysdeps/unix/sysv/linux/generic/open64.c (__libc_open64): Likewise.
20246         * sysdeps/unix/sysv/linux/open64.c (__libc_open64): Likewise.
20247         * sysdeps/unix/sysv/linux/openat.c (__OPENAT): Likewise.
20248
20249 2015-02-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
20250
20251         [BZ #14841]
20252         * resolv/gethnamaddr.c (getanswer): Skip logging if
20253         RES_USE_DNSSEC is set.
20254         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
20255
20256 2015-02-24  Mike Frysinger  <vapier@gentoo.org>
20257
20258         * sysdeps/unix/sysv/linux/hppa/sysdep.h: Include dl-sysdep.h.
20259
20260 2015-02-23  Alexandre Oliva <aoliva@redhat.com>
20261
20262         * include/stdc-predef.h (__STDC_ISO_10646__): Update to
20263         201304L, for Unicode 7.
20264
20265 2015-02-23  H.J. Lu  <hongjiu.lu@intel.com>
20266
20267         [BZ #17836]
20268         * csu/Makefile (extra-objs): Add gmon-start.o if not builing
20269         shared library.  Add gmon-start.os otherwise.
20270         ($(objpfx)g$(start-installed-name)): Use $(objpfx)S%
20271         $(objpfx)gmon-start.os if builing shared library.
20272         ($(objpfx)g$(static-start-installed-name)): Likewise.
20273
20274 2015-02-23  Andreas Schwab  <schwab@suse.de>
20275
20276         * elf/Makefile (CFLAGS-tst-audit2.c): Define.
20277
20278 2015-02-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
20279
20280         [BZ #17269]
20281         * libio/wstrops.c (_IO_wstr_overflow): Guard against integer overflow
20282         (enlarge_userbuf): Likewise.
20283
20284 2015-02-22  Chung-Lin Tang  <cltang@codesourcery.com>
20285
20286         * libio/tst-memstream2.c (TIMEOUT): Define as 100.
20287         * math/atest-exp.c (TIMEOUT): Adjust to 200.
20288         * math/atest-exp2.c (TIMEOUT): Adjust to 300.
20289         * math/atest-sincos.c (TIMEOUT): Adjust to 600.
20290
20291 2015-02-20  Joseph Myers  <joseph@codesourcery.com>
20292
20293         * soft-fp/op-common.h (_FP_FROM_INT): Wrap call to abort in
20294         expression inside statement expression.
20295
20296 2015-02-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
20297
20298         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Include
20299         <sysdeps/nptl/lowlevellock.h> and remove macros and
20300         functions that are now defined there.
20301         (SYS_futex): Remove.
20302         (lll_compare_and_swap): Remove.
20303         * sysdeps/s390/bits/atomic.h (atomic_exchange_acq): Define.
20304
20305 2015-02-19  Joseph Myers  <joseph@codesourcery.com>
20306
20307         [BZ #17999]
20308         * dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
20309         instead of scandirat.
20310         * dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
20311         [!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
20312         [SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
20313         __scandirat.
20314         * include/dirent.h (scandirat): Do not use libc_hidden_proto.
20315         (__scandirat): Declare.  Use libc_hidden_proto.
20316         * conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
20317         Remove variable.
20318         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
20319
20320 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
20321
20322         [BZ #15319]
20323         * sysdeps/i386/fpu/e_atan2.S (dbl_min): New object.
20324         (MO): New macro.
20325         (__ieee754_atan2): For results with small absolute value, force
20326         underflow exception and remove excess range and precision from
20327         return value.
20328         * sysdeps/i386/fpu/e_atan2f.S (flt_min): New object.
20329         (MO): New macro.
20330         (__ieee754_atan2f): For results with small absolute value, force
20331         underflow exception and remove excess range and precision from
20332         return value.
20333         * sysdeps/i386/fpu/s_atan.S (dbl_min): New object.
20334         (MO): New macro.
20335         (__atan): For results with small absolute value, force underflow
20336         exception and remove excess range and precision from return value.
20337         * sysdeps/i386/fpu/s_atanf.S (flt_min): New object.
20338         (MO): New macro.
20339         (__atanf): For results with small absolute value, force underflow
20340         exception and remove excess range and precision from return value.
20341         * sysdeps/ieee754/dbl-64/e_atan2.c: Include <float.h> and
20342         <math.h>.
20343         (__ieee754_atan2): Force underflow exception for results with
20344         small absolute value.
20345         * sysdeps/ieee754/dbl-64/s_atan.c: Include <float.h> and
20346         <math_private.h>.
20347         (atan): Force underflow exception for results with small absolute
20348         value.
20349         * sysdeps/ieee754/flt-32/s_atanf.c: Include <float.h>.
20350         (__atanf): Force underflow exception for results with small
20351         absolute value.
20352         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include <float.h> and
20353         <math.h>.
20354         (__atanl): Force underflow exception for results with small
20355         absolute value.
20356         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <float.h>.
20357         (__atanl): Force underflow exception for results with small
20358         absolute value.
20359         * sysdeps/x86/fpu/bits/mathinline.h
20360         [!__SSE2_MATH__ && !__x86_64__ && __LIBC_INTERNAL_MATH_INLINES]
20361         (__ieee754_atan2): Only define inline for long double.
20362         * sysdeps/x86_64/fpu/multiarch/e_atan2.c
20363         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Include <math.h>.
20364         * math/auto-libm-test-in: Do not mark underflow exceptions as
20365         possibly missing for bug 15319.  Add more tests of atan2.
20366         * math/auto-libm-test-out: Regenerated.
20367         * math/libm-test.inc (casin_test_data): Do not mark underflow
20368         exceptions as possibly missing for bug 15319.
20369         (casinh_test_data): Likewise.
20370         * sysdeps/i386/fpu/libm-test-ulps: Update.
20371
20372 2015-02-18  Steve Ellcey  <sellcey@imgtec.com>
20373
20374         * sysdeps/unix/sysv/linux/mips/bits/endian.h: Remove.
20375         * sysdeps/mips/bits/endian.h: Fix comments.
20376
20377 2015-02-18  Joseph Myers  <joseph@codesourcery.com>
20378
20379         [BZ #17996]
20380         * include/search.h (hcreate_r): Don't use libc_hidden_proto.
20381         (hdestroy_r): Likewise.
20382         (hsearch_r): Likewise.
20383         (__hcreate_r): Declare and use libc_hidden_proto.
20384         (__hdestroy_r): Likewise.
20385         (__hsearch_r): Likewise.
20386         * misc/hsearch.c (hsearch): Call __hsearch_r instead of hsearch_r.
20387         (hcreate): Call __hcreate_r instead of hcreate_r.
20388         (__hdestroy): Call __hdestroy_r instead of hdestroy_r.
20389         * misc/hsearch_r.c (hcreate_r): Rename to __hcreate_r and define
20390         as weak alias of __hcreate_r.
20391         (hdestroy_r): Rename to __hdestroy_r and define as weak alias of
20392         __hdestroy_r.
20393         (hsearch_r): Rename to __hsearch_r and define as weak alias of
20394         __hsearch_r.
20395         * conform/Makefile (test-xfail-XPG3/search.h/linknamespace):
20396         Remove variable.
20397         (test-xfail-XPG4/search.h/linknamespace): Likewise.
20398         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
20399         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
20400         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
20401
20402 2015-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
20403
20404         * malloc/malloc.c (__libc_malloc): Consolidate arena_lookup and
20405         arena_lock into a single arena_get.
20406
20407 2015-02-17  Carlos O'Donell  <carlos@redhat.com>
20408
20409         * dl-reloc.c: Inlucde libc-internal.h.
20410         (_dl_try_allocate_static_tls): Call ALIGN_UP.
20411         (_dl_relocate_object): Call ALIGN_UP, ALIGN_DOWN, and PTR_ALIGN_DOWN.
20412         (_dl_protect_relro): Call ALIGN_UP and ALIGN_DOWN.
20413         * malloc/arena.c (new_heap): Use pagesize. Call ALIGN_UP.
20414         (grow_heap): Likewise.
20415         * malloc/malloc.c: Include libc-internal.h.
20416         (do_check_malloc): Call powerof2.
20417         (sysmalloc): Use pagesize. Call ALIGN_UP.
20418         (systrim): Use pagesize.
20419         (mremap_chunk): Use pagesize. Call ALIGN_UP.
20420         (__libc_valloc): Use pagesize.
20421         (__libc_pvalloc): Use pagesize. Call ALIGN_UP.
20422
20423 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
20424
20425         [BZ #17991]
20426         * include/sys/resource.h (__getrlimit64): Declare.  Use
20427         libc_hidden_proto.
20428         * resource/getrlimit64.c (getrlimit64): Rename to __getrlimit64
20429         and define as weak alias of __getrlimit64.  Use libc_hidden_weak.
20430         * sysdeps/posix/spawni.c (__spawni): Call __getrlimit64 instead of
20431         getrlimit64.
20432         * sysdeps/unix/sysv/linux/getrlimit64.c (getrlimit64): Rename to
20433         __getrlimit64.
20434         [!getrlimit64] (getrlimit64): Define as weak alias of
20435         __getrlimit64.  Use libc_hidden_weak.
20436         * sysdeps/unix/sysv/linux/i386/getrlimit64.c (getrlimit64): Define
20437         using __getrlimit64 not __new_getrlimit64.
20438         (__GI_getrlimit64): Likewise.
20439         * sysdeps/unix/sysv/linux/mips/getrlimit64.c (getrlimit64):
20440         Likewise.
20441         (__GI_getrlimit64): Likewise.
20442         (__old_getrlimit64): Use __getrlimit64 not __new_getrlimit64.
20443         * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
20444         (getrlimit): Add __getrlimit64 alias.
20445         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (getrlimit):
20446         Likewise.
20447         * conform/Makefile (test-xfail-XOPEN2K/spawn.h/linknamespace):
20448         Remove variable.
20449         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
20450         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
20451
20452 2015-02-17  Paul Pluzhnikov  <ppluzhnikov@google.com>
20453
20454         * libio/fileops.c: Add missing sys/mman.h
20455         * libio/iopopen.c: Add missing fcntl.h, remove redundant unistd.h
20456
20457 2015-02-17  Joseph Myers  <joseph@codesourcery.com>
20458
20459         * manual/math.texi (Errors in Math Functions): Clarify goals
20460         regarding inexact and underflow exceptions.
20461
20462 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20463
20464         * sysdeps/mips/memcpy.S: Move R6 PREFETCH_STORE_HINT check.
20465         * sysdeps/mips/memset.S: Ditto.
20466
20467 2015-02-17  Steve Ellcey  <sellcey@imgtec.com>
20468
20469         * sysdeps/mips/bits/endian.h (__MIPSEL): Use #ifdef instead of #if.
20470
20471 2015-02-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
20472
20473         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c
20474         (__v1longjmp): Remove versioned symbol.
20475         (__v1siglongjmp): Remove alias and versioned symbol.
20476         (__v2longjmp): Use DEFINE_LONGJMP instead of alias.
20477         (__v2siglongjmp): Likewise.
20478
20479 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20480
20481         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Remove file.
20482
20483 2015-02-16  Mike Frysinger  <vapier@gentoo.org>
20484
20485         * sysdeps/unix/sysv/linux/ia64/getpagesize.c: Delete.
20486
20487 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20488
20489         [BZ #17987]
20490         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Ensure sign of
20491         zero result does not depend on the sign resulting from
20492         subtraction.
20493         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20494         Likewise.
20495         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20496         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20497         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20498         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20499         * math/libm-test.inc (remquo_test_data): Add more tests.
20500
20501 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20502
20503         * manual/time.texi (TZ Variable): glibc no longer comes with tzdata.
20504         Problem reported by J William Piggott.
20505
20506 2015-02-16  Joseph Myers  <joseph@codesourcery.com>
20507
20508         [BZ #17978]
20509         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Do not form
20510         products 4 * y and 2 * y where those would overflow.
20511         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20512         Likewise.
20513         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
20514         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
20515         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20516         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
20517         * math/libm-test.inc (remquo_test_data): Add more tests.
20518
20519         * sysdeps/mips/sgidefs.h [!_ABIO64] (_ABIO64): New macro.
20520
20521         * sysdeps/mips/memcpy.S [_COMPILING_NEWLIB]: Change condition to
20522         [defined _COMPILING_NEWLIB].
20523         * sysdeps/mips/memset.S [_COMPILING_NEWLIB]: Likewise.
20524         * sysdeps/mips/strcmp.S [_COMPILING_NEWLIB]: Likewise.
20525
20526         * sysdeps/mips/sys/asm.h [__mips_isa_rev < 6]: Change condition to
20527         [!defined __mips_isa_rev || __mips_isa_rev < 6].
20528
20529 2015-02-16  Torvald Riegel  <triegel@redhat.com>
20530
20531         * nptl/tst-cond25.c (cleanup): Explicitly check that the mutex is
20532         acquired.
20533
20534 2015-02-15  Matthew Fortune <Matthew.Fortune@imgtec.com>
20535
20536         [BZ #17792]
20537         * sysdeps/unix/sysv/linux/ia64/sys/user.h (NBPG): Remove.
20538         (UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
20539         HOST_STACK_END_ADDR): Likewise.
20540
20541 2015-02-13  Steve Ellcey  <sellcey@imgtec.com>
20542
20543         * sysdeps/mips/bits/endian.h (__MIPSEB): Use #ifdef instead of #if.
20544         * sysdeps/mips/memcpy.S (__MIPSEB): Ditto.
20545         * sysdeps/mips/memset.S (__MIPSEB): Ditto.
20546
20547 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20548
20549         * sysdeps/generic/c++-types.data: New file.
20550         * sysdeps/generic/ld.abilist: New file.
20551         * sysdeps/generic/libBrokenLocale.abilist: New file.
20552         * sysdeps/generic/libanl.abilist: New file.
20553         * sysdeps/generic/libc.abilist: New file.
20554         * sysdeps/generic/libcrypt.abilist: New file.
20555         * sysdeps/generic/libdl.abilist: New file.
20556         * sysdeps/generic/libm.abilist: New file.
20557         * sysdeps/generic/libpthread.abilist: New file.
20558         * sysdeps/generic/libresolv.abilist: New file.
20559         * sysdeps/generic/librt.abilist: New file.
20560
20561 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20562
20563         [BZ #17569]
20564         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo):
20565         Compute absolute value of x as modified by fmod, not original
20566         value of x.
20567         * math/libm-test.inc (RUN_TEST_ffI_f1): Rename to
20568         RUN_TEST_ffI_f1_mod8.  Check extra return value mod 8.
20569         (RUN_TEST_LOOP_ffI_f1): Rename to RUN_TEST_LOOP_ffI_f1_mod8.  Call
20570         RUN_TEST_ffI_f1_mod8.
20571         (remquo_test_data): Add more tests.
20572
20573 2015-02-13  Roland McGrath  <roland@hack.frob.com>
20574
20575         * sysdeps/init_array/pt-crti.S: New file.
20576
20577 2015-02-13  Joseph Myers  <joseph@codesourcery.com>
20578
20579         [BZ #17967]
20580         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Use
20581         __builtin_fmaf instead of relying on contraction of a * b + c.
20582
20583 2015-02-12  J William Piggott  <elseifthen@gmx.com>
20584
20585         [BZ #17969]
20586         * manual/time.texi: correct the zoneinfo path in the TZ Variable
20587         node.
20588
20589 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20590
20591         [BZ #17964]
20592         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Use
20593         __builtin_fma instead of relying on contraction of a * b + c.
20594
20595 2015-02-12  Roland McGrath  <roland@hack.frob.com>
20596
20597         * Makeconfig (ASFLAGS): Add -Werror=undef.
20598         * sysdeps/arm/Versions (libc: GLIBC_2.19): New (empty) version set.
20599         * sysdeps/unix/make-syscalls.sh: Always emit #define's for
20600         SYSCALL_CANCELLABLE, SYSCALL_NOERRNO, SYSCALL_ERRVAL, to 1 or 0.
20601
20602         * Makeconfig (after-link): New variable.
20603         (+link-pie, +link-pie-tests): Use it.
20604         (+link-static, +link-static-tests): Likewise.
20605         (+link, +link-tests): Likewise.
20606         * Makerules (build-module, build-module-asneeded): Likewise.
20607         (lib%.so, $(common-objpfx)libc.so, $(common-objpfx)linkobj/libc.so):
20608         Likewise.
20609         * elf/Makefile ($(objpfx)ld.so): Likewise.
20610
20611 2015-02-12  Rüdiger Sonderfeld  <ruediger@c-plusplus.net>
20612
20613         [BZ #17965]
20614         * manual/time.texi (Elapsed Time): tv_sec is of type time_t in
20615         both struct timeval and struct timespec.
20616
20617 2015-02-12  Joseph Myers  <joseph@codesourcery.com>
20618
20619         [BZ #16560]
20620         * math/e_exp2l.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
20621         and redefine.
20622         (__ieee754_exp2l): Do not multiply small fractional parts by
20623         M_LN2l.
20624         * sysdeps/i386/fpu/e_exp2l.S (__ieee754_exp2l): Just add 1 to
20625         small argument.
20626         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
20627         * sysdeps/ieee754/flt-32/e_exp2f.c (__ieee754_exp2f): Likewise.
20628         * sysdeps/x86_64/fpu/e_exp2l.S (__ieee754_exp2l): Likewise.
20629         * math/auto-libm-test-in: Add more tests of exp2.
20630         * math/auto-libm-test-out: Regenerated.
20631
20632 2015-02-12  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
20633
20634         * sysdeps/powerpc/powerpc64/power7/strncpy.S (strncpy): Optimize
20635         unaligned path.
20636
20637 2015-02-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20638
20639         * sysdeps/unix/sysv/linux/powerpc/htm.h [TABORT]: Fix encoding for
20640         little endian.
20641
20642 2015-02-12  Andreas Schwab  <schwab@suse.de>
20643
20644         [BZ #15790]
20645         * nptl/pthread_mutexattr_gettype.c (pthread_mutexattr_gettype):
20646         Filter out elision flags from value returned in kind.
20647         * nptl/Makefile (tests): Add tst-pthread-mutexattr.
20648         * nptl/tst-pthread-mutexattr.c: New file.
20649
20650 2015-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20651
20652         * abi-tags: Revert ae20c9a: rename back gnu into gnu-gnu.
20653         * configure.ac, configure: Revert ba90e05: modify gnu-* host_os back
20654         into gnu-gnu, and update comment to refer to abi-tags.
20655
20656 2015-02-11  Joseph Myers  <joseph@codesourcery.com>
20657
20658         [BZ #15467]
20659         * sysdeps/ieee754/dbl-64/s_sincos.c: Include <errno.h>.
20660         (__sincos): Set errno to EDOM for infinite argument.
20661         * sysdeps/ieee754/flt-32/s_sincosf.c: Include <errno.h>.
20662         (SINCOSF_FUNC): Set errno to EDOM for infinite argument.
20663         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include <errno.h>.
20664         (__sincosl): Set errno to EDOM for infinite argument.
20665         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Include <errno.h>.
20666         (__sincosl): Set errno to EDOM for infinite argument.
20667         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include <errno.h>.
20668         (__sincosl): Set errno to EDOM for infinite argument.
20669         * math/libm-test.inc (sincos_test_data): Test errno setting.
20670
20671 2015-02-11  Leonhard Holz  <leonhard.holz@web.de>
20672
20673         * string/strxfrm_l.c: Remove #define STRCMP.
20674         * string/strcoll_l.c: Remove #define STRLEN.
20675         * wcsmbs/wcsxfrm_l.c: Remove #define STRCMP.
20676         * wcsmbs/wcscoll_l.c: Remove #define STRLEN.
20677
20678 2015-02-10  Joseph Myers  <joseph@codesourcery.com>
20679
20680         * sysdeps/mips/soft-fp/sfp-machine.h: Move to ....
20681         * sysdeps/mips/mips32/sfp-machine.h: ... here.
20682         * sysdeps/mips/mips64/soft-fp/Makefile: Move to ....
20683         * sysdeps/mips/mips64/Makefile: ... here.
20684         * sysdeps/mips/mips64/soft-fp/e_sqrtl.c: Move to ....
20685         * sysdeps/mips/mips64/e_sqrtl.c: ... here.
20686         * sysdeps/mips/mips64/soft-fp/sfp-machine.h: Move to ....
20687         * sysdeps/mips/mips64/sfp-machine.h: ... here.
20688         * sysdeps/mips/mips32/Implies: Remove mips/soft-fp.
20689         * sysdeps/mips/mips64/n32/Implies: Remove mips/mips64/soft-fp.
20690         * sysdeps/mips/mips64/n64/Implies: Likewise.
20691
20692 2015-02-10  Roland McGrath  <roland@hack.frob.com>
20693
20694         * math/test-snan.c: Drop unnecessary #include's of <stdlib.h>,
20695         <sys/time.h>, <string.h>, and <errno.h>.
20696         (dest_offset, dest_address, value, zero): Remove unused variables.
20697         (ldouble): Remove typedef.
20698         (myFPsighandler): Use simple handler signature, not SA_SIGINFO
20699         signature.  Pass 1 to siglongjmp rather than 0 (which is converted to
20700         1).  Fix code style.
20701         (set_sigaction_FP, remove_sigaction_FP): Functions removed.
20702         (check): Function removed.
20703         (CHECK): New macro.
20704         (TEST_FUNC): Fix code style.  Use CHECK macro rather than repeating
20705         boilerplate feclearexcept + feenableexcept + sigsetjmp code.
20706         Don't call set_sigaction_FP and remove_sigaction_FP here.
20707         (ldouble_test): Just use 'long double' as macro argument, no need for
20708         the 'ldouble' typedef.
20709         (do_test): Set up SIGFPE handler at start, using plain signal rather
20710         than sigaction.  Fix code style.
20711
20712 2015-02-10  Evangelos Foutras  <evangelos@foutrelis.com>
20713
20714         [BZ #17949]
20715         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Fix position of
20716         jump label.
20717
20718 2015-02-09  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
20719
20720         * sysdeps/powerpc/powerpc32/configure.ac: Remove R_PPC_REL16 check.
20721         * sysdeps/powerpc/powerpc32/configure: Regenerated.
20722
20723         * sysdeps/powerpc/configure.ac: Remove file.
20724         * sysdeps/powerpc/configure: Likewise.
20725
20726         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20727         [sysdep_routines]: Remove wordcopy-power6 object.
20728         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
20729         (__memmove_power7): Use local call for wordcopy and memcpy symbols.
20730         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c
20731         (__memmove_ppc32): Likewise.
20732         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: Remove
20733         file.
20734         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Remove file.
20735         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c [IS_IN (libc)]:
20736         Remove preprocessor.
20737
20738         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
20739         [sysdep_routines]: Remove wide chars objects.
20740         [wcsmbs]: New rule for wide char objects.
20741
20742         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20743         Remove wordcopy-power6 obejct.
20744         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c (__memmove_ppc):
20745         Use local call for wordcopy and memcpy symbols.
20746         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: Remove file.
20747         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: Add default
20748         implementation for loader.
20749         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Remove file.
20750
20751         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20752         Remove wordcopy-power7 object.
20753         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: Remove file.
20754         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c
20755         (_wordcopy_fwd_aligned): Remove POWER7 specialization.
20756         (_wordcopy_fwd_dest_aligned): Likewise.
20757         (_wordcopy_bwd_aligned): Likewise.
20758         (_wordcopy_bwd_dest_aligned): Likewise.
20759
20760         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c (__bcopy_ppc):
20761         Rewrite to call __memmove_ppc instead of include default
20762         implementation.
20763
20764         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
20765         Remove wide chars objects.
20766         [wcsmbs]: New rule for wide char objects.
20767
20768 2015-02-09  Andreas Schwab  <schwab@suse.de>
20769
20770         [BZ #17912]
20771         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
20772         in terms of __O_DIRECTORY.
20773
20774 2015-02-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20775
20776         * time/getdate.c: Include <stdbool.h>.
20777         * sysdeps/gnu/unwind-resume.c [!PTR_MANGLE] (__libgcc_s_init): Do not
20778         call PTR_MANGLE.
20779         [!PTR_DEMANGLE] (_Unwind_Resume, __gcc_personality_v0): Do not call
20780         PTR_DEMANGLE.
20781
20782 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20783
20784         Add ersatz _Static_assert on older C hosts
20785         * misc/sys/cdefs.h (_Static_assert): Define a substitute, if on a
20786         pre-C11 C platform that is not known to support _Static_assert.
20787
20788 2015-02-07  Richard Braun  <rbraun@sceen.net>
20789
20790         * hurd/hurd/signal.h (_hurd_critical_section_lock): Don't unlock
20791         sigstate.
20792         * sysdeps/mach/hurd/mmap.c (__mmap): Also handle PROT_NONE case.
20793
20794 2015-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20795
20796         * sysdeps/pthread/aio_misc.c [!AIO_PRIO_DELTA_MAX]: Do not check
20797         priority against unexistent AIO_PRIO_DELTA_MAX.
20798         * misc/chflags.c (chflags): Set flags parameter type to unsigned long
20799         instead of int.
20800         * misc/fchflags.c (fchflags): Likewise.
20801         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
20802         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
20803         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC] (UF_SETTABLE, UF_NODUMP,
20804         UF_IMMUTABLE, UF_APPEND, UF_OPAQUE, UF_NOUNLINK, SF_SETTABLE,
20805         SF_ARCHIVED, SF_IMMUTABLE, SF_APPEND, SF_NOUNLINK, SF_SNAPSHOT):
20806         Declare macros.
20807         [__USE_MISC] (chflags, fchflags): Declare functions.
20808         * hurd/hurdselect.c (_hurd_select): In the poll case, do not return
20809         EINVAL when nfds is greater than FD_SETSIZE.
20810         * hurd/hurd/resource.h (MACH_PRIORITY_TO_NICE,
20811         NICE_TO_MACH_PRIORITY): Align nice levels on Mach priorities from 5 to
20812         45.
20813         * hurd/hurdselect.c (_hurd_select): Pass MACH_RCV_INTERRUPT to
20814         __mach_msg.  If that returns MACH_RCV_INTERRUPTED, set ERR to EINTR.
20815         * hurd/hurdselect.c (_hurd_select): Remove unreachable check for
20816         MACH_RCV_TIMED_OUT.
20817         * hurd/hurd/signal.h (_hurd_self_sigstate,
20818         _hurd_critical_section_lock, _hurd_critical_section_unlock):
20819         Explicit casts from void *.
20820         * sysdeps/mach/hurd/tls.h: Include <stdint.h> and <sysdep.h>.
20821         * abi-tags: Rename gnu-gnu os into gnu.
20822
20823         [BZ #4719]
20824         * sysdeps/mach/hurd/bits/ioctls.h (_IOT__IOTBASE_long, _IOT_char,
20825         _IOT_short, _IOT_int, _IOT_long, _IOT__IOTBASE_int8_t,
20826         _IOT__IOTBASE_uint8_t, _IOT__IOTBASE_int16_t, _IOT__IOTBASE_uint16_t,
20827         _IOT__IOTBASE_int32_t, _IOT__IOTBASE_uint32_t, _IOT__IOTBASE_int64_t,
20828         _IOT__IOTBASE_uint64_t, _IOT__IOTBASE_size_t, _IOT__IOTBASE_ssize_t,
20829         _IOTBASE_unsigned, _IOTBASE_signed): Define macros.
20830
20831         [BZ #17944]
20832         * hurd/hurdsocket.h: New file, defines _hurd_sun_path_dupa which
20833         duplicates ADDR->sun_path with sockaddr LEN limitation.
20834         * sysdeps/mach/hurd/connect.c: Include <string.h>
20835         (__connect): Give result of _hurd_sun_path_dupa to name lookup.
20836         * sysdeps/mach/hurd/sendmsg.c: Likewise.
20837         * sysdeps/mach/hurd/sendto.c: Likewise.
20838         * sysdeps/mach/hurd/bind.c: Call _hurd_sun_path_dupa instead of
20839         implementing it by hand.
20840
20841 2015-02-06  Roland McGrath  <roland@hack.frob.com>
20842
20843         * sysdeps/arm/sysdep.h [!PROF] [ARCH_HAS_T2 && !PIC] (LDR_GLOBAL):
20844         Use sfi_breg on ldr.
20845         [!PROF] [ARCH_HAS_T2 && PIC && ARM_PCREL_MOVW_OK] (LDR_GLOBAL):
20846         Likewise.
20847
20848         * nptl/tst-cancel25.c (tf2): Test for SIGCANCEL being blocked only if
20849         it's defined.
20850         * nptl/tst-signal7.c (do_test): Test SIGCANCEL only if it's defined.
20851         Test SIGSETXID only if it's defined.
20852
20853         * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
20854
20855         * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
20856         will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
20857
20858         * nptl/tst-align2.c: Moved ...
20859         * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here.
20860         * nptl/Makefile (tests): Remove tst-align2.
20861         * sysdeps/unix/sysv/linux/Makefile
20862         [$(subdir) = nptl] (tests): Add tst-align-clone.
20863         * nptl/tst-getpid1.c: Moved ...
20864         * sysdeps/unix/sysv/linux/tst-getpid1.c: ... here.
20865         * nptl/tst-getpid2.c: Moved ...
20866         * sysdeps/unix/sysv/linux/tst-getpid2.c: ... here.
20867         * nptl/Makefile (tests): Move tst-getpid1 and tst-getpid2 ...
20868         * sysdeps/unix/sysv/linux/Makefile
20869         [$(subdir) = nptl] (tests): ... here.
20870         * nptl/Makefile (tst-getpid2-ENV): Move variable ...
20871         * sysdeps/unix/sysv/linux/Makefile
20872         [$(subdir) = nptl] (tst-getpid2-ENV): ... here.
20873
20874         * nptl/tst-cleanup2.c (do_test): Use signal rather than sigaction.
20875         Drop trailing \n from perror argument.  Use return rather than exit.
20876
20877         * nptl/tst-cancel20.c (do_test): Conditionalize SA_SIGINFO-using tests
20878         on [SA_SIGINFO].
20879         * nptl/tst-cancel21.c (do_test): Likewise.
20880         * debug/tst-backtrace6.c: Include <signal.h> first thing.
20881         Conditionalize inclusion of tst-backtrace5.c on [SA_SIGINFO].
20882         [!SA_SIGINFO]: Make it a stub test.
20883
20884         * misc/tst-pselect.c (do_test): Don't set SA_NOCLDWAIT in sa_flags for
20885         SIGCHLD; it's redundant with SIG_IGN as sa_handler.
20886
20887         * posix/tst-getlogin.c: Move to ...
20888         * login/tst-getlogin.c: ... here.
20889         * posix/Makefile (tests): Move tst-getlogin to ...
20890         * login/Makefile (tests): ... here.
20891
20892         * libio/tst-atime.c (do_test): Move local variables SV and E
20893         inside [ST_NOATIME] conditional.
20894
20895         * dirent/tst-fdopendir.c (O_NOATIME): If not defined, #define to 0.
20896
20897         * nptl/tst-kill5.c (do_test): Use INT_MAX rather than SIGRTMAX + 10.
20898
20899         * nptl/tst-join5.c: Drop #include <sys/syscall.h>.
20900         (wait_code): New function replaces macro.
20901         Call nanosleep rather than syscall.
20902
20903         * nptl/pt-system.c: Rewritten.  Put everything under
20904         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20905         Use IFUNC to redirect when possible.
20906
20907         * nptl/pt-longjmp.c: Rewritten.  Put everything under
20908         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20909         Use IFUNC to redirect when possible.
20910
20911         * nptl/pt-fork.c: Rewritten.  Put everything under
20912         [SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_22)].
20913         Use IFUNC to redirect when possible.
20914         * nptl/Versions (libpthread: GLIBC_2.22): New (empty) version set.
20915
20916         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: Remove all
20917         code under [!__ASSUME_FUTEX_CLOCK_REALTIME], since that is defined
20918         unconditionally nowadays.  This included the only reference to
20919         __vdso_clock_gettime that appears outside libc proper.
20920         * sysdeps/unix/sysv/linux/x86_64/Versions (libc: GLIBC_PRIVATE):
20921         Remove version set (containing only __vdso_clock_gettime).
20922         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
20923         Add attribute_hidden.
20924         * sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
20925         Likewise.  Drop __attribute__ ((nocommon)), libc_hidden_proto, and
20926         libc_hidden_data_def.
20927         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
20928         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
20929
20930         * inet/Versions (libc: GLIBC_2.0): Move getrpcbyname, getrpcbyname_r,
20931         getrpcbynumber, getrpcbynumber_r, getrpcent, getrpcent_r, endrpcent,
20932         setrpcent, and getrpcport to ...
20933         * sunrpc/Versions (libc: GLIBC_2.0): ... here.
20934         * inet/Versions (libc: GLIBC_2.1.2): Move getrpcbyname_r,
20935         getrpcbynumber_r, and getrpcent_r to ...
20936         * sunrpc/Versions (libc: GLIBC_2.1.2): ... this new set.
20937         * inet/getrpcbyname.c: Moved ...
20938         * sunrpc/getrpcbyname.c: ... here.
20939         * inet/getrpcbyname_r.c: Moved ...
20940         * sunrpc/getrpcbyname_r.c: ... here.
20941         * inet/getrpcbynumber.c: Moved ...
20942         * sunrpc/getrpcbynumber.c: ... here.
20943         * inet/getrpcbynumber_r.c: Moved ...
20944         * sunrpc/getrpcbynumber_r.c: ... here.
20945         * inet/getrpcent.c: Moved ...
20946         * sunrpc/getrpcent.c: ... here.
20947         * inet/getrpcent_r.c: Moved ...
20948         * sunrpc/getrpcent_r.c: ... here.
20949         * inet/Makefile (routines): Move those to ...
20950         * sunrpc/Makefile (routines): ... here.
20951         * nss/Makefile (databases): Add key and rpc only if sunrpc appears in
20952         the $(subdirs) list.
20953         (CPPFLAGS-getent.c): New variable.  Pass -D option to set HAVE_SUNRPC
20954         to 0 or 1, indicating whether sunrpc appears in the $(subdirs) list.
20955         * nss/getent.c (print_rpc, rpc_keys): Conditionalize on [HAVE_SUNRPC].
20956         (databases): Conditionalize rpc entry on [HAVE_SUNRPC].
20957
20958         * elf/Makefile (routines): Include $(all-dl-routines), not just
20959         $(dl-routines).
20960         (rtld-routines): Likewise.  Use = rather than :=.
20961         * sysdeps/aarch64/Makefile [$(subdir) = elf]
20962         (sysdep_routines, sysdep-rtld-routines): Don't add tlsdesc and
20963         dl-tlsdesc to these; sysdep-dl-routines alone is enough.
20964         * sysdeps/arm/Makefile: Likewise.
20965         * sysdeps/i386/Makefile: Likewise.
20966         * sysdeps/x86_64/Makefile: Likewise.
20967         * sysdeps/hppa/Makefile [$(subdir) = elf]
20968         (sysdep_routines, sysdep-rtld-routines): Don't add
20969         $(sysdep-dl-routines) to these.
20970         * sysdeps/ia64/Makefile: Likewise.
20971         * sysdeps/unix/sysv/linux/ia64/Makefile: Likewise.
20972         * sysdeps/unix/sysv/linux/aarch64/Makefile [$(subdir) = elf]
20973         [$(build-shared) = yes] (sysdep_routines, sysdep-rtld-routines):
20974         Don't add dl-static to these; sysdep-dl-routines alone is enough.
20975         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
20976         * sysdeps/unix/sysv/linux/mips/Makefile: Likewise.
20977         * sysdeps/unix/sysv/linux/powerpc/Makefile: Likewise.
20978         * sysdeps/unix/sysv/linux/tile/Makefile: Likewise.
20979         * sysdeps/powerpc/Makefile [$(subdir) = elf]
20980         (sysdep_routines, sysdep-rtld-routines): Don't add dl-machine to
20981         these; sysdep-dl-routines alone is enough.
20982
20983 2015-02-06  Joseph Myers  <joseph@codesourcery.com>
20984
20985         [BZ #17932]
20986         * soft-fp/op-common.h (_FP_FMA): Set exponent of result in case
20987         where multiplication results in zero and third argument is finite
20988         and nonzero.
20989         * math/auto-libm-test-in: Add more tests of fma.
20990         * math/auto-libm-test-out: Regenerated.
20991
20992         * soft-fp/op-common.h (_FP_CMP_CHECK_DENORM): New macro.
20993         (_FP_CMP_CHECK_FLUSH_ZERO): Likewise.
20994         (_FP_CMP): Use_FP_CMP_CHECK_DENORM and _FP_CMP_CHECK_FLUSH_ZERO.
20995         (_FP_CMP_EQ): Likewise.
20996         (_FP_CMP_UNORD): Use _FP_CMP_CHECK_DENORM.
20997
20998         * soft-fp/op-common.h (FP_EXTEND): Rename to _FP_EXTEND_CNAN with
20999         extra argument CHECK_NAN.  Redefine as wrapper around
21000         _FP_EXTEND_CNAN.
21001
21002 2015-02-06  Carlos O'Donell  <carlos@systemhalted.org>
21003
21004         * version.h (RELEASE): Set to "stable".
21005         (VERSION): Set to "2.21"
21006         * include/features.h (__GLIBC_MINOR__): Set to 21.
21007
21008         * sysdeps/unix/sysv/linux/hppa/pthread.h: Sync with pthread.h.
21009
21010 2015-02-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
21011             Paul Eggert  <eggert@cs.ucla.edu>
21012
21013         [BZ #16618]
21014         * stdio-common/tst-sscanf.c (main): Test for buffer overflow.
21015         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Compute needed
21016         size in bytes. Store needed elements in wpmax. Use needed size
21017         in bytes for extend_alloca.
21018
21019 2015-02-05  Carlos O'Donell  <carlos@systemhalted.org>
21020
21021         * manual/install.texi: Latest tested versions are GCC 4.9.2,
21022         binutls 2.25, and texinfo 5.2.
21023         * INSTALL: Regenerate.
21024         * sysdeps/nios2/configure: Regenerate.
21025         * sysdeps/unix/sysv/linux/nios2/configure: Regenerate.
21026         * manual/contrib.texi: Update.
21027         * po/be.po: Update.
21028         * po/bg.po: Update.
21029         * po/ca.po: Update.
21030         * po/cs.po: Update.
21031         * po/da.po: Update.
21032         * po/de.po: Update.
21033         * po/el.po: Update.
21034         * po/eo.po: Update.
21035         * po/es.po: Update.
21036         * po/fi.po: Update.
21037         * po/fr.po: Update.
21038         * po/gl.po: Update.
21039         * po/hr.po: Update.
21040         * po/hu.po: Update.
21041         * po/ia.po: Update.
21042         * po/id.po: Update.
21043         * po/it.po: Update.
21044         * po/ja.po: Update.
21045         * po/ko.po: Update.
21046         * po/lt.po: Update.
21047         * po/nb.po: Update.
21048         * po/nl.po: Update.
21049         * po/pl.po: Update.
21050         * po/pt_BR.po: Update.
21051         * po/ru.po: Update.
21052         * po/rw.po: Update.
21053         * po/sk.po: Update.
21054         * po/sl.po: Update.
21055         * po/sv.po: Update.
21056         * po/tr.po: Update.
21057         * po/uk.po: Update.
21058         * po/vi.po: Update.
21059         * po/zh_CN.po: Update.
21060         * po/zh_TW.po: Update.
21061
21062         * sysdeps/hppa/Makefile (CFLAGS-dl-fptr.c): Add -Wno-error.
21063         * sysdeps/hppa/bits/setjmp.h: Union is named __jmp_buf_internal_tag.
21064         * sysdeps/hppa/dl-irel.h: Remove #warning.
21065         * sysdeps/hppa/entry.h: Provide prototype for
21066         __canonicalize_funcptr_for_compare and cast argument.
21067         * sysdeps/hppa/fpu/fegetexcept.c (fegetexcept): Add semicolon.
21068         * sysdeps/hppa/fpu/ftestexcept.c (fetestexcept): Likewise.
21069         * sysdeps/hppa/sotruss-lib.c: New file.
21070         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h
21071         (atomic_compare_and_exchange_val_acq): Use __typeof__.
21072         (atomic_compare_and_exchange_bool_acq): Likewise.
21073         * sysdeps/unix/sysv/linux/hppa/mmap.c: Use weak alias.
21074         * sysdeps/unix/sysv/linux/hppa/pthread.h: Include pthread.h.
21075
21076         * sysdeps/unix/sysv/linux/hppa/syscall.S: Delete file.
21077         * sysdeps/unix/sysv/linux/hppa/sysdep.c: Move syscall from here...
21078         * sysdeps/unix/sysv/linux/hppa/syscall.c: ... to here.
21079
21080 2015-02-05  Chung-Lin Tang  <cltang@codesourcery.com>
21081
21082         * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of
21083         called function in non-PIC case.
21084
21085 2015-01-31  David S. Miller  <davem@davemloft.net>
21086
21087         * sysdeps/sparc/sparc32/bits/atomic.h
21088         (__sparc32_atomic_do_unlock24): Put the memory barrier before the
21089         unlock not after it.
21090         (__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
21091         volatile register usage warnings from the compiler.
21092
21093         * sysdeps/sparc/nptl/sem_init.c: Delete.
21094         * sysdeps/sparc/nptl/sem_post.c: Delete.
21095         * sysdeps/sparc/nptl/sem_timedwait.c: Delete.
21096         * sysdeps/sparc/nptl/sem_wait.c: Delete.
21097         * sysdeps/sparc/sparc32/sem_init.c: New file.
21098         * sysdeps/sparc/sparc32/sem_waitcommon.c: New file.
21099         * sysdeps/sparc/sparc32/sem_open.c: Generic nptl version with
21100         padding explicitly initialized.
21101         * sysdeps/sparc/sparc32/sem_post.c: Generic nptl version using
21102         padding for in-semaphore spinlock.
21103         * sysdeps/sparc/sparc32/sem_wait.c: Likewise.
21104         * sysdeps/sparc/sparc32/sem_trywait.c: Delete.
21105         * sysdeps/sparc/sparc32/sem_timedwait.c: Delete.
21106         * sysdeps/sparc/sparc32/sparcv9/sem_init.c: New file.
21107         * sysdeps/sparc/sparc32/sparcv9/sem_open.c: New file.
21108         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: New file.
21109         * sysdeps/sparc/sparc32/sparcv9/sem_waitcommon.c: New file.
21110         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: Redirect to nptl
21111         version.
21112         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: Delete.
21113         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Delete.
21114
21115 2015-01-30  H.J. Lu  <hongjiu.lu@intel.com>
21116
21117         [BZ #17801]
21118         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21119         Set the bit_AVX_Fast_Unaligned_Load bit for AVX2.
21120         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX_Fast_Unaligned_Load):
21121         New.
21122         (index_AVX_Fast_Unaligned_Load): Likewise.
21123         (HAS_AVX_FAST_UNALIGNED_LOAD): Likewise.
21124         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Check the
21125         bit_AVX_Fast_Unaligned_Load bit instead of the bit_AVX_Usable bit.
21126         * sysdeps/x86_64/multiarch/memcpy_chk.S (__memcpy_chk): Likewise.
21127         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy): Likewise.
21128         * sysdeps/x86_64/multiarch/mempcpy_chk.S (__mempcpy_chk): Likewise.
21129         * sysdeps/x86_64/multiarch/memmove.c (__libc_memmove): Replace
21130         HAS_AVX with HAS_AVX_FAST_UNALIGNED_LOAD.
21131         * sysdeps/x86_64/multiarch/memmove_chk.c (__memmove_chk): Likewise.
21132
21133 2015-01-29  Andreas Schwab  <schwab@suse.de>
21134
21135         * sysdeps/nptl/allocrtsig.c: Include <signal.h>.
21136
21137 2015-01-29  Siddhesh Poyarekar <siddhesh@redhat.com>
21138
21139         [BZ #17892]
21140         * nscd/nscd_stat.c (send_stats): Initialize DATA.
21141
21142 2015-01-28  Martin Sebor  <msebor@redhat.com>
21143
21144         * math/README.libm-test: Clarify. Add "How to read the test output."
21145
21146 2015-01-28  Chris Metcalf  <cmetcalf@ezchip.com>
21147
21148         * sysdeps/tile/tilegx/bits/atomic.h [!_LP64] (__HAVE_64B_ATOMICS):
21149         Define to 0.
21150
21151 2015-01-28  Joseph Myers  <joseph@codesourcery.com>
21152
21153         * sysdeps/mips/bits/atomic.h [_MIPS_SIM == _ABIN32]
21154         (__HAVE_64B_ATOMICS): Define to 0.
21155
21156 2015-01-28  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
21157
21158         [BZ #17885]
21159         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Fix correct
21160         value to set as new flag.
21161
21162         [BZ #16576]
21163         * sysdeps/powerpc/fpu/math_private.h [__CPU_HAS_FSQRT]: Remove define
21164         and use _ARCH_PPCSQ instead.
21165         (__ieee754_sqrt): Likewise.
21166         (__ieee754_sqrtf): Likewise.
21167         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Build only if
21168         _ARCH_PPCSQ is defined.
21169         (__ieee754_sqrt): Use _ARCH_PPCSQ to select wheter to use hardware
21170         fsqrt instruction.
21171         * sysdeps/powerpc/fpu/e_sqrtf.c (__ieee754_sqrtf): Build only if
21172         _ARCH_PPCSQ is defined.
21173         (__ieee754_sqrtf): Use _ARCH_PPCSQ to select wheter to use hardware
21174         fsqrts instruction.
21175         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Remove file.
21176
21177 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21178
21179         * iconv/loop.c: Suppress array out of bound warning caused by GCC
21180         bug (GCC BZ #64739).
21181
21182 2015-01-25  Andreas Schwab  <schwab@linux-m68k.org>
21183
21184         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
21185         Mark _retval as used.
21186         (lll_futex_wake_unlock): Likewise.
21187         (lll_futex_timed_wait_requeue_pi): Likewise.
21188
21189         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
21190         (atomic_compare_and_exchange_val_acq): Use uint32_t for the
21191         register variables.
21192
21193         * sysdeps/m68k/m680x0/fpu/fraiseexcpt.c (__feraiseexcept): Use
21194         libm_hidden_def.
21195
21196         * sysdeps/m68k/bits/byteswap.h (__bswap_16, __bswap_32)
21197         (__bswap_64): Mark as __always_inline.
21198
21199 2015-01-25  Bram  <bug_rh@spam.wizbit.be>
21200
21201         [BZ #15378]
21202         * elf/dl-load.c (open_path): Avoid writing to 'env_path_list'
21203         when none of the search directories exist.
21204
21205 2015-01-24  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
21206
21207         [BZ #17869]
21208         * sysdeps/powerpc/powerpc64/power8/memset.S: Use power7 instead of
21209         power8 in .machine directive.
21210
21211         [BZ #17868]
21212         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Force value
21213         set dependency from opd value.
21214
21215 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
21216
21217         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21218         Treat model numbers 0x4a/0x4d/0x5a/0x5d as Intel Silvermont
21219         architecture.
21220
21221 2015-01-23  H.J. Lu  <hongjiu.lu@intel.com>
21222
21223         [BZ #17870]
21224         * nptl/sem_post.c (__new_sem_post): Replace unsigned long int
21225         with uint64_t.
21226         * nptl/sem_waitcommon.c (__sem_wait_cleanup): Replace 1UL with
21227         (uint64_t) 1.
21228         (__new_sem_wait_fast): Replace unsigned long with uint64_t.
21229         (__new_sem_wait_slow): Replace unsigned long int with uint64_t.
21230         Replace 1UL with (uint64_t) 1.
21231         * sysdeps/nptl/internaltypes.h (new_sem): Replace unsigned long
21232         int with uint64_t.
21233
21234 2015-01-23  Roland McGrath  <roland@hack.frob.com>
21235
21236         * inet/if_index.c (if_nameindex): Add missing libc_hidden_weak.
21237         (if_freenameindex): Likewise.
21238
21239         * resource/getrlimit64.c: Add missing libc_hidden_def.
21240
21241 2015-01-22  Joseph Myers  <joseph@codesourcery.com>
21242
21243         * soft-fp/op-common.h (_FP_ADD_INTERNAL): Declare labels with
21244         __label__.
21245         (_FP_FMA): Likewise.
21246         (_FP_TO_INT_ROUND): Likewise.
21247         (_FP_FROM_INT): Likewise.
21248
21249 2015-01-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21250
21251         [BZ #16418]
21252         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
21253         Make code racy and cancel safe.
21254
21255 2015-01-21  Carlos O'Donell  <carlos@redhat.com>
21256
21257         * sysdeps/arm/unwind-resume.h: Fix copyright year.
21258         * dlfcn/tst-rec-dlopen.c: Fix incorrect copyright year and
21259         attribution.
21260
21261         * pwd/tst-getpw.c: Rewrite.
21262
21263         [BZ #17702]
21264         * dlfcn/Makefile (tests): Add tst-rec-dlopen.
21265         (modules-names): Add moddummy1 and moddummy2.
21266         ($(objpfx)tst-rec-dlopen): Define.
21267         * dlfcn/moddummy1.c: New file.
21268         * dlfcn/moddummy2.c: New file.
21269         * dlfcn/tst-rec-dlopen.c: New file.
21270         * elf/dl-cache.c (_dl_load_cache_lookup):
21271         Return char*. Copy result with alloca/strcpy/strdup.
21272         * elf/dl-load.c (_dl_map_object): _dl_load_cached_lookup
21273         returns char*. Free cached. If not saving realname
21274         free cached.
21275         * elf/dl-open.c (dl_open_worker): Do not assert that
21276         _r_debug->r_state is RT_CONSISTENT.
21277         * sysdeps/generic/ldsodefs.h: _dl_load_cache_lookup
21278         returns char*.
21279
21280 2015-01-21  Torvald Riegel  <triegel@redhat.com>
21281             Carlos O'Donell  <carlos@redhat.com>
21282
21283         [BZ #12674]
21284         * nptl/sem_waitcommon.c: New file.
21285         * nptl/sem_wait.c: Include sem_waitcommon.c.
21286         (__sem_wait_cleanup, do_futex_wait): Remove.
21287         (__new_sem_wait): Adapt.
21288         (__new_sem_trywait): New function.
21289         (__old_sem_trywait): Moved here from nptl/sem_trywait.c.
21290         * nptl/sem_timedwait.c: Include sem_waitcommon.c.
21291         (__sem_wait_cleanup, do_futex_timed_wait): Remove.
21292         (sem_timedwait): Adapt.
21293         * nptl/sem_post.c (__new_sem_post): Adapt.
21294         (futex_wake): New function.
21295         (__old_sem_post): Add release MO fence.
21296         * nptl/sem_open.c (sem_open): Adapt.
21297         * nptl/sem_init.c (__new_sem_init): Adapt.
21298         (futex_private_if_supported): New function.
21299         * nptl/sem_getvalue.c (__new_sem_getvalue): Adapt.
21300         (__old_sem_getvalue): Add using previous code.
21301         * sysdeps/nptl/internaltypes.h: Adapt.
21302         * nptl/tst-sem13.c (do_test): Adapt.
21303         * nptl/tst-sem11.c (main): Adapt.
21304         * nptl/sem_trywait.c: Remove.
21305         * nptl/DESIGN-sem.txt: Remove.
21306         * nptl/Makefile (libpthread-routines): Remove sem_trywait.
21307         (gen-as-const-headers): Remove structsem.sym.
21308         * nptl/structsem.sym: Remove.
21309         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Remove.
21310         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Remove.
21311         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Remove.
21312         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove.
21313         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Remove.
21314         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Remove.
21315         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Remove.
21316         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Remove.
21317         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Remove.
21318         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Remove.
21319         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Remove.
21320         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Remove.
21321         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Remove.
21322         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: Remove.
21323         * sysdeps/unix/sysv/linux/sh/sem_post.S: Remove.
21324         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Remove.
21325         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Remove.
21326         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Remove.
21327         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Remove.
21328         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Remove.
21329         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Remove.
21330         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Remove.
21331
21332 2015-01-20  Carlos O'Donell  <carlos@redhat.com>
21333
21334         * INSTALL: Regenerated.
21335
21336         * po/libc.pot: Regenerated.
21337
21338 2015-01-18  Chung-Lin Tang  <cltang@codesourcery.com>
21339             Sandra Loosemore  <sandra@codesourcery.com>
21340             Andrew Jenner  <andrew@codesourcery.com>
21341             Joseph Myers  <joseph@codesourcery.com>
21342             Nathan Sidwell  <nathan@codesourcery.com>
21343
21344         * NEWS: Mention new Nios II port.
21345         * sysdeps/nios2/Implies: New file.
21346         * sysdeps/nios2/Makefile: New file.
21347         * sysdeps/nios2/Subdirs: New file.
21348         * sysdeps/nios2/Versions: New file.
21349         * sysdeps/nios2/__longjmp.S: New file.
21350         * sysdeps/nios2/abort-instr.h: New file.
21351         * sysdeps/nios2/backtrace.c: New file.
21352         * sysdeps/nios2/bits/endian.h: New file.
21353         * sysdeps/nios2/bits/fenv.h: New file.
21354         * sysdeps/nios2/bits/link.h: New file.
21355         * sysdeps/nios2/bits/setjmp.h: New file.
21356         * sysdeps/nios2/bsd-_setjmp.S: New file.
21357         * sysdeps/nios2/bsd-setjmp.S: New file.
21358         * sysdeps/nios2/configure: New generated file.
21359         * sysdeps/nios2/configure.ac: New file.
21360         * sysdeps/nios2/crti.S: New file.
21361         * sysdeps/nios2/crtn.S: New file.
21362         * sysdeps/nios2/dl-init.c: New file.
21363         * sysdeps/nios2/dl-machine.h: New file.
21364         * sysdeps/nios2/dl-sysdep.h: New file.
21365         * sysdeps/nios2/dl-tls.h: New file.
21366         * sysdeps/nios2/dl-trampoline.S: New file.
21367         * sysdeps/nios2/gccframe.h: New file.
21368         * sysdeps/nios2/gmp-mparam.h: New file.
21369         * sysdeps/nios2/jmpbuf-offsets.h: New file.
21370         * sysdeps/nios2/jmpbuf-unwind.h: New file.
21371         * sysdeps/nios2/ldsodefs.h: New file.
21372         * sysdeps/nios2/libc-tls.c: New file.
21373         * sysdeps/nios2/libm-test-ulps: New file.
21374         * sysdeps/nios2/machine-gmon.h: New file.
21375         * sysdeps/nios2/math-tests.h: New file.
21376         * sysdeps/nios2/math_private.h: New file.
21377         * sysdeps/nios2/memusage.h: New file.
21378         * sysdeps/nios2/nptl/Makefile: New file.
21379         * sysdeps/nios2/nptl/bits/pthreadtypes.h: New file.
21380         * sysdeps/nios2/nptl/bits/semaphore.h: New file.
21381         * sysdeps/nios2/nptl/pthread_spin_lock.c: New file.
21382         * sysdeps/nios2/nptl/pthreaddef.h: New file.
21383         * sysdeps/nios2/nptl/tcb-offsets.sym: New file.
21384         * sysdeps/nios2/nptl/tls.h: New file.
21385         * sysdeps/nios2/preconfigure: New file.
21386         * sysdeps/nios2/s_fma.c: New file.
21387         * sysdeps/nios2/s_fmaf.c: New file.
21388         * sysdeps/nios2/setjmp.S: New file.
21389         * sysdeps/nios2/sfp-machine.h: New file.
21390         * sysdeps/nios2/sotruss-lib.c: New file.
21391         * sysdeps/nios2/stackguard-macros.h: New file.
21392         * sysdeps/nios2/stackinfo.h: New file.
21393         * sysdeps/nios2/start.S: New file.
21394         * sysdeps/nios2/sysdep.h: New file.
21395         * sysdeps/nios2/tls-macros.h: New file.
21396         * sysdeps/nios2/tst-audit.h: New file.
21397         * sysdeps/unix/sysv/linux/nios2/Implies: New file.
21398         * sysdeps/unix/sysv/linux/nios2/Makefile: New file.
21399         * sysdeps/unix/sysv/linux/nios2/Versions: New file.
21400         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: New file.
21401         * sysdeps/unix/sysv/linux/nios2/bits/atomic.h: New file.
21402         * sysdeps/unix/sysv/linux/nios2/bits/mman.h: New file.
21403         * sysdeps/unix/sysv/linux/nios2/cacheflush.c: New file.
21404         * sysdeps/unix/sysv/linux/nios2/clone.S: New file.
21405         * sysdeps/unix/sysv/linux/nios2/configure: New generated file.
21406         * sysdeps/unix/sysv/linux/nios2/configure.ac: New file.
21407         * sysdeps/unix/sysv/linux/nios2/getcontext.S: New file.
21408         * sysdeps/unix/sysv/linux/nios2/kernel-features.h: New file.
21409         * sysdeps/unix/sysv/linux/nios2/kernel_rt_sigframe.h: New file.
21410         * sysdeps/unix/sysv/linux/nios2/makecontext.c: New file.
21411         * sysdeps/unix/sysv/linux/nios2/profil-counter.h: New file.
21412         * sysdeps/unix/sysv/linux/nios2/setcontext.S: New file.
21413         * sysdeps/unix/sysv/linux/nios2/shlib-versions: New file.
21414         * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: New file.
21415         * sysdeps/unix/sysv/linux/nios2/swapcontext.S: New file.
21416         * sysdeps/unix/sysv/linux/nios2/sys/cachectl.h: New file.
21417         * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: New file.
21418         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: New file.
21419         * sysdeps/unix/sysv/linux/nios2/sys/user.h: New file.
21420         * sysdeps/unix/sysv/linux/nios2/syscall.S: New file.
21421         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: New file.
21422         * sysdeps/unix/sysv/linux/nios2/sysdep.S: New file.
21423         * sysdeps/unix/sysv/linux/nios2/sysdep.h: New file.
21424         * sysdeps/unix/sysv/linux/nios2/ucontext_i.sym: New file.
21425         * sysdeps/unix/sysv/linux/nios2/vfork.S: New file.
21426         * sysdeps/unix/sysv/linux/nios2/c++-types.data: New file.
21427         * sysdeps/unix/sysv/linux/nios2/ld.abilist: New file.
21428         * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: New file.
21429         * sysdeps/unix/sysv/linux/nios2/libanl.abilist: New file.
21430         * sysdeps/unix/sysv/linux/nios2/libc.abilist: New file.
21431         * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: New file.
21432         * sysdeps/unix/sysv/linux/nios2/libdl.abilist: New file.
21433         * sysdeps/unix/sysv/linux/nios2/libm.abilist: New file.
21434         * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: New file.
21435         * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: New file.
21436         * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: New file.
21437         * sysdeps/unix/sysv/linux/nios2/librt.abilist: New file.
21438         * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: New file.
21439         * sysdeps/unix/sysv/linux/nios2/libutil.abilist: New file.
21440         * sysdeps/unix/sysv/linux/nios2/localplt.data: New file.
21441
21442 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21443
21444         [BZ #17844]
21445         * sysdeps/unix/sysv/linux/s390/s390-32/getutent.c
21446         (getutent): Use weak_alias in non SHARED case
21447         and default_symbol_version in SHARED case.
21448         * sysdeps/unix/sysv/linux/s390/s390-32/getutent_r.c
21449         (getutent_r, pututline): Likewise.
21450         * sysdeps/unix/sysv/linux/s390/s390-32/getutid.c
21451         (getutid): Likewise.
21452         * sysdeps/unix/sysv/linux/s390/s390-32/getutid_r.c
21453         (getutid_r): Likewise.
21454         * sysdeps/unix/sysv/linux/s390/s390-32/getutline.c
21455         (getutline): Likewise.
21456         * sysdeps/unix/sysv/linux/s390/s390-32/getutline_r.c
21457         (getutline_r): Likewise.
21458         * sysdeps/unix/sysv/linux/s390/s390-32/updwtmp.c
21459         (updwtmp): Likewise.
21460
21461 2015-01-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
21462
21463         [BZ #17848]
21464         * sysdeps/s390/s390-32/memcmp.S
21465         (memcmp_g5): Rename to __memcmp_g5.
21466         * sysdeps/s390/s390-32/memcpy.S
21467         (memcpy_g5): Rename to __memcpy_g5.
21468         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21469         (memcpy_mvcle) Rename to __memcpy_mvcle.
21470         * sysdeps/s390/s390-32/memset.S
21471         (memset_g5): Rename to __memset_g5.
21472         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
21473         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21474         and use prefixed functions.
21475         * sysdeps/s390/s390-32/multiarch/memcmp.S
21476         (memcmp_z196): Rename to __memcmp_z196.
21477         (memcmp_z10): Rename to __memcmp_z10.
21478         (memcmp): Set alias to __memcmp_g5.
21479         (bcmp): Set alias to __memcmp_g5.
21480         * sysdeps/s390/s390-32/multiarch/memcpy.S
21481         (memcpy_z196): Rename to __memcpy_z196.
21482         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21483         (memcpy_z10): Rename to __memcpy_z10.
21484         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21485         (memcpy): Set alias to __memcpy_g5.
21486         * sysdeps/s390/s390-32/multiarch/memset.S
21487         (memset_z196): Rename to __memset_z196.
21488         Jump to __memset_mvcle instead of memset_mvcle.
21489         (memset_z10): Rename to __memset_z10.
21490         Jump to __memset_mvcle instead of memset_mvcle.
21491         (memset_mvcle) Rename to __memset_mvcle.
21492         (memset): Set alias to __memset_g5.
21493         * sysdeps/s390/s390-64/memcmp.S
21494         (memcmp_z900): Rename to __memcmp_z900.
21495         * sysdeps/s390/s390-64/memcpy.S
21496         (memcpy_z900): Rename to __memcpy_z900.
21497         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21498         (memcpy_mvcle) Rename to __memcpy_mvcle.
21499         * sysdeps/s390/s390-64/memset.S
21500         (memset_z900): Rename to __memset_z900.
21501         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
21502         (IFUNC_RESOLVE): Prefix ifunc-resolve function
21503         and use prefixed functions.
21504         * sysdeps/s390/s390-64/multiarch/memcmp.S
21505         (memcmp_z196): Rename to __memcmp_z196.
21506         (memcmp_z10): Rename to __memcmp_z10.
21507         (memcmp): Set alias to __memcmp_z900.
21508         (bcmp): Set alias to __memcmp_z900.
21509         * sysdeps/s390/s390-64/multiarch/memcpy.S
21510         (memcpy_z196): Rename to __memcpy_z196.
21511         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21512         (memcpy_z10): Rename to __memcpy_z10.
21513         Jump to __memcpy_mvcle instead of memcpy_mvcle.
21514         (memcpy): Set alias to __memcpy_z900.
21515         * sysdeps/s390/s390-64/multiarch/memset.S
21516         (memset_z196): Rename to __memset_z196.
21517         Jump to __memset_mvcle instead of memset_mvcle.
21518         (memset_z10): Rename to __memset_z10.
21519         Jump to __memset_mvcle instead of memset_mvcle.
21520         (memset_mvcle) Rename to __memset_mvcle.
21521         (memset): Set alias to __memset_z900.
21522
21523 2015-01-14  Joseph Myers  <joseph@codesourcery.com>
21524
21525         [BZ #17748]
21526         * sysdeps/powerpc/nofpu/feholdexcpt.c (__feholdexcept): Call
21527         __fesetenv instead of fesetenv.
21528
21529 2015-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21530
21531         * sysdeps/s390/dl-tls.h [IS_IN (rtld)]: Define __tls_get_addr
21532         macro.
21533
21534 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21535
21536         * sysdeps/powerpc/powerpc64/power7/memcmp.S (memcmp): Fix performance
21537         regression on LE.
21538
21539         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: New file.
21540         * sysdeps/powerpc/powerpc64/power8/strncmp.S: New file.
21541         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21542         strncmp-power8 object.
21543         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21544         (__libc_ifunc_impl_list): Add __strncmp_power8 implementation.
21545         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c (strncmp): Likewise.
21546         * NEWS: Update.
21547
21548 2015-01-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
21549             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21550
21551         * sysdeps/powerpc/powerpc64/power7/strcmp.S (strcmp): Optimize
21552         trailing byte check.
21553
21554 2015-01-13  David S. Miller  <davem@davemloft.net>
21555
21556         * include/signal.h (__sigreturn): Guard with __USE_MISC.
21557
21558 2015-01-13  Roland McGrath  <roland@hack.frob.com>
21559
21560         * login/logout.c (logout): Use memset rather than bzero.
21561         * nis/nss_compat/compat-pwd.c (getpwent_next_file): Likewise.
21562         * nis/nss_compat/compat-spwd.c (getspent_next_file): Likewise.
21563         * resolv/gethnamaddr.c (gethostbyaddr): Use memcmp rather than bcmp.
21564         (_gethtbyaddr): Likewise.
21565         * locale/programs/simple-hash.c (bcopy): Macro removed.
21566
21567 2015-01-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21568
21569         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21570         Add strcmp-power8 object.
21571         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21572         (__libc_ifunc_impl_list): Add __strcmp_power8 implementation.
21573         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: New file.
21574         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c (strcmp): Add
21575         __strcmp_power8 implementation.
21576         * sysdeps/powerpc/powerpc64/power8/strcmp.S: New file.
21577         * NEWS: Update.
21578
21579         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
21580         Add strncpy-power8 and stpncpy-power8 objects.
21581         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21582         (__libc_ifunc_impl_list): Add __strncpy_power8 and stpncpy_power8
21583         implementations.
21584         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: New file.
21585         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c (__stpncpy): Add
21586         __stpncpy_power8 implementation.
21587         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: New file.
21588         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c (strncpy): Add
21589         __strncpy_power8 implementation.
21590         * sysdeps/powerpc/powerpc64/power8/stpncpy.S: New file.
21591         * sysdeps/powerpc/powerpc64/power8/strncpy.S: New file.
21592         * NEWS: Update.
21593
21594         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.c: New file.
21595         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: Remove file.
21596         * sysdeps/powerpc/powerpc64/power7/strncat.S: Likewise.
21597
21598         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21599         strncat-power8 object.
21600         * sysdeps/powerpc/powerpc64/multiarch/strcat.c (strcat): Add
21601         __strcat_power8 implementation.
21602         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21603         (__libc_ifunc_impl_list): Add __strcat_power8 implementation.
21604         * sysdeps/powerpc/powerpc64/multiarch/strcat-power8.c: New file:
21605         optimized strcat for power8.
21606
21607         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]: Add
21608         strcpy-power8 and stpcpy-power8 objects.
21609         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
21610         (__libc_ifunc_impl_list): Add __strcpy_power8 and __stpcpy_power8
21611         implementations.
21612         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: New file:
21613         multiarch stpcpy implementation for POWER8.
21614         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: New file;
21615         multiarch strcpy implementation for POWER8.
21616         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c (strcpy): Add
21617         __strcpy_power8 function.
21618         * sysdeps/powerpc/powerpc64/power8/stpcpy.S: New file: optimized
21619         stpcpy for POWER8.
21620         * sysdeps/powerpc/powerpc64/power8/strcpy.S: New file: optimized
21621         strcpy for POWER8.
21622         * NEWS: Update.
21623
21624 2015-01-13  Leonhard Holz  <leonhard.holz@web.de>
21625
21626         [BZ #16009]
21627         * string/strxfrm_l.c (STRXFRM): Allocate fixed size cache for
21628         weights and rules. Use do_xfrm_cached if data fits in cache,
21629         do_xfrm otherwise.  Moved former main loop to...
21630         * (do_xfrm_cached): New function.
21631         * (do_xfrm): Non-caching version of do_xfrm_cached. Uses
21632         find_idx, find_position and stack_push.
21633         * (find_idx): New function.
21634         * (find_position): Likewise.
21635         * localedata/sort-test.sh: Added test run for do_xfrm.
21636         * localedata/xfrm-test.c (main): Added command line option
21637         -nocache to run the test with strings that are too large for
21638         the STRXFRM cache.
21639
21640 2015-01-13  Torvald Riegel  <triegel@redhat.com>
21641
21642         * sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
21643         variable to lll_futex_wake call, not the value itself.
21644
21645 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
21646
21647         [BZ #17803]
21648         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (twom63): Rename to
21649         twom64.  Adjust value to 0x1p-64L.
21650         (__scalblnl): Only return standard underflowing result for K <=
21651         -64 not K <= -63; adjust exponent for underflowing result by 64
21652         not 63.
21653         * math/libm-test.inc (scalbn_test_data): Add more tests.
21654         (scalbln_test_data): Likewise.
21655
21656         [BZ #17834]
21657         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (two63): Change value to
21658         0x1p63L.
21659         (__scalblnl): Get new exponent of adjusted subnormal value from ES
21660         not HX.
21661         * math/libm-test.inc (scalbn_test_data): Add more tests.
21662         (scalbln_test_data): Likewise.
21663
21664 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21665             Stefani Seibold  <stefani@seibold.net>
21666
21667         * sysdeps/unix/sysv/linux/x86_64/Makefile [$(subdir) = elf]
21668         (sysdep_routines): Add dl-vdso here, ...
21669         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = elf]
21670         (sysdep_routines): ... not here.
21671         * sysdeps/unix/sysv/linux/i386/gettimeofday.c: New file: set syscall
21672         fallback when vDSO is not presented.
21673         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
21674         Define with libc_hidden_proto/libc_hidden_data_def definitions.
21675         (_libc_vdso_platform_setup): Rename to __vdso_platform_setup.
21676         * sysdeps/unix/sysv/linux/i386/init-first.c: New file: likewise.
21677         * sysdeps/unix/sysv/linux/i386/time.c: New file: likewise.
21678         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Moved to ...
21679         * sysdeps/unix/sysv/linux/x86/libc-vdso.h: ... here.
21680         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: Move to ...
21681         * sysdeps/unix/sysv/linux/x86/clock_gettime.c: ... here.
21682         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: Move to ...
21683         * sysdeps/unix/sysv/linux/x86/gettimeofday.c: ... here.  Also added
21684         fallback configurable symbol when vDSO is not available.
21685         * sysdeps/unix/sysv/linux/x86_64/time.c: Move to ...
21686         * sysdeps/unix/sysv/linux/x86/time.c: ... here.  Also refactored to
21687         be able to redefine fallback symbol when vDSO is not available.
21688         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: Move to ...
21689         * sysdeps/unix/sysv/linux/x86/timespec_get.c: ... here.
21690
21691 2015-01-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21692
21693         * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Add tm_capable field.
21694         (TLS_INIT_TP): Add tm_capable initialization.
21695         (TLS_DEFINE_INIT_TP): Likewise.
21696         (THREAD_GET_TM_CAPABLE): New file: get tm_capable field value from
21697         TCB.
21698         (THREAD_SET_TM_CAPABLE): New file: set tm_capable field value in TCB.
21699         * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Add field offset
21700         calculation.
21701         * sysdeps/powerpc/powerpc32/sysdep.h (DO_CALL): Abort hardware
21702         transactoion is lock elision is built and TCB tm_capable is set.
21703         * sysdeps/powerpc/powerpc64/sysdep.h (DO_CALL): Likewise.
21704         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
21705         (INTERNAL_SYSCALL_NCS): Likewise.
21706         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
21707         (INTERNAL_SYSCALL_NCS): Likewise.
21708         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): New define.
21709
21710         * sysdeps/powerpc/nptl/elide.h: New file: generic lock elision support
21711         for powerpc.
21712         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21713         [pthread_rwlock_t] (__pad1): Change size to 7 bytes in 64 bits case
21714         and remove it for 32 bits case.
21715         [pthread_rwlock_t] (__rwelision): New field for lock elision.
21716         (__PTHREAD_RWLOCK_ELISION_EXTRA): Adjust for new lock elision field
21717         initialization.
21718         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init):
21719         Disable lock elision with rdlocks if elision is not available.
21720
21721         * sysdeps/unix/sysv/linux/powerpc/Makefile [nptl]
21722         (sysdep_routines): Add lock elision objects.
21723         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
21724         [pthread_mutex_t] (__spins): Rework to add lock elision field.
21725         [pthread_mutex_t] (__elision): Add field.
21726         [__PTHREAD_SPINS]: Adjust to init lock elision field.
21727         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c: New file: lock
21728         elision definitions for powerpc.
21729         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c: New file:
21730         implementation of lock elision for powerpc.
21731         * sysdeps/unix/sysv/linux/powerpc/elision-timed.c: New file:
21732         implementation of timed lock elision for powerpc.
21733         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c: New file:
21734         implementation of trylock with lock elision for powerpc.
21735         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c: New file:
21736         implementaion of unlock for lock elision for powerpc.
21737         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: New file:
21738         automatic enable lock elision for mutexes.
21739         * sysdeps/unix/sysv/linux/powerpc/htm.h: New file: hardware
21740         transaction execution definitions for powerpc.
21741         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: New file: add TLE
21742         definitions.
21743         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_cond_lock.c: New file.
21744         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_lock.c: Likewise.
21745         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_timedlock.c: Likewise.
21746         * sysdeps/unix/sysv/linux/powerpc/pthread_mutex_trylock.c: Likewise.
21747         * NEWS: Update.
21748
21749 2015-01-09  Roland McGrath  <roland@hack.frob.com>
21750
21751         * sysdeps/posix/shm-directory.c: Use <> rather than ""
21752         for #include of <shm-directory.h>.
21753
21754 2015-01-09  Chung-Lin Tang  <cltang@codesourcery.com>
21755
21756         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Remove MIN() and
21757         assign raw DT_REL[A]COUNT value to ranges[0].nrelative.
21758
21759 2015-01-09  Matthew Fortune <matthew.fortune@imgtec.com>
21760
21761         [BZ #17791]
21762         * NEWS: Mention bug fix.
21763         * sysdepsysdeps/unix/sysv/linux/microblaze/sys/user.h
21764         (PAGE_SHIFT, PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Remove.
21765         (HOST_TEXT_START_ADDR, HOST_STACK_END_ADDR): Remove.
21766
21767 2015-01-09  Torvald Riegel <triegel@redhat.com>
21768
21769         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Delete file.
21770
21771 2015-01-09  Torvald Riegel <triegel@redhat.com>
21772
21773         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: Delete file.
21774
21775 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21776
21777         * sysdeps/microblaze/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as void
21778         pointer and cast to uintptr_t.
21779
21780 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21781
21782         * sysdeps/microblaze/nptl/tls.h (__microblaze_get_thread_area): Function
21783         removed.
21784         (READ_THREAD_POINTER): Use __microblaze_thread_area instead.
21785
21786 2015-01-09  David Holsgrove  <david.holsgrove@xilinx.com>
21787
21788         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead
21789         of 0.
21790
21791 2015-01-08  Roland McGrath  <roland@hack.frob.com>
21792
21793         * sysdeps/pthread/timer_routines.c: Fix <pthreadP.h> include to use
21794         <nptl/pthreadP.h> instead.
21795         * sysdeps/pthread/aio_notify.c: Include <signal.h> for raise decl.
21796
21797         * signal/allocrtsig.c (RESERVED_SIGRT): New macro, defined to 0 if not
21798         already defined.
21799         [__SIGRTMIN] (init): Function removed.
21800         [__SIGRTMIN] (initialized): Variable removed.
21801         [!__SIGRTMIN] (current_rtmin, current_rtmax): Variables removed.
21802         [__SIGRTMIN] (current_rtmin, current_rtmax): Initialize to
21803         __SIGRTMIN + RESERVED_SIGRT and __SIGRTMAX, respectively.
21804         (__libc_current_sigrtmin) [__SIGRTMIN]: Don't call init.
21805         (__libc_current_sigrtmin) [!__SIGRTMIN]: Just return -1.
21806         (__libc_current_sigrtmin): Add __libc_current_sigrtmin_private alias.
21807         (__libc_current_sigrtmax) [__SIGRTMIN]: Don't call init.
21808         (__libc_current_sigrtmax) [!__SIGRTMIN]: Just return -1.
21809         (__libc_current_sigrtmax): Add __libc_current_sigrtmax_private alias.
21810         (__libc_allocate_rtsig) [__SIGRTMIN]: Don't call init.
21811         (__libc_allocate_rtsig): Add __libc_allocate_rtsig_private alias.
21812         * sysdeps/nptl/allocrtsig.c: New file.
21813         * sysdeps/unix/sysv/linux/allocrtsig.c: File removed.
21814         * sysdeps/unix/sysv/linux/testrtsig.h: File removed.
21815         * sysdeps/generic/testrtsig.h: File removed.
21816
21817         * nptl/pthread_sigmask.c [SIGCANCEL || SIGTIMER || SIGSETXID]: #error.
21818         (pthread_sigmask): Call sigprocmask, not __sigprocmask.
21819
21820         * nptl/nptl-init.c (pthread_functions): Conditionalize
21821         .ptr__nptl_setxid initialization on [SIGSETXID].
21822
21823         * sysdeps/nptl/sys/procfs.h: New file.
21824         * nptl_db/Makefile (headers): Add it.
21825         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Don't add it.
21826
21827         * nptl/pthreadP.h (check_cpuset_attr): Moved ...
21828         * sysdeps/unix/sysv/linux/check-cpuset.h: ... to this new file.
21829         * nptl/pthread_attr_setaffinity.c: Include it.
21830         * nptl/pthread_setattr_default_np.c: Likewise.
21831         * nptl/check-cpuset.h: New file.
21832
21833 2015-01-08  Richard Henderson  <rth@redhat.com>
21834
21835         * elf/Makefile (CFLAGS-tst-execstack-mod.c): Add -Wno-trampolines
21836         (CFLAGS-tst-execstack-prog.c): Likewise.
21837         * nptl/Makefile (CFLAGS-tst-execstack-mod.c): Likewise.
21838
21839 2015-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
21840             Sandra Loosemore  <sandra@codesourcery.com>
21841             Andrew Jenner  <andrew@codesourcery.com>
21842             Joseph Myers  <joseph@codesourcery.com>
21843             Nathan Sidwell  <nathan@codesourcery.com>
21844
21845         * elf/elf.h (EM_ALTERA_NIOS2): New machine number for Altera Nios II.
21846         (DT_NIOS2_GP): New dynamic entry type for Nios II _gp address.
21847         (R_NIOS2_NONE,R_NIOS2_S16,R_NIOS2_U16): Define Nios II relocations.
21848         (R_NIOS2_PCREL16,R_NIOS2_CALL26,R_NIOS2_IMM5): Likewise.
21849         (R_NIOS2_CACHE_OPX,R_NIOS2_IMM6,R_NIOS2_IMM8,R_NIOS2_HI16): Likewise.
21850         (R_NIOS2_LO16,R_NIOS2_HIADJ16,R_NIOS2_BFD_RELOC_32): Likewise.
21851         (R_NIOS2_BFD_RELOC_16,R_NIOS2_BFD_RELOC_8,R_NIOS2_GPREL): Likewise.
21852         (R_NIOS2_GNU_VTINHERIT,R_NIOS2_GNU_VTENTRY,R_NIOS2_UJMP): Likewise.
21853         (R_NIOS2_CJMP,R_NIOS2_CALLR,R_NIOS2_ALIGN,R_NIOS2_GOT16): Likewise.
21854         (R_NIOS2_CALL16,R_NIOS2_GOTOFF_LO,R_NIOS2_GOTOFF_HA): Likewise.
21855         (R_NIOS2_PCREL_LO,R_NIOS2_PCREL_HA,R_NIOS2_TLS_GD16): Likewise.
21856         (R_NIOS2_TLS_LDM16,R_NIOS2_TLS_LDO16,R_NIOS2_TLS_IE16): Likewise.
21857         (R_NIOS2_TLS_LE16,R_NIOS2_TLS_DTPMOD,R_NIOS2_TLS_DTPREL): Likewise.
21858         (R_NIOS2_TLS_TPREL,R_NIOS2_COPY,R_NIOS2_GLOB_DAT): Likewise.
21859         (R_NIOS2_JUMP_SLOT,R_NIOS2_RELATIVE,R_NIOS2_GOTOFF): Likewise.
21860         (R_NIOS2_CALL26_NOAT,R_NIOS2_GOT_LO,R_NIOS2_GOT_HA): Likewise.
21861         (R_NIOS2_CALL_LO,R_NIOS2_CALL_HA): Likewise.
21862
21863 2015-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21864
21865         * sysdeps/unix/sysv/linux/futimens.c (futimens): Use address of first
21866         timespec struct member in syscall macro.
21867         * sysdeps/unix/sysv/linux/utimensat.c (utimensat): Likewise.
21868         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Use address of
21869         first timeval struct member in syscall macro.
21870         * sysdeps/unix/sysv/linux/utimes.c (__utimeS): Likewise.
21871
21872 2015-01-07  Joseph Myers  <joseph@codesourcery.com>
21873
21874         [BZ #17748]
21875         * include/fenv.h (__feupdateenv): Use libm_hidden_proto.
21876         * math/feupdateenv.c (__feupdateenv): Use libm_hidden_def.
21877         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Rename to
21878         __feupdateenv and define as weak alias of __feupdateenv.  Use
21879         libm_hidden_weak.
21880         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Use
21881         libm_hidden_def.
21882         * sysdeps/arm/feupdateenv.c (feupdateenv): Rename to __feupdateenv
21883         and define as weak alias of __feupdateenv.  Use libm_hidden_weak.
21884         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
21885         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Use
21886         libm_hidden_def.
21887         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Rename to
21888         __feupdateenv and define as weak alias of __feupdateenv.  Use
21889         libm_hidden_weak.
21890         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Use
21891         libm_hidden_def.
21892         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Rename to
21893         __feupdateenv and define as weak alias of __feupdateenv.  Use
21894         libm_hidden_weak.
21895         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Use
21896         libm_hidden_def.
21897         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
21898         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
21899         (__feupdateenv): Likewise.
21900         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Rename to
21901         __feupdateenv and define as weak alias of __feupdateenv.  Use
21902         libm_hidden_weak.
21903         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
21904         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Use
21905         libm_hidden_def.
21906         * sysdeps/tile/math_private.h (__feupdateenv): New inline
21907         function.
21908         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Use
21909         libm_hidden_def.
21910         * sysdeps/generic/math_private.h (default_libc_feupdateenv): Call
21911         __feupdateenv instead of feupdateenv.
21912         (default_libc_feupdateenv_test): Likewise.
21913         (libc_feresetround_ctx): Likewise.
21914
21915 2015-01-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21916
21917         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Fix function
21918         prototype.
21919
21920 2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
21921
21922         * posix/regcomp.c (parse_bracket_exp): Initialize type to
21923         COLL_SYM in a couple of places to avoid uninitialized variable
21924         wanings on tilegx gcc 4.8.2.
21925
21926 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
21927
21928         * sysdeps/aarch64/strcpy.S: New file.
21929         * sysdeps/aarch64/stpcpy.S: New file.
21930         * NEWS: Updated.
21931
21932 2015-01-07  Richard Earnshaw  <rearnsha@arm.com>
21933
21934         * sysdeps/aarch64/strrchr.S: New file.
21935         * NEWS: Updated.
21936
21937 2015-01-07  Eric Biggers  <ebiggers3@gmail.com>
21938
21939         [BZ #17658]
21940         * stdlib/setenv.c: Fix memory leak when setting large,
21941         duplicate string.
21942
21943 2015-01-06  Vladimir A. Nazarenko  <naszar@ya.ru>
21944
21945         [BZ #17273]
21946         * misc/mntent_r.c (__getmntent_r): Cut off trailing spaces
21947         and tabs from buffer before parsing fstab entry.
21948         * misc/tst-mntent.c (main): Add test for mount entry with
21949         trailing spaces and tabs.
21950
21951 2015-01-06  Joseph Myers  <joseph@codesourcery.com>
21952
21953         [BZ #17748]
21954         * include/fenv.h (__fesetround): Declare.  Use libm_hidden_proto.
21955         * math/fesetround.c (fesetround): Rename to __fesetround and
21956         define as weak alias of __fesetround.  Use libm_hidden_weak.
21957         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Likewise.
21958         * sysdeps/alpha/fpu/fesetround.c (fesetround): Likewise.
21959         * sysdeps/arm/fesetround.c (fesetround): Likewise.
21960         * sysdeps/hppa/fpu/fesetround.c (fesetround): Likewise.
21961         * sysdeps/i386/fpu/fesetround.c (fesetround): Likewise.
21962         * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
21963         * sysdeps/m68k/fpu/fesetround.c (fesetround): Likewise.
21964         * sysdeps/mips/fpu/fesetround.c (fesetround): Likewise.
21965         * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround): Rename to
21966         __fesetround_inline.
21967         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetround_ppc): Call
21968         __fesetround_inline instead of __fesetround.
21969         * sysdeps/powerpc/fpu/fesetround.c (fesetround): Rename to
21970         __fesetround and define as weak alias of __fesetround.  Use
21971         libm_hidden_weak.  Call __fesetround_inline instead of
21972         __fesetround.
21973         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Rename to
21974         __fesetround and define as weak alias of __fesetround.  Use
21975         libm_hidden_weak.
21976         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c (fesetround):
21977         Likewise.
21978         * sysdeps/s390/fpu/fesetround.c (fesetround): Likewise.
21979         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
21980         * sysdeps/sparc/fpu/fesetround.c (fesetround): Likewise.
21981         * sysdeps/tile/math_private.h (__fesetround): New inline function.
21982         * sysdeps/x86_64/fpu/fesetround.c (fesetround): Rename to
21983         __fesetround and define as weak alias of __fesetround.  Use
21984         libm_hidden_weak.
21985         * sysdeps/generic/math_private.h (default_libc_fesetround): Call
21986         __fesetround instead of fesetround.
21987         (default_libc_feholdexcept_setround): Likewise.
21988         (libc_feholdsetround_ctx): Likewise.
21989         (libc_feholdsetround_noex_ctx): Likewise.
21990
21991         [BZ #17748]
21992         * include/fenv.h (__fesetenv): Use libm_hidden_proto.
21993         * math/fesetenv.c (__fesetenv): Use libm_hidden_def.
21994         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
21995         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
21996         * sysdeps/alpha/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
21997         * sysdeps/arm/fesetenv.c (fesetenv): Rename to __fesetenv and
21998         define as weak alias of __fesetenv.  Use libm_hidden_weak.
21999         * sysdeps/hppa/fpu/fesetenv.c (fesetenv): Likewise.
22000         * sysdeps/i386/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22001         * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
22002         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22003         * sysdeps/m68k/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22004         * sysdeps/mips/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
22005         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22006         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Use
22007         libm_hidden_def.
22008         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Likewise.
22009         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c (__fesetenv):
22010         Likewise.
22011         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Rename to __fesetenv and
22012         define as weak alias of __fesetenv.  Use libm_hidden_weak.
22013         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
22014         * sysdeps/sparc/fpu/fesetenv.c (__fesetenv): Use libm_hidden_def.
22015         * sysdeps/tile/math_private.h (__fesetenv): New inline function.
22016         * sysdeps/x86_64/fpu/fesetenv.c (fesetenv): Rename to __fesetenv
22017         and define as weak alias of __fesetenv.  Use libm_hidden_weak.
22018         * sysdeps/generic/math_private.h (default_libc_fesetenv): Use
22019         __fesetenv instead of fesetenv.
22020         (libc_feresetround_noex_ctx): Likewise.
22021         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
22022         * sysdeps/hppa/fpu/feupdateenv.c (feupdateenv): Likewise.
22023         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Likewise.
22024         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
22025         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
22026         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
22027         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
22028         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c
22029         (__feupdateenv): Likewise.
22030         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22031         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22032         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
22033         * sysdeps/x86_64/fpu/feupdateenv.c (__feupdateenv): Likewise.
22034
22035 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
22036
22037         [BZ #17806]
22038         * resolv/res_init.c (__res_iclose): Only clear nsinit if the
22039         addresses have been freed.
22040
22041 2015-01-06  Aurelien Jarno  <aurelien@aurel32.net>
22042
22043         * resolv/res_init.c (__res_vinit): Improve comments about nserv
22044         and nservall.
22045
22046 2015-01-06  Ondřej Bílka  <neleai@seznam.cz>
22047
22048         * sysdeps/unix/sysv/linux/check_pf.c (make_request):
22049         Clean up check_pf allocation pattern. addresses
22050
22051 2015-01-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22052
22053         * nptl/pthread_cancel.c (pthread_cancel): Use ANSI prototype.
22054         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
22055         * nptl/pthread_cond_wait.c (__pthread_cond_wait): Likewise.
22056         * nptl/pthread_exit.c (__pthread_exit): Likewise.
22057         * nptl/pthread_join.c (pthread_join): Likewise.
22058         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
22059         * sysdeps/posix/waitid.c (__waitid): Likewise.
22060         * sysdeps/unix/sysv/linux/arm/pread.c (__libc_pread): Likewise.
22061         * sysdeps/unix/sysv/linux/arm/pread64.c (__libc_pread64): Likewise.
22062         * sysdeps/unix/sysv/linux/arm/pwrite.c (__libc_pwrite): Likewise.
22063         * sysdeps/unix/sysv/linux/arm/pwrite64.c (__libc_pwrite64): Likewise.
22064         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c (__libc_pread):
22065         Likewise.
22066         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c
22067         (__libc_pread64): Likewise.
22068         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c
22069         (__libc_pwrite): Likewise.
22070         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c
22071         (__libc_pwrite64): Likewsie.
22072         * sysdeps/unix/sysv/linux/mips/pread.c (__libc_pread): Likewise.
22073         * sysdeps/unix/sysv/linux/mips/pread64.c (__libc_pread64): Likewise.
22074         * sysdeps/unix/sysv/linux/mips/pwrite.c (__libc_pwrite): Likewise.
22075         * sysdeps/unix/sysv/linux/mips/pwrite64.c (__libc_pwrite64): Likewise.
22076         * sysdeps/unix/sysv/linux/msgrcv.c (__libc_msgrcv): Likewise.
22077         * sysdeps/unix/sysv/linux/msgsnd.c (__libc_msgsnd): Likewise.
22078         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
22079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c (__libc_pread):
22080         Likewise.
22081         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
22082         (__libc_pread64): Likewise.
22083         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c (__libc_pwrite):
22084         Likewise.
22085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
22086         (__libc_pwrite64): Likewise.
22087         * sysdeps/unix/sysv/linux/pread.c (__libc_pread): Likewise.
22088         * sysdeps/unix/sysv/linux/pread64.c (__libc_pread64): Likewise.
22089         * sysdeps/unix/sysv/linux/preadv.c (PREADV): Likewise.
22090         * sysdeps/unix/sysv/linux/pthread_kill.c (__pthread_kill): Likewise.
22091         * sysdeps/unix/sysv/linux/pwrite.c (__libc_pwrite): Likewise.
22092         * sysdeps/unix/sysv/linux/pwrite64.c (__libc_pwrite64): Likewise.
22093         * sysdeps/unix/sysv/linux/pwritev.c (__libc_pwritev): Likewise.
22094         * sysdeps/unix/sysv/linux/sh/pread.c (__libc_pread): Likewise.
22095         * sysdeps/unix/sysv/linux/sh/pread64.c (__libc_pread64): Likewise.
22096         * sysdeps/unix/sysv/linux/sh/pwrite.c (__libc_pwrite): Likewise.
22097         * sysdeps/unix/sysv/linux/sh/pwrite64.c (__libc_write64): Likewise.
22098         * sysdeps/unix/sysv/linux/sigsuspend.c (__sigsuspend): Likewise.
22099         * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Likewise.
22100         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Likewise.
22101         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
22102         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c (__libc_msgrcv):
22103         Likewise.
22104
22105 2015-01-06  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
22106
22107         * math/Makefile (CFLAGS-test-float.c): Remove -frounding-math.
22108         (CFLAGS-test-double.c): Likewise.
22109         (CFLAGS-test-ldouble.c): Likewise.
22110         (CPPFLAGS-test-ifloat.c): Likewise.
22111         (CPPFLAGS-test-idouble.c): Likewise.
22112         (CPPFLAGS-test-ildoubl.c): Likewise.
22113         (CFLAGS-test-test-fenv.c): Remove variable.
22114         (CFLAGS-test-misc.c): Likewise.
22115
22116 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
22117
22118         [BZ #17797]
22119         * bits/time.h (CLOCKS_PER_SEC): Changed to ((clock_t) 1000000).
22120         * sysdeps/unix/sysv/linux/bits/time.h (CLOCKS_PER_SEC): Likewise.
22121         * sysdeps/unix/sysv/linux/clock.c (clock): _Static_assert
22122         CLOCKS_PER_SEC == 1000000.
22123         * time/clocktest.c (main): Replace %ld with %jd and cast to
22124         intmax_t.
22125
22126 2015-01-05  Roland McGrath  <roland@hack.frob.com>
22127
22128         * sysdeps/generic/unwind-resume.h: New file.
22129         * sysdeps/gnu/unwind-resume.c: Include it.
22130         (libgcc_s_personality): Use PERSONALITY_PROTO macro for the prototype.
22131         (__gcc_personality_v0): Likewise, and PERSONALITY_ARGS for the callee
22132         argument list.
22133         (libgcc_s_resume): Variable renamed to __libgcc_s_resume, made hidden
22134         global rather than static.
22135         (_Unwind_Resume): Update user.
22136         Conditionalize definition on [!HAVE_ARCH_UNWIND_RESUME].
22137         (init): Likewise.  Renamed to __libgcc_s_init, made hidden global
22138         rather than static.  Add __attribute__ ((cold)).
22139         (_Unwind_Resume, __gcc_personality_v0): Update callers.
22140         * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
22141         * sysdeps/arm/arm-unwind-resume.S: New file.
22142         * sysdeps/arm/rt-arm-unwind-resume.S: New file.
22143         * sysdeps/arm/pt-arm-unwind-resume.S: New file.
22144         * sysdeps/arm/Makefile [$(subdir) = csu]
22145         (sysdep_routines, shared-only-routines): Add arm-unwind-resume.
22146         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
22147         Add rt-arm-unwind-resume.
22148         [$(subdir) = nptl]
22149         (libpthread-sysdep_routines, libpthread-shared-only-routines):
22150         Add pt-arm-unwind-resume.
22151         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: File removed.
22152         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: File removed.
22153
22154 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22155
22156         [BZ #17748]
22157         * include/fenv.h (__feholdexcept): Declare.  Use
22158         libm_hidden_proto.
22159         * math/feholdexcpt.c (feholdexcept): Rename to __feholdexcept and
22160         define as weak alias of __feholdexcept.  Use libm_hidden_weak.
22161         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22162         * sysdeps/alpha/fpu/feholdexcpt.c (feholdexcept): Likewise.
22163         * sysdeps/arm/feholdexcpt.c (feholdexcept): Likewise.
22164         * sysdeps/hppa/fpu/feholdexcpt.c (feholdexcept): Likewise.
22165         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Likewise.
22166         * sysdeps/ia64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22167         * sysdeps/m68k/fpu/feholdexcpt.c (feholdexcept): Likewise.
22168         * sysdeps/mips/fpu/feholdexcpt.c (feholdexcept): Likewise.
22169         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
22170         * sysdeps/powerpc/nofpu/feholdexcpt.c (feholdexcept): Likewise.
22171         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c
22172         (feholdexcept): Likewise.
22173         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
22174         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
22175         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Likewise.
22176         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22177         * sysdeps/generic/math_private.h (default_libc_feholdexcept): Use
22178         __feholdexcept instead of feholdexcept.
22179         (default_libc_feholdexcept_setround): Likewise.
22180
22181 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22182
22183         * sysdeps/mips/memset.S (memset): Modify for mips32r6/mips64r6
22184         to avoid using stl/str to align destination.
22185
22186 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22187
22188         * sysdeps/mips/memcpy.S: Add support for mips32r6/mips64r6.
22189
22190 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22191
22192         [BZ #17796]
22193         * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise.c
22194         [!SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)] (posix_fadvise64):
22195         Define as weak alias not strong alias.
22196
22197 2015-01-05  Steve Ellcey  <sellcey@imgtec.com>
22198
22199         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Replace
22200         bltzal with addiupc.
22201         (RTLD_START): Ditto.
22202
22203 2015-01-05  Chris Metcalf  <cmetcalf@ezchip.com>
22204
22205         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso.h: Fix return type
22206         for __vdso_* functions in declarations.
22207         * sysdeps/unix/sysv/linux/tile/init-first.c: Likewise for
22208         definitions.
22209         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL,
22210         INTERNAL_VSYSCALL): Use struct return types to check for error.
22211
22212         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c [!defined _LP64
22213         && REGISTER_CAST_INT32_TO_INT64]: Provide explicit lround()
22214         function with cast from llround().
22215         * sysdeps/tile/sysdep.h (REGISTER_CAST_INT32_TO_INT64): Define.
22216         * sysdeps/x86_64/x32/sysdep.h (REGISTER_CAST_INT32_TO_INT64):
22217         Define.
22218
22219 2015-01-05  Joseph Myers  <joseph@codesourcery.com>
22220
22221         [BZ #17793]
22222         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c (posix_fadvise64):
22223         Define as weak alias not strong alias.
22224
22225         [BZ #17635]
22226         * ctype/ctype-c99.c: New file.  isblank implementation moved from
22227         ...
22228         * ctype/ctype-extn.c: ... here.
22229         (__isblank_l): Move to ...
22230         * ctype/ctype-c99_l.c: ... here.  New file.
22231         * ctype/Makefile (routines): Add ctype-c99 and ctype-c99_l.
22232         * conform/Makefile (test-xfail-ISO99/ctype.h/linknamespace):
22233         Remove variable.
22234         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
22235         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
22236         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
22237         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
22238         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
22239
22240         [BZ #17777]
22241         * sysdeps/unix/sysv/linux/wordsize-64/posix_fadvise.c
22242         (posix_fadvise64): Define as weak alias not strong alias.
22243         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
22244         (posix_fallocate64): Likewise.
22245         * conform/Makefile (test-xfail-XOPEN2K/fcntl.h/linknamespace):
22246         Remove variable.
22247         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
22248         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
22249         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
22250         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
22251         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
22252
22253 2015-01-05  Matthew Fortune  <matthew.fortune@imgtec.com>
22254
22255         [BZ #16191]
22256         * NEWS: Mention bug fix.
22257         * sysdeps/unix/sysv/linux/mips/sys/user.h (PAGE_SHIFT): Remove.
22258         (PAGE_SIZE, PAGE_MASK, NBPG, UPAGES): Likewise.
22259         (HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR): Likewise.
22260         (HOST_STACK_END_ADDR): Likewise.
22261
22262 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
22263
22264         [BZ #17748]
22265         * include/fenv.h (__fegetround): Declare.  Use libm_hidden_proto.
22266         * math/fegetround.c (fegetround): Rename to __fegetround and
22267         define as weak alias of __fegetround.  Use libm_hidden_weak.
22268         * sysdeps/aarch64/fpu/fegetround.c (fegetround): Likewise.
22269         * sysdeps/alpha/fpu/fegetround.c (fegetround): Likewise.
22270         * sysdeps/arm/fegetround.c (fegetround): Likewise.
22271         * sysdeps/hppa/fpu/fegetround.c (fegetround): Likewise.
22272         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
22273         * sysdeps/ia64/fpu/fegetround.c (fegetround): Likewise.
22274         * sysdeps/m68k/fpu/fegetround.c (fegetround): Likewise.
22275         * sysdeps/mips/fpu/fegetround.c (fegetround): Likewise.
22276         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
22277         Undefine after rather than before function definition; use
22278         parentheses around function name in definition.
22279         (__fegetround): Also undefine macro after function definition.
22280         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Rename to
22281         __fegetround and define as weak alias of __fegetround.  Use
22282         libm_hidden_weak.  Do not undefine as macro.
22283         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
22284         Likewise.
22285         * sysdeps/s390/fpu/fegetround.c (fegetround): Rename to
22286         __fegetround and define as weak alias of __fegetround.  Use
22287         libm_hidden_weak.
22288         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
22289         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
22290         * sysdeps/tile/math_private.h (__fegetround): New inline function.
22291         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Rename to
22292         __fegetround and define as weak alias of __fegetround.  Use
22293         libm_hidden_weak.
22294         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Use
22295         __fegetround instead of fegetround.
22296
22297         [BZ #17782]
22298         * sysdeps/unix/sysv/linux/mips/bits/termios.h (TIOCSER_TEMT):
22299         Condition macro definition on [__USE_MISC].
22300
22301         [BZ #17781]
22302         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
22303         (struct sigaction): Change type of sa_flags field to int.
22304
22305         [BZ #17780]
22306         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (struct flock)
22307         [!__USE_FILE_OFFSET64 && _MIPS_SIM != _ABI64]: Rename pad field to
22308         __glibc_reserved0.
22309
22310         * nptl/version.c (banner): Use single year in copyright notice.
22311
22312         * NEWS: Update copyright dates.
22313         * catgets/gencat.c (print_version): Likewise.
22314         * csu/version.c (banner): Likewise.
22315         * debug/catchsegv.sh: Likewise.
22316         * debug/pcprofiledump.c (print_version): Likewise.
22317         * debug/xtrace.sh (do_version): Likewise.
22318         * elf/ldconfig.c (print_version): Likewise.
22319         * elf/ldd.bash.in: Likewise.
22320         * elf/pldd.c (print_version): Likewise.
22321         * elf/sotruss.sh: Likewise.
22322         * elf/sprof.c (print_version): Likewise.
22323         * iconv/iconv_prog.c (print_version): Likewise.
22324         * iconv/iconvconfig.c (print_version): Likewise.
22325         * locale/programs/locale.c (print_version): Likewise.
22326         * locale/programs/localedef.c (print_version): Likewise.
22327         * login/programs/pt_chown.c (print_version): Likewise.
22328         * malloc/memusage.sh (do_version): Likewise.
22329         * malloc/memusagestat.c (print_version): Likewise.
22330         * malloc/mtrace.pl: Likewise.
22331         * manual/libc.texinfo: Likewise.
22332         * nptl/version.c (banner): Likewise.
22333         * nscd/nscd.c (print_version): Likewise.
22334         * nss/getent.c (print_version): Likewise.
22335         * nss/makedb.c (print_version): Likewise.
22336         * posix/getconf.c (main): Likewise.
22337         * scripts/test-installation.pl: Likewise.
22338         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
22339
22340 2015-01-02  Will Newton  <will.newton@linaro.org>
22341
22342         * sysdeps/arm/armv7/configure: Removed.
22343         * sysdeps/arm/armv7/configure.ac: Likewise.
22344
22345 2015-01-02  Joseph Myers  <joseph@codesourcery.com>
22346
22347         * All files with FSF copyright notices: Update copyright dates
22348         using scripts/update-copyrights.
22349         * intl/plural.c: Regenerated.
22350         * locale/programs/charmap-kw.h: Likewise.
22351         * locale/programs/locfile-kw.h: Likewise.
22352
22353 2015-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
22354
22355         * scripts/gen-posix-conf-vars.awk (END): Don't use sprintf.
22356
22357 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
22358
22359         [BZ #17748]
22360         * include/fenv.h (__fegetenv): Use libm_hidden_proto.
22361         * math/fegetenv.c (__fegetenv): Use libm_hidden_def.
22362         * sysdeps/aarch64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
22363         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
22364         * sysdeps/alpha/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22365         * sysdeps/arm/fegetenv.c (fegetenv): Rename to __fegetenv and
22366         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22367         * sysdeps/hppa/fpu/fegetenv.c (fegetenv): Likewise.
22368         * sysdeps/i386/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22369         * sysdeps/ia64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22370         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22371         * sysdeps/m68k/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22372         * sysdeps/mips/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22373         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22374         * sysdeps/powerpc/fpu/fegetenv.c (__fegetenv): Use
22375         libm_hidden_def.
22376         * sysdeps/powerpc/nofpu/fegetenv.c (__fegetenv): Likewise.
22377         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (__fegetenv):
22378         Likewise.
22379         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Rename to __fegetenv and
22380         define as weak alias of __fegetenv.  Use libm_hidden_weak.
22381         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
22382         * sysdeps/sparc/fpu/fegetenv.c (__fegetenv): Use libm_hidden_def.
22383         * sysdeps/tile/math_private.h (__fegetenv): New inline function.
22384         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Rename to __fegetenv
22385         and define as weak alias of __fegetenv.  Use libm_hidden_weak.
22386         * sysdeps/generic/math_private.h (libc_feholdsetround_ctx): Use
22387         __fegetenv instead of fegetenv.
22388         (libc_feholdsetround_noex_ctx): Likewise.
22389
22390 2014-12-31  Matthew Fortune  <matthew.fortune@imgtec.com>
22391
22392         * elf/elf.h (PT_MIPS_ABIFLAGS): Define.
22393         (Elf_MIPS_ABIFlags_v0): New structure.
22394         (EF_MIPS_FP64): Define.
22395         (MIPS_AFL_REG_NONE, MIPS_AFL_REG_32, MIPS_AFL_REG_64): Likewise.
22396         (MIPS_AFL_REG_128, MIPS_AFL_ASE_DSP, MIPS_AFL_ASE_DSP64): Likewise.
22397         (MIPS_AFL_ASE_DSPR2, MIPS_AFL_ASE_EVA, MIPS_AFL_ASE_MCU): Likewise.
22398         (MIPS_AFL_ASE_MDMX, MIPS_AFL_ASE_MIPS3D, MIPS_AFL_ASE_MT): Likewise.
22399         (MIPS_AFL_ASE_SMARTMIPS, MIPS_AFL_ASE_VIRT): Likewise.
22400         (MIPS_AFL_ASE_VIRT64, MIPS_AFL_ASE_MSA, MIPS_AFL_ASE_MSA64): Likewise.
22401         (MIPS_AFL_ASE_MIPS16, MIPS_AFL_ASE_MICROMIPS): Likewise.
22402         (MIPS_AFL_ASE_XPA, MIPS_AFL_EXT_XLR, MIPS_AFL_EXT_OCTEON2): Likewise.
22403         (MIPS_AFL_EXT_OCTEONP, MIPS_AFL_EXT_LOONGSON_3A): Likewise.
22404         (MIPS_AFL_EXT_OCTEON, MIPS_AFL_EXT_5900, MIPS_AFL_EXT_4010): Likewise.
22405         (MIPS_AFL_EXT_4100, MIPS_AFL_EXT_3900, MIPS_AFL_EXT_10000): Likewise.
22406         (MIPS_AFL_EXT_SB1, MIPS_AFL_EXT_4111, MIPS_AFL_EXT_4120): Likewise.
22407         (MIPS_AFL_EXT_5400, MIPS_AFL_EXT_5500): Likewise.
22408         (MIPS_AFL_EXT_LOONGSON_2E, MIPS_AFL_EXT_LOONGSON_2F): Likewise.
22409         (Val_GNU_MIPS_ABI_FP_ANY, Val_GNU_MIPS_ABI_FP_DOUBLE): New enum values.
22410         (Val_GNU_MIPS_ABI_FP_SINGLE, Val_GNU_MIPS_ABI_FP_SOFT): Likewise.
22411         (Val_GNU_MIPS_ABI_FP_OLD_64, Val_GNU_MIPS_ABI_FP_XX): Likewise.
22412         (Val_GNU_MIPS_ABI_FP_64, Val_GNU_MIPS_ABI_FP_64A): Likewise.
22413         (Val_GNU_MIPS_ABI_FP_MAX): Likewise.
22414         * sysdeps/mips/Makefile [subdir=elf]: Add tst-abi-interlink,
22415         tst-mode-switch-1, tst-mode-switch-2, tst-mode-switch-3 tests.
22416         * sysdeps/mips/bits/linkmap.h (struct link_map_machine): Add fpmode
22417         field.
22418         * sysdeps/mips/dl-machine.h (elf_machine_matches_host): Reject
22419         EF_MIPS_FP64.
22420         * sysdeps/mips/dl-machine-reject-phdr.h: New file.
22421         * sysdeps/mips/tst-abi-fp32mod.c: Likewise.
22422         * sysdeps/mips/tst-abi-fpxxmod.c: Likewise.
22423         * sysdeps/mips/tst-abi-fpxxomod.c: Likewise.
22424         * sysdeps/mips/tst-abi-fp64mod.c: Likewise.
22425         * sysdeps/mips/tst-abi-fp64amod.c: Likewise.
22426         * sysdeps/mips/tst-abi-interlink.c: Likewise.
22427         * sysdeps/mips/tst-mode-switch-1.c: Likewise.
22428         * sysdeps/mips/tst-mode-switch-2.c: Likewise.
22429         * sysdeps/mips/tst-mode-switch-3.c: Likewise.
22430         * sysdeps/unix/sysv/linux/mips/configure.ac (o32-fpabi): Define to
22431         record the current FP ABI extension.
22432         (mips-mode-switch): Define to show if kernel headers support mode
22433         switching.
22434         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
22435         * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increase maximum
22436         supported SYSV ABI version to 3.
22437         * sysdeps/unix/sysv/linux/mips/libc-abis: Add new MIPS_O32_FP64
22438         feature.
22439
22440 2014-12-31  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
22441             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22442
22443         * sysdeps/powerpc/powerpc64/power7/strcpy.S (strcpy): Optimize unaligned
22444         path.
22445         * benchtests/bench-strcpy.c (test_main): Add more unaligned inputs.
22446
22447 2014-12-31  Joseph Myers  <joseph@codesourcery.com>
22448
22449         * sysdeps/powerpc/bits/fenvinline.h (fegetround): Rename macro to
22450         __fegetround and redefine to call __fegetround.  Remove condition
22451         on [!__NO_MATH_INLINES].
22452         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove inline
22453         function.
22454         * sysdeps/powerpc/nofpu/fenv_libc.h: Remove file.
22455         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
22456         Remove macro.
22457         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Include <fenv.h>
22458         instead of <fenv_libc.h>.
22459         (__llrintl): Call fegetround instead of __fegetround.
22460         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Include <fenv.h>
22461         instead of <fenv_libc.h>.
22462         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
22463         (__lrintl): Call fegetround instead of __fegetround.
22464         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Include <fenv.h>
22465         instead of <fenv_libc.h>.
22466         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
22467         (__rintl): Call fegetround instead of __fegetround.
22468
22469 2014-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
22470
22471         * scripts/gen-posix-conf-vars.awk: Don't use multi-dimensional
22472         arrays.
22473
22474 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22475
22476         [BZ #17775]
22477         * sysdeps/i386/dl-machine.h (PI_STATIC_AND_HIDDEN): Removed.
22478         (elf_machine_dynamic) [!PI_STATIC_AND_HIDDEN]: Likewise.
22479         (elf_machine_load_address) [!PI_STATIC_AND_HIDDEN]: Likewise.
22480
22481 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22482
22483         * sysdeps/i386/tls-macros.h: Include <features.h>.
22484         (TLS_LE): Use non-PIC version for GCC >= 5.0.
22485         (TLS_IE): Likewise.
22486         (TLS_LD): Likewise.
22487         (TLS_GD): Likewise.
22488         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Don't
22489         define for GCC >= 5.0.
22490
22491 2014-12-30  Chris Metcalf  <cmetcalf@ezchip.com>
22492
22493         * math/test-fenv.c (test_single_exception, set_single_exc,
22494         feenv_nomask_test, feenv_mask_test, feexcp_nomask_test,
22495         feexcp_mask_test, feenable_test, fe_single_test): Add
22496         [!FE_ALL_EXCEPT] test so these routines are not compiled in the
22497         case where they are not used.
22498         * math/libm-test.inc: Likewise.
22499         * setjmp/test-setjmp-fp.c: Mark attribute ((unused)) on variable
22500         unused in the absence of FP rounding/exception support.
22501         * stdio-common/tst-printf-round.c: Likewise.
22502         * stdlib/tst-strtod-round.c: Likewise.
22503         * stdlib/tst-strtod-underflow.c: Likewise.
22504
22505 2014-12-30  Joseph Myers  <joseph@codesourcery.com>
22506
22507         [BZ #17723]
22508         * include/fenv.h (__feraiseexcept): Use libm_hidden_proto.
22509         * math/fraiseexcpt.c (__feraiseexcept): Use libm_hidden_def.
22510         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22511         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22512         libm_hidden_weak.
22513         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Likewise.
22514         * sysdeps/hppa/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22515         * sysdeps/i386/fpu/fraiseexcpt.c (__feraiseexcept): Use
22516         libm_hidden_def.
22517         * sysdeps/ia64/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22518         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22519         libm_hidden_weak.
22520         * sysdeps/m68k/coldfire/fpu/fraiseexcpt.c (feraiseexcept):
22521         Likewise.
22522         * sysdeps/microblaze/math_private.h (__feraiseexcept): New macro.
22523         * sysdeps/mips/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22524         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22525         libm_hidden_weak.
22526         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22527         libm_hidden_def.
22528         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
22529         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c
22530         (__feraiseexcept): Likewise.
22531         * sysdeps/s390/fpu/fraiseexcpt.c (feraiseexcept): Rename to
22532         __feraiseexcept and define as weak alias of __feraiseexcept.  Use
22533         libm_hidden_weak.
22534         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Likewise.
22535         * sysdeps/sparc/fpu/fraiseexcpt.c (__feraiseexcept): Use
22536         libm_hidden_def.
22537         * sysdeps/tile/math_private.h (__feraiseexcept): New macro.
22538         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (__feraiseexcept):
22539         Use libm_hidden_def.
22540         * sysdeps/x86_64/fpu/fraiseexcpt.c (__feraiseexcept): Use
22541         libm_hidden_def.
22542         (feraiseexcept): Define as weak not strong alias.  Use
22543         libm_hidden_weak.
22544         * sysdeps/x86/fpu/bits/fenv.h (__feraiseexcept_invalid_divbyzero):
22545         New inline function.  Factored out of ...
22546         (feraiseexcept): ... here.  Use __feraiseexcept_invalid_divbyzero.
22547         * sysdeps/x86/fpu/include/bits/fenv.h: New file.
22548         * math/e_scalb.c (invalid_fn): Call __feraiseexcept instead of
22549         feraiseexcept.
22550         * math/w_acos.c (__acos): Likewise.
22551         * math/w_asin.c (__asin): Likewise.
22552         * math/w_ilogb.c (__ilogb): Likewise.
22553         * math/w_j0.c (y0): Likewise.
22554         * math/w_j1.c (y1): Likewise.
22555         * math/w_jn.c (yn): Likewise.
22556         * math/w_log.c (__log): Likewise.
22557         * math/w_log10.c (__log10): Likewise.
22558         * sysdeps/aarch64/fpu/feupdateenv.c (feupdateenv): Likewise.
22559         * sysdeps/aarch64/fpu/math_private.h
22560         (libc_feupdateenv_test_aarch64): Likewise.
22561         * sysdeps/alpha/fpu/feupdateenv.c (__feupdateenv): Likewise.
22562         * sysdeps/arm/fenv_private.h (libc_feupdateenv_test_vfp): Likewise.
22563         * sysdeps/arm/feupdateenv.c (feupdateenv): Likewise.
22564         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Likewise.
22565         * sysdeps/m68k/fpu/feupdateenv.c (__feupdateenv): Likewise.
22566         * sysdeps/mips/fpu/feupdateenv.c (feupdateenv): Likewise.
22567         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Likewise.
22568         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
22569         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
22570         * sysdeps/sparc/fpu/feupdateenv.c (__feupdateenv): Likewise.
22571
22572 2014-12-30  H.J. Lu  <hongjiu.lu@intel.com>
22573
22574         [BZ #17732]
22575         * io/test-utime.c (main): Replace %ld with %jd and cast to
22576         intmax_t.
22577         * libio/tst-ftell-active-handler.c (do_append_test): Likewise.
22578         * nptl/tst-mutex5.c: Include <stdint.h>.
22579         (do_test): Replace %ld with %jd and cast to intmax_t.
22580         * posix/tst-regex.c (run_test): Likewise.
22581         (run_test_backwards): Likewise.
22582         * rt/tst-clock.c: Include <stdint.h>.
22583         (clock_test): Replace %ld with %jd and cast to intmax_t.
22584         * rt/tst-cpuclock1.c: Include <stdint.h>.
22585         (do_test): Replace %lu with %ju and cast to uintmax_t.
22586         * rt/tst-cpuclock2.c: Include <stdint.h>.
22587         (do_test): Replace %lu with %ju and cast to uintmax_t.
22588         * rt/tst-mqueue1.c: Include <stdint.h>.
22589         (check_attrs): Replace %ld with %jd and cast to intmax_t.
22590         * rt/tst-mqueue3.c (fct): Replace %ld with %jd and cast to
22591         intmax_t.
22592         * rt/tst-mqueue4.c (do_test): Likewise.
22593         * rt/tst-timer4.c: Include <stdint.h>.
22594         (check_ts): Replace %ld with %jd and cast to intmax_t.
22595         (do_test): Likewise.
22596         * stdio-common/tst-fmemopen2.c (do_test): Replace %ld with %jd
22597         and cast to intmax_t.
22598         * sysdeps/pthread/tst-timer.c (main): Likewise.
22599         * time/clocktest.c (main): Likewise.
22600         * time/tst-posixtz.c (do_test): Likewise.
22601         * timezone/tst-timezone.c (main): Likewise.
22602
22603 2014-12-30  Andrew Senkevich  <andrew.senkevich@intel.com>
22604             H.J. Lu  <hongjiu.lu@intel.com>
22605
22606         * sysdeps/i386/i686/multiarch/bcopy-sse2-unaligned.S: New file.
22607         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
22608         * sysdeps/i386/i686/multiarch/memmove-sse2-unaligned.S: Likewise.
22609         * sysdeps/i386/i686/multiarch/mempcpy-sse2-unaligned.S: Likewise.
22610         * sysdeps/i386/i686/multiarch/bcopy.S: Select the sse2_unaligned
22611         version if bit_Fast_Unaligned_Load is set.
22612         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
22613         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
22614         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
22615         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
22616         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
22617         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
22618         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22619         bcopy-sse2-unaligned, memcpy-sse2-unaligned,
22620         memmove-sse2-unaligned and mempcpy-sse2-unaligned.
22621         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c (MAX_IFUNC): Set
22622         to 4.
22623         (__libc_ifunc_impl_list): Test __bcopy_sse2_unaligned,
22624         __memmove_chk_sse2_unaligned, __memmove_sse2_unaligned,
22625         __memcpy_chk_sse2_unaligned, __memcpy_sse2_unaligned,
22626         __mempcpy_chk_sse2_unaligned, and __mempcpy_sse2_unaligned.
22627
22628 2014-12-29  Chris Metcalf  <cmetcalf@ezchip.com>
22629
22630         * sysdeps/unix/sysv/linux/tst-setgetname.c (do_test): Use #ifndef
22631         instead of #if to avoid a Wundef warning.
22632         * stdlib/tst-limits.c (do_test): Likewise.
22633
22634         * sysdeps/tile/math_private.h (fetestexcept): Add macro to
22635         parallel other exception macros.
22636         (fegetenv): Convert from macro to extern inline so that it applies
22637         retroactively to inline functions already seen by the compiler.
22638         (fesetenv, feupdateenv, fegetround, fesetround): Likewise.
22639
22640         * posix/Makefile (before-compile): Use $(objpfx) for
22641         posix-conf-vars-def.h.
22642
22643 2014-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
22644
22645         * posix/getconf.c (main): Use size_t for type of I.
22646         * scripts-gen-posix-conf-vars.awk (END): Use size_t for type of
22647         NSPEC.
22648
22649         * posix/posix-conf-vars.list (SPEC:XBS5): Add sysconf prefix.
22650         * posix/confstr.c: Define NEED_SPEC_ARRAY to 0.
22651         * posix/posix-envs.def: Likewise.
22652         * sysdeps/posix/sysconf.c: Likewise.
22653         * posix/getconf.c: Define NEED_SPEC_ARRAY to 1.
22654         (specs): Remove array.
22655         * scripts/gen-posix-conf-vars.awk: Support generation of specs
22656         array.
22657
22658         * posix/posix-conf-vars.list: Add _POSIX sysconf namespace.
22659         * sysdeps/posix/sysconf.c: Include posix-conf-vars.h.
22660         (__sysconf): Use CONF_IS_* macros.
22661
22662         * posix/Makefile (before-compile): Add posix-conf-vars-def.h.
22663         ($(objpfx)posix-conf-vars-def.h): New target.
22664         * posix/posix-conf-vars.list: New file.
22665         * posix/posix-conf-vars.h: New file.
22666         * posix/confstr.c: Include posix-conf-vars.h.
22667         (confstr): Use CONF_IS_* macros.
22668         * posix/posix-envs.def: Include posix-conf-vars.h.  Use
22669         CONF_IS_* macros.
22670         * scripts/gen-posix-conf-vars.awk: New file.
22671
22672 2014-12-26  Chris Metcalf  <cmetcalf@ezchip.com>
22673
22674         * sysdeps/tile/math_private.h (fegetenv, fesetenv, feupdateenv,
22675         fegetround): Add no-op macros to avoid linknamespace issues.
22676
22677         * sysdeps/unix/sysv/linux/clock_settime.c (SYSDEP_SETTIME): Remove
22678         definitions of INTERNAL_VSYSCALL and INLINE_VSYSCALL.
22679
22680         * sysdeps/unix/sysv/linux/tile/sysdep.h
22681         (HAVE_CLOCK_GETTIME_VSYSCALL): Move definition out of
22682         assembly-specific section to avoid a redefinition warning.
22683
22684         * sysdeps/tile/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast to
22685         long before casting to pointer to avoid a cast warning.
22686
22687 2014-12-23  Chris Metcalf  <cmetcalf@ezchip.com>
22688
22689         * sysdeps/tile/tilegx/Implies: New file.
22690
22691 2014-12-23  Richard Earnshaw  <rearnsha@arm.com>
22692
22693         * string/stpcpy.c (__stpcpy): Rewrite using strlen and memcpy.
22694
22695 2014-12-23  Florian Weimer  <fweimer@redhat.com>
22696
22697         * iconvdata/run-iconv-test.sh: Actually test iconv modules.
22698
22699 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22700
22701         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES): Do
22702         not define.
22703         * sysdeps/unix/sysv/linux/utimes.c: Do not include
22704         <kernel-features.h>.
22705         (__utimes) [__NR_utimes]: Make code unconditional.
22706         (__utimes) [!__ASSUME_UTIMES]: Remove conditional code.
22707         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
22708         (__ASSUME_UTIMES): Do not undefine.
22709         * sysdeps/unix/sysv/linux/tile/kernel-features.h
22710         (__ASSUME_UTIMES): Likewise.
22711         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
22712         (__ASSUME_UTIMES): Define for [__LINUX_KERNEL_VERSION >= 0x030e00]
22713         instead of undefining for [__LINUX_KERNEL_VERSION < 0x030e00].
22714         * sysdeps/unix/sysv/linux/hppa/utimes.c: New file.
22715
22716 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22717
22718         * sysdeps/mips/memcpy.S: Fix preprocessor indentation.
22719
22720 2014-12-22  Chris Metcalf  <cmetcalf@ezchip.com>
22721
22722         [BZ #17747]
22723         * math/w_j0.c [defined NO_LONG_DOUBLE] (j0, y0): Convert strong
22724         alias to weak alias for j0l, y0l.
22725         * math/w_j1.c [defined NO_LONG_DOUBLE] (j1, y1): Likewise.
22726         * math/w_jn.c [defined NO_LONG_DOUBLE] (jn, yn): Likewise.
22727
22728         [BZ #17746]
22729         * sysdeps/tile/tilegx/strstr.c (STRSTR2): Remove implicit boolean
22730         conversion.
22731
22732 2014-12-22  Steve Ellcey  <sellcey@imgtec.com>
22733
22734         * sysdeps/unix/mips/sysdep.h (__mips_isa_rev): Set
22735         to zero if not already defined.
22736
22737 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22738
22739         [BZ #17724]
22740         * sysdeps/ieee754/k_standard.c: Don't include <float.h>.
22741         (__kernel_standard_f): Remove.  Moved to k_standardf.c.
22742         (__kernel_standard_l): Remove.  Moved to k_standardl.c with
22743         (char *) casts added.
22744         * sysdeps/ieee754/k_standardf.c: New file.
22745         * sysdeps/ieee754/k_standardl.c: Likewise.
22746         * math/Makefile (libm-support): Remove k_standard.
22747         (libm-calls): Add k_standard.
22748
22749 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22750
22751         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
22752         Optimize to avoid an unnecessary FPCR read.
22753
22754 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22755
22756         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv):
22757         Optimize to reduce FPCR/FPSR accesses.
22758
22759 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22760
22761         * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept):
22762         Call libc_fetestexcept_aarch64.
22763
22764 2014-12-22  Wilco Dijkstra  <wdijkstr@arm.com>
22765
22766         * sysdeps/aarch64/fpu/fesetround.c (fesetround):
22767         Call libc_fesetround_aarch64.
22768
22769 2014-12-22  Joseph Myers  <joseph@codesourcery.com>
22770
22771         [BZ #17733]
22772         * sysdeps/unix/sysv/linux/bind.S (NO_WEAK_ALIAS): Do not define.
22773         (__bind): Do not define as weak alias.
22774         * sysdeps/unix/sysv/linux/getsockname.S (NO_WEAK_ALIAS): Do not
22775         define.
22776         (__getsockname): Do not define as weak alias.
22777
22778 2014-12-22  Will Newton  <will.newton@linaro.org>
22779
22780         * manual/install.texi: Document that we require bison 2.7
22781         or above.
22782         * INSTALL: Regenerate.
22783         * configure.ac: Use AC_CHECK_PROG_VER instead of
22784         AC_PATH_PROG when checking for bison and check for
22785         version 2.7 or above.
22786         * configure: Regenerate.
22787
22788 2014-12-21  Chris Metcalf  <cmetcalf@ezchip.com>
22789
22790         [BZ #17745]
22791         * sysdeps/tile/ffs.c (__ffs): Moved ffsll definition...
22792         * sysdeps/tile/ffsll.c (ffsll): To here.
22793
22794         * sysdeps/unix/sysv/linux/tile/localplt.data: Removed.
22795
22796 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22797
22798         * elf/dl-tls.c (__tls_get_addr): Provide the hidden definition
22799         if not defined.
22800         * sysdeps/i386/dl-tls.h (___tls_get_addr): Provide the hidden
22801         definition.
22802         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22803         hidden ___tls_get_addr.
22804         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Call the
22805         hidden __tls_get_addr.
22806         * sysdeps/generic/localplt.data (__tls_get_addr): Removed.
22807         * sysdeps/unix/sysv/linux/i386/localplt.data (___tls_get_addr):
22808         Likewise.
22809
22810 2014-12-21  Andreas Schwab  <schwab@linux-m68k.org>
22811
22812         * sysdeps/m68k/dl-machine.h (RTLD_START): Remove @PLTPC from
22813         _dl_init call.
22814
22815 2014-12-21  H.J. Lu  <hongjiu.lu@intel.com>
22816
22817         * sysdeps/i386/dl-machine.h (_dl_start_user): Remove @PLT
22818         from "call _dl_init@PLT".
22819         * sysdeps/x86_64/dl-machine.h (_dl_start_user): Likewise.
22820
22821 2014-12-21  Anders Kaseorg  <andersk@mit.edu>
22822
22823         * manual/search.texi: (Array Sort Function): Clarify stable sorting
22824         guarantees.
22825
22826 2014-12-20  Chris Metcalf  <cmetcalf@ezchip.com>
22827
22828         * sysdeps/unix/sysv/linux/tile/localplt.data: New file.
22829
22830 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22831
22832         [BZ #17744]
22833         * sysdeps/tile/tilegx/strstr.c (STRSTR): Call __strnlen, not
22834         strnlen.
22835
22836 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22837
22838         * sysdeps/mips/addmul_1.S (__mpn_addmul_1): Use mulu/muhu instead
22839         of multu on MIPSr6.
22840         * sysdeps/mips/mul_1.S (__mpn_mul_1): Ditto.
22841         * sysdeps/mips/submul_1.S (__mpn_submul_1): Ditto.
22842         * sysdeps/mips/mips64/addmul_1.S (__mpn_addmul_1): Ditto.
22843         * sysdeps/mips/mips64/mul_1.S (__mpn_mul_1): Ditto.
22844         * sysdeps/mips/mips64/submul_1.S (__mpn_submul_1): Ditto.
22845
22846 2014-12-19  Steve Ellcey  <sellcey@imgtec.com>
22847
22848         * sysdeps/mips/sys/asm.h (PTR_ADDU): Use addu on mips32r6/mips64r6.
22849         (PTR_ADDIU): Use addiu for mips32r6/mips64r6.
22850         (PTR_SUBU): Use subu for mips32r6/mips64r6.
22851         (PTR_SUBIU): Use subu for mips32r6/mips64r6 (subiu does not exist).
22852         * sysdeps/mips/machine-gmon.h (PTR_ADDU_STRING) Use addu for
22853         mips32r6/mips64r6.
22854         (PTR_SUBU_STRING) Use subu for mips32r6/mips64r6.
22855
22856 2014-12-19  Ondřej Bílka  <neleai@seznam.cz>
22857
22858         * string/strncat.c (STRNCAT): Simplify implementation.
22859
22860 2014-12-19  David S. Miller  <davem@davemloft.net>
22861
22862         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Use a union to
22863         access the quad as both a long double and as a series of 4 words.
22864
22865         * get-dynamic-info.h (elf_get_dynamic_info): Ignore -Warray-bounds for a
22866         link_map->l_info array access.
22867
22868 2014-12-19  Chris Metcalf  <cmetcalf@ezchip.com>
22869
22870         * iconvdata/tst-loading.c (TIMEOUT): Increase timeout 10 sec.
22871
22872         * math/atest-exp.c (TIMEOUT): Increase timeout to 10 sec.
22873         * math/atest-exp2.c (TIMEOUT): Likewise.
22874         * math/atest-sincos.c (TIMEOUT): Likewise.
22875
22876 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22877
22878         * sysdeps/x86_64/x32/Makefile (CFLAGS-s_llround.c): Replace
22879         -Wno-error with -fno-builtin-lround.
22880
22881 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22882
22883         * sysdeps/unix/sysv/linux/i386/lowlevellock-futex.h: New file.
22884         Contains futex constants and functions moved over from ...
22885         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.  Include
22886         <lowlevellock-futex.h>.
22887         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22888         (lll_timedwait_tid): Add comments and parentheses around macro
22889         arguments.
22890
22891 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22892
22893         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Include
22894         <lowlevellock-futex.h>.  Remove FUTEX_* constants defined there.
22895         (__lll_private_flag): Remove.
22896         (lll_futex_wait): Likewise.
22897         (lll_futex_timed_wait): Likewise.
22898         (lll_futex_wake): Likewise.
22899         (lll_futex_requeue): Likewise.
22900         (lll_wait_tid): Use lll_futex_wait instead of assembly code.
22901         (__lll_timedwait_tid): Spell out argument names.
22902         (lll_timedwait_tid): Add comments and parentheses around macro
22903         arguments.
22904         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Make FUTEX_* constants,
22905         LLL_SHARED and LLL_PRIVATE usable from assembly code.
22906
22907 2014-12-19  Torvald Riegel  <triegel@redhat.com>
22908
22909         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Remove file.
22910         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
22911         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
22912         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Likewise.
22913         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Likewise.
22914         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Likewise.
22915         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Likewise.
22916         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Likewise.
22917         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Likewise.
22918         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: Likewise.
22919         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: Likewise.
22920         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Likewise.
22921         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Likewise.
22922         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Likewise.
22923         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Likewise.
22924         * sysdeps/unix/sysv/linux/sh/sem_post.S: Likewise.
22925         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Likewise.
22926         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: Likewise.
22927         * sysdeps/unix/sysv/linux/sh/sem_wait.S: Likewise.
22928
22929 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22930
22931         * sysdeps/x86_64/x32/Makefile: New file.
22932
22933 2014-12-19  H.J. Lu  <hongjiu.lu@intel.com>
22934
22935         * sysdeps/i386/ldbl2mpn.c (__mpn_extract_long_double): Replace
22936         1L with (mp_limb_t) 1.
22937
22938 2014-12-17  Roland McGrath  <roland@hack.frob.com>
22939
22940         * sysdeps/nptl/fork.c (__fork_generation_pointer): Variable moved ...
22941         * nptl/libc_pthread_init.c: ... here.
22942         * sysdeps/nptl/fork.c (__fork_handlers): Variable moved ...
22943         * nptl/register-atfork.c: ... here.
22944
22945         * sysdeps/nptl/gai_misc.h (__gai_start_notify_thread):
22946         Use pthread_sigmask rather than INTERNAL_SYSCALL.
22947         Use assert_perror to check its return value.
22948         (__gai_create_helper_thread): Likewise.
22949
22950         * inet/if_index.c (__if_freenameindex): Add libc_hidden_def.
22951
22952         * malloc/malloc.c (alloc_perturb, free_perturb): Remove inline keyword.
22953
22954 2014-12-17  Joseph Myers  <joseph@codesourcery.com>
22955
22956         [BZ #17725]
22957         * sysdeps/generic/profil-counter.h (profil_counter): Rename to
22958         __profil_counter.
22959         * sysdeps/unix/sysv/linux/hppa/profil-counter.h (profil_counter):
22960         Likewise.
22961         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter):
22962         Likewise.
22963         * sysdeps/unix/sysv/linux/ia64/profil-counter.h (profil_counter):
22964         Likewise.
22965         * sysdeps/unix/sysv/linux/s390/s390-32/profil-counter.h
22966         (profil_counter): Likewise.
22967         * sysdeps/unix/sysv/linux/s390/s390-64/profil-counter.h
22968         (profil_counter): Likewise.
22969         * sysdeps/unix/sysv/linux/sh/profil-counter.h (profil_counter):
22970         Likewise.
22971         * sysdeps/unix/sysv/linux/tile/profil-counter.h (profil_counter):
22972         Likewise.
22973         * sysdeps/unix/sysv/linux/x86_64/profil-counter.h
22974         (profil_counter): Likewise.
22975         * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
22976         Likewise.
22977         [!__profil_counter] (profil_counter): Define as weak alias of
22978         __profil_counter.
22979         * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h
22980         (profil_counter): Rename to __profil_counter.
22981         [!__profil_counter] (profil_counter): Define as weak alias of
22982         __profil_counter.
22983         * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h
22984         (profil_counter): Rename to __profil_counter.
22985         [!__profil_counter] (profil_counter): Define as weak alias of
22986         __profil_counter.
22987         * sysdeps/posix/profil.c: Update comment referring to
22988         profil_counter.
22989         (__profil): Use __profil_counter instead of profil_counter.
22990         * sysdeps/posix/sprofil.c (profil_counter): Rename to
22991         __profil_counter.  Use __profil_counter_ushort and
22992         __profil_counter_uint in definitions.
22993         (__sprofil): Use __profil_counter_uint and __profil_counter_ushort
22994         instead of profil_counter_uint and profil_counter_ushort.
22995
22996         [BZ #17722]
22997         * inet/inet_mkadr.c (inet_makeaddr): Rename to __inet_makeaddr and
22998         define as weak alias of __inet_makeaddr.
22999         * resolv/inet_addr.c (inet_addr): Rename to __inet_addr and define
23000         as weak alias of __inet_addr.
23001         * resolv/inet_pton.c (inet_pton): Rename to __inet_pton and define
23002         as weak alias of __inet_pton.  Use libc_hidden_weak.
23003         * include/arpa/inet.h (__inet_pton): Declare.  Use
23004         libc_hidden_proto.
23005         (inet_makeaddr): Don't use libc_hidden_proto.
23006         (__inet_makeaddr): Declare.  Use libc_hidden_proto.
23007         * resolv/res_init.c (__res_vinit): Use __inet_pton instead of
23008         inet_pton.  Use __inet_makeaddr instead of inet_makeaddr.
23009         * conform/Makefile (test-xfail-POSIX/pthread.h/linknamespace):
23010         Remove variable.
23011         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
23012         (test-xfail-POSIX/time.h/linknamespace): Likewise.
23013
23014 2014-12-17  Steve Ellcey  <sellcey@imgtec.com>
23015
23016         * inet/getnetgrent_r.c: Move while loop to be inside if statement.
23017
23018 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
23019
23020         * stdio-common/bug-vfprintf-nargs.c (do_test):
23021         Cast value to intptr_t to avoid format warning
23022         for usage with PRIdPTR printing macro.
23023
23024 2014-12-17  Stefan Liebler  <stli@linux.vnet.ibm.com>
23025
23026         * libio/tst-widetext.c (do_test):
23027         Use format type %td instead of %Zd for ptrdiff_t
23028         in order to avoid format warning.
23029
23030 2014-12-17  Andreas Schwab  <schwab@suse.de>
23031
23032         * nscd/mem.c (gc): Add size_t cast to match printf format.
23033
23034 2014-12-16  Roland McGrath  <roland@hack.frob.com>
23035
23036         * sysdeps/gnu/unwind-resume.c: #include <sysdep.h>.
23037         (init): Apply PTR_MANGLE to pointers before storing them.
23038         (_Unwind_Resume, __gcc_personality_v0): Apply PTR_DEMANGLE to pointers
23039         before using them.
23040
23041 2014-12-16  Joseph Myers  <joseph@codesourcery.com>
23042
23043         [BZ #17719]
23044         * sysdeps/x86_64/memrchr.S (memrchr): Rename to __memrchr and
23045         define as weak alias of __memrchr.
23046         (__memrchr): Do not define as strong alias of memrchr.
23047         * conform/Makefile (test-xfail-XPG4/libgen.h/linknamespace):
23048         Remove variable.
23049         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
23050         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
23051         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
23052
23053         [BZ #17717]
23054         * inet/if_index.c (if_nametoindex): Rename to __if_nametoindex and
23055         define as weak alias of __if_nametoindex.  Use libc_hidden_weak.
23056         (if_indextoname): Rename to __if_indextoname and define as weak
23057         alias of __if_indextoname.  Use libc_hidden_weak.
23058         (if_freenameindex): Rename to __if_freenameindex and define as
23059         weak alias of __if_freenameindex.
23060         (if_nameindex): Rename to __if_nameindex and define as weak alias
23061         of __if_nameindex.
23062         * sysdeps/mach/hurd/if_index.c (if_nametoindex): Rename to
23063         __if_nametoindex and define as weak alias of __if_nametoindex.
23064         Use libc_hidden_weak.
23065         (if_freenameindex): Rename to __if_freenameindex and define as
23066         weak alias of __if_freenameindex.
23067         (if_nameindex): Rename to __if_nameindex and define as weak alias
23068         of __if_nameindex.
23069         (if_indextoname): Rename to __if_indextoname and define as weak
23070         alias of __if_indextoname.  Use libc_hidden_weak.
23071         * sysdeps/unix/sysv/linux/if_index.c (if_nametoindex): Rename to
23072         __if_nametoindex and define as weak alias of __if_nametoindex.
23073         Use libc_hidden_weak.
23074         (if_freenameindex): Rename to __if_freenameindex and define as
23075         weak alias of __if_freenameindex.  Use libc_hidden_weak.
23076         (if_nameindex_netlink): Use __if_freenameindex instead of
23077         if_freenameindex.
23078         (if_nameindex): Rename to __if_nameindex and define as weak alias
23079         of __if_nameindex.  Use libc_hidden_weak.
23080         (if_indextoname): Rename to __if_indextoname and define as weak
23081         alias of __if_indextoname.  Use libc_hidden_weak.
23082         * include/net/if.h [!_ISOMAC] (__if_nametoindex): Declare and use
23083         libc_hidden_proto.
23084         [!_ISOMAC] (__if_freenameindex): Likewise.
23085         * resolv/res_init.c (__res_vinit): Use __if_nametoindex instead of
23086         if_nametoindex.
23087         * conform/Makefile (test-xfail-XPG4/grp.h/linknamespace): Remove
23088         variable.
23089         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
23090         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
23091         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
23092         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
23093         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
23094         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
23095         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
23096
23097         * conform/Makefile (test-xfail-UNIX98/semaphore.h/linknamespace):
23098         Remove variable.
23099         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
23100         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
23101
23102 2014-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
23103
23104         * resolv/res_send.c (__libc_res_nsend): Disable warning 'array
23105         subscript above bounds'
23106
23107         * resolv/res_send.c (__libc_res_nsend): Fix check for nsmap
23108         bounds.
23109
23110 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
23111
23112         * libio/tst-fopenloc.c: Use test-skeleton.c.
23113
23114         * stdlib/tst-bsearch.c: Use test-skeleton.c.
23115         (entry): Rename to ITEM.
23116         (do_test, comp): Adjust.
23117
23118         * stdio-common/tst-fseek.c: Use test-skeleton.c.
23119
23120 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23121
23122         * string/tester.c: Include <libc-internal.h>.
23123         (test_memset): Ignore -Wmemset-transposed-args.
23124
23125 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23126
23127         * misc/tst-mntent2.c (do_test): Fix warning.
23128
23129 2014-12-16  Torvald Riegel  <triegel@redhat.com>
23130
23131         * elf/tst-unique4lib.cc(a): Mark as used.
23132
23133 2014-12-16  Florian Weimer  <fweimer@redhat.com>
23134
23135         [BZ #17630]
23136         * resolv/nss_dns/dns-network.c (getanswer_r): Iterate over alias
23137         names.
23138
23139 2014-12-16  Allan McRae  <allan@archlinux.org>
23140
23141         * stdio-common/Makefile (tests): Re-add bug26.
23142
23143 2014-12-15  Ondřej Bílka  <neleai@seznam.cz>
23144
23145         [BZ #17657]
23146         * locale/programs/ld-ctype.c (find_translit2, read_widestring): Return
23147         static array.
23148
23149 2014-12-15  Bernard Ogden  <bernie.ogden@linaro.org>
23150
23151         * nptl/lowlevellock.c (__lll_lock_wait_private): Add comments.
23152         (__lll_lock_wait): Likewise.
23153         (__lll_timedlock_wait): Likewise.
23154         (__lll_timedwait_tid): Likewise.
23155         * nptl/lowlevelrobustlock.c (__lll_robust_lock_wait): Likewise.
23156         (__lll_robust_timedlock_wait): Likewise.
23157         * sysdeps/nptl/lowlevellock.h (lll_trylock): Likewise.
23158         (lll_cond_trylock): Likewise.
23159         (__lll_lock): Likewise.
23160         (__lll_robust_lock): Likewise.
23161         (__lll_cond_lock): Likewise.
23162         (lll_robust_cond_lock): Likewise.
23163         (__lll_timedlock): Likewise.
23164         (__lll_robust_timedlock): Likewise.
23165         (__lll_unlock): Likewise.
23166         (__lll_robust_unlock): Likewise.
23167         (lll_wait_tid): Likewise.
23168         (lll_timedwait_tid): Likewise.
23169
23170 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23171
23172         * nptl/tst-sem4.c (do_test): Start with a fresh semaphore state.
23173
23174 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23175
23176         * nptl/tst-mutex5.c (do_test): Do not skip tests if elision is enabled.
23177
23178 2014-12-15  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
23179
23180         * stdio-common/test-vfprintf.c: Include <libc-internal.h>.
23181         * stdio-common/tst-sprintf.c: Likewise.
23182
23183 2014-12-15  Torvald Riegel  <triegel@redhat.com>
23184
23185         * sysdeps/unix/sysv/linux/s390/pthread_once.c: Remove file.
23186
23187 2014-12-15  Jeff Law  <law@redhat.com>
23188
23189         [BZ #16617]
23190         * stdio-common/vfprintf.c (vfprintf): Allocate large specs array
23191         on the heap.  (CVE-2012-3406)
23192         * stdio-common/bug23-2.c, stdio-common/bug23-3.c: New file.
23193         * stdio-common/bug23-4.c: New file.  Test case by Joseph Myers.
23194         * stdio-common/Makefile (tests): Add bug23-2, bug23-3, bug23-4.
23195
23196 2014-12-15  Will Newton  <will.newton@linaro.org>
23197
23198         * manual/install.texi: Bump required version of texinfo
23199         to 4.7 from 4.5.
23200         * INSTALL: Regenerated.
23201         * configure.ac: Check for makeinfo version 4.7 and above.
23202         * configure: Regenerated.
23203
23204 2014-12-12  Roland McGrath  <roland@hack.frob.com>
23205
23206         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
23207         PREFIX, string constant to insert between directory and name.
23208         * sysdeps/posix/shm_open.c: Update caller.
23209         * sysdeps/posix/shm_unlink.c: Likewise.
23210         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
23211         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
23212         (SEM_SHM_PREFIX): New macro.
23213         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
23214         [$(have-thread-library) = no].
23215         * nptl/Makefile (libpthread-routines): Add shm-directory.
23216         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
23217         * sysdeps/nptl/shm-directory.h: New file.
23218         * sysdeps/posix/shm-directory.c
23219         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
23220         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
23221         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
23222         INTERNAL_SYSCALL.
23223         (__where_is_shmfs): Function removed.
23224         (mountpoint, defaultmount, defaultdir, __namedsem_once):
23225         Variables removed.
23226         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
23227         Use SHM_GET_NAME.
23228         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
23229
23230         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
23231         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
23232         unconditional for use inside libpthread.
23233         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
23234
23235 2014-12-12  Roland McGrath  <roland@hack.frob.com>
23236
23237         * nptl/pthread_getaffinity.c: New file.
23238         * nptl/pthread_setaffinity.c: New file.
23239         * nptl/pthread_getname.c: New file.
23240         * nptl/pthread_setname.c: New file.
23241
23242         * nptl/pthread_create.c (START_THREAD_DEFN)
23243         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
23244
23245 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
23246             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23247
23248         * resolv/res_send.c (send_vc): Disable warning resplen may
23249         be used uninitialized.
23250
23251 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
23252
23253         * nptl/tst-mutex6.c
23254         (ATTR_NULL): New define checks ATTR against NULL.
23255         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
23256         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
23257
23258 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
23259
23260         [BZ #17581]
23261         * malloc/hooks.c
23262         (mem2mem_check): Revert my previous change.
23263         (malloc_check_get_size): Revert my previous change.
23264         (mem2chunk_check): Revert my previous change.
23265
23266 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23267
23268         * sysdeps/posix/shm-directory.c: New file.
23269         * sysdeps/posix/shm-directory.h: New file.
23270         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
23271         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
23272         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
23273         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
23274         Transmute EPERM to EACCES.
23275         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
23276         from ...
23277         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
23278         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
23279
23280 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
23281
23282         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
23283         pointer and cast to uintptr_t.
23284         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
23285         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
23286         Add cast to avoid warning.
23287         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
23288
23289 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
23290
23291         * nptl/semaphore.h: Move to ...
23292         * sysdeps/pthread/semaphore.h: ... here.
23293         * Makefile (installed-headers): Change nptl/semaphore.h to
23294         sysdeps/pthread/semaphore.h.
23295
23296 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23297
23298         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
23299         generated error format strings.
23300
23301         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
23302         -Wformat-extra-args warnings for scanf formats.
23303         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
23304         test of zero-length format (duh).
23305         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
23306         corner-case scanf format test.
23307         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
23308         generated fprintf format string.
23309         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
23310         corner-case sprintf format tests.
23311         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
23312         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
23313         -Wformat-extra-args warnings throughout.
23314         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
23315         (CFLAGS-scanf4.c): Likewise.
23316         (CFLAGS-scanf7.c): Likewise.
23317         (CFLAGS-tst-sprintf.c): Likewise.
23318         (CFLAGS-tst-printf.c): Likewise.
23319         (CFLAGS-tst-printfsz.c): Likewise.
23320
23321 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
23322
23323         * include/cpio.h: New file.
23324         * include/fmtmsg.h: Likewise.
23325
23326         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
23327         corresponding format argument to size_t.
23328         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
23329         arguments.
23330         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
23331         corresponding format argument to size_t.
23332         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
23333         arguments.
23334         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
23335         corresponding format argument to size_t.
23336         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
23337         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
23338         (CFLAGS-tst-mbswcs2.c): Likewise.
23339         (CFLAGS-tst-mbswcs3.c): Likewise.
23340         (CFLAGS-tst-mbswcs4.c): Likewise.
23341         (CFLAGS-tst-mbswcs5.c): Likewise.
23342         (CFLAGS-tst-trans.c): Likewise.
23343
23344 2014-12-11  Roland McGrath  <roland@hack.frob.com>
23345
23346         * posix/regexbug1.c (main): Use "%s" format with regerror results,
23347         rather than assuming they won't contain any '%'s.
23348
23349 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
23350
23351         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
23352         inhibit_loop_to_libcall to avoid recursive calls.
23353         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
23354         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
23355
23356 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
23357
23358         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
23359         prototype.
23360
23361 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
23362
23363         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
23364         integer value instead of boolean.
23365
23366 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
23367
23368         * malloc/malloc.c: Fix powerof2 check.
23369
23370 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23371
23372         * locale/programs/locfile.h (maybe_swap_uint32):
23373         Remove inline and add unused attribute.
23374
23375 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
23376
23377         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
23378         Truncating assembler expression to a .long expression.
23379
23380 2014-12-11  Andreas Schwab  <schwab@suse.de>
23381
23382         * elf/rtld.c (struct map_args): Constify str member.
23383         (do_preload): Constify fname argument.
23384
23385 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23386
23387         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
23388         constants definition.
23389
23390 2014-12-11  Andreas Schwab  <schwab@suse.de>
23391
23392         [BZ #16657]
23393         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
23394         FORCE_ELISION instead of DO_ELISION.
23395         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
23396         Remove.
23397         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
23398         Likewise.
23399
23400         * iconvdata/gconv-modules: Remove duplicate entry.
23401
23402 2014-12-11  Will Newton  <will.newton@linaro.org>
23403
23404         Merge gettext 0.19.3 into intl/.
23405
23406         This involves a number of cosmetic changes to comments
23407         and ANSI function definitions and prototypes throughout
23408         all the files. The gettext copyright header is used but
23409         with the date ranges taken from the glibc copy.
23410
23411         * NEWS: Add gettext merge to 2.21.
23412         * intl/bindtextdom.c: Switch to gettext copyright.
23413         Use ANSI definitions and prototypes.
23414         Use gl_* locking primitives rather than __libc_* ones.
23415         Use __builtin_expect rather than __glibc_likely/unlikely.
23416         * intl/dcgettext.c: Switch to gettext copyright.
23417         Use ANSI definitions and prototypes.
23418         * intl/dcigettext.c: Switch to gettext copyright.
23419         Use ANSI definitions and prototypes.
23420         (INTDIV0_RAISES_SIGFPE): New define.
23421         Use gl_* locking primitives rather than __libc_* ones.
23422         Include eval-plural.h instead of plural-eval.c.
23423         Use __builtin_expect rather than __glibc_likely/unlikely.
23424         * intl/dcngettext.c: Switch to gettext copyright.
23425         Use ANSI definitions and prototypes.
23426         * intl/dgettext.c: Likewise.
23427         * intl/dngettext.c: Likewise.
23428         * intl/plural-eval.c: Renamed to...
23429         * intl/eval-plural.h: ...this.
23430         * intl/explodename.c: Switch to gettext copyright.
23431         Use ANSI definitions and prototypes.
23432         (_nl_explode_name): Use strchr instead of __rawmemchr.
23433         * intl/finddomain.c: Switch to gettext copyright.
23434         Use ANSI definitions and prototypes.
23435         Use gl_* locking primitives rather than __libc_* ones.
23436         (_nl_find_domain): Use malloc rather than alloca for
23437         allocation of temporary locale name.
23438         * intl/gettext.c: Switch to gettext copyright.
23439         Use ANSI definitions and prototypes.
23440         * intl/gettextP.h: Switch to gettext copyright.
23441         Use ANSI definitions and prototypes.
23442         Use gl_* locking primitives rather than __libc_* ones.
23443         * intl/gmo.h: Switch to gettext copyright.
23444         (struct sysdep_string): Move struct segment_pair outside of
23445         struct definition.
23446         * intl/hash-string.c: Use ANSI definitions and prototypes.
23447         * intl/hash-string.h: Switch to gettext copyright.
23448         Use ANSI definitions and prototypes.
23449         * intl/l10nflist.c: Switch to gettext copyright.
23450         Use ANSI definitions and prototypes.
23451         (_nl_normalize_codeset): Avoid integer overflow.
23452         * intl/loadinfo.h: Switch to gettext copyright.
23453         Use ANSI definitions and prototypes.
23454         (LIBINTL_DLL_EXPORTED): New define.
23455         (PATH_SEPARATOR): New define.
23456         * intl/loadmsgcat.c: Switch to gettext copyright.
23457         * intl/localealias.c: Switch to gettext copyright.
23458         Use ANSI definitions and prototypes.
23459         (_nl_expand_alias): Use PATH_SEPARATOR.
23460         * intl/ngettext.c: Switch to gettext copyright.
23461         Use ANSI definitions and prototypes.
23462         * intl/plural-exp.c: Likewise.
23463         * intl/plural-exp.h: Switch to gettext copyright.
23464         Use ANSI definitions and prototypes.
23465         (struct expression): Move definition of enum operator outside
23466         of struct definition.
23467         * intl/plural.c: Regenerate.
23468         * intl/plural.y: Switch to gettext copyright.
23469         Use ANSI definitions and prototypes.
23470         Port to bison 3.0.
23471         * intl/textdomain.c: Switch to gettext copyright.
23472         Use ANSI definitions and prototypes.
23473         Use gl_* locking primitives rather than __libc_* ones.
23474
23475 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
23476
23477         * debug/warning-nop.c: Add used atrribute.
23478
23479 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23480
23481         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
23482
23483         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
23484         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
23485         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
23486
23487 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23488             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23489
23490         [BZ #17634]
23491         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
23492         Undefine after defining function.  Define as weak alias of
23493         __wcschr.  Use libc_hidden_weak.
23494         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
23495         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
23496         (libc_hidden_def): Also define __GI___wcschr alias.
23497         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
23498         __wcschr and define as weak alias of __wcschr.
23499         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
23500         __wcschr.
23501         [!WCSCHR] (DEFAULT_WCSCHR): Define.
23502         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
23503         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
23504         libc_hidden_weak.  Do not use libc_hidden_def.
23505         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
23506         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
23507         __GI___wcschr alias.
23508         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
23509         [IS_IN (libc)] (wcschr): Define as macro expanding to
23510         __redirect_wcschr.
23511         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
23512         [IS_IN (libc)] (__wcschr_power6): Likewise.
23513         [IS_IN (libc)] (__wcschr_power7): Likewise.
23514         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
23515         instead of wcschr.
23516         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
23517         __libc_wcschr.
23518         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
23519         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
23520         __wcschr and define as weak alias of __wcschr.  Use
23521         libc_hidden_builtin_def.
23522         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
23523         as weak alias of __wcschr.  Use libc_hidden_weak.
23524         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
23525         wcschr.
23526         * time/era.c (_nl_init_era_entries): Likewise.
23527         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
23528         variable.
23529         (test-xfail-XPG3/time.h/linknamespace): Likewise.
23530         (test-xfail-XPG4/time.h/linknamespace): Likewise.
23531
23532 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23533
23534         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
23535         format for long int variable.
23536
23537 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
23538
23539         [BZ #10672]
23540         * manual/search.texi: (Array Sort Function): Remove claim how to make
23541         qsort stable.
23542
23543 2014-12-10  Andreas Schwab  <schwab@suse.de>
23544
23545         [BZ #12847]
23546         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
23547         user-controlled locks.
23548
23549 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
23550
23551         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
23552         register.
23553
23554 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
23555
23556         * configure.ac (--disable-werror): New configure option.
23557         (enable_werror): New AC_SUBST.
23558         * configure: Regenerated.
23559         * config.make.in (enable-werror): New variable.
23560         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
23561         -Wno-error=undef.
23562         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
23563         * manual/install.texi (Configuring and compiling): Document
23564         --disable-werror.
23565         * INSTALL: Regenerated.
23566         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
23567         (CFLAGS-tst-chk2.c): Likewise.
23568         (CFLAGS-tst-chk3.c): Likewise.
23569         (CFLAGS-tst-chk4.cc): Likewise.
23570         (CFLAGS-tst-chk5.cc): Likewise.
23571         (CFLAGS-tst-chk6.cc): Likewise.
23572         (CFLAGS-tst-lfschk1.c): Likewise.
23573         (CFLAGS-tst-lfschk2.c): Likewise.
23574         (CFLAGS-tst-lfschk3.c): Likewise.
23575         (CFLAGS-tst-lfschk4.cc): Likewise.
23576         (CFLAGS-tst-lfschk5.cc): Likewise.
23577         (CFLAGS-tst-lfschk6.cc): Likewise.
23578
23579         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
23580         (main): Disable -Wdeprecated-declarations around calls to
23581         register_printf_function.
23582
23583         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
23584         (do_test): Disable -Wdiv-by-zero around some calls to
23585         fwrite_unlocked and fread_unlocked.
23586
23587         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
23588         (DIAG_POP_NEEDS_COMMENT): Likewise.
23589         (_DIAG_STR1): Likewise.
23590         (_DIAG_STR): Likewise.
23591         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
23592         * stdio-common/bug21.c: Include <libc-internal.h>.
23593         (do_test): Disable -Wformat around call to sscanf.
23594         * stdio-common/scanf14.c: Include <libc-internal.h>.
23595         (main): Disable -Wformat around some calls to scanf functions.
23596
23597 2014-12-09  Torvald Riegel  <triegel@redhat.com>
23598
23599         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
23600
23601 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23602
23603         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
23604         stack variable alignment.
23605
23606 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
23607
23608         [BZ #17682]
23609         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
23610         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
23611         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
23612         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
23613         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
23614         __getrlimit instead of getrlimit.
23615         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
23616         __gettimeofday instead of gettimeofday.
23617         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
23618         Likewise.
23619         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
23620         Likewise.
23621         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
23622         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
23623         Remove variable.
23624         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
23625         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
23626
23627 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23628
23629         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
23630         for wide-character tests.
23631
23632 2014-12-04  Roland McGrath  <roland@hack.frob.com>
23633
23634         * io/openat64.c: #include <libc-internal.h>
23635         (__openat64): Prototypify.  Use ignore_value on MODE.
23636         * io/openat.c: Likewise.
23637         * misc/reboot.c: #include <libc-internal.h>
23638         (reboot): Prototypify.  Use ignore_value on HOWTO.
23639         * misc/ptrace.c: #include <libc-internal.h>
23640         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
23641
23642 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
23643
23644         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
23645         XPG4, UNIX98 and XOPEN2K.
23646         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
23647         Remove variable.
23648         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
23649
23650 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
23651
23652         * libio/fileops.c: Use ISO C style for function definitions.
23653         * libio/iofopen.c: Likewise.
23654         * libio/wfileops.c: Likewise.
23655
23656         [BZ #17653]
23657         * libio/fileops.c (_IO_new_file_underflow): Unset cached
23658         offset on EOF.
23659         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
23660         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
23661         (fgets_func): Function pointer to fgets and fgetws.
23662         (do_ftell_test): Add test to verify ftell value after read
23663         EOF.
23664         (do_test): Set fgets_func.
23665
23666         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
23667         O_TRUNC flag for w and w+ modes.
23668         (do_rewind_test): Likewise.
23669         (do_ftell_test): Likewise.
23670         (do_write_test): Likewise.
23671
23672         [BZ #17647]
23673         * libio/fileops.c (do_ftell): Seek only when there are
23674         unflushed writes.
23675         * libio/wfileops.c (do_ftell_wide): Likewise.
23676         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
23677         test case.
23678         (do_one_test): Call it.
23679
23680 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
23681
23682         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
23683         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
23684         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
23685         Remove variable.
23686         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
23687         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
23688         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
23689
23690 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23691
23692         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
23693         Remove variable.
23694         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
23695
23696         [BZ #17668]
23697         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
23698         as weak alias of __getifaddrs.  Use libc_hidden_weak.
23699         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23700         __freeifaddrs.  Use libc_hidden_weak.
23701         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
23702         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
23703         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23704         __freeifaddrs.  Use libc_hidden_weak.
23705         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
23706         __getifaddrs and define as weak alias of __getifaddrs.  Use
23707         libc_hidden_weak.
23708         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
23709         __freeifaddrs.  Use libc_hidden_weak.
23710         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
23711         Remove variable.
23712         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
23713         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
23714
23715 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
23716
23717         [BZ #17601]
23718         * sysdeps/mips/start.S (__start): Use indirect jump to call
23719         __libc_start_main.
23720
23721 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
23722
23723         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
23724
23725         * nptl/tst-mutex1.c: Include <stdbool.h>.
23726         [!ATTR] (ATTR_NULL): New macro.
23727         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
23728         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
23729         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
23730
23731         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
23732         to char *.
23733
23734         [BZ #17665]
23735         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
23736         Change conditional to [__USE_MISC].
23737
23738         [BZ #17664]
23739         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
23740         fgets_unlocked.
23741         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
23742         __fgets_unlocked.
23743         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
23744         fgets_unlocked.
23745         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
23746         Remove variable.
23747         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
23748         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
23749         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
23750         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
23751         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
23752         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
23753         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
23754         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
23755         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
23756
23757         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
23758
23759 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23760
23761         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23762         Remove strpbrk objects.
23763         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23764         (__libc_ifunc_impl_list): Remove strpbrk implementation.
23765         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
23766         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
23767         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
23768         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
23769
23770         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23771         Remove strcspn objects.
23772         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23773         (__libc_ifunc_impl_list): Remove strcspn implementation.
23774         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
23775         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
23776         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
23777         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
23778
23779         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
23780         Remove strspn objetcs.
23781         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23782         (__libc_ifunc_impl_list): Remove strspn implementation.
23783         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
23784         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
23785         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
23786         * sysdeps/powerpc/powerpc64/strspn.S: New file.
23787
23788 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
23789
23790         [BZ #17581]
23791         * malloc/hooks.c
23792         (mem2mem_check): Add a terminator to the chain of checking blocks.
23793         (malloc_check_get_size): Use it here.
23794         (mem2chunk_check): Ditto.
23795
23796 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23797
23798         * sysdeps/powerpc/powerpc64/strtok.S: New file.
23799         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
23800
23801 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
23802
23803         * bits/ioctl-types.h: Indent preprocessor directives correctly.
23804
23805         * nptl/nptl-init.c: Include libc-internal.h.
23806         (__pthread_initialize_minimal_internal): Use ROUND_UP.
23807
23808         * elf/ldconfig.c (search_dir): Expand comment.
23809
23810 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
23811
23812         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
23813         variable.
23814         (linknamespace-symlist-stdlibs-tests): Likewise.
23815         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
23816         instead of $(objpfx)symlist-stdlibs.
23817         (linknamespace-libs-isoc): New variable.
23818         (linknamespace-libs): Use $(linknamespace-libs-isoc).
23819         (linknamespace-libs-ISO): New variable.
23820         (linknamespace-libs-ISO99): Likewise.
23821         (linknamespace-libs-ISO11): Likewise.
23822         (linknamespace-libs-XPG3): Likewise.
23823         (linknamespace-libs-XPG4): Likewise.
23824         (linknamespace-libs-POSIX): Likewise.
23825         (linknamespace-libs-UNIX98): Likewise.
23826         (linknamespace-libs-XOPEN2K): Likewise.
23827         (linknamespace-libs-POSIX2008): Likewise.
23828         (linknamespace-libs-XOPEN2K8): Likewise.
23829         ($(objpfx)symlist-stdlibs): Replace by
23830         $(linknamespace-symlist-stdlibs-tests).  Use
23831         $(linknamespace-libs-$*) as set of libraries.
23832         ($(linknamespace-header-tests)): Update dependencies.  Use
23833         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
23834         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
23835         * conform/linknamespace.pl: Remove comment about considering
23836         definitions of symbols from irrelevant libraries.
23837
23838 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
23839
23840         [BZ #13862]
23841         * elf/dl-tls.c: Include <atomic.h>.
23842         (oom): Remove #ifdef SHARED/#endif.
23843         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
23844         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
23845         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
23846         big enough.
23847         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
23848         * nptl/Makefile (tests): Add tst-stack4.
23849         (modules-names): Add tst-stack4mod.
23850         ($(objpfx)tst-stack4): New.
23851         (tst-stack4mod.sos): Likewise.
23852         ($(objpfx)tst-stack4.out): Likewise.
23853         ($(tst-stack4mod.sos)): Likewise.
23854         (clean): Likewise.
23855         * nptl/tst-stack4.c: New file.
23856         * nptl/tst-stack4mod.c: Likewise.
23857
23858 2014-11-27  J. Brown  <jb999@gmx.de>
23859
23860         * sysdeps/x86/bits/string.h: Add recent CPUs.
23861
23862 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23863
23864         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
23865         sigblock.
23866
23867         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
23868         feof.
23869
23870         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
23871         variable.
23872
23873 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
23874
23875         * nscd/connections.c: Include libc-internal.h because of macro
23876         usage ignore_value.
23877
23878 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23879
23880         * string/bits/string3.h (__warn_memset_zero_len): Don't
23881         declare for gcc newer than 5.0.
23882         (memset): Don't test for zero-length __LEN for gcc newer than
23883         5.0.
23884
23885 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
23886
23887         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
23888         size_t for %zu format.
23889
23890         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
23891         difference, not %ju.
23892
23893 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23894
23895         * include/libc-internal.h (ignore_value): New macro.
23896         * nscd/connections.c (restart): Wrap calls to setuid and setgid
23897         with ignore_value.
23898
23899         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
23900         definition.
23901
23902         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
23903         pthread_cleanup_push to void *.
23904
23905         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
23906         Undefine.
23907
23908         [BZ #16619]
23909         [BZ #16740]
23910         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
23911         instead of 1L << 52.
23912
23913         * libio/bug-rewind.c (do_test): Check fwscanf return values.
23914         * libio/bug-rewind2.c (do_test): Likewise.
23915
23916         * debug/test-stpcpy_chk-ifunc.c: Remove file.
23917         * debug/test-strcpy_chk-ifunc.c: Likewise.
23918         * wcsmbs/test-wcschr-ifunc.c: Likewise.
23919         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
23920         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
23921         * wcsmbs/test-wcslen-ifunc.c: Likewise.
23922         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
23923         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
23924         * Rules [$(multi-arch) = no] (tests): Do not filter out
23925         $(tests-ifunc).
23926         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
23927         * debug/Makefile (tests-ifunc): Remove variable.
23928         (tests): Do not add $(tests-ifunc).
23929         * wcsmbs/Makefile (tests-ifunc): Remove variable.
23930         (tests): Do not add $(tests-ifunc).
23931         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
23932         [TEST_IFUNC]: Remove conditionals.
23933         * string/test-string.h (TEST_IFUNC): Remove macro.
23934         [TEST_IFUNC]: Remove conditionals.
23935
23936         * string/test-strchr.c [!WIDE] (L): New macro.
23937         [WIDE] (L): Likewise.
23938         (check1): Use CHAR instead of char.  Use L on string and character
23939         constants.
23940
23941 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
23942
23943         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
23944         tests.
23945         * sysdeps/powerpc/bits/atomic.h
23946         (__arch_atomic_exchange_and_add_32_acq): Add definition.
23947         (__arch_atomic_exchange_and_add_32_rel): Likewise.
23948         (atomic_exchange_and_add_acq): Likewise.
23949         (atomic_exchange_and_add_rel): Likewise.
23950         * sysdeps/powerpc/powerpc32/bits/atomic.h
23951         (__arch_atomic_exchange_and_add_64_acq): Add definition.
23952         (__arch_atomic_exchange_and_add_64_rel): Likewise.
23953         * sysdeps/powerpc/powerpc64/bits/atomic.h
23954         (__arch_atomic_exchange_and_add_64_acq): Add definition.
23955         (__arch_atomic_exchange_and_add_64_rel): Likewise.
23956
23957 2014-11-26  Torvald Riegel  <triegel@redhat.com>
23958
23959         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
23960         Change synchronization of __sched_fifo_min_prio and
23961         __sched_fifo_max_prio.
23962         * nptl/pthread_mutexattr_getprioceiling.c
23963         (pthread_mutexattr_getprioceiling): Likewise.
23964         * nptl/pthread_mutexattr_setprioceiling.c
23965         (pthread_mutexattr_setprioceiling): Likewise.
23966         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23967         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
23968         Likewise.
23969
23970 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
23971
23972         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
23973         void.
23974
23975 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
23976
23977         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
23978         third argument const.
23979
23980 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23981
23982         fnmatch: work around GCC compiler warning bug with uninit var
23983         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
23984         This works around a bug with x86-64 GCC 4.9.2 and earlier
23985         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
23986         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
23987         used uninitialized in this function [-Wmaybe-uninitialized]".
23988
23989 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
23990
23991         * posix/bug-regex31.c (main): Return RES not 0.
23992
23993 2014-11-25  Anton Blanchard <anton@samba.org>
23994
23995         * sysdeps/powerpc/bits/atomic.h
23996         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
23997
23998 2014-11-24  Sterling Augustine  <saugustine@google.com>
23999
24000         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
24001
24002 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
24003
24004         [BZ #17608]
24005         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
24006
24007 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
24008
24009         [BZ #17633]
24010         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
24011         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
24012         variable.
24013         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
24014         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
24015
24016 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
24017
24018         * string/strncpy.c (strncpy): Improve performance by using memset.
24019
24020 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
24021
24022         * string/strcpy.c (strcpy):
24023         Improve performance by using strlen and memcpy.
24024
24025 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
24026
24027         * string/strcoll_l.c (get_next_seq): __always_inline.
24028         * string/strcoll_l.c (do_compare): __always_inline.
24029
24030 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
24031
24032         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
24033         defined.
24034         * include/mqueue.h: Likewise.
24035         * include/stdlib.h: Likewise.
24036
24037         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
24038         (get_null_defines): Adjust.
24039         * sunrpc/Makefile: Adjust comment.
24040         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
24041         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
24042         (CFLAGS-interp.c): Likewise.
24043         (CFLAGS-ldconfig.c): Likewise.
24044         (CPPFLAGS-.os): Likewise.
24045         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
24046         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
24047         * extra-modules.mk (extra-modules.mk): Likewise.
24048         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
24049         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
24050         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
24051         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
24052         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
24053         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
24054         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
24055         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
24056         * iconvdata/Makefile (CPPFLAGS): Likewise.
24057         (cpp-srcs-left): Add libof for all iconvdata routines.
24058         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
24059         * include/assert.h: Likewise.
24060         * include/ctype.h: Likewise.
24061         * include/errno.h: Likewise.
24062         * include/libc-symbols.h: Likewise.
24063         * include/math.h: Likewise.
24064         * include/netdb.h: Likewise.
24065         * include/resolv.h: Likewise.
24066         * include/stdio.h: Likewise.
24067         * include/stdlib.h: Likewise.
24068         * include/string.h: Likewise.
24069         * include/sys/stat.h: Likewise.
24070         * include/wctype.h: Likewise.
24071         * intl/l10nflist.c: Likewise.
24072         * libidn/idn-stub.c: Likewise.
24073         * libio/libioP.h: Likewise.
24074         * nptl/libc_multiple_threads.c: Likewise.
24075         * nptl/pthreadP.h: Likewise.
24076         * posix/regex_internal.h: Likewise.
24077         * resolv/res_hconf.c: Likewise.
24078         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
24079         * sysdeps/arm/memmove.S: Likewise.
24080         * sysdeps/arm/sysdep.h: Likewise.
24081         * sysdeps/generic/_itoa.h: Likewise.
24082         * sysdeps/generic/symbol-hacks.h: Likewise.
24083         * sysdeps/gnu/errlist.awk: Likewise.
24084         * sysdeps/gnu/errlist.c: Likewise.
24085         * sysdeps/i386/i586/memcpy.S: Likewise.
24086         * sysdeps/i386/i586/memset.S: Likewise.
24087         * sysdeps/i386/i686/memcpy.S: Likewise.
24088         * sysdeps/i386/i686/memmove.S: Likewise.
24089         * sysdeps/i386/i686/mempcpy.S: Likewise.
24090         * sysdeps/i386/i686/memset.S: Likewise.
24091         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
24092         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
24093         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
24094         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
24095         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
24096         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
24097         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
24098         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
24099         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
24100         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
24101         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
24102         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
24103         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
24104         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
24105         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
24106         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
24107         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
24108         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
24109         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
24110         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
24111         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
24112         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
24113         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
24114         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
24115         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
24116         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
24117         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
24118         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
24119         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
24120         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
24121         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
24122         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
24123         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
24124         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
24125         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
24126         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
24127         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
24128         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
24129         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
24130         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
24131         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
24132         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
24133         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
24134         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
24135         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
24136         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
24137         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
24138         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
24139         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
24140         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
24141         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
24142         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
24143         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
24144         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
24145         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
24146         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
24147         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
24148         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
24149         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
24150         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
24151         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
24152         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
24153         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
24154         * sysdeps/nptl/bits/libc-lock.h: Likewise.
24155         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
24156         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
24157         * sysdeps/posix/closedir.c: Likewise.
24158         * sysdeps/posix/opendir.c: Likewise.
24159         * sysdeps/posix/readdir.c: Likewise.
24160         * sysdeps/posix/rewinddir.c: Likewise.
24161         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
24162         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
24163         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
24164         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
24165         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
24166         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
24167         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
24168         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
24169         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
24170         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
24171         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
24172         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
24173         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
24174         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
24175         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
24176         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
24177         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
24178         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
24179         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
24180         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
24181         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
24182         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
24183         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
24184         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
24185         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
24186         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
24187         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
24188         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
24189         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
24190         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
24191         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
24192         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
24193         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
24194         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
24195         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
24196         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
24197         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
24198         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
24199         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
24200         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
24201         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
24202         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
24203         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
24204         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
24205         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
24206         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
24207         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
24208         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
24209         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
24210         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
24211         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
24212         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
24213         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
24214         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
24215         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
24216         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
24217         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
24218         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
24219         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
24220         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
24221         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
24222         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
24223         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
24224         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
24225         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
24226         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
24227         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
24228         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
24229         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
24230         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
24231         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
24232         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
24233         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
24234         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
24235         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
24236         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
24237         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
24238         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
24239         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
24240         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
24241         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
24242         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
24243         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
24244         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
24245         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
24246         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
24247         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
24248         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
24249         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
24250         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
24251         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
24252         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
24253         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
24254         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
24255         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
24256         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
24257         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
24258         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
24259         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
24260         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
24261         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24262         * sysdeps/unix/alpha/sysdep.S: Likewise.
24263         * sysdeps/unix/alpha/sysdep.h: Likewise.
24264         * sysdeps/unix/make-syscalls.sh: Likewise.
24265         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24266         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24267         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24268         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
24269         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24270         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
24271         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
24272         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
24273         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24274         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
24275         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
24276         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24277         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24278         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
24279         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24280         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
24281         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24282         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
24283         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
24284         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24285         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
24286         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
24287         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24288         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24289         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24290         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24291         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
24292         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
24293         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
24294         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
24295         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24296         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24297         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
24298         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24299         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
24300         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24301         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
24302         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24303         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
24304         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
24305         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
24306         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24307         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24308         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
24309         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
24310         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24311         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24312         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
24313         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24314         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24315         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
24316         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24317         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24318         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24319         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
24320         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
24321         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24322         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24323         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
24324         * sysdeps/x86_64/memcpy.S: Likewise.
24325         * sysdeps/x86_64/memmove.c: Likewise.
24326         * sysdeps/x86_64/memset.S: Likewise.
24327         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
24328         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
24329         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
24330         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
24331         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
24332         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
24333         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
24334         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
24335         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
24336         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
24337         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
24338         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
24339         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
24340         * sysdeps/x86_64/multiarch/memset.S: Likewise.
24341         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
24342         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
24343         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
24344         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
24345         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
24346         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
24347         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
24348         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
24349         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
24350         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
24351         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
24352         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
24353         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
24354         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
24355         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
24356         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
24357         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
24358         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
24359         * sysdeps/x86_64/strcmp.S: Likewise.
24360
24361         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
24362
24363         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
24364         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
24365         * elf/rtld-Rules: Likewise.
24366         * elf/setup-vdso.h: Likewise.
24367         * include/assert.h: Likewise.
24368         * include/bits/stdlib-float.h: Likewise.
24369         * include/errno.h: Likewise.
24370         * include/sys/stat.h: Likewise.
24371         * include/unistd.h: Likewise.
24372         * sysdeps/aarch64/setjmp.S: Likewise.
24373         * sysdeps/alpha/setjmp.S: Likewise.
24374         * sysdeps/arm/__longjmp.S: Likewise.
24375         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
24376         * sysdeps/arm/setjmp.S: Likewise.
24377         * sysdeps/arm/sysdep.h: Likewise.
24378         * sysdeps/generic/_itoa.h: Likewise.
24379         * sysdeps/generic/dl-sysdep.h: Likewise.
24380         * sysdeps/generic/ldsodefs.h: Likewise.
24381         * sysdeps/i386/dl-tls.h: Likewise.
24382         * sysdeps/i386/setjmp.S: Likewise.
24383         * sysdeps/m68k/setjmp.c: Likewise.
24384         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
24385         * sysdeps/mach/hurd/opendir.c: Likewise.
24386         * sysdeps/posix/getcwd.c: Likewise.
24387         * sysdeps/posix/opendir.c: Likewise.
24388         * sysdeps/posix/profil.c: Likewise.
24389         * sysdeps/powerpc/dl-procinfo.h: Likewise.
24390         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
24391         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
24392         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
24393         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
24394         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
24395         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
24396         * sysdeps/s390/dl-tls.h: Likewise.
24397         * sysdeps/s390/s390-32/setjmp.S: Likewise.
24398         * sysdeps/s390/s390-64/setjmp.S: Likewise.
24399         * sysdeps/sh/sh3/setjmp.S: Likewise.
24400         * sysdeps/sh/sh4/setjmp.S: Likewise.
24401         * sysdeps/unix/alpha/sysdep.h: Likewise.
24402         * sysdeps/unix/arm/sysdep.S: Likewise.
24403         * sysdeps/unix/i386/sysdep.S: Likewise.
24404         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24405         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
24406         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
24407         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
24408         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24409         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
24410         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
24411         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24412         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
24413         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
24414         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
24415         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
24416         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
24417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
24418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
24419         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
24420         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
24421         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
24422         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
24423         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
24424         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
24425         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24426         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24427         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
24428         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24429         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
24430         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
24431         * sysdeps/unix/x86_64/sysdep.S: Likewise.
24432         * sysdeps/x86_64/setjmp.S: Likewise.
24433
24434         * include/math.h: Use IS_IN instead of IS_IN_libm.
24435         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
24436         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
24437         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
24438         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
24439         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
24440         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
24441         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
24442         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
24443         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
24444         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
24445         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
24446         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
24447         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
24448         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
24449         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
24450         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
24451         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
24452         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
24453         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
24454         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
24455         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
24456         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
24457         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
24458         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
24459         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
24460         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
24461         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
24462         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
24463         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
24464         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
24465         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
24466         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
24467         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
24468         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
24469         Likewise.
24470         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
24471         Likewise.
24472         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
24473         Likewise.
24474         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
24475         Likewise.
24476         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
24477         Likewise.
24478         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
24479         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
24480         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
24481         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
24482         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
24483         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
24484         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
24485         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
24486         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
24487         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
24488         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
24489         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
24490         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
24491         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
24492         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
24493         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
24494         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
24495         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
24496         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
24497         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
24498         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
24499         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
24500         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
24501         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
24502         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
24503         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
24504         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
24505
24506         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
24507         * nptl/pthreadP.h: Likewise.
24508         * nptl_db/structs.def: Likewise.
24509         * sysdeps/arm/sysdep.h: Likewise.
24510         * sysdeps/nptl/bits/libc-lock.h: Likewise.
24511         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
24512         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
24513         * sysdeps/unix/alpha/sysdep.h: Likewise.
24514         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24515         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
24516         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24517         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24518         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24519         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24520         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
24521         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24522         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24523         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24524         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24525         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24526         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24527         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24528         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
24529         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
24530         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24531         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24532         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24533         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24534         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24535         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24536         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
24537         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24538         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
24539         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24540
24541         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
24542         * nptl/pthreadP.h: Likewise.
24543         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
24544         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
24545         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
24546         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
24547         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
24548         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
24549         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
24550         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
24551         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
24552         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
24553         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
24554         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
24555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
24556         Likewise.
24557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
24558         Likewise.
24559         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
24560         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
24561         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
24562         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
24563         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
24564         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
24565         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
24566         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
24567
24568         * dlfcn/dladdr.c: Use IS_IN.
24569         * dlfcn/dladdr1.c: Likewise.
24570         * dlfcn/dlclose.c: Likewise.
24571         * dlfcn/dlerror.c: Likewise.
24572         * dlfcn/dlinfo.c: Likewise.
24573         * dlfcn/dlmopen.c: Likewise.
24574         * dlfcn/dlopen.c: Likewise.
24575         * dlfcn/dlsym.c: Likewise.
24576         * dlfcn/dlvsym.c: Likewise.
24577
24578         * include/ifaddrs.h: Use IS_IN.
24579         * inet/check_pf.c: Likewise.
24580         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
24581         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
24582
24583         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
24584         IS_IN_ldconfig.
24585         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
24586         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
24587
24588         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
24589         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
24590         IS_IN (libc).
24591
24592         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
24593
24594         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
24595         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
24596         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
24597         * include/libc-symbols.h (IS_IN_LIB): New macro.
24598         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
24599         * include/netdb.h: Likewise.
24600         * include/stap-probe.h: Remove all uses of IN_LIB.
24601
24602         * Makeconfig (module-cppflags-real): Define MODULE_NAME
24603         instead of IN_MODULE.
24604         * include/libc-symbols.h (IN_MODULE): Define using
24605         MODULE_NAME.
24606         (PASTE_NAME, PASTE_NAME1): New macros.
24607         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
24608         of IN_LIB.
24609         (STAP_PROBE_ASM): Likewise.
24610
24611 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24612
24613         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
24614         __mach_init in dlopened libc.
24615
24616 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
24617
24618         * sysdeps/arm/preconfigure.ac: Delete EABI check.
24619         * sysdeps/arm/preconfigure: Regenerate.
24620
24621 2014-11-21  Roland McGrath  <roland@hack.frob.com>
24622
24623         * nptl/pthread_create.c (__pthread_create_2_1): Set
24624         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
24625         when copying values from IATTR into PD.
24626
24627 2014-11-21  Will Newton  <will.newton@linaro.org>
24628             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
24629
24630         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
24631         Refactor inline-asm.  Also add comment.
24632
24633         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
24634         ElfW macro instead of hardcoded Elf64 types.
24635         (la_aarch64_gnu_pltenter): Likewise.
24636         * sysdeps/aarch64/dl-machine.h
24637         (elf_machine_runtime_setup): Use ElfW(Addr).
24638
24639         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
24640         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
24641         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
24642         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
24643         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
24644         (R_AARCH64_TLS_DTPMOD64): Rename to ..
24645         (R_AARCH64_TLS_DTPMOD): This.
24646         (R_AARCH64_TLS_DTPREL64): Rename to ...
24647         (R_AARCH64_TLS_DTPREL): This.
24648         (R_AARCH64_TLS_TPREL64): Rename to ...
24649         (R_AARCH64_TLS_TPREL): This.
24650         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
24651         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
24652         R_AARCH64_TLS_TPREL64.
24653         (elf_machine_rela): Likewise.
24654
24655 2014-11-21  Torvald Riegel  <triegel@redhat.com>
24656
24657         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
24658         by setting it to 0.  64b atomics are not supported currently.
24659
24660 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24661
24662         [BZ #16469]
24663         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
24664         search domain names.
24665
24666 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24667
24668         [BZ #16469]
24669         * NEWS: Update.
24670         * resolv/res_query.c (__libc_res_nquerydomain): Retain
24671         trailing dot.
24672         * posix/tst-getaddrinfo5.c: New.
24673         * posix/Makefile (tests): Add it.
24674
24675 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24676
24677         [BZ #14498]
24678         * NEWS: Fixed.
24679         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
24680         after parsing line but before break_if_match.
24681         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
24682         if there is a protocol mismatch.
24683
24684 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
24685
24686         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
24687         because the potential race is on the user-supplied stream.
24688
24689 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24690
24691         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
24692         string literal if not passed a buffer.
24693         * manual/job.texi (ctermid): Update reasoning, note deviation
24694         from posix, suggest mtasurace when not passed a buffer, for
24695         future non-preliminary safety notes.
24696
24697 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24698
24699         * manual/users.texi (cuserid): Fix MT-Safety note for the case
24700         of not passing it a buffer.
24701         Reported by Peng Haitao.
24702
24703 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
24704
24705         * manual/Makefile ($(objpfx)stamp-summary): Require
24706         check-safety.sh to pass.
24707         * manual/check-safety.sh: Wish for verification that every
24708         @deftypefn and @deftypefun is followed by a @safety remark.
24709
24710 2014-11-20  Roland McGrath  <roland@hack.frob.com>
24711
24712         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
24713
24714         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
24715         PTHREAD_CANCEL_ASYNCHRONOUS.
24716         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
24717         send SIGCANCEL.
24718
24719         * nptl/default-sched.h: New file.
24720         * sysdeps/unix/sysv/linux/default-sched.h: New file.
24721         * nptl/pthread_create.c: Include it.
24722         (__pthread_create_2_1): Use collect_default_sched instead of making
24723         Linux syscalls here directly.
24724
24725 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24726
24727         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
24728         __pthread_once): Use C11 atomics.
24729
24730 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24731
24732         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
24733
24734 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24735
24736         * include/atomic.h (__atomic_link_error, __atomic_check_size,
24737         atomic_thread_fence_acquire, atomic_thread_fence_release,
24738         atomic_thread_fence_seq_cst, atomic_load_relaxed,
24739         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
24740         atomic_compare_exchange_weak_relaxed,
24741         atomic_compare_exchange_weak_acquire,
24742         atomic_compare_exchange_weak_release,
24743         atomic_exchange_acquire, atomic_exchange_release,
24744         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
24745         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
24746         atomic_fetch_and_acquire,
24747         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
24748
24749 2014-11-20  Torvald Riegel  <triegel@redhat.com>
24750
24751         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
24752         USE_ATOMIC_COMPILER_BUILTINS): Define.
24753         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
24754         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24755         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
24756         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24757         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
24758         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24759         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
24760         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24761         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
24762         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24763         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
24764         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24765         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
24766         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24767         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
24768         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24769         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24770         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24771         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24772         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24773         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
24774         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24775         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
24776         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24777         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
24778         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24779         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
24780         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24781         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
24782         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24783         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
24784         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24785         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
24786         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24787         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
24788         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24789         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
24790         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24791         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
24792         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
24793
24794 2014-11-19  Roland McGrath  <roland@hack.frob.com>
24795
24796         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
24797         the sched_priority value here.  It was already checked when the user
24798         called pthread_attr_setschedparam.
24799
24800         * nptl/tst-bad-schedattr.c: New file.
24801         * nptl/Makefile (tests): Add it.
24802
24803 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
24804             Florian Weimer  <fweimer@redhat.com>
24805             Joseph Myers  <joseph@codesourcery.com>
24806             Adam Conrad  <adconrad@0c3.net>
24807             Andreas Schwab  <schwab@suse.de>
24808             Brooks  <bmoses@google.com>
24809
24810         [BZ #17625]
24811         * wordexp-test.c (__dso_handle): Add prototype.
24812         (__register_atfork): Likewise.
24813         (__app_register_atfork): New function.
24814         (registered_forks): New global.
24815         (register_fork): New function.
24816         (test_case): Add 3 new tests for WRDE_CMDSUB.
24817         (main): Call __app_register_atfork.
24818         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
24819         fork count is non-zero fail the test.
24820         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
24821         is set.
24822         (parse_dollars): Remove check for WRDE_NOCMD.
24823         (parse_dquote): Likewise.
24824
24825 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24826
24827         * Makeconfig (built-modules): List non-library modules to be
24828         built.
24829         (module-cppflags): Include libc-modules.h for
24830         everything except shlib-versions.v.i.
24831         (CPPFLAGS): Use it.
24832         (before-compile): Add libc-modules.h.
24833         ($(common-objpfx)libc-modules.h,
24834         $(common-objpfx)libc-modules.stmp): New targets.
24835         (common-generated): Add libc-modules.h and libc-modules.stmp.
24836         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
24837         * include/libc-symbols.h: Don't include libc-modules.h.
24838         * include/libc-modules.h: Remove file.
24839         * scripts/gen-libc-modules.awk: New script to generate
24840         libc-modules.h.
24841         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
24842         Depend on libc-modules.stmp.
24843
24844         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
24845
24846         * Makeconfig (in-module): Get value of libof set for the
24847         translation unit.
24848         (CPPFLAGS): Use $(in-module).
24849         * Makerules: Don't suffix routine names for nonlib.
24850         * include/libc-modules.h: New file.
24851         * include/libc-symbols.h: Include libc-modules.h
24852         (IS_IN): New macro to replace IS_IN_* macros.
24853         * elf/Makefile: Set libof-* for each routine.
24854         * elf/rtld-Rules: Likewise.
24855         * extra-modules.mk: Likewise.
24856         * iconv/Makefile: Likewise.
24857         * iconvdata/Makefile: Likewise.
24858         * locale/Makefile: Likewise.
24859         * malloc/Makefile: Likewise.
24860         * nss/Makefile: Likewise.
24861         * sysdeps/gnu/Makefile: Likewise.
24862         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
24863         * sysdeps/unix/sysv/linux/Makefile: Likewise.
24864         * sysdeps/s390/s390-64/Makefile: Likewise.
24865         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
24866         CPPFLAGS for nscd instead of nonlib.
24867
24868 2014-11-18  Roland McGrath  <roland@hack.frob.com>
24869
24870         * nptl/createthread.c: New file.
24871
24872         * nptl/createthread.c: Moved ...
24873         * sysdeps/unix/sysv/linux/createthread.c: ... here.
24874
24875         * nptl/createthread.c: Add proper top-line comment.
24876         (do_clone): Folded into ...
24877         (create_thread): ... here.  Take new arguments STOPPED_START and
24878         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
24879         increment __nptl_threads, do event-reporting logic, do
24880         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
24881         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
24882         resource cleanup if sched_setaffinity or sched_setscheduler fails,
24883         just send SIGCANCEL.
24884         * nptl/pthread_create.c: Forward-declare create_thread before
24885         including createthread.c.
24886         (start_thread): Use new macro START_THREAD_DEFN to replace defining
24887         declaration, and new macro START_THREAD_SELF to replace argument.
24888         Remove return statement.
24889         (report_thread_creation): New function.
24890         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
24891         synchronization logic, and __nptl_nthreads increment here, around
24892         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
24893         PD->parent_cancelhandling here, before create_thread.  When
24894         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
24895         __deallocate_stack, and ENOMEM translation here.
24896
24897 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
24898
24899         [BZ #17616]
24900         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
24901         (mptwo): Rename to __mptwo.
24902         (__inv): Use __mptwo instead of mptwo.
24903         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
24904         (mptwo): Rename to __mptwo.
24905         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
24906         of mpone and __mptwo instead of mptwo.
24907         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
24908         instead of mpone.
24909         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
24910         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
24911         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
24912         of mpone and __mptwo instead of mptwo.
24913         (__mpranred): Use __mpone instead of mpone.
24914         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
24915         variable.
24916         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
24917         (test-xfail-ISO99/math.h/linknamespace): Likewise.
24918         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
24919         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
24920         (test-xfail-ISO11/math.h/linknamespace): Likewise.
24921         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
24922         (test-xfail-XPG3/math.h/linknamespace): Likewise.
24923         (test-xfail-XPG4/math.h/linknamespace): Likewise.
24924         (test-xfail-POSIX/math.h/linknamespace): Likewise.
24925         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
24926         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
24927         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
24928         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
24929         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
24930         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
24931         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
24932         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
24933         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
24934         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
24935
24936 2014-11-18  Tom de Vries  <tom@codesoucery.com>
24937
24938         * manual/signal.texi (Primitives Interrupted by Signals): In section,
24939         replace BSD Handler xref with BSD Signal Handling.
24940
24941 2014-11-17  Richard Henderson  <rth@redhat.com>
24942
24943         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
24944         (_FP_PACK_RAW_2): Remove.
24945         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
24946         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
24947         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
24948         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
24949         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
24950         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
24951         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
24952         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
24953         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
24954         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
24955         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
24956         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
24957         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
24958         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
24959         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
24960         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
24961
24962 2014-11-14  Roland McGrath  <roland@hack.frob.com>
24963
24964         * signal/signal.h [__USE_MISC]
24965         (struct sigvec): Remove type.
24966         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
24967         (sigvec): Remove declaration.
24968         * sysdeps/posix/sigvec.c: Moved ...
24969         * signal/sigvec.c: ... here, replacing old file.
24970         (struct sigvec): New type, copied from old signal.h definition.
24971         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
24972         (__sigvec): Convert definition to prototype.
24973         (sigvec): Replace weak_alias with compat_symbol.
24974         * signal/Versions (libc: GLIBC_2.21): New version set.
24975         * include/signal.h: Remove __sigvec declaration.
24976         * sysdeps/unix/bsd/sigvec.c: Remove file.
24977         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
24978         * manual/signal.texi (BSD Handler): Remove subsection.
24979         Move siginterrupt up to ...
24980         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
24981         (Blocking in BSD): Fold subsection into its parent.
24982         * NEWS: Mention sigvec removal.
24983
24984 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
24985
24986         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
24987         (DLA_FMS): Make definition conditional only on [__FMA4__].
24988         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
24989         definition.
24990
24991         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
24992         Make definition conditional only on [PROF].
24993         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
24994         definition.
24995         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
24996         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
24997
24998         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
24999         !__GNUC__].
25000         * include/signal.h (__sigpause): Move declaration above call to
25001         libc_hidden_proto.
25002         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
25003         variable.
25004         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
25005         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
25006
25007 2014-11-14  David S. Miller  <davem@davemloft.net>
25008
25009         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
25010         Define before including <string/memcpy.c> and <string/mempcpy.c>.
25011
25012 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
25013
25014         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
25015         * configure: Regenerated.
25016         * manual/install.texi (Tools for Compilation): Document a
25017         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
25018         compiler verified to work.
25019         * INSTALL: Regenerated.
25020
25021         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
25022         redeclare with asm name.
25023         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
25024         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
25025         including <string.h>.
25026         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25027         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
25028         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25029         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
25030         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25031         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
25032         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
25033
25034 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
25035
25036         * stdlib/strtol.c (__strtol): Use prototype definition.
25037
25038         [BZ #17594]
25039         * stdlib/strtol.c (SYM__): New macro.
25040         (SYM__1): Likewise.
25041         (__strtol): Likewise.
25042         (strtol): Rename to __strtol and define as weak alias of
25043         __strtol.  Use libc_hidden_weak.
25044
25045 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25046
25047         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
25048         Use numbered labels in inline assembly.
25049
25050 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25051
25052         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
25053         Add setjmp LIBC_PROBE.
25054         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
25055         Likewise.
25056         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
25057         Add longjmp, longjmp_target LIBC_PROBE.
25058         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
25059         Likewise.
25060
25061 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25062
25063         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
25064         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
25065         to get rid of unused variable warning.
25066
25067 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
25068
25069         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
25070         Check for unwind_backtrace ==  NULL only in SHARED case.
25071         (__backchain_backtrace): Compile only in SHARED case.
25072         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
25073         Likewise.
25074         (__backchain_backtrace): Declare as static.
25075
25076 2014-11-12  Roland McGrath  <roland@hack.frob.com>
25077
25078         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
25079         (__libc_multiple_threads_ptr): Variable moved ...
25080         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
25081
25082 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
25083
25084         * conform/GlibcConform.pm: New file.
25085         * conform/conformtest.pl: Use GlibcConform module.
25086         * conform/linknamespace.pl: New file.
25087         * conform/list-header-symbols.pl: Likewise.
25088         * conform/Makefile (linknamespace-symlists-base): New variable.
25089         (linknamespace-symlists-tests): Likewise.
25090         (linknamespace-header-base): Likewise.
25091         (linknamespace-header-tests): Likewise.
25092         (tests-special): Add new tests.
25093         ($(linknamespace-symlists-tests)): New rule.
25094         (linknamespace-libs): New variable.
25095         ($(objpfx)symlist-stdlibs): New rule.
25096         ($(linknamespace-header-tests)): Likewise.
25097         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
25098         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
25099         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
25100         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
25101         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
25102         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
25103         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
25104         (test-xfail-ISO/math.h/linknamespace): Likewise.
25105         (test-xfail-ISO/signal.h/linknamespace): Likewise.
25106         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
25107         (test-xfail-ISO/time.h/linknamespace): Likewise.
25108         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
25109         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
25110         (test-xfail-ISO99/math.h/linknamespace): Likewise.
25111         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
25112         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
25113         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
25114         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
25115         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
25116         (test-xfail-ISO11/math.h/linknamespace): Likewise.
25117         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
25118         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
25119         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
25120         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
25121         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
25122         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
25123         (test-xfail-XPG3/math.h/linknamespace): Likewise.
25124         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
25125         (test-xfail-XPG3/search.h/linknamespace): Likewise.
25126         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
25127         (test-xfail-XPG3/time.h/linknamespace): Likewise.
25128         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
25129         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
25130         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
25131         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
25132         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
25133         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
25134         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
25135         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
25136         (test-xfail-XPG4/math.h/linknamespace): Likewise.
25137         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
25138         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
25139         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
25140         (test-xfail-XPG4/search.h/linknamespace): Likewise.
25141         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
25142         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
25143         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
25144         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
25145         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
25146         (test-xfail-XPG4/time.h/linknamespace): Likewise.
25147         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
25148         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
25149         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
25150         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
25151         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
25152         (test-xfail-POSIX/math.h/linknamespace): Likewise.
25153         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
25154         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
25155         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
25156         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
25157         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
25158         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
25159         (test-xfail-POSIX/time.h/linknamespace): Likewise.
25160         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
25161         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
25162         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
25163         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
25164         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
25165         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
25166         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
25167         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
25168         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
25169         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
25170         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
25171         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
25172         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
25173         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
25174         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
25175         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
25176         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
25177         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
25178         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
25179         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
25180         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
25181         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
25182         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
25183         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
25184         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
25185         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
25186         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
25187         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
25188         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
25189         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
25190         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
25191         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
25192         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
25193         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
25194         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
25195         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
25196         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
25197         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
25198         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
25199         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
25200         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
25201         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
25202         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
25203         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
25204         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
25205         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
25206         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
25207         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
25208         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
25209         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
25210         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
25211         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
25212         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
25213         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
25214         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
25215         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
25216         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
25217         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
25218         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
25219         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
25220         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
25221         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
25222         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
25223         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
25224         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
25225         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
25226         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
25227         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
25228         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
25229         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
25230         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
25231         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
25232         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
25233         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
25234         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
25235         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
25236         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
25237         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
25238         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
25239         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
25240         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
25241         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
25242         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
25243         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
25244         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
25245         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
25246         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
25247         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
25248         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
25249         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
25250         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
25251         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
25252         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
25253         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
25254         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
25255         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
25256         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
25257         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
25258
25259         [BZ #17589]
25260         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
25261         of fgets_unlocked.
25262
25263         [BZ #17585]
25264         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
25265         (memmem): Rename to __memmem and define as weak alias of
25266         __memmem.  Use libc_hidden_weak.
25267         (__memmem): Use libc_hidden_def.
25268         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
25269         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
25270         memmem.
25271
25272         [BZ #17582]
25273         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
25274         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
25275         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
25276         and define as weak alias of __fgets_unlocked.  Use
25277         libc_hidden_weak.
25278         (__fgets_unlocked): Use libc_hidden_def.
25279         * include/stdio.h (__fgets_unlocked): Declare.  Use
25280         libc_hidden_proto.
25281         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
25282         __fgets_unlocked instead of fgets_unlocked.
25283         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
25284         (GET_NPROCS_CONF_PARSER): Likewise.
25285         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
25286         (GET_NPROCS_CONF_PARSER): Likewise.
25287
25288         [BZ #17574]
25289         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
25290         weak alias of __wmemset.  Use libc_hidden_weak.
25291         (__wmemset): Use libc_hidden_def.
25292         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
25293         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
25294         of wmemset.
25295
25296         [BZ #17573]
25297         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
25298         with asm name __mempcpy.
25299         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
25300
25301         [BZ #17572]
25302         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
25303         and define as weak alias of __rawmemchr.
25304         (__rawmemchr): Do not define as strong alias of rawmemchr.
25305
25306         [BZ #17571]
25307         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
25308         alias of __qsort_r.
25309         (qsort): Call __qsort_r instead of qsort_r.
25310         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
25311         (__qsort_r): Declare.  Call libc_hidden_proto.
25312         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
25313         instead of qsort_r.
25314         * nscd/gai.c (__qsort_r): Define to qsort_r.
25315         * posix/tst-rfc3484.c (__qsort_r): Likewise.
25316         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
25317         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
25318
25319         [BZ #17570]
25320         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
25321         define as weak alias of __malloc_info.
25322
25323         [BZ #17584]
25324         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
25325         as weak alias of __rewinddir.  Don't use libc_hidden_def.
25326         (__rewinddir): Use libc_hidden_def.
25327         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
25328         as weak alias of __rewinddir.  Don't use libc_hidden_def.
25329         (__rewinddir): Use libc_hidden_def.
25330         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
25331         weak alias of __rewinddir.  Don't use libc_hidden_def.
25332         (__rewinddir): Use libc_hidden_def.
25333         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
25334         (__rewinddir): Use libc_hidden_proto.
25335         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
25336         rewinddir.
25337         (__getcwd): Use __rewinddir instead of rewinddir.
25338
25339         [BZ #17583]
25340         * libio/fileno.c (fileno): Rename to __fileno and define as weak
25341         alias of __fileno.  Use libc_hidden_weak.
25342         (__fileno): Use libc_hidden_def.
25343         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
25344         * libio/ftello.c (ftello): Rename to __ftello and define as weak
25345         alias of __ftello.
25346         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
25347         __ftello.
25348         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
25349         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
25350         libc_hidden_def.
25351         (fread_unlocked): Don't use libc_hidden_ver.
25352         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
25353         and define as weak alias of __fread_unlocked.  Don't use
25354         libc_hidden_def.
25355         (__fread_unlocked): Use libc_hidden_def.
25356         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
25357         (ftello): Don't use libc_hidden_proto.
25358         (__ftello): Declare.  Use libc_hidden_proto.
25359         (fread_unlocked): Don't use libc_hidden_proto.
25360         (__fread_unlocked): Declare.  Use libc_hidden_proto.
25361         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
25362         and __ftello instead of fileno, fread_unlocked and ftello.
25363
25364 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
25365
25366         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
25367         GOT12.
25368         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
25369         Likewise.
25370         (_dl_start_user): Likewise.
25371         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
25372
25373 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
25374             Siddhesh Poyarekar  <siddhesh@redhat.com>
25375
25376         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
25377         Move argv and envp down instead of moving argc up.
25378         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
25379
25380 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
25381
25382         [BZ #17506]
25383         * test-skeleton.c (main): Return successful if one of
25384         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
25385         * string/tst-strcoll-overflow.c: Define expected status.
25386
25387 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
25388
25389         [BZ #17475]
25390         * locale/iso-639.def: Define Bhili and Tulu language codes.
25391
25392 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
25393
25394         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
25395
25396 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
25397
25398         [BZ #17555]
25399         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
25400
25401 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
25402
25403         * configure.ac: Updated check of minimal required version to
25404         2.22.
25405         * manual/install.texi (Tools for Compilation): Updated version
25406         number.
25407         * configure: Regenerated.
25408         * INSTALL: Likewise.
25409
25410 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
25411
25412         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
25413         __tls_get_addr.
25414
25415 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
25416
25417         * include/sys/wait.h (__libc_waitpid): Remove declaration.
25418         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
25419         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25420         libc_hidden_weak.
25421         (waitpid): Define as alias of __waitpid.
25422         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
25423         __waitpid.
25424         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25425         libc_hidden_weak.
25426         (waitpid): Define as alias of __waitpid.
25427         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
25428         __libc_waitpid alias.
25429         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
25430         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
25431         Likewise.
25432         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
25433         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
25434         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
25435         alias.
25436         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
25437         __waitpid.
25438         (__waitpid): Don't define as alias.  Use libc_hidden_def not
25439         libc_hidden_weak.
25440         (waitpid): Define as alias of __waitpid.
25441
25442 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
25443
25444         * manual/llio.texi: Add comment that write safety has been
25445         fixed in Linux.
25446
25447         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
25448         (localplt-build-dso): Add elf/ld.so.
25449         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
25450         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
25451         and free for ld.so.
25452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
25453         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
25454         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
25455         Likewise.
25456         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
25457         Likewise.
25458         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
25459         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
25460         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
25461         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
25462         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
25463         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
25464         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
25465         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
25466         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
25467         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
25468         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
25469
25470 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
25471
25472         [BZ #14132]
25473         * include/libc-symbols.h (INTUSE): Remove macro.
25474         (INTDEF): Likewise.
25475         (INTVARDEF): Likewise.
25476         (_INTVARDEF): Likewise.
25477         (INTDEF2): Likewise.
25478         (INTVARDEF2): Likewise.
25479         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
25480         rtld_hidden_def instead of INTVARDEF.
25481         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
25482         (_dl_starting_up_internal): Remove declaration.
25483         (_dl_starting_up): Use rtld_hidden_proto.
25484         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
25485         declaration.
25486         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
25487         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
25488         _dl_starting_up.
25489         * elf/dl-writev.h (_dl_writev): Likewise.
25490         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
25491         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
25492         _dl_starting_up_internal.
25493
25494 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25495
25496         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
25497         test-skeleton.c.
25498
25499 2014-11-05  Will Newton  <will.newton@linaro.org>
25500
25501         * benchtests/Makefile: (bench-malloc): Add malloc thread
25502         scalability benchmark.
25503         * benchtests/bench-malloc-threads.c: New file.
25504
25505 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
25506
25507         * sysdeps/aarch64/strchrnul.S: New file.
25508
25509 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25510
25511         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
25512         definition.
25513         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
25514         Likwise.
25515         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
25516         Likewise.
25517         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
25518         Likewise.
25519         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
25520         Likewise.
25521         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
25522         Likewise.
25523
25524 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
25525
25526         * catgets/test-gencat.c: Use test-skeleton.c.
25527         * catgets/tst-catgets.c: Likewise.
25528         * csu/tst-empty.c: Likewise.
25529         * elf/tst-audit2.c: Likewise.
25530         * elf/tst-global1.c: Likewise.
25531         * elf/tst-pathopt.c: Likewise.
25532         * elf/tst-piemod1.c: Likewise.
25533         * elf/tst-tls10.c: Likewise.
25534         * elf/tst-tls11.c: Likewise.
25535         * elf/tst-tls12.c: Likewise.
25536         * gnulib/tst-gcc.c: Likewise.
25537         * iconvdata/tst-e2big.c: Likewise.
25538         * iconvdata/tst-loading.c: Likewise.
25539         * iconv/tst-iconv1.c: Likewise.
25540         * iconv/tst-iconv2.c: Likewise.
25541         * inet/test-inet6_opt.c: Likewise.
25542         * inet/tst-gethnm.c: Likewise.
25543         * inet/tst-network.c: Likewise.
25544         * inet/tst-ntoa.c: Likewise.
25545         * intl/tst-codeset.c: Likewise.
25546         * intl/tst-gettext2.c: Likewise.
25547         * intl/tst-gettext3.c: Likewise.
25548         * intl/tst-ngettext.c: Likewise.
25549         * intl/tst-translit.c: Likewise.
25550         * io/test-stat.c: Likewise.
25551         * libio/test-fmemopen.c: Likewise.
25552         * libio/tst-freopen.c: Likewise.
25553         * libio/tst-sscanf.c: Likewise.
25554         * libio/tst-ungetwc1.c: Likewise.
25555         * libio/tst-ungetwc2.c: Likewise.
25556         * libio/tst-widetext.c: Likewise.
25557         * localedata/tst-ctype.c: Likewise.
25558         * localedata/tst-digits.c: Likewise.
25559         * localedata/tst-leaks.c: Likewise.
25560         * localedata/tst-mbswcs1.c: Likewise.
25561         * localedata/tst-mbswcs2.c: Likewise.
25562         * localedata/tst-mbswcs3.c: Likewise.
25563         * localedata/tst-mbswcs4.c: Likewise.
25564         * localedata/tst-mbswcs5.c: Likewise.
25565         * localedata/tst-setlocale.c: Likewise.
25566         * localedata/tst-trans.c: Likewise.
25567         * localedata/tst-wctype.c: Likewise.
25568         * localedata/tst-xlocale1.c: Likewise.
25569         * login/tst-grantpt.c: Likewise.
25570         * malloc/tst-calloc.c: Likewise.
25571         * malloc/tst-malloc.c: Likewise.
25572         * malloc/tst-mallocstate.c: Likewise.
25573         * malloc/tst-mcheck.c: Likewise.
25574         * malloc/tst-mtrace.c: Likewise.
25575         * malloc/tst-obstack.c: Likewise.
25576         * math/atest-exp2.c: Likewise.
25577         * math/atest-exp.c: Likewise.
25578         * math/atest-sincos.c: Likewise.
25579         * math/test-matherr.c: Likewise.
25580         * math/test-misc.c: Likewise.
25581         * math/test-powl.c: Likewise.
25582         * math/tst-definitions.c: Likewise.
25583         * misc/tst-dirname.c: Likewise.
25584         * misc/tst-efgcvt.c: Likewise.
25585         * misc/tst-fdset.c: Likewise.
25586         * misc/tst-hsearch.c: Likewise.
25587         * misc/tst-mntent2.c: Likewise.
25588         * nptl/tst-sem7.c: Likewise.
25589         * nptl/tst-sem8.c: Likewise.
25590         * nptl/tst-sem9.c: Likewise.
25591         * nss/test-netdb.c: Likewise.
25592         * posix/tst-fnmatch.c: Likewise.
25593         * posix/tst-getlogin.c: Likewise.
25594         * posix/tst-gnuglob.c: Likewise.
25595         * posix/tst-mmap.c: Likewise.
25596         * pwd/tst-getpw.c: Likewise.
25597         * resolv/tst-inet_ntop.c: Likewise.
25598         * rt/tst-timer.c: Likewise.
25599         * stdio-common/test-fseek.c: Likewise.
25600         * stdio-common/test-popen.c: Likewise.
25601         * stdio-common/test-vfprintf.c: Likewise.
25602         * stdio-common/tst-cookie.c: Likewise.
25603         * stdio-common/tst-fileno.c: Likewise.
25604         * stdio-common/tst-gets.c: Likewise.
25605         * stdio-common/tst-obprintf.c: Likewise.
25606         * stdio-common/tst-perror.c: Likewise.
25607         * stdio-common/tst-sprintf2.c: Likewise.
25608         * stdio-common/tst-sprintf3.c: Likewise.
25609         * stdio-common/tst-sprintf.c: Likewise.
25610         * stdio-common/tst-swprintf.c: Likewise.
25611         * stdio-common/tst-tmpnam.c: Likewise.
25612         * stdio-common/tst-unbputc.c: Likewise.
25613         * stdio-common/tst-wc-printf.c: Likewise.
25614         * stdlib/tst-environ.c: Likewise.
25615         * stdlib/tst-fmtmsg.c: Likewise.
25616         * stdlib/tst-limits.c: Likewise.
25617         * stdlib/tst-rand48-2.c: Likewise.
25618         * stdlib/tst-rand48.c: Likewise.
25619         * stdlib/tst-random2.c: Likewise.
25620         * stdlib/tst-random.c: Likewise.
25621         * stdlib/tst-strtol.c: Likewise.
25622         * stdlib/tst-strtoll.c: Likewise.
25623         * stdlib/tst-tls-atexit.c: Likewise.
25624         * stdlib/tst-xpg-basename.c: Likewise.
25625         * string/test-ffs.c: Likewise.
25626         * string/tst-bswap.c: Likewise.
25627         * string/tst-inlcall.c: Likewise.
25628         * string/tst-strtok.c: Likewise.
25629         * string/tst-strxfrm.c: Likewise.
25630         * sysdeps/x86_64/tst-audit10.c: Likewise.
25631         * sysdeps/x86_64/tst-audit3.c: Likewise.
25632         * sysdeps/x86_64/tst-audit4.c: Likewise.
25633         * sysdeps/x86_64/tst-audit5.c: Likewise.
25634         * time/tst-ftime_l.c: Likewise.
25635         * time/tst-getdate.c: Likewise.
25636         * time/tst-mktime3.c: Likewise.
25637         * time/tst-mktime.c: Likewise.
25638         * time/tst-posixtz.c: Likewise.
25639         * time/tst-strptime2.c: Likewise.
25640         * time/tst-strptime3.c: Likewise.
25641         * wcsmbs/tst-btowc.c: Likewise.
25642         * wcsmbs/tst-mbrtowc.c: Likewise.
25643         * wcsmbs/tst-mbsrtowcs.c: Likewise.
25644         * wcsmbs/tst-wchar-h.c: Likewise.
25645         * wcsmbs/tst-wcpncpy.c: Likewise.
25646         * wcsmbs/tst-wcrtomb.c: Likewise.
25647         * wcsmbs/tst-wcsnlen.c: Likewise.
25648         * wcsmbs/tst-wcstof.c: Likewise.
25649
25650 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
25651
25652         [BZ #14132]
25653         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
25654         INTDEF.
25655         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
25656         declaration.
25657         (_dl_mcount): Use rtld_hidden_proto.
25658         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
25659         _dl_mcount.
25660         * elf/rtld.c (_rtld_global_ro): Likewise.
25661
25662         [BZ #14132]
25663         * elf/dl-init.c (_dl_init): Don't use INTDEF.
25664         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
25665         of _dl_init_internal.
25666         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
25667         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
25668         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
25669         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
25670         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
25671         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
25672         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
25673         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
25674         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
25675         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
25676         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
25677         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
25678         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
25679         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
25680         * sysdeps/tile/dl-start.S (_start): Likewise.
25681         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
25682         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
25683
25684         [BZ #14132]
25685         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
25686         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
25687         (rtld_progname): Make macro definition unconditional.
25688         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
25689         INTDEF.
25690         (dlmopen_doit): Do not use INTUSE with _dl_argv.
25691         (dl_main): Likewise.
25692         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
25693         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
25694         instead of _dl_argv_internal.
25695         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
25696         __GI__dl_argv instead of INTUSE(_dl_argv).
25697         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
25698         __GI__dl_argv instead of _dl_argv_internal.
25699
25700         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
25701         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
25702         macro.
25703         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
25704         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
25705         New macro.
25706         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
25707         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
25708         macro.
25709         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
25710         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
25711
25712 2014-11-04  Andreas Schwab  <schwab@suse.de>
25713
25714         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
25715
25716 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25717
25718         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
25719         mtvsrd instruction in binary form.
25720
25721 2014-11-03  Andreas Schwab  <schwab@suse.de>
25722
25723         [BZ #17522]
25724         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
25725         for less than MB_LEN_MAX use a local buffer of that size.
25726         * libio/tst-fputws.c: New file.
25727         * libio/Makefile (tests): Add tst-fputws.
25728
25729 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
25730
25731         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
25732         the size of the fpu_fr.fpu_dregs[] array.
25733
25734 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
25735
25736         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
25737         (__nanosleep): Do not define as alias.
25738         (nanosleep): Define as alias of __nanosleep.
25739         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
25740         __libc_nanosleep name.
25741
25742 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25743
25744         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
25745         install.texi in comment.
25746
25747 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25748
25749         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
25750         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
25751         ... add here and use lwsync or sync ...
25752         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
25753         ... and add here using lwsync.
25754
25755 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
25756
25757         * elf/dl-machine-reject-phdr.h: New file.
25758         * elf/dl-load.c: #include that.
25759         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
25760         if that returned true.
25761
25762 2014-10-31  Roland McGrath  <roland@hack.frob.com>
25763
25764         [BZ #17496]
25765         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
25766         gen-as-const-headers chunk.  Add a big scare comment after the last
25767         safe place to touch before-compile.
25768
25769 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
25770
25771         * manual/install.texi (Tools for Compilation): Update autoconf
25772         version requirements.
25773         * INSTALL: Regenerated.
25774
25775         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
25776         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
25777         (__libc_pselect): Likewise.
25778
25779         [BZ #14138]
25780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
25781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
25782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
25783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
25784
25785 2014-10-31  Torvald Riegel  <triegel@redhat.com>
25786
25787         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
25788         correct barrier instruction.
25789         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
25790         Likewise.
25791         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
25792         Likewise.
25793
25794 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25795
25796         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
25797         after defining inlines.  Instead, just use parens to defeat macro
25798         expansion of __isctype in its declaration.
25799
25800 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25801
25802         * include/sys/uio.h (__libc_readv): Remove declaration.
25803         (__libc_writev): Likewise.
25804         * misc/readv.c (__libc_readv): Rename to __readv.
25805         (__readv): Do not define as alias.
25806         (readv): Define as alias of __readv.
25807         * misc/writev.c (__libc_writev): Rename to __writev.
25808         (__writev): Do not define as alias.
25809         (writev): Define as alias of __writev.
25810         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
25811         (__readv): Do not define as alias.
25812         (readv): Define unconditionally as alias of __readv.
25813         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
25814         (__writev): Do not define as alias.
25815         (writev): Define unconditionally as alias of __writev.
25816         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
25817         name.
25818         (writev): Do not define __libc_writev name.
25819
25820 2014-10-30  Roland McGrath  <roland@hack.frob.com>
25821
25822         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
25823         (convert_charseq): New function, broken out of ...
25824         (use_from_charmap): ... here.  Call it.
25825         (use_to_charmap): Use convert_charseq and free instead of duplicating
25826         its code with a variable-length stack struct.
25827
25828 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
25829
25830         * include/fcntl.h (__libc_creat): Remove declaration.
25831         * io/creat.c (__libc_creat): Rename to creat.
25832         (creat): Do not define as alias.
25833         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
25834         of creat instead of __libc_creat.
25835         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
25836         to creat.
25837         (creat): Do not define as alias.
25838         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
25839         __libc_creat.
25840         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
25841         __libc_creat name.
25842         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
25843         Likewise.
25844
25845 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
25846
25847         * manual/llio.texi: Add comments discussing why write() may be
25848         considered MT-unsafe on Linux.
25849
25850 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
25851
25852         * dl-load.c (local_strdup): Remove.
25853         (expand_dynamic_string_token): Use __strdup.
25854         (decompose_rpath): Likewise.
25855         (_dl_map_object): Likewise.
25856
25857 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
25858
25859         [BZ #14132]
25860         * sysdeps/generic/unwind-dw2-fde.c
25861         (__register_frame_info_bases_internal): Do not declare.
25862         (__register_frame_info_table_bases_internal): Likewise.
25863         (__deregister_frame_info_bases_internal): Likewise.
25864         (__register_frame_info_bases): Declare and use hidden_proto before
25865         definition.  Use hidden_def instead of INTDEF.
25866         (__register_frame_info_table_bases): Likewise.
25867         (__deregister_frame_info_bases): Likewise.
25868         (__register_frame_info): Do not use INTUSE.
25869         (__register_frame): Likewise.
25870         (__register_frame_info_table): Likewise.
25871         (__register_frame_table): Likewise.
25872         (__deregister_frame_info): Likewise.
25873         (__deregister_frame): Likewise.
25874
25875 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
25876
25877         * sysdeps/unix/sysv/linux/arm/kernel-features.h
25878         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
25879         not undefine.
25880         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
25881         Likewise.
25882         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
25883         Likewise.
25884
25885 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
25886
25887         [BZ #14138]
25888         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
25889         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
25890         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
25891         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
25892         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
25893         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
25894         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
25895         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
25896         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
25897         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
25898         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
25899         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
25900         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
25901         syscall.
25902         (setfsuid): Likewise.
25903         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
25904         (setfsuid): Likewise.
25905         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
25906         (setfsuid): Likewise.
25907         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
25908         Likewise.
25909         (setfsuid): Likewise.
25910         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
25911         (setfsuid): Likewise.
25912         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
25913         Likewise.
25914         (setfsuid): Likewise.
25915
25916 2014-10-27  Andreas Schwab  <schwab@suse.de>
25917
25918         [BZ #17501]
25919         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
25920         check for Slow_SSE4_2 feature bit.
25921         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
25922         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
25923         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
25924         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
25925
25926 2014-10-24  Roland McGrath  <roland@hack.frob.com>
25927
25928         * configure.ac: Validate compiler version with a empirical test of
25929         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
25930         $CC -v output.
25931         * configure: Regenerated.
25932
25933         * inet/htons.c (htons): Prototypify.
25934         * inet/htonl.c (htonl): Likewise.
25935
25936 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25937
25938         * string/strncat.c (strncat): Improve performance by using strlen.
25939
25940 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25941
25942         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
25943
25944 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25945
25946         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
25947         Call libc_fetestexcept_aarch64.
25948
25949 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25950
25951         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
25952         Call libc_feholdexcept_aarch64.
25953
25954 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25955
25956         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
25957         Call get_rounding_mode.
25958
25959 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25960
25961         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
25962         Simplify logic.
25963
25964 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
25965
25966         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
25967         Simplify logic.
25968
25969 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
25970
25971         [BZ #14138]
25972         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
25973         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
25974         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
25975         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
25976         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
25977         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
25978         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
25979         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
25980         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
25981         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
25982         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
25983         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
25984         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
25985         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
25986         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
25987         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
25988         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
25989         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
25990         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
25991         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
25992         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
25993         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
25994         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
25995         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
25996         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
25997         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
25998         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
25999         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
26000         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
26001         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
26002         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
26003         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
26004         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
26005         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
26006         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
26007         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
26008         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
26009         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
26010         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
26011         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
26012         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
26013         syscall.
26014         (geteuid): Likewise.
26015         (getgid): Likewise.
26016         (getuid): Likewise.
26017         (getresgid): Likewise.
26018         (getresuid): Likewise.
26019         (getgroups): Likewise.
26020         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
26021         (geteuid): Likewise.
26022         (getgid): Likewise.
26023         (getuid): Likewise.
26024         (getresgid): Likewise.
26025         (getresuid): Likewise.
26026         (getgroups): Likewise.
26027         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
26028         (geteuid): Likewise.
26029         (getgid): Likewise.
26030         (getuid): Likewise.
26031         (getresgid): Likewise.
26032         (getresuid): Likewise.
26033         (getgroups): Likewise.
26034         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
26035         Likewise.
26036         (geteuid): Likewise.
26037         (getgid): Likewise.
26038         (getuid): Likewise.
26039         (getresgid): Likewise.
26040         (getresuid): Likewise.
26041         (getgroups): Likewise.
26042         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
26043         (geteuid): Likewise.
26044         (getgid): Likewise.
26045         (getuid): Likewise.
26046         (getresgid): Likewise.
26047         (getresuid): Likewise.
26048         (getgroups): Likewise.
26049         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
26050         Likewise.
26051         (geteuid): Likewise.
26052         (getgid): Likewise.
26053         (getuid): Likewise.
26054         (getgroups): Likewise.
26055
26056         [BZ #14138]
26057         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
26058         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
26059         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
26060         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
26061         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
26062         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
26063         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
26064         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
26065         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
26066         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
26067         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
26068         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
26069         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
26070         __chown.
26071         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
26072         (lchown): Likewise.
26073         (fchown): Likewise.
26074         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
26075         Likewise.
26076         (lchown): Likewise.
26077         (fchown): Likewise.
26078         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
26079         (lchown): Likewise.
26080         (fchown): Likewise.
26081         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
26082         Likewise.
26083         (lchown): Likewise.
26084         (fchown): Likewise.
26085
26086 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26087
26088         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
26089         Simplify logic.
26090
26091 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26092
26093         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
26094         Cleanup logic.
26095
26096 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26097
26098         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
26099         Remove unused include.
26100
26101 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
26102
26103         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
26104         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
26105         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
26106         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
26107
26108 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
26109             Helge Deller <deller@gmx.de>
26110
26111         [BZ #17508]
26112         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
26113         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
26114         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
26115
26116 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
26117
26118         [BZ #14132]
26119         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
26120         Remove macro definition.
26121         (__ashrdi3_v_glibc20): Likewise.
26122         (__lshrdi3_v_glibc20): Likewise.
26123         (__cmpdi2_v_glibc20): Likewise.
26124         (__ucmpdi2_v_glibc20): Likewise.
26125         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
26126         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
26127         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
26128         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
26129         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
26130         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
26131
26132 2014-10-22  Roland McGrath  <roland@hack.frob.com>
26133
26134         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
26135         old GNU extension [0] syntax.
26136         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
26137         alloca rather than an array member with variable length.
26138         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
26139         * nscd/nscd.c (invalidate_db): New function, broken out of ...
26140         (parse_opt): ... here.  Likewise use alloca there.
26141         Validate the -i argument before checking for rootness.
26142         (send_shutdown): New function, broken out of ...
26143         (parse_opt): ... here.
26144
26145 2014-10-22  Roland McGrath  <roland@hack.frob.com>
26146
26147         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
26148         macro to get at the _rt_local_ro field.
26149         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
26150         ([PIC] case) or _dl_hwcap ([!PIC] case).
26151         * sysdeps/arm/setjmp.S: Likewise.
26152
26153         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
26154         * sysdeps/arm/configure.ac: New check to define it.
26155         * sysdeps/arm/configure: Regenerated.
26156         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
26157         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
26158         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
26159         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
26160         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
26161         Use move/movt pair instead of a load.
26162         (LDST_GLOBAL): Macro removed.
26163         (LDR_GLOBAL): New macro replaces it.
26164         (LDR_HIDDEN): New macro.
26165         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
26166         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
26167
26168         * setjmp/tst-setjmp-static.c: New file.
26169         * setjmp/Makefile (tests): Add it.
26170         (tests-static): New variable.
26171
26172 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
26173
26174         [BZ #17485]
26175         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
26176
26177 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
26178
26179         [BZ #14132]
26180         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
26181
26182 2014-10-21  Roland McGrath  <roland@hack.frob.com>
26183
26184         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
26185
26186 2014-10-20  Roland McGrath  <roland@hack.frob.com>
26187
26188         * io/fts.c (dirent_not_directory): New function.
26189         (fts_build): Call it.
26190
26191 2014-10-20  Roland McGrath  <roland@hack.frob.com>
26192
26193         * nptl/version.c (__nptl_main): Use normal __write rather than
26194         INTERNAL_SYSCALL.
26195         (banner): Update copyright years.
26196
26197         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
26198         gettimeofday.
26199         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
26200         * nptl/pthread_cond_timedwait.c: Likewise.
26201         * nptl/pthread_mutex_timedlock.c: Likewise.
26202         * nptl/sem_timedwait.c: Likewise.
26203
26204         * sysdeps/nptl/bits/libc-lock.h
26205         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
26206         (__libc_lock_init_recursive): Return void, not 0.
26207         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
26208         (__libc_rwlock_init): Likewise.
26209         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
26210
26211 2014-10-20  Torvald Riegel  <triegel@redhat.com>
26212
26213         [BZ #15215]
26214         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
26215         (__pthread_once_slow): ... here.
26216         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
26217         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
26218
26219 2014-10-20  Torvald Riegel  <triegel@redhat.com>
26220
26221         [BZ #15215]
26222         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
26223         __PTHREAD_ONCE_FORK_GEN_INCR): New.
26224         * sysdeps/nptl/fork.c (__libc_fork): Use them.
26225         * nptl/pthread_once.c (__pthread_once): Likewise.
26226         Update comments.
26227
26228 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
26229
26230         [BZ #14138]
26231         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
26232         name.
26233         (writev): Use __libc_writev as strong name.
26234         * sysdeps/unix/sysv/linux/readv.c: Remove file.
26235         * sysdeps/unix/sysv/linux/writev.c: Likewise.
26236
26237 2014-10-17  Roland McGrath  <roland@hack.frob.com>
26238
26239         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
26240
26241         * sysdeps/i386/nptl/tls.h
26242         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
26243         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
26244         New macros.
26245         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
26246         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
26247         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
26248         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
26249         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
26250         Call CHECK_THREAD_SYSINFO instead of doing an assert.
26251
26252         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
26253         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
26254         on [__NR_futex].
26255         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
26256         broken out of ...
26257         (__pthread_mutex_init): ... here.  Call it.
26258         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
26259         Conditionalize PI cases on [__NR_futex].
26260         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
26261         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
26262         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
26263
26264         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
26265         conditional on [SIGSETXID].
26266         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
26267         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
26268         is defined.  Likewise for SIGSETXID.
26269         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
26270         Conditionalize definitions on [SIGSETXID].
26271         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
26272         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
26273         unblocking on [SIGCANCEL].
26274
26275         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
26276         [__NR_set_robust_list].
26277
26278 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
26279
26280         * string/strcoll_l.c (get_next_seq): Fix up formatting.
26281         (do_compare): Likewise.
26282
26283 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
26284
26285         [BZ #15884]
26286         * string/strcoll_l.c: Don't include stdio.h.
26287         (coll_seq): Remove members idxarr and rulearr.
26288         (get_next_seq_cached): Remove function.
26289         (get_next_seq): Likewise.
26290         (get_next_seq_nocache): Rename to get_next_seq.
26291         (do_compare): Remove function.
26292         (do_compare_nocache): Rename to do_compare.
26293         (STRCOLL): Remove weight and rules cache.
26294
26295 2014-10-16  Roland McGrath  <roland@hack.frob.com>
26296
26297         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
26298         * sysdeps/arm/sfp-machine.h: ... to here.
26299         * sysdeps/arm/Implies: Remove arm/soft-fp.
26300
26301 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
26302
26303         * conform/data/sys/utsname.h-data (*_t): Allow.
26304         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
26305         [POSIX] (WEXITED): Do not expect constant.
26306         [POSIX] (WSTOPPED): Likewise.
26307         [POSIX] (WNOHANG): Likewise.
26308         [POSIX] (WNOWAIT): Likewise.
26309         [POSIX] (siginfo_t): Do not expect type or elements.
26310         [POSIX] (pid_t): Do not expect type.
26311         [POSIX] (signal.h): Do not allow header.
26312         [POSIX] (sys/resource.h): Likewise.
26313         [POSIX] (si_*): Do not allow pattern.
26314         [POSIX] (W*): Likewise.
26315         [POSIX] (P_*): Likewise.
26316         [POSIX] (BUS_*): Likewise.
26317         [POSIX] (CLD_*): Likewise.
26318         [POSIX] (FPE_*): Likewise.
26319         [POSIX] (ILL_*): Likewise.
26320         [POSIX] (POLL_*): Likewise.
26321         [POSIX] (SEGV_*): Likewise.
26322         [POSIX] (SI_*): Likewise.
26323         [POSIX] (TRAP_*): Likewise.
26324         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
26325         variable.
26326
26327 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
26328
26329         [BZ #12926]
26330         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
26331         infinite loop when __recvmsg returns 0.
26332
26333 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
26334
26335         * CANCEL-FCT-WAIVE: Remove file.
26336         * CANCEL-FILE-WAIVE: Likewise.
26337
26338         [BZ #14132]
26339         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
26340         instead of INTVARDEF.
26341         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
26342         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
26343         rtld_hidden_data_def instead of INTVARDEF.
26344         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
26345         * elf/dl-deps.c (expand_dst): Likewise.
26346         * elf/dl-load.c (_dl_dst_count): Likewise.
26347         (_dl_dst_substitute): Likewise.
26348         (decompose_rpath): Likewise.
26349         (_dl_init_paths): Likewise.
26350         (open_path): Likewise.
26351         (_dl_map_object): Likewise.
26352         * elf/rtld.c (dl_main): Likewise.
26353         (process_dl_audit): Likewise.
26354         (process_envvars): Likewise.
26355         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
26356         Remove declaration.
26357         (__libc_enable_secure): Use rtld_hidden_proto.
26358
26359 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26360
26361         * elf/dl-load.c
26362         (add_path): New function broken out of _dl_rtld_di_serinfo.
26363         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
26364
26365 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26366
26367         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
26368         parentheses around macro arguments.
26369         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
26370         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
26371         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
26372         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
26373         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
26374         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
26375         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
26376         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
26377         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
26378         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
26379         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
26380         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
26381         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
26382         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
26383         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
26384         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
26385         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
26386         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
26387         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
26388         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
26389         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
26390         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
26391         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
26392         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
26393         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
26394         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
26395         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
26396         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
26397         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
26398         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
26399         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
26400         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
26401         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
26402         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
26403         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
26404         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
26405         Likewise.
26406         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
26407         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
26408         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
26409         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
26410         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
26411         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
26412         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
26413         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
26414         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
26415         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
26416         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
26417         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
26418         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
26419         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
26420         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
26421         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
26422         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
26423         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
26424         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
26425         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
26426         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
26427         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
26428         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
26429         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
26430         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
26431         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
26432         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
26433         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
26434         (_FP_FRAC_SRS_1): Likewise.
26435         (_FP_FRAC_CLZ_1): Likewise.
26436         (_FP_MUL_MEAT_1_imm): Likewise.
26437         (_FP_MUL_MEAT_1_wide): Likewise.
26438         (_FP_MUL_MEAT_1_hard): Likewise.
26439         (_FP_SQRT_MEAT_1): Likewise.
26440         (_FP_FRAC_ASSEMBLE_1): Likewise.
26441         (_FP_FRAC_DISASSEMBLE_1): Likewise.
26442         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
26443         (__FP_CLZ_2): Likewise.
26444         (_FP_MUL_MEAT_2_wide): Likewise.
26445         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
26446         (_FP_MUL_MEAT_2_gmp): Likewise.
26447         (_FP_MUL_MEAT_2_120_240_double): Likewise.
26448         (_FP_SQRT_MEAT_2): Likewise.
26449         (_FP_FRAC_ASSEMBLE_2): Likewise.
26450         (_FP_FRAC_DISASSEMBLE_2): Likewise.
26451         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
26452         (_FP_FRAC_CLZ_4): Likewise.
26453         (_FP_MUL_MEAT_4_wide): Likewise.
26454         (_FP_MUL_MEAT_4_gmp): Likewise.
26455         (_FP_SQRT_MEAT_4): Likewise.
26456         (_FP_FRAC_ASSEMBLE_4): Likewise.
26457         (_FP_FRAC_DISASSEMBLE_4): Likewise.
26458         * soft-fp/op-common.h (_FP_CMP): Likewise.
26459         (_FP_CMP_EQ): Likewise.
26460         (_FP_CMP_UNORD): Likewise.
26461         (_FP_TO_INT): Likewise.
26462         (_FP_FROM_INT): Likewise.
26463         [!__FP_CLZ] (__FP_CLZ): Likewise.
26464         (_FP_DIV_HELP_imm): Likewise.
26465         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
26466         Likewise.
26467         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
26468         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
26469         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
26470         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
26471         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
26472         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26473         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26474         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
26475         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
26476         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
26477         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
26478         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
26479         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
26480         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
26481         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
26482         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
26483         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
26484         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
26485         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
26486         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
26487         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
26488         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
26489         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
26490         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
26491         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
26492         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
26493         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
26494         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
26495         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
26496         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
26497         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
26498         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
26499         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
26500         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
26501         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
26502         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
26503         (FP_UNPACK_RAW_SP): Likewise.
26504         (FP_PACK_RAW_S): Likewise.
26505         (FP_PACK_RAW_SP): Likewise.
26506         (FP_UNPACK_S): Likewise.
26507         (FP_UNPACK_SP): Likewise.
26508         (FP_UNPACK_SEMIRAW_S): Likewise.
26509         (FP_UNPACK_SEMIRAW_SP): Likewise.
26510         (FP_PACK_S): Likewise.
26511         (FP_PACK_SP): Likewise.
26512         (FP_PACK_SEMIRAW_S): Likewise.
26513         (FP_PACK_SEMIRAW_SP): Likewise.
26514         (_FP_SQRT_MEAT_S): Likewise.
26515         (FP_CMP_S): Likewise.
26516         (FP_CMP_EQ_S): Likewise.
26517         (FP_CMP_UNORD_S): Likewise.
26518         (FP_TO_INT_S): Likewise.
26519         (FP_FROM_INT_S): Likewise.
26520
26521         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
26522
26523         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
26524         (FP_EX_INVALID_IMZ): Likewise.
26525         (FP_EX_INVALID_IMZ_FMA): Likewise.
26526         (FP_EX_INVALID_ISI): Likewise.
26527         (FP_EX_INVALID_ZDZ): Likewise.
26528         (FP_EX_INVALID_IDI): Likewise.
26529         (FP_EX_INVALID_SQRT): Likewise.
26530         (FP_EX_INVALID_CVI): Likewise.
26531         (FP_EX_INVALID_VC): Likewise.
26532         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
26533         "invalid" exceptions.
26534         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
26535         (_FP_ADD_INTERNAL): Likewise.
26536         (_FP_MUL): Likewise.
26537         (_FP_FMA): Likewise.
26538         (_FP_DIV): Likewise.
26539         (_FP_CMP_CHECK_NAN): Likewise.
26540         (_FP_SQRT): Likewise.
26541         (_FP_TO_INT): Likewise.
26542         (FP_EXTEND): Likewise.
26543
26544 2014-10-09  Allan McRae  <allan@archlinux.org>
26545
26546         * po/fr.po: Update French translation from translation project.
26547
26548 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
26549
26550         [BZ #14132]
26551         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
26552         of INTDEF.
26553         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
26554         (__cxa_atexit): Use libc_hidden_proto.
26555         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
26556
26557         [BZ #14132]
26558         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
26559         declaration.
26560         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
26561         [!_ISOMAC] (__iswspace_l_internal): Likewise.
26562         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
26563         [!_ISOMAC] (__iswctype_internal): Likewise.
26564         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
26565         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
26566         alias.
26567         (fcntl): Remove __fcntl_internal alias.
26568         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
26569         __connect_internal alias.
26570         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
26571         Likewise.
26572
26573         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
26574         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
26575         FP_DENORM_ZERO.
26576         (_FP_CHECK_FLUSH_ZERO): New macro.
26577         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
26578         (_FP_CMP): Likewise.
26579         (_FP_CMP_EQ): Likewise.
26580         (_FP_TO_INT): Do not set inexact for subnormal arguments if
26581         FP_DENORM_ZERO.
26582         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
26583         (FP_TRUNC): Likewise.
26584
26585         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
26586         treated as invalid conversion, not as normal exponent.
26587
26588         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
26589         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
26590         (_FP_CMP_EQ): Likewise.
26591         (_FP_CMP_UNORD): Likewise.
26592         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
26593         (FP_CMP_EQ_D): Likewise.
26594         (FP_CMP_UNORD_D): Likewise.
26595         * soft-fp/extended.h (FP_CMP_E): Likewise.
26596         (FP_CMP_EQ_E): Likewise.
26597         (FP_CMP_UNORD_E): Likewise.
26598         * soft-fp/quad.h (FP_CMP_Q): Likewise.
26599         (FP_CMP_EQ_Q): Likewise.
26600         (FP_CMP_UNORD_Q): Likewise.
26601         * soft-fp/single.h (FP_CMP_S): Likewise.
26602         (FP_CMP_EQ_S): Likewise.
26603         (FP_CMP_UNORD_S): Likewise.
26604         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
26605         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
26606         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
26607         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
26608         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
26609         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
26610         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
26611         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
26612         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
26613         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
26614         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
26615         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
26616         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
26617         to FP_CMP_Q.
26618         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
26619         FP_CMP_Q.
26620         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
26621         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
26622         FP_CMP_EQ_Q.
26623         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
26624         FP_CMP_Q.
26625         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
26626         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
26627         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
26628         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
26629         FP_CMP_EQ_Q.
26630         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
26631         FP_CMP_Q.
26632         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
26633         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
26634         FP_CMP_EQ_Q.
26635         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
26636         FP_CMP_Q.
26637         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
26638         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
26639         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
26640         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
26641         FP_CMP_EQ_Q.
26642
26643         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
26644         a subnormal result, set the underflow exception if trapping on
26645         underflow is enabled.
26646         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
26647         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
26648         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
26649         redefine to 0.
26650         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
26651         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26652         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
26653         * soft-fp/extendxftf2.c (__extendxftf2): Use
26654         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
26655
26656         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
26657         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
26658         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26659         FP_HANDLE_EXCEPTIONS.
26660         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
26661         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26662         FP_HANDLE_EXCEPTIONS.
26663         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
26664         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26665         FP_HANDLE_EXCEPTIONS.
26666         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
26667         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
26668         FP_HANDLE_EXCEPTIONS.
26669
26670 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
26671
26672         [BZ #14132]
26673         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
26674         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
26675         use INTUSE.
26676         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
26677         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
26678         Remove alias.
26679         (__adjtimex): Define using libc_hidden_ver.
26680         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
26681         Remove declaration.
26682         (ntp_gettime): Call __adjtimex directly.
26683         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
26684         Remove declaration.
26685         (ntp_gettimex): Call __adjtimex directly.
26686         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
26687         __adjtimex_internal alias.
26688
26689 2014-10-08  Roland McGrath  <roland@hack.frob.com>
26690
26691         [BZ #17460]
26692         * nscd/nscd.c (more_help): Rewrite list of tables collection
26693         using xstrdup and asprintf.
26694
26695         * nscd/nscd_conf.c: Remove local xstrdup declaration.
26696
26697 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26698             Roland McGrath  <roland@hack.frob.com>
26699
26700         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
26701         (do_lookup_unique): ... local function 'enter' here; update callers.
26702
26703 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
26704
26705         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
26706         compat_symbol calls on [SHARED].
26707         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
26708         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
26709         Remove.
26710         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26711         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
26712         (oldsetrlimit): Remove.
26713         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26714         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26715         (lchown): New syscall entry.
26716         (oldsetrlimit): Remove.
26717         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26718         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
26719         (oldsetrlimit): Remove.
26720         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
26721
26722         [BZ #14138]
26723         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
26724         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
26725         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
26726         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
26727         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
26728         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
26729         (fchown): Likewise.
26730         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
26731         (fchown): Likewise.
26732         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
26733         Likewise.
26734
26735 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26736
26737         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
26738         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
26739         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
26740         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
26741         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
26742         Likewise.
26743         (__old_sem_post): Likewise.
26744
26745 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
26746
26747         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
26748         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
26749         HAVE_CLOCK_GETTIME_VSYSCALL macros.
26750         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
26751         Use INLINE_VSYSCALL macro.
26752         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
26753         __vdso_clock_gettime.
26754         * sysdeps/unix/sysv/linux/tile/init-first.c
26755         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
26756         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
26757         __vdso_clock_gettime.
26758
26759         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
26760         to set up frame more cleanly.
26761
26762         * sysdeps/tile/memcmp.c: New file.
26763
26764         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
26765
26766         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
26767         * sysdeps/tile/tilegx/strcasestr.c: New file.
26768         * sysdeps/tile/tilegx/strnlen.c: New file.
26769         * sysdeps/tile/tilegx/strstr.c: New file.
26770
26771         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
26772
26773 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
26774
26775         * nptl/tst-setuid3.c: Write errors to stdout.
26776
26777 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26778
26779         * elf/dl-deps.c
26780         (preload): New functions broken out of _dl_map_object_deps.
26781         (_dl_map_object_deps):  Remove a nested function. Update call sites.
26782
26783 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
26784
26785         [BZ #14138]
26786         * sysdeps/unix/sysv/linux/execve.c: Remove file.
26787         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
26788
26789 2014-10-01  Steve Ellcey  <sellcey@mips.com>
26790
26791         * sysdeps/mips/strcmp.S: New.
26792
26793 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
26794
26795         [BZ #14138]
26796         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
26797         (linkat): Likewise.
26798         (mkdirat): Likewise.
26799         (readlinkat): Likewise.
26800         (renameat): Likewise.
26801         (symlinkat): Likewise.
26802         (unlinkat): Likewise.
26803         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
26804         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
26805         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
26806         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
26807         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
26808         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
26809         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
26810
26811 2014-09-30  Will Newton  <will.newton@linaro.org>
26812
26813         * math/math.h: Define long double math functions if
26814         _LIBC_TEST is defined.
26815         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
26816
26817         * localedata/Makefile: Move assignment to tests-special
26818         into an ifdef testing run-built-tests.
26819         * timezone/Makefile: Likewise.
26820
26821 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
26822
26823         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
26824         with $(BASH) not $(SHELL).
26825
26826 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
26827             Matthew LeGendre  <legendre1@llnl.gov>
26828
26829         [BZ #17411]
26830         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
26831         l_reloc_result.
26832
26833 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
26834
26835         * stdio-common/printf_fp.c
26836         (hack_digit): New function, broken out of ...
26837         (__printf_fp): ... local function here.  Update call sites.
26838         hack_digit now takes an additional parameter that is a pointer
26839         to a struct of the referenced locals.  Those locals moved inside
26840         the struct and references updated.
26841
26842 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
26843
26844         * aclocal.m4: Require autoconf 2.69.
26845         * configure: Regenerated.
26846         * sysdeps/aarch64/configure: Likewise.
26847         * sysdeps/alpha/configure: Likewise.
26848         * sysdeps/arm/armv7/configure: Likewise.
26849         * sysdeps/arm/configure: Likewise.
26850         * sysdeps/ia64/configure: Likewise.
26851         * sysdeps/mach/configure: Likewise.
26852         * sysdeps/mips/configure: Likewise.
26853         * sysdeps/s390/configure: Likewise.
26854         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
26855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
26856
26857         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
26858         file.
26859         * sysdeps/ia64/configure.ac: Likewise.
26860
26861 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
26862
26863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
26864         specify symbol version for ld.so.  Do not include entry for
26865         libpthread.
26866         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
26867         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
26868         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26869
26870         [BZ #14171]
26871         * Makeconfig [$(build-shared) = yes]
26872         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
26873         makefiles.
26874         [$(build-shared) = yes && $(soversions.mk-done) = t]
26875         ($(common-objpfx)gnu/lib-names.h): Remove rule.
26876         [$(build-shared) = yes && $(soversions.mk-done) = t]
26877         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
26878         to Makerules.
26879         [$(build-shared) = yes && $(soversions.mk-done) = t]
26880         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
26881         here.
26882         [$(build-shared) = yes && $(soversions.mk-done) = t]
26883         (common-generated): Don't append gnu/lib-names.h and
26884         gnu/lib-names.stmp here.
26885         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
26886         (lib-names-h-abi): New variable.
26887         [$(build-shared) = yes && $(soversions.mk-done) = t]
26888         (lib-names-stmp-abi): Likewise.
26889         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26890         abi-variants] (before-compile): Append
26891         $(common-objpfx)$(lib-names-h-abi).
26892         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26893         abi-variants] (common-generated): Append gnu/lib-names.h.
26894         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26895         abi-variants] (install-others-nosubdir): Depend on
26896         $(inst_includedir)/$(lib-names-h-abi).
26897         [$(build-shared) = yes && $(soversions.mk-done) = t &&
26898         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
26899         [$(build-shared) = yes && $(soversions.mk-done) = t]
26900         ($(common-objpfx)$(lib-names-h-abi)): New rule.
26901         [$(build-shared) = yes && $(soversions.mk-done) = t]
26902         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
26903         [$(build-shared) = yes && $(soversions.mk-done) = t]
26904         (common-generated): Append $(lib-names-h-abi) and
26905         $(lib-names-stmp-abi).
26906         * scripts/lib-names.awk: Do not handle multi being set.
26907         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
26908         Remove variable.
26909         (abi-lp64_be-ld-soname): Likewise.
26910         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
26911         Likewise.
26912         (abi-hard-ld-soname): Likewise.
26913         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
26914         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
26915         Remove variable.
26916         (abi-o32_hard-ld-soname): Likewise.
26917         (abi-o32_soft_2008-ld-soname): Likewise.
26918         (abi-o32_hard_2008-ld-soname): Likewise.
26919         (abi-n32_soft-ld-soname): Likewise.
26920         (abi-n32_hard-ld-soname): Likewise.
26921         (abi-n32_soft_2008-ld-soname): Likewise.
26922         (abi-n32_hard_2008-ld-soname): Likewise.
26923         (abi-n64_soft-ld-soname): Likewise.
26924         (abi-n64_hard-ld-soname): Likewise.
26925         (abi-n64_soft_2008-ld-soname): Likewise.
26926         (abi-n64_hard_2008-ld-soname): Likewise.
26927         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
26928         Likewise.
26929         (abi-64-v2-ld-soname): Likewise.
26930         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
26931         ld.so entries.
26932         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
26933         variable.
26934         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
26935         entry.
26936         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
26937         variable.
26938         (abi-64-ld-soname): Likewise.
26939         (abi-x32-ld-soname): Likewise.
26940         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
26941         entry.
26942         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
26943
26944 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
26945
26946         [BZ #14138]
26947         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
26948         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
26949         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
26950         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
26951         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
26952         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
26953         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
26954         syscall entry for GLIBC_2.2 symbol version.
26955         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
26956         Likewise.
26957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
26958         (setrlimit): Likewise.
26959         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
26960         Likewise.
26961
26962 2014-09-23  Will Newton  <will.newton@linaro.org>
26963
26964         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
26965         _LINUX_ARM_SYSDEP_H include guard too.
26966         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
26967         define.
26968
26969 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
26970
26971         * sysdeps/unix/sysv/linux/eventfd.c:
26972         Make first argument unsigned.
26973         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
26974         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
26975
26976 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
26977
26978         [BZ #16852]
26979         * socket/recvmmsg.c (recvmmsg): Drop const argument.
26980         * socket/sys/socket.h: Likewise.
26981         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
26982
26983 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26984
26985         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
26986
26987 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
26988
26989         * time/tst-ftime.c: New test.
26990         * time/Makefile (tests): Add tst-ftime.
26991
26992 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
26993
26994         * soft-fp/extended.h: Fix comment formatting.
26995         * soft-fp/op-1.h: Likewise.
26996         * soft-fp/op-2.h: Likewise.
26997         * soft-fp/op-4.h: Likewise.
26998         * soft-fp/op-8.h: Likewise.
26999         * soft-fp/op-common.h: Likewise.
27000         * soft-fp/soft-fp.h: Likewise.
27001
27002         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
27003
27004 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
27005
27006         [BZ #6652]
27007         * Makeconfig (soversions-default-setname): Remove variable.
27008         ($(common-objpfx)soversions.i): Don't pass default_setname to
27009         soversions.awk.
27010         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
27011         oldest_abi to abi-versions.awk.
27012         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
27013         * config.make.in (oldest-abi): Remove variable.
27014         * configure.ac (--enable-oldest-abi): Remove configure option.
27015         * configure: Regenerated.
27016         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
27017         text.
27018         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
27019         * scripts/soversions.awk: Do not handle default_setname variable.
27020         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
27021         variable.
27022         * sysdeps/mach/hurd/configure: Regenerated.
27023         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
27024         variable.
27025         * sysdeps/unix/sysv/linux/configure: Regenerated.
27026
27027 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
27028
27029         * elf/Makefile (CFLAGS-interp.c): Remove.
27030         ($(elf-objpfx)runtime-linker.h): Generate header with linker
27031         path string.
27032         * elf/interp.c: Include generated runtime-linker.h
27033
27034         * Makerules (lib%.so): Don't include $(+interp) in
27035         prerequisites.
27036         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
27037         * dlfcn/eval.c: Remove file.
27038
27039         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
27040         macros.
27041
27042         [BZ #17266]
27043         * misc/sys/cdefs.h: Define __extern_always_inline for clang
27044         4.2 and newer.
27045
27046         [BZ #17370]
27047         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
27048
27049 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
27050             Jakub Jelinek  <jakub@redhat.com>
27051
27052         [BZ #17266]
27053         * libio/stdio.h: Check definition of __fortify_function
27054         instead of __extern_always_inline to include bits/stdio2.h.
27055         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
27056         check if __extern_always_inline is defined.
27057         [__USE_MISC || __USE_XOPEN]: Likewise.
27058         [__USE_ISOC99] Likewise.
27059         * misc/sys/cdefs.h (__fortify_function): Define only if
27060         __extern_always_inline is defined.
27061         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
27062         __extern_always_inline and __extern_inline only for g++-4.3
27063         and newer or a compatible gcc.
27064
27065 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
27066
27067         [BZ #17371]
27068         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
27069         last change to handle zero prefix length.
27070
27071 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
27072
27073         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
27074         _SC_REGEX_VERSION.
27075
27076         * posix/getconf.c (vars): Add _POSIX_IPV6 and
27077         _POSIX_RAW_SOCKETS.
27078
27079 2014-09-13  Allan McRae  <allan@archlinux.org>
27080
27081         * po/ru.po: Update Russian translation from translation project.
27082
27083 2014-09-12  Roland McGrath  <roland@hack.frob.com>
27084
27085         * locale/programs/locale.c (show_locale_vars): Inline local function
27086         into its sole call site.  Clean up some style nits.
27087         (print_item): New function, broken out of ...
27088         (show_info): ... local function here.  Clean up style nits.
27089
27090         * locale/programs/ld-ctype.c (set_one_default): New function, broken
27091         out of ...
27092         (set_class_defaults): ... local function set_default here.
27093         Define set_default as a macro locally to pass constant parameters.
27094         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
27095         rather than a shared local.
27096
27097         * stdlib/rpmatch.c (try): New function, broken out of ...
27098         (rpmatch): ... local function here.  Also, prototypify definition.
27099
27100 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
27101
27102         * scripts/soversions.awk: Do not handle configuration names.
27103         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
27104         vendor and os variables to soversions.awk.
27105         * configure.ac: Do not modify gnu-* host_os.
27106         * configure: Regenerated
27107         * shlib-versions: Remove first column with configuration names.
27108         * nptl/shlib-versions: Likewise.
27109         * nptl_db/shlib-versions: Likewise.
27110         * sysdeps/hppa/shlib-versions: Likewise.
27111         * sysdeps/m68k/shlib-versions: Likewise.
27112         * sysdeps/mach/hurd/shlib-versions: Likewise.
27113         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
27114         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
27115         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
27116         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
27117         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
27118         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
27119         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
27120         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
27121         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
27122         Likewise.
27123         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
27124         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
27125         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
27126         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
27127         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
27128         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
27129         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
27130         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
27131
27132         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
27133         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
27134         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
27135         Regenerated.
27136         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
27137         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
27138         Condition symbol version definitions on [HAVE_ELFV2_ABI].
27139
27140         * shlib-versions: Remove OS-specific entries.  Moved to files in
27141         sysdeps.
27142         * sysdeps/mach/hurd/shlib-versions: New file.
27143         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
27144
27145         * nptl/shlib-versions: Remove architecture-specific entries.
27146         Moved to files in sysdeps.
27147         * shlib-versions: Likewise.
27148         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
27149         file.
27150         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
27151         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
27152         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
27153         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
27154
27155         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
27156         (UDP_NO_CHECK6_RX): Likewise.
27157
27158 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
27159
27160         * sysdeps/posix/sysconf.c (__sysconf): Spell
27161         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
27162
27163 2014-08-12  Florian Weimer  <fweimer@redhat.com>
27164
27165         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
27166         loading.
27167         * iconv/Versions (__gconv_transliterate): Export for use from
27168         gconv modules.
27169         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
27170         (struct __gconv_trans_data, __gconv_trans_fct,
27171         __gconv_trans_context_fct, __gconv_trans_query_fct,
27172         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
27173         definitions.
27174         (struct __gconv_step_data): Remove __trans member.
27175         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
27176         longer hidden.  Remove unused trans_data argument.
27177         * iconv/gconv_int.h (struct trans_struct): Remove definition.
27178         (__gconv_translit_find): Remove declaration.
27179         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
27180         prototype.
27181         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
27182         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
27183         trans_data argument.  Add hidden definition.
27184         (__gconv_translit_find): Remove.
27185         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
27186         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
27187         * iconv/skeleton.c: Remove transliteration initialization.
27188         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
27189         __gconv_step_data initialization.
27190         * libio/iofwide.c (__libio_translit_): Remove.
27191         (_IO_fwide): Adjust struct __gconv_step_data initialization.
27192         * wcsmbs/btowc.c (__btowc): Likewise.
27193         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
27194         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
27195         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
27196         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
27197         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
27198         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
27199         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
27200         * wcsmbs/wctob.c (wctob): Likewise.
27201
27202 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
27203
27204         [BZ #16194]
27205         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
27206         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
27207         register usage.
27208         * sysdeps/x86/Makefile: Adjust.
27209
27210 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
27211             Roland McGrath  <roland@hack.frob.com>
27212
27213         * locale/weight.h: Add include guard.
27214         (findidx): Make static rather than auto; take new parameters
27215         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
27216         * locale/weightwc.h: Likewise.
27217         * posix/fnmatch_loop.c
27218         (FCT): Change type of EXTRA from int32_t to wint_t.
27219         Don't include either header inside the function.
27220         Call FINDIDX rather than findidx, and pass new arguments.
27221         #undef FINDIDX at the end of the file.
27222         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
27223         FINDIDX before including fnmatch_loop.c for the non-wide version.
27224         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
27225         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
27226         for the wide version.
27227         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
27228         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
27229         Pass new arguments to findidx.
27230         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
27231         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
27232         Don't #include it inside the function.  Pass new arguments to findidx.
27233         * posix/regex_internal.h
27234         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
27235         (re_string_elem_size_at): Don't #include it inside the function.
27236         Pass new arguments to findidx.
27237         * string/strcoll_l.c: #include WEIGHT_H at top level.
27238         (get_next_seq): Don't #include it inside the function.
27239         Pass new arguments to findidx.
27240         (get_next_seq_nocache): Likewise.
27241         * string/strxfrm_l.c: #include WEIGHT_H at top level.
27242         (STRXFRM): Don't #include it inside the function.
27243         Pass new arguments to findidx.
27244
27245 2014-09-11  Florian Weimer  <fweimer@redhat.com>
27246
27247         [BZ #17344]
27248         * malloc/malloc.c (unlink): Turn asserts into a call to
27249         malloc_printerr.
27250
27251 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
27252
27253         [BZ #17370]
27254         * libio/wfileops (do_ftell_wide): Free OUT.
27255
27256 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
27257
27258         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
27259
27260 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
27261
27262         [BZ #17363]
27263         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
27264         group if the current group is empty.
27265
27266 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27267
27268         * benchtests/bench-memset.c (test_main): Add more test from size
27269         from 32 to 512 bytes.
27270         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27271         Add POWER8 memset object.
27272         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
27273         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
27274         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
27275         implementation.
27276         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
27277         Likewise.
27278         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
27279         multiarch POWER8 memset optimization.
27280         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
27281         POWER8 memset optimization.
27282
27283         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
27284         Remove bzero multiarch objects.
27285         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
27286         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
27287         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
27288         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
27289         Remove define.
27290         [__bzero]: Redefine to specific name.
27291         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
27292         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
27293         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
27294         define.
27295         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
27296         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
27297
27298 2014-09-10  Florian Weimer  <fweimer@redhat.com>
27299
27300         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
27301         warnings into errors.
27302
27303         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
27304         __cxa_thread_atexit_impl prototype.
27305
27306 2014-09-09  Steve Ellcey  <sellcey@mips.com>
27307
27308         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
27309         Fix capitalization of error message.
27310
27311 2014-09-09  Steve Ellcey  <sellcey@mips.com>
27312
27313         * sysdeps/mips/preconfigure: Modify ABI tests.
27314
27315 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
27316
27317         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
27318
27319 2014-09-07  Roland McGrath  <roland@hack.frob.com>
27320             Carlos O'Donell  <carlos@systemhalted.org>
27321
27322         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
27323         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
27324         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
27325         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
27326         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
27327         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
27328         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
27329         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
27330         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
27331         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
27332         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
27333         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
27334         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
27335         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
27336         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
27337         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
27338         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
27339         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
27340         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
27341         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
27342         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
27343         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
27344         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
27345         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
27346         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
27347         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
27348         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
27349         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
27350         Deconditionalize the code that was previously under [RESET_PID].
27351         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
27352         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
27353         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
27354         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
27355         include sysdep.h.
27356
27357 2014-09-08  Allan McRae  <allan@archlinux.org>
27358
27359         * version.h (RELEASE): Set to "development".
27360         (VERSION): Set to "2.20.90"
27361
27362 2014-09-07  Allan McRae  <allan@archlinux.org
27363
27364         * version.h (RELEASE): Set to "stable".
27365         (VERSION): Set to "2.20"
27366         * include/features.h (__GLIBC_MINOR__): Set to 20.
27367
27368         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
27369         Liebler.
27370
27371         * po/ko.po: Update Korean translation from translation project.
27372
27373 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
27374
27375         [BZ #17354]
27376         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
27377         macro for handling signed relocations.
27378
27379 2014-09-03  Florian Weimer  <fweimer@redhat.com>
27380
27381         [BZ #17325]
27382         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
27383         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
27384         assert.
27385         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
27386         * iconvdata/ibm935.c (BODY): Likewise.
27387         * iconvdata/ibm937.c (BODY): Likewise.
27388         * iconvdata/ibm939.c (BODY): Likewise.
27389         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
27390         assert.
27391         * iconvdata/Makefile (iconv-test.out): Pass module list to test
27392         script.
27393         * iconvdata/run-iconv-test.sh: New test loop for checking for
27394         decoder crashers.
27395
27396 2014-09-02  Khem Raj  <raj.khem@gmail.com>
27397
27398         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
27399         libm_hidden_ver.
27400
27401 2014-09-01  Allan McRae  <allan@archlinux.org>
27402
27403         * po/eo.po: Update Esperanto translation from translation project.
27404
27405         * po/ca.po: Update Catalan translation from translation project.
27406
27407 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27408
27409         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
27410         __proc_dostop call.
27411
27412 2014-08-27  Mark Wielaard  <mjw@redhat.com>
27413
27414         [BZ #17319]
27415         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
27416         to call set_thread_area instead of hand written asm.
27417         (__NR_set_thread_area): Removed define.
27418         (TLS_FLAG_WRITABLE): Likewise.
27419         (__ASSUME_SET_THREAD_AREA): Remove check.
27420         (TLS_EBX_ARG): Remove define.
27421         (TLS_LOAD_EBX): Likewise.
27422
27423 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27424
27425         Simplify atomicity of socket creation in bind.
27426
27427         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
27428         looking up the name after linking the file.
27429
27430 2014-08-27  Allan McRae  <allan@archlinux.org>
27431
27432         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
27433
27434 2014-08-26  Florian Weimer  <fweimer@redhat.com>
27435
27436         [BZ #17187]
27437         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
27438         trans_compare, open_translit, __gconv_translit_find):
27439         Remove module loading code.
27440
27441 2014-08-26  Allan McRae  <allan@archlinux.org>
27442
27443         * po/vi.po: Update Vietnamese translation from translation project.
27444
27445         * po/uk.po: Update Ukrainian translation from translation project.
27446
27447         * po/fr.po: Update French translation from translation project.
27448
27449         * po/ru.po: Update Russian translation from translation project.
27450
27451         * po/pl.po: Update Polish translation from translation project.
27452
27453         * po/cs.po: Update Czech translation from translation project.
27454
27455         * po/de.po: Update German translation from translation project.
27456
27457         * po/bg.po: Update Bulgarian translation from translation project.
27458
27459         * po/sv.po: Update Sweedish translation from translation project.
27460
27461         * po/nl.po: Update Dutch translation from translation project.
27462
27463         * po/es.po: Update Spanish translation from translation project.
27464
27465 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
27466
27467         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
27468
27469         * catgets/Makefile (CPPFLAGS-gencat): Remove.
27470         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
27471         (CPPFLAGS-iconvconfig): Likewise.
27472         * timezone/Makefile (CPPFLAGS-zic): Likewise.
27473
27474         * include/libc-symbols.h: Remove unnecessary check for
27475         NOT_IN_libc.
27476         * nptl/pthreadP.h: Likewise.
27477         * sysdeps/aarch64/setjmp.S: Likewise.
27478         * sysdeps/alpha/setjmp.S: Likewise.
27479         * sysdeps/arm/sysdep.h: Likewise.
27480         * sysdeps/i386/setjmp.S: Likewise.
27481         * sysdeps/m68k/setjmp.c: Likewise.
27482         * sysdeps/posix/getcwd.c: Likewise.
27483         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
27484         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
27485         * sysdeps/s390/s390-32/setjmp.S: Likewise.
27486         * sysdeps/s390/s390-64/setjmp.S: Likewise.
27487         * sysdeps/sh/sh3/setjmp.S: Likewise.
27488         * sysdeps/sh/sh4/setjmp.S: Likewise.
27489         * sysdeps/unix/alpha/sysdep.h: Likewise.
27490         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
27491         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
27492         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
27493         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
27494         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
27495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
27496         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
27497         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
27498         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
27499         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
27500         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
27501         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
27502         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
27503         * sysdeps/x86_64/setjmp.S: Likewise.
27504
27505 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
27506
27507         [BZ #17263]
27508         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
27509         <stdint.h>.
27510         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
27511         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
27512
27513 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
27514
27515         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
27516
27517         [BZ #17262]
27518         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
27519         and __x86_64__ when disabling x87 inline functions.
27520
27521 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
27522
27523         [BZ #17259]
27524         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
27525         asm statement with __cpuid_count.
27526
27527 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
27528
27529         * configure.ac: Change __ehdr_start code to dereference the struct.
27530         Run readelf on the output to look for relocations.
27531         * configure: Regenerated.
27532
27533 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
27534
27535         [BZ #17261]
27536         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
27537         value to 0.
27538         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
27539
27540 2014-08-12  Roland McGrath  <roland@hack.frob.com>
27541
27542         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
27543
27544 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
27545
27546         [BZ #16892]
27547         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
27548         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
27549
27550 2014-08-12  Sean Anderson  <seanga2@gmail.com>
27551
27552         * malloc/malloc.c: Fix typo in comment.
27553
27554 2014-08-09  Allan McRae  <allan@archlinux.org>
27555
27556         * Regenerate libc.po.
27557
27558 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
27559
27560         * intl/tst-gettext2.sh: Check every lang file for creation.
27561
27562 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27563
27564         * sysdeps/aarch64/fpu/math_private.h
27565         (libc_feholdsetround_noex_aarch64_ctx): New function.
27566
27567 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
27568
27569         * sysdeps/arm/armv6/strcpy.S (strcpy):
27570         Fix performance issue in misaligned cases.
27571
27572 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27573
27574         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
27575         Move definition from termios.h.
27576         (struct termio): Likewise.
27577         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27578         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27579         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27580         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27581         Likewise.
27582         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
27583         Move definition to ioctl-types.h
27584         (struct termio): Likewise.
27585         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
27586         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
27587         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
27588         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
27589         Likewise.
27590
27591 2014-08-05  Richard Henderson  <rth@redhat.com>
27592
27593         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
27594         exceptions.
27595         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
27596         Add fraiseexcpt.
27597         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
27598         Use __feraiseexcept.
27599         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
27600         Protect libm symbols with IS_IN_libm.
27601
27602         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
27603
27604 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
27605
27606         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
27607
27608 2014-08-04  Will Newton  <will.newton@linaro.org>
27609
27610         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
27611         file.
27612
27613 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
27614
27615         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
27616         variants for each function.
27617
27618 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27619
27620         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
27621         appended ...
27622         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
27623         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
27624         appended ...
27625         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
27626         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
27627         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
27628         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
27629         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
27630         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
27631         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
27632         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
27633         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
27634         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
27635         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
27636         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
27637         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
27638         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
27639         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
27640         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
27641         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
27642         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
27643         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
27644         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
27645         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
27646         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
27647         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
27648         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
27649         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
27650         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
27651         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
27652         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
27653         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
27654         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
27655         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
27656         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
27657         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
27658         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
27659         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
27660         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
27661         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
27662         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
27663         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
27664         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
27665         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
27666         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
27667         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
27668         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
27669         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
27670         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
27671         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
27672         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
27673         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
27674         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
27675         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
27676         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
27677         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
27678         Update #include.
27679         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
27680         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
27681
27682 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27683
27684         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
27685         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
27686         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
27687         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
27688         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
27689         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
27690
27691 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27692
27693         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
27694         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
27695         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
27696         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
27697
27698 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27699
27700         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
27701         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
27702         (__libc_vfork): Define function under this name.
27703         (__vfork): Define as an alias.
27704         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
27705         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
27706
27707 2014-08-04  Roland McGrath  <roland@hack.frob.com>
27708
27709         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
27710         that was previously under [RESET_PID].
27711         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
27712
27713 2014-08-04  Andreas Schwab  <schwab@suse.de>
27714
27715         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
27716
27717 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
27718
27719         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
27720         (main): Likewise.
27721
27722 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27723
27724         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
27725
27726 2014-08-01  Richard Henderon  <rth@redhat.com>
27727
27728         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
27729         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
27730         typo in exact zero test.
27731         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27732         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27733         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27734
27735 2014-08-01  Roland McGrath  <roland@hack.frob.com>
27736
27737         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
27738         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
27739         * sysdeps/arm/sysdep.h: ... here.
27740         [!__ASSEMBLER__]: Include <stdint.h>.
27741
27742 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
27743
27744         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
27745         (HAVE_WCTYPE_H): Likewise.
27746         (HAVE_ISWCTYPE): Likewise.
27747         (ENABLE_NLS): Likewise.
27748         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
27749         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
27750
27751         * posix/regex_internal.c: Check if DEBUG is defined and is
27752         set.
27753
27754         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
27755         (HAVE_MBSRTOWCS): Likewise.
27756         * posix/fnmatch.c: Include string.h unconditionally.
27757
27758 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
27759
27760         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
27761         reversal.
27762
27763 2014-07-31  Roland McGrath  <roland@hack.frob.com>
27764
27765         * sysdeps/generic/safe-fatal.h: New file.
27766         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
27767         * nptl/forward.c: Include it.
27768         (__pthread_unwind): Use __safe_fatal as default action, rather
27769         than a bogus use of INTERNAL_SYSCALL that could never work.
27770
27771         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
27772         * configure.ac (libc_cv_builtin_trap): New test.
27773         * configure: Regenerated.
27774         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
27775         (ABORT_INSTRUCTION): Define using __builtin_trap.
27776
27777         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
27778         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
27779         * sysdeps/nptl/nptl-signals.h: New file.
27780         * nptl/pthreadP.h: Include <nptl-signals.h>.
27781
27782 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27783
27784         * sysdeps/s390/s390-64/utf16-utf32-z9.c
27785         (ONE_DIRECTION): Define.
27786         * sysdeps/s390/s390-64/utf8-utf16-z9.c
27787         (ONE_DIRECTION): Define.
27788         * sysdeps/s390/s390-64/utf8-utf32-z9.c
27789         (ONE_DIRECTION): Define.
27790
27791 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
27792
27793         * sysdeps/s390/Makefile: Delete file.
27794         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
27795         * sysdeps/s390/__longjmp.c: Delete file.
27796         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
27797         Remove fields __flags and __reserved.
27798         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
27799         and add versioning.
27800         * sysdeps/s390/rtld-__longjmp.c: Delete file.
27801         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
27802         * sysdeps/s390/rtld-setjmp.S: Likewise.
27803         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
27804         * sysdeps/s390/s390-32/__longjmp.c: ... here.
27805         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
27806         * sysdeps/s390/s390-32/setjmp.S: ... here.
27807         Add versioning.
27808         (__sigsetjmp): Remove setting __flags field.
27809         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
27810         * sysdeps/s390/s390-64/__longjmp.c: ... here.
27811         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
27812         * sysdeps/s390/s390-64/setjmp.S: ... here.
27813         Add versioning.
27814         (__sigsetjmp): Remove setting __flags field.
27815         * sysdeps/s390/setjmp.S: Delete file.
27816         * sysdeps/s390/sigjmp.c: Likewise.
27817         * sysdeps/s390/v1-longjmp.c: Likewise.
27818         * sysdeps/s390/v1-setjmp.h: Likewise.
27819         * sysdeps/s390/v1-sigjmp.c: Likewise.
27820         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
27821         Remove v1-longjmp_chk.
27822         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
27823         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
27824         Include debug/longjmp_chk.c and add versioning.
27825         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
27826         Include nptl/pt-longjmp.c and add versioning.
27827         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
27828         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
27829         Include __longjmp.c.
27830         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
27831         Move to ...
27832         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
27833         (__getcontext): Remove setting __flags field.
27834         Add versioning.
27835         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
27836         Don't restore upper high grps.
27837         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
27838         Likewise.
27839         (__swapcontext): Remove setting uc_flags field.
27840         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
27841         Delete file.
27842         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
27843         Include __longjmp.c.
27844         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
27845         Move to ...
27846         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
27847         (__getcontext): Remove setting __flags field.
27848         Add versioning.
27849         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
27850         (__swapcontext): Remove setting uc_flags field.
27851         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
27852         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
27853         Remove fields uc_high_gprs and __reserved.
27854         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
27855         New file with reverted content.
27856         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
27857         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
27858         Regenerated.
27859         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
27860         Regenerated.
27861
27862 2014-07-31  Andreas Schwab  <schwab@suse.de>
27863
27864         * config.h.in (HAVE_IFUNC): Define to 0.
27865         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
27866         definedness.
27867
27868 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
27869
27870         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27871         memmove-avx-unaligned, memcpy-avx-unaligned and
27872         mempcpy-avx-unaligned.
27873         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27874         Add tests for AVX memcpy functions.
27875         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
27876         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
27877         memcpy_chk.
27878         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
27879         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
27880         memmove_chk.
27881         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
27882         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
27883         mempcpy_chk.
27884         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
27885         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
27886         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
27887
27888 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27889
27890         [BZ #17213]
27891         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
27892         powerpc64le.
27893
27894 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
27895
27896         [BZ #16839]
27897         * manual/llio.texi: Add section about open file description locks.
27898         * manual/examples/ofdlocks.c: Example of open file description
27899         lock usage.
27900         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
27901         F_OFD_SETLK, and F_OFD_SETLKW.
27902
27903 2014-07-23  Allan McRae  <allan@archlinux.org>
27904
27905         * po/es.po: Update Spanish translation from translation project.
27906
27907 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
27908
27909         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
27910
27911 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
27912
27913         [BZ #17078]
27914         * sysdeps/arm/dl-machine.h (elf_machine_rela)
27915         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
27916         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
27917
27918 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
27919
27920         [BZ #17088]
27921         * math/fesetenv.c (__fesetenv)
27922         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
27923         * math/feupdateenv.c (__feupdateenv)
27924         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
27925
27926         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
27927         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
27928         (__ASSUME_SOCKETCALL): Do not define.
27929
27930         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
27931         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
27932         (__ASSUME_SOCKETCALL): Do not define.
27933         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
27934         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
27935         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27936         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
27937         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27938         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
27939         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27940         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27941
27942         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
27943         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
27944         (__ASSUME_SOCKETCALL): Do not define.
27945         (__ASSUME_IPC64): Define unconditionally.
27946         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
27947         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27948         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
27949         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27950         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
27951         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27952         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
27953         Likewise.
27954
27955         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
27956         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
27957         (__ASSUME_SOCKETCALL): Do not define.
27958         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
27959         (__ASSUME_FUTEX_LOCK_PI): Likewise.
27960         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27961         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
27962         (__ASSUME_REQUEUE_PI): Define unconditionally.
27963         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
27964         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
27965         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27966         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
27967         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27968         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27969
27970         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
27971         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
27972         (__ASSUME_SOCKETCALL): Do not define.
27973         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
27974         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27975         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27976         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
27977         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27978         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
27979
27980         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
27981         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
27982         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
27983         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
27984         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
27985         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
27986         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
27987         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
27988         (__ASSUME_GETCPU_SYSCALL): Likewise.
27989
27990         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
27991         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
27992         cases for individual architectures.
27993         * sysdeps/gnu/configure: Regenerated.
27994         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
27995         LIBC_SLIBDIR_RTLDDIR.
27996         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
27997         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
27998         LIBC_SLIBDIR_RTLDDIR.
27999         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
28000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
28001         LIBC_SLIBDIR_RTLDDIR.
28002         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
28003         Regenerated.
28004         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
28005         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
28006         file.
28007         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
28008         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
28009         file.
28010         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
28011         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
28012         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
28013         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
28014
28015         * sysdeps/aarch64/shlib-versions: Move to ...
28016         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
28017         * sysdeps/alpha/shlib-versions: Move to ...
28018         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
28019         * sysdeps/arm/shlib-versions: Move to ...
28020         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
28021         * sysdeps/hppa/shlib-versions: Move all contents except for
28022         libgcc_s entry to ...
28023         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
28024         entry from ...
28025         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
28026         * sysdeps/ia64/shlib-versions: Move to ...
28027         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
28028         entry from ...
28029         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
28030         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
28031         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
28032         * sysdeps/microblaze/shlib-versions: Move to ...
28033         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
28034         * sysdeps/mips/shlib-versions: Move to ...
28035         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
28036         entry from ...
28037         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
28038         * sysdeps/tile/shlib-versions: Move to ...
28039         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
28040         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
28041         from ...
28042         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
28043         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
28044         entry from ...
28045         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
28046
28047 2014-07-17  Will Newton  <will.newton@linaro.org>
28048
28049         * sysdeps/arm/bits/atomic.h
28050         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
28051         (__arch_compare_and_exchange_bool_16_int): Likewise.
28052         (__arch_compare_and_exchange_bool_64_int): Likewise.
28053
28054         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
28055         into an #else block.
28056
28057 2014-07-16  Roland McGrath  <roland@hack.frob.com>
28058
28059         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
28060         just Linux configurations.  Test empirically that the compiler sets
28061         __ARM_EABI__, rather than using the tuple to decide.
28062         * sysdeps/arm/preconfigure: Regenerated.
28063         * sysdeps/unix/sysv/linux/arm/configure: File removed.
28064         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
28065         contents appended ...
28066         * sysdeps/arm/configure.ac: ... here.
28067         * sysdeps/arm/configure: Regenerated.
28068
28069 2014-07-15  Roland McGrath  <roland@hack.frob.com>
28070
28071         * nptl/pthread_kill.c: New file.
28072         * nptl/pthread_sigmask.c: New file.
28073         * nptl/pthread_sigqueue.c: New file.
28074
28075         * sysdeps/nptl/lowlevellock.h: New file.
28076         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
28077         * sysdeps/nptl/lowlevellock-futex.h: New file.
28078
28079         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
28080         Remove dead declarations.
28081
28082 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
28083
28084         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
28085         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
28086         config-cflags-avx2.
28087         * sysdeps/x86_64/configure.ac: Likewise.
28088         * sysdeps/i386/configure: Regenerated.
28089         * sysdeps/x86_64/configure: Likewise.
28090         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28091         memset-avx2 only if config-cflags-avx2 is yes.
28092         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
28093         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
28094         defined.
28095         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
28096         only if HAVE_AVX2_SUPPORT is defined.
28097         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
28098
28099 2014-07-14  Alan Modra  <amodra@gmail.com>
28100
28101         [BZ #17153]
28102         * elf/elf.h (DT_PPC64_NUM): Correct value.
28103         * NEWS: Add to fixed bug list.
28104
28105 2014-07-13  Jim Meyering  <meyering@fb.com>
28106
28107         [BZ 17150]
28108         regex: don't deref NULL upon heap allocation failure
28109         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
28110         failure in one more place.
28111         To trigger the segfault, configure grep -with-included-regex,
28112         build it, and run these commands:
28113         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
28114
28115 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
28116
28117         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
28118
28119 2014-07-11  Richard Henderson  <rth@redhat.com>
28120
28121         * sysdeps/aarch64/libm-test-ulps: Update.
28122
28123 2014-07-10  Florian Weimer  <fweimer@redhat.com>
28124
28125         [BZ #17135]
28126         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
28127         * nptl/allocatestack.c (__nptl_setxid_error): New function.
28128         (__nptl_setxid): Initialize error member.  Call
28129         __nptl_setxid_error.
28130         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
28131         * nptl/descr.h (struct xid_command): Add error member.
28132         * nptl/tst-setuid3.c: New file.
28133         * nptl/Makefile (tests): Add it.
28134
28135 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28136
28137         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
28138         New define.
28139         (__lll_trylock): Use __lll_base_trylock.
28140         (__lll_cond_trylock): Likewise.
28141
28142 2014-07-10  Roland McGrath  <roland@hack.frob.com>
28143
28144         * nptl/pthread_create.c (start_thread): Use atomic_or and
28145         lll_futex_wake directly rather than lll_robust_dead.
28146         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
28147         (lll_robust_dead): Macro removed.
28148         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
28149         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
28150         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
28151         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
28152         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
28153         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
28154         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
28155         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
28156         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
28157         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
28158         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
28159         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
28160         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
28161         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
28162         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
28163
28164         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
28165         Use atomic_compare_and_exchange_val_acq directly rather than
28166         lll_robust_trylock.
28167         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
28168         (__lll_robust_trylock, lll_robust_trylock): Removed.
28169         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
28170         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
28171         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
28172         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
28173         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
28174         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
28175         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
28176         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
28177         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
28178         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
28179         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
28180         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
28181         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
28182         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
28183
28184 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28185
28186         * manual/locale.texi (Locale Names): New section documenting
28187         locale name syntax.  Adjust menu and node chaining accordingly.
28188         (Choosing Locale): Reference Locale Names, Locale Categories.
28189         Mention setting LC_ALL=C.  Reflect that name syntax is now
28190         documented.
28191         (Locale Categories): New section title.  Reference Locale Names.
28192         LC_ALL is an environment variable, but not a category.
28193         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
28194         description, now in Locale Name.  Reference that section.  Locale
28195         name syntax is now documented.
28196
28197 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28198
28199         [BZ #17137]
28200         * locale/findlocale.c (name_present, valid_locale_name): New
28201         functions.
28202         (_nl_find_locale): Use the loc_name variable to store name
28203         candidates.  Call name_present and valid_locale_name to check and
28204         validate locale names.  Return an error if the locale is invalid.
28205
28206 2014-07-02  Florian Weimer  <fweimer@redhat.com>
28207
28208         * locale/setlocale.c (setlocale): Use strdup for allocating
28209         composite name copy.
28210
28211 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
28212
28213         Sync up with gnulib.
28214         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
28215         [!_LIBC && ENABLE_NLS]: Include gettext.h.
28216         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
28217         and _GL_ARG_NONNULL.
28218         [USE_UNLOCKED_IO]: Include unlocked-io.h.
28219         [!_LIBC]: Include code for Windows and Cygwin.
28220         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
28221         Include prototype for int strerror_r.
28222         [!_LIBC] (is_open): New function.
28223         (flush_stdout): New function.
28224         (print_errno_message): Use it.
28225         (error): Likewise.
28226         (error_at_line): Likewise.
28227         (error_tail) Add function attribute macros.  Use
28228         __builtin_expect.
28229
28230         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
28231
28232         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
28233
28234         * io/ftw.c: Include sys/param.h unconditionally.
28235
28236         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
28237
28238         [BZ #17125]
28239         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
28240         libc_freeres_ptr.
28241         (freecache): New function to free CACHE on exit.
28242
28243         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
28244         initialization.
28245
28246 2014-07-09  David S. Miller  <davem@davemloft.net>
28247
28248         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28249
28250         * sysdeps/sparc/nptl/internaltypes.h: Delete.
28251         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
28252         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
28253         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
28254         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
28255         * sysdeps/sparc/nptl/sem_init.c: Likewise.
28256         * sysdeps/sparc/nptl/sem_post.c: Likewise.
28257         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
28258         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
28259         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
28260         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
28261         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
28262         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
28263
28264 2014-07-09  Andreas Schwab  <schwab@suse.de>
28265
28266         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
28267         output.
28268         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
28269         (do_test): Likewise.
28270
28271         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
28272
28273 2014-07-09  Will Newton  <will.newton@linaro.org>
28274
28275         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
28276         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
28277         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
28278         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
28279         * sysdeps/hppa/start.S (_start): Likewise.
28280
28281 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
28282
28283         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
28284
28285         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
28286         defined.
28287
28288 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
28289
28290         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
28291         after checking that it is non-NULL.
28292
28293         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
28294
28295 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28296
28297         * sysdeps/powerpc/memmove.c: Remove file.
28298         * sysdeps/powerpc/powerpc32/power4/memcopy.h
28299         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
28300         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
28301         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
28302         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
28303         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
28304         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
28305         string memmove instead of removed powerpc one.
28306
28307         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
28308         [weak_alias]: Fix compiler warning due trailing data.
28309         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
28310         [weak_alias]: Likewise.
28311         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
28312         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
28313
28314         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
28315         (__libc_ifunc_impl_list): Add memmove functions.
28316
28317 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
28318
28319         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
28320         Remove code.
28321         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
28322         Likewise.
28323         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
28324         Likewise.
28325         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
28326         Likewise.
28327         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
28328         Likewise.
28329         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
28330         Likewise.
28331         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
28332         Likewise.
28333         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
28334         Likewise.
28335         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
28336         Likewise.
28337         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
28338         Likewise.
28339         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
28340         Likewise.
28341         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
28342         Likewise.
28343         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
28344         Likewise.
28345         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
28346         Likewise.
28347         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
28348         Likewise.
28349         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
28350         Likewise.
28351         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
28352         Likewise.
28353
28354 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28355
28356         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
28357         to avoid alignment traps in non-cacheable memory.
28358         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
28359
28360         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
28361         multiarch objects.
28362         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
28363         file: multiarch power7 memmove.
28364         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
28365         multiarch default memmove.
28366         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
28367         multiarch memove for powerpc32/power4.
28368
28369         * string/bcopy.c: Use full path to include memmove.c.
28370         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
28371         multiarch objects.
28372         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
28373         bcopy for powerpc64.
28374         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
28375         bcopy for powerpc64.
28376         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
28377         and memmove implementations.
28378         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
28379         optimized multiarch memmove for POWER7/powerpc64.
28380         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
28381         default multiarch memmove for powerpc64.
28382         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
28383         multiarch for powerpc64.
28384         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
28385         for POWER7/powerpc64.
28386         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
28387         memmove for POWER7/powerpc64.
28388
28389         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
28390         glibc default one.
28391
28392         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
28393         __ELF_NATIVE_CLASS equal to 64.
28394
28395 2014-07-07  Roland McGrath  <roland@hack.frob.com>
28396
28397         * sysdeps/nptl/lowlevellock.h: File removed.
28398
28399         * NEWS: NPTL is no longer an add-on!
28400         * nptl/internaltypes.h: Moved ...
28401         * sysdeps/nptl/internaltypes.h: ... here.
28402         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
28403         * sysdeps/nptl/fork.c: Likewise.
28404         * sysdeps/nptl/gai_misc.h: Likewise.
28405         * sysdeps/nptl/librt-cancellation.c: Likewise.
28406         * sysdeps/nptl/jmp-unwind.c: Likewise.
28407         * sysdeps/nptl/setxid.h: Likewise.
28408         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
28409         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
28410         * sysdeps/unix/sysv/linux/arm/Implies: New file.
28411         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
28412         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
28413         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
28414         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
28415         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
28416         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
28417         * sysdeps/unix/sysv/linux/mips/Implies: New file.
28418         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
28419         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
28420         * sysdeps/unix/sysv/linux/sh/Implies: New file.
28421         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
28422         * sysdeps/unix/sysv/linux/tile/Implies: New file.
28423         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
28424         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
28425         * nptl/Makeconfig: Moved ...
28426         * sysdeps/nptl/Makeconfig: ... here.
28427         * nptl/configure: File removed.
28428         * nptl/ANNOUNCE: File removed.
28429         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
28430         * sysdeps/unix/sysv/linux/configure: Regenerated.
28431
28432         * nptl/Makefile (routines): Add libc_pthread_init,
28433         libc_multiple_threads, register-atfork and unregister-atfork.
28434         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
28435         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
28436         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
28437         pthread-pi-defines.sym, structsem.sym.
28438         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
28439         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
28440         [$(subdir) = nptl] (tests): Add tst-setgetname.
28441         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
28442         * sysdeps/unix/sysv/linux/sigaction.c: Just include
28443         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
28444         [!LIBC_SIGACTION]: Remove aliases.
28445         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
28446         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
28447         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
28448         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
28449         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
28450         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
28451         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
28452         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
28453         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
28454         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
28455         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
28456         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
28457         __libc_allocate_rtsig_private.
28458         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
28459         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
28460         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
28461         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
28462         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
28463         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
28464         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
28465         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
28466         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
28467         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
28468         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
28469         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
28470         * nptl/internaltypes.h: ... here.
28471         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
28472         * sysdeps/nptl/jmp-unwind.c: ... here.
28473         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
28474         * nptl/libc-lowlevellock.c: ... here.
28475         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
28476         * nptl/libc_multiple_threads.c: ... here.
28477         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
28478         * nptl/libc_pthread_init.c: ... here.
28479         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
28480         * nptl/lowlevelbarrier.sym: ... here.
28481         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
28482         * nptl/lowlevelcond.sym: ... here.
28483         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
28484         * nptl/lowlevellock.c: ... here.
28485         * nptl/lowlevellock.h: Moved ...
28486         * sysdeps/nptl/lowlevellock.h: ... here.
28487         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
28488         * nptl/lowlevelrobustlock.c: ... here.
28489         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
28490         * nptl/lowlevelrobustlock.sym: ... here.
28491         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
28492         * nptl/lowlevelrwlock.sym: ... here.
28493         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
28494         * nptl/pt-fork.c: ... here.
28495         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
28496         * nptl/pthread-pi-defines.sym: ... here.
28497         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
28498         * nptl/pthread_attr_getaffinity.c: ... here.
28499         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
28500         * nptl/pthread_attr_setaffinity.c: ... here.
28501         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
28502         * nptl/pthread_mutex_cond_lock.c: ... here.
28503         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
28504         Update #include.
28505         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
28506         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
28507         * nptl/pthread_once.c: ... here, replacing old file.
28508         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
28509         * nptl/pthread_yield.c: ... here.
28510         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
28511         * nptl/register-atfork.c: ... here.
28512         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
28513         * nptl/sem_post.c: ... here.
28514         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
28515         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
28516         * nptl/sem_timedwait.c: ... here.
28517         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
28518         * nptl/sem_trywait.c: ... here.
28519         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
28520         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
28521         * nptl/sem_wait.c: ... here.
28522         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
28523         * nptl/structsem.sym: ... here.
28524         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
28525         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
28526         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
28527         * nptl/unregister-atfork.c: ... here.
28528         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
28529         * nptl/unwindbuf.sym: ... here.
28530         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
28531         * sysdeps/nptl/fork.c: ... here.
28532         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
28533         * sysdeps/nptl/fork.h: ... here.
28534         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
28535         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
28536         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
28537         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
28538         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
28539         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
28540         * sysdeps/unix/sysv/linux/getpid.c: ... here.
28541         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
28542         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
28543         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
28544         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
28545         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
28546         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
28547         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
28548         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
28549         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
28550         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
28551         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
28552         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
28553         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
28554         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
28555         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
28556         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
28557         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
28558         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
28559         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
28560         * sysdeps/unix/sysv/linux/raise.c: ... here.
28561         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
28562         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
28563         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
28564         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
28565         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
28566         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
28567         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
28568         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
28569         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
28570         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
28571         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
28572         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
28573         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
28574         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
28575         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
28576
28577 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
28578
28579         * sysdeps/generic/memcopy.h: Add comment for
28580         MEMCPY_OK_FOR_FWD_MEMMOVE.
28581
28582 2014-07-04  Will Newton  <will.newton@linaro.org>
28583
28584         * string/memchr.c: Merge from gnulib.
28585         [_LIBC]: Remove conditionals.
28586         (__ptr_t): Remove define.
28587         (LONG_MAX_32_BITS): Likewise.
28588         (LONG_MAX): Likewise.
28589         (MEMCHR): Use ANSI prototype and optimize algorithm.
28590
28591         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
28592
28593 2014-07-03  Roland McGrath  <roland@hack.frob.com>
28594
28595         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
28596         (lll_futex_timed_wait_bitset): Fix syscall argument count.
28597
28598         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
28599         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
28600         in a bare environment with no <stdlib.h> installed.
28601         * sysdeps/nptl/configure: Regenerated.
28602
28603         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
28604
28605         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
28606         AC_EGREP_CPP for kernel header checks, so they only succeed if
28607         including <linux/version.h> actually works right.
28608         * sysdeps/unix/sysv/linux/configure: Regenerated.
28609
28610         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
28611         value so it's not diagnosed as unused.
28612
28613         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
28614         thing) with "ifeq ($(subdir),rt)".
28615
28616 2014-07-03  Richard Henderson  <rth@redhat.com>
28617
28618         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
28619         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
28620         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
28621
28622         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
28623         (math_force_eval): New.
28624
28625         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
28626         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
28627
28628         * sysdeps/alpha/fpu/s_round.c: Remove file.
28629         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
28630
28631         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
28632         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
28633         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
28634         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
28635         (_dl_start, print_statistics): Likewise.
28636         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
28637         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
28638
28639         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28640         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28641         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28642         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28643         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28644         (HP_SMALL_TIMING_AVAIL): Define.
28645         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28646         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28647         (HP_SMALL_TIMING_AVAIL): Define.
28648         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28649         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28650
28651         * sysdeps/aarch64/hp-timing.h: New file.
28652
28653         * sysdeps/generic/hp-timing.h: Remove dead comment.
28654         * sysdeps/generic/hp-timing-common.h: New file.
28655         * sysdeps/alpha/hp-timing.h: Include it.
28656         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
28657         * sysdeps/i386/i686/hp-timing.h: Likewise.
28658         * sysdeps/ia64/hp-timing.h: Likewise.
28659         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
28660         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
28661         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
28662         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
28663         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
28664         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
28665         (hp_timing_t): New.
28666
28667         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
28668         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
28669         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
28670         * elf/rtld.c (_dl_start_final): Likewise.
28671         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
28672         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28673         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28674         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28675         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28676         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28677         (HP_TIMING_DIFF_INIT): Remove.
28678         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28679         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
28680         (HP_TIMING_DIFF_INIT): Remove.
28681         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
28682         * sysdeps/i386/i686/hp-timing.c: Remove file.
28683         * sysdeps/x86_64/hp-timing.c: Remove file.
28684         * sysdeps/ia64/hp-timing.c: Remove file.
28685         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
28686         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
28687         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
28688         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
28689
28690         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
28691         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
28692         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
28693         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28694         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
28695         (HP_TIMING_ACCUM): Remove.
28696         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28697         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
28698         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
28699
28700         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
28701         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
28702         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
28703         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
28704         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
28705         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28706         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
28707         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
28708
28709         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
28710
28711 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
28712
28713         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
28714
28715 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28716
28717         Sync up with gettext.
28718         * intl/loadmsgcat.c: Define O_BINARY if not defined.
28719         [_MSC_VER]: Include malloc.h
28720         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
28721         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
28722         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
28723         TEMP_FAILURE_RETRY.  Cast return of alloca.
28724         [!_LIBC] Call gl_rwlock_init.
28725         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
28726
28727 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28728
28729         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
28730         before checking its value.
28731
28732 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28733
28734         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
28735
28736         * debug/memcpy_chk.c: Don't include pagecopy.h.
28737         * debug/mempcpy_chk.c: Likewise.
28738         * string/memcpy.c: Likewise.
28739         * string/memmove.c: Likewise.
28740         * sysdeps/powerpc/memmove.c: Likewise.
28741         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
28742         definition of PAGE_COPY_FWD_MAYBE here...
28743         * sysdeps/generic/pagecopy.h: ... from here.
28744         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
28745
28746 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
28747             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28748
28749         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
28750         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
28751         optimizations.
28752         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
28753         (__libc_ifunc_impl_list): Likewise.
28754         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
28755         multiarch strcat for PPC64.
28756         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
28757         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
28758
28759 2014-07-02  Roland McGrath  <roland@hack.frob.com>
28760
28761         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
28762
28763 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28764
28765         * intl/loadmsgcat.c: Remove declaration of
28766         get_sysdep_segment_value.
28767         (get_sysdep_segment_value): Use ISO C style.
28768         (_nl_load_domain): Use ISO C style.  Get rid of redundant
28769         semicolon.  Fix typo and formatting in comment.
28770         (_nl_unload_domain): Use ISO C style.
28771
28772         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
28773
28774 2014-07-02  Will Newton  <will.newton@linaro.org>
28775
28776         * malloc/obstack.c: Merge from gnulib master.
28777         [HAVE_CONFIG_H]: Remove conditional code.
28778         [!_LIBC]: Include config.h.
28779         [!ELIDE_CODE]: Don't include inttypes.h, include
28780         stdint.h unconditionally.
28781         (print_and_abort): Mark as _Noreturn.
28782         (_obstack_allocated_p): Mark as __attribute_pure__.
28783         (obstack_free): Rename to __obstack_free.
28784         [!__attribute__]: Remove conditional code.
28785         * malloc/obstack.h: Merge from gnulib master.
28786         [__cplusplus]: Move conditional down.
28787         [!__attribute_pure__]: Define __attribute_pure__ here
28788         if it is not already defined.
28789         (_obstack_memory_used): Mark as __attribute_pure__.
28790         [!__obstack_free]: Define as obstack_free.
28791         [__GNUC__]: Remove check for ancient NeXT gcc.
28792
28793 2014-07-02  Will Newton  <will.newton@linaro.org>
28794             Paul Eggert  <eggert@cs.ucla.edu>
28795
28796         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
28797
28798 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
28799
28800         * resolv/gethnamaddr.c: Add comment warning that the file is
28801         not maintained.
28802
28803 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
28804
28805         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
28806         entries.
28807
28808         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
28809         entry for aio_cancel and aio_cancel64.
28810         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
28811         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
28812         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
28813         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
28814         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
28815         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
28816         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
28817         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
28818         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
28819         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
28820         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
28821         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
28822         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
28823
28824 2014-07-01  Roland McGrath  <roland@hack.frob.com>
28825
28826         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
28827         * nptl/pthread_mutex_lock.c: Likewise.
28828         * nptl/pthread_mutex_timedlock.c: Likewise.
28829         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
28830
28831 2014-07-01  Richard henderson  <rth@redhat.com>
28832
28833         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
28834         (__isnan, __isnanl): Remove.
28835         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
28836
28837         * sysdeps/alpha/fpu/libm-test-ulps: Update.
28838
28839 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
28840
28841         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
28842
28843 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28844
28845         * resolv/nss_dns/dns-host.c (getanswer_r)
28846         [MULTI_PTRS_ARE_ALIASES]: Remove code.
28847
28848 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
28849
28850         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
28851         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
28852         undefine.
28853         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
28854         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
28855
28856 2014-07-01  Roland McGrath <roland@hack.frob.com>
28857
28858         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
28859         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
28860
28861         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
28862         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
28863
28864         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
28865         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
28866         ... here.
28867         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
28868         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
28869
28870         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
28871         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
28872         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
28873         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
28874
28875         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
28876         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
28877         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
28878         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
28879         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
28880         Moved ...
28881         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
28882         ... here.
28883         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
28884         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
28885         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
28886         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
28887         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
28888         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
28889         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
28890         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
28891         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
28892         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
28893         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
28894         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
28895         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
28896         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
28897         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
28898         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
28899         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
28900         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
28901         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
28902         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
28903         ... here.
28904         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
28905         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
28906         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
28907         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
28908         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
28909         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
28910         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
28911         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
28912
28913 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
28914
28915         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
28916         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
28917         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
28918         Add sysdep.
28919
28920 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28921
28922         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
28923
28924 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28925
28926         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
28927         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
28928
28929         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
28930
28931         * sysdeps/arm/libm-test-ulps: Regenerated.
28932
28933 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
28934             Roland McGrath <roland@hack.frob.com>
28935
28936         * test-skeleton.c (signal_handler): Kill the whole process group
28937         before killing the child individually.
28938         (main): Report any failure on `setpgid'.
28939
28940 2014-06-30  Roland McGrath  <roland@hack.frob.com>
28941
28942         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
28943         from _TLS_H to _ARM_NPTL_TLS_H.
28944         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
28945         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
28946
28947 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
28948
28949         [BZ #16539]
28950         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
28951         (__expm1l): Return argument unchanged when small but not
28952         subnormal.
28953
28954         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
28955         include macro name.
28956         (_FP_UNPACK_RAW_1_P): Likewise.
28957         (_FP_PACK_RAW_1): Likewise.
28958         (_FP_PACK_RAW_1_P): Likewise.
28959         (_FP_MUL_MEAT_1_wide): Likewise.
28960         (_FP_MUL_MEAT_DW_1_hard): Likewise.
28961         (_FP_MUL_MEAT_1_hard): Likewise.
28962         (_FP_DIV_MEAT_1_imm): Likewise.
28963         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
28964         (_FP_DIV_MEAT_1_udiv): Likewise.
28965         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
28966         (_FP_UNPACK_RAW_2): Likewise.
28967         (_FP_UNPACK_RAW_2_P): Likewise.
28968         (_FP_PACK_RAW_2): Likewise.
28969         (_FP_PACK_RAW_2_P): Likewise.
28970         (_FP_MUL_MEAT_DW_2_wide): Likewise.
28971         (_FP_MUL_MEAT_2_wide): Likewise.
28972         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
28973         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
28974         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
28975         (_FP_MUL_MEAT_2_gmp): Likewise.
28976         (_FP_DIV_MEAT_2_udiv): Likewise.
28977         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
28978         (_FP_FRAC_SRL_4): Likewise.
28979         (_FP_FRAC_SRST_4): Likewise.
28980         (_FP_FRAC_SRS_4): Likewise.
28981         (_FP_UNPACK_RAW_4): Likewise.
28982         (_FP_UNPACK_RAW_4_P): Likewise.
28983         (_FP_PACK_RAW_4): Likewise.
28984         (_FP_PACK_RAW_4_P): Likewise.
28985         (_FP_MUL_MEAT_DW_4_wide): Likewise.
28986         (_FP_MUL_MEAT_4_wide): Likewise.
28987         (_FP_MUL_MEAT_4_gmp): Likewise.
28988         (umul_ppppmnnn): Likewise.
28989         (_FP_DIV_MEAT_4_udiv): Likewise.
28990         (__FP_FRAC_ADD_4): Likewise.
28991         (__FP_FRAC_SUB_3): Likewise.
28992         (__FP_FRAC_SUB_4): Likewise.
28993         (__FP_FRAC_DEC_3): Likewise.
28994         (__FP_FRAC_DEC_4): Likewise.
28995         (__FP_FRAC_ADDI_4): Likewise.
28996         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
28997         (_FP_FRAC_SRL_8): Likewise.
28998         (_FP_FRAC_SRS_8): Likewise.
28999
29000         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
29001         include macro name.
29002         (FP_UNPACK_RAW_EP): Likewise.
29003         (FP_PACK_RAW_E): Likewise.
29004         (FP_PACK_RAW_EP): Likewise.
29005         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
29006         (_FP_ISSIGNAN): Likewise.
29007         (_FP_ADD_INTERNAL): Likewise.
29008         (_FP_FMA): Likewise.
29009         (_FP_CMP): Likewise.
29010         (_FP_SQRT): Likewise.
29011         (_FP_TO_INT): Likewise.
29012         (_FP_FROM_INT): Likewise.
29013         (FP_EXTEND): Likewise.
29014         (_FP_DIV_MEAT_N_loop): Likewise.
29015
29016 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
29017
29018         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
29019         throughout.
29020
29021 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
29022
29023         [BZ #17097]
29024         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
29025         result with correct sign in case of exponents that produce
29026         overflow except for X very close to 1.
29027
29028 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
29029
29030         mktime: merge #if/#ifdef usage from glibc
29031         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
29032         as that works with both Glibc's and Gnulib's style.
29033         See thread starting at Siddhesh Poyarekar's bug report at:
29034         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
29035
29036 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
29037
29038         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
29039         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
29040         * sysdeps/tile/tilegx/memmove.c: Remove file.
29041
29042 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
29043
29044         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
29045         abi-name definition.
29046         * scripts/soversions.awk: Do not handle or generate ABI lines.
29047         * shlib-versions: Remove ABI entries.
29048         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
29049         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
29050
29051 2014-06-27  Roland McGrath  <roland@hack.frob.com>
29052
29053         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
29054         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
29055         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
29056         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
29057         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
29058         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
29059         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
29060         Moved ...
29061         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
29062         ... here.
29063         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
29064         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
29065         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
29066         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
29067         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
29068         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
29069         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
29070         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
29071         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
29072         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
29073         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
29074         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
29075         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
29076         Moved ...
29077         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
29078         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
29079         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
29080         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
29081         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
29082         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
29083         Moved ...
29084         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
29085         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
29086         Moved ...
29087         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
29088         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
29089         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
29090         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
29091         Moved ...
29092         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
29093         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
29094         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
29095         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
29096         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
29097         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
29098         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
29099         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
29100         Moved ...
29101         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
29102         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
29103         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
29104         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
29105         Moved ...
29106         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
29107         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
29108         Moved ...
29109         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
29110         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
29111         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
29112         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
29113         Moved ...
29114         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
29115         ... here.
29116         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
29117         Identical file removed.
29118         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
29119         Moved ...
29120         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
29121         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
29122         Identical file removed.
29123         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
29124         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
29125         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
29126         Moved ...
29127         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
29128         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
29129         Identical file removed.
29130         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
29131         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
29132         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
29133         Identical file removed.
29134         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
29135         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
29136         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
29137         Identical file removed.
29138         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
29139         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
29140         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
29141         Identical file removed.
29142         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
29143         Moved ...
29144         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
29145         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
29146         Identical file removed.
29147         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
29148         Moved ...
29149         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
29150         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
29151         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
29152         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
29153         Identical file removed.
29154         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
29155         Moved ...
29156         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
29157         ... here.
29158         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
29159         Identical file removed.
29160         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
29161         Moved ...
29162         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
29163         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
29164         Identical file removed.
29165         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
29166         Moved ...
29167         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
29168         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
29169         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
29170         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
29171         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
29172         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
29173         Moved ...
29174         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
29175         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
29176         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
29177
29178         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
29179         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
29180         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
29181         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
29182         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
29183
29184 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
29185
29186         [BZ #17092]
29187         * nscd/nscd.c (monitor_child): Return exit status of child
29188         instead of return value from wait syscall.
29189
29190 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
29191
29192         * configure.ac (libc_commonpagesize): Remove variable.
29193         (libc_relro_required): Likewise.
29194         (libc_cv_z_relro): Remove configure test.
29195         * configure: Regenerated.
29196         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
29197         variable.
29198         (libc_relro_required): Likewise.
29199         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
29200         (libc_relro_required): Likewise.
29201         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
29202         (libc_relro_required): Likewise.
29203         * sysdeps/arm/preconfigure: Regenerated.
29204         * sysdeps/ia64/preconfigure: Remove file.
29205         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
29206         variable.
29207         (libc_relro_required): Likewise.
29208
29209         [BZ #16561]
29210         [BZ #16562]
29211         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
29212         (__ieee754_yn): Set FE_TONEAREST mode internally and then
29213         recompute overflowing results in original rounding mode.
29214         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
29215         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
29216         recompute overflowing results in original rounding mode.
29217         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
29218         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29219         recompute overflowing results in original rounding mode.
29220         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
29221         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29222         recompute overflowing results in original rounding mode.
29223         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
29224         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
29225         recompute overflowing results in original rounding mode.
29226         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
29227         (libc_feholdsetround_ctx): New macro.
29228         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
29229         * sysdeps/i386/fpu/libm-test-ulps: Update.
29230         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
29231
29232 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29233
29234         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
29235         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
29236         corresponding .cpsetup call.
29237
29238 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29239
29240         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
29241         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
29242         * sysdeps/arm/Makefile [$(subdir) = csu]
29243         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
29244         (static-only-routines): Add aeabi_read_tp here.
29245         (shared-only-routines): Add libc-aeabi_read_tp here.
29246         (CFLAGS-libc-start.c): Add -fexceptions here.
29247         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
29248         (sysdep_routines, static-only-routines, shared-only-routines):
29249         Don't add to these here.
29250         (CFLAGS-libc-start.c): Likewise.
29251
29252         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
29253         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
29254         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
29255         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
29256         * sysdeps/arm/Makefile [$(subdir) = rt]
29257         (librt-sysdep_routines, librt-shared-only-routines):
29258         Append rt-aeabi_unwind_cpp_pr1 here.
29259         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
29260         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
29261         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
29262         (libpthread-sysdep_routines, libpthread-shared-only-routines):
29263         Append nptl-aeabi_unwind_cpp_pr1 here.
29264         (tests): Filter out tst-cleanupx4 here.
29265         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
29266         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
29267         Don't do those here.
29268
29269 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29270
29271         * scripts/list-sources.sh: Do not handle ports specially.
29272
29273 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29274
29275         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
29276         * sysdeps/arm/feupdateenv.c: Likewise.
29277
29278         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
29279
29280 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29281
29282         * manual/texinfo.tex: Update to version 2014-05-05.10 with
29283         trailing whitespace removed.
29284         * scripts/config.guess: Update to version 2014-03-23.
29285         * scripts/config.sub: Update to version 2014-05-01
29286         * scripts/install-sh: Update to version 2013-12-25.23.
29287         * scripts/move-if-change: Update from gnulib.
29288
29289 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29290
29291         * debug/memmove_chk.c: Remove pagecopy.h include.
29292
29293 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
29294
29295         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
29296         identical to gnulib mktime.
29297
29298 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
29299
29300         * configure.ac: Do not test for machine being rs6000.  Do not test
29301         for powerpc*-*soft.
29302         * configure: Regenerated.
29303
29304         [BZ #11505]
29305         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
29306         test.
29307         * configure: Regenerated.
29308         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
29309         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
29310         Remove configure test.
29311         * sysdeps/arm/configure: Regenerated.
29312         * sysdeps/nptl/configure.ac: Do not check
29313         libc_cv_asm_cfi_directives.
29314         * sysdeps/nptl/configure: Regenerated.
29315         * sysdeps/x86_64/nptl/configure.ac: Remove file.
29316         * sysdeps/x86_64/nptl/configure: Remove generated file.
29317         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
29318         unconditional.
29319         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
29320
29321 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
29322
29323         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
29324         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
29325         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
29326         it is defined.
29327
29328         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
29329         instead of whether it is defined.
29330         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
29331         * sysdeps/hppa/dl-machine.h: Likewise.
29332         * sysdeps/ia64/dl-machine.h: Likewise.
29333         * sysdeps/m68k/dl-machine.h: Likewise.
29334         * sysdeps/microblaze/dl-machine.h: Likewise.
29335         * sysdeps/mips/dl-machine.: Likewise.
29336         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
29337         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
29338         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
29339         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
29340         * sysdeps/sh/dl-machine.h: Likewise.
29341         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
29342         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
29343         * sysdeps/tile/dl-machine.h: Likewise.
29344         * sysdeps/x86_64/dl-machine.h: Likewise.
29345
29346         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
29347         code.
29348         (verify_persistent_db): Likewise.
29349
29350 2014-06-26  Roland McGrath  <roland@hack.frob.com>
29351
29352         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
29353         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
29354         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
29355         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
29356         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
29357         Moved ...
29358         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
29359         ... here.
29360         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
29361         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
29362         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
29363         Identical file removed.
29364         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
29365         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
29366         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
29367         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
29368         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
29369         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
29370         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
29371         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
29372         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
29373         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
29374         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
29375         Moved ...
29376         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
29377         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
29378         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
29379         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
29380         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
29381         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
29382         Moved ...
29383         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
29384         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
29385         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
29386         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
29387         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
29388         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
29389         Identical file removed.
29390         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
29391         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
29392         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
29393         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
29394         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
29395         Moved ...
29396         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
29397         ... here.
29398         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
29399         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
29400         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
29401         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
29402         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
29403         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
29404         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
29405         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
29406         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
29407         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
29408         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
29409         Moved ...
29410         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
29411         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
29412         Moved ...
29413         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
29414         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
29415         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
29416         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
29417         Moved ...
29418         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
29419         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
29420         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
29421
29422         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
29423         folded into ...
29424         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
29425         * sysdeps/unix/sysv/linux/s390/Versions
29426         (libpthread: GLIBC_2.19): New version set.
29427         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
29428         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
29429         (librt: GLIBC_2.3.3): New version set.
29430         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
29431         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
29432         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
29433         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
29434         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
29435         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
29436         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
29437         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
29438         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
29439         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
29440         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
29441         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
29442         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
29443         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
29444         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
29445         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
29446         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
29447         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
29448         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
29449         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
29450         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
29451         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
29452         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
29453         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
29454         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
29455         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
29456         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
29457         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
29458         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
29459         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
29460         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
29461         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
29462         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
29463         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
29464         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
29465         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
29466         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
29467         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
29468         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
29469         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
29470         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
29471         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
29472         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
29473         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
29474         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
29475
29476         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
29477         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
29478         (__libc_vfork): Define the function under this name.
29479         [!NOT_IN_libc] (__vfork): Make this an alias.
29480         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29481         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
29482         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
29483         (__libc_vfork): Define the function under this name.
29484         [!NOT_IN_libc] (__vfork): Make this an alias.
29485         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
29486         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
29487         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
29488         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
29489         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
29490         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
29491
29492         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
29493         code that was previously under [RESET_PID].
29494         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
29495         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
29496         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
29497
29498         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
29499         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
29500         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
29501         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
29502         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
29503         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
29504         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
29505         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
29506         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
29507         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
29508         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
29509         Moved ...
29510         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
29511         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
29512         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
29513         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
29514         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
29515         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
29516         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
29517         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
29518         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
29519         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
29520         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
29521         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
29522         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
29523         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
29524         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
29525         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
29526         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
29527         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
29528         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
29529         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
29530         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
29531         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
29532         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
29533         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
29534         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
29535         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
29536         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
29537         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
29538         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
29539
29540 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29541
29542         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
29543         that was previously under [RESET_PID].
29544         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
29545
29546 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29547
29548         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
29549         not undefine and redefine.
29550         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
29551         [O_CLOEXEC]: Make code unconditional.
29552         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
29553         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
29554         <kernel-features.h>.
29555         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
29556         conditional variable definition.
29557         (shm_open) [O_CLOEXEC]: Make code unconditional.
29558         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
29559         code.
29560
29561         * configure.ac (USE_REGPARMS): Don't define here.
29562         * configure: Regenerated.
29563         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
29564         * sysdeps/i386/configure: Regenerated.
29565
29566         * nptl/createthread.c: Don't include kernel-features.h.
29567         * nptl/pthread_cancel.c: Likewise.
29568         * nptl/pthread_condattr_setclock.c: Likewise.
29569         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
29570         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
29571         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
29572         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
29573         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
29574         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
29575         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
29576         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
29577         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
29578         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
29579         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
29580         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
29581         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
29582         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
29583         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
29584         * nscd/gai.c: Likewise.
29585         * nss/nss_db/db-open.c: Likewise.
29586         * sysdeps/generic/ldsodefs.h: Likewise.
29587         * sysdeps/sh/nptl/tls.h: Likewise.
29588         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
29589         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
29590         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
29591         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
29592         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
29593         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
29594         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
29595         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
29596         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
29597         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
29598         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
29599         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
29600         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
29601         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
29602         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
29603         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
29604         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
29605         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
29606         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
29607         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
29608         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
29609         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
29610         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
29611         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
29612         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
29613         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
29614         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
29615         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
29616         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
29617         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
29618         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
29619         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
29620         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
29621         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
29622         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
29623         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
29624         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
29625         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
29626         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
29627         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
29628         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
29629         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
29630         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
29631         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
29632         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
29633         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
29634         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
29635         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
29636         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
29637         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
29638         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
29639         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
29640         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
29641         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
29642         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
29643         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
29644         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
29645         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
29646         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
29647         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
29648         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
29649         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
29650         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
29651         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
29652         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
29653         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
29654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
29655         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
29656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
29657         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
29658         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
29659         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
29660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
29661         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
29662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
29663         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
29664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
29665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
29666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
29667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
29668         * sysdeps/unix/sysv/linux/pread.c: Likewise.
29669         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
29670         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
29671         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
29672         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
29673         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
29674         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
29675         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
29676         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
29677         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
29678         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
29679         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
29680         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
29681         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
29682         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
29683         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
29684         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
29685         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
29686         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
29687         * sysdeps/unix/sysv/linux/system.c: Likewise.
29688         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
29689         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
29690         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
29691         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
29692         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
29693         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
29694         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
29695
29696         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
29697         * configure: Regenerated.
29698         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
29699
29700         * configure.ac (base_machine): Do not set specially for particular
29701         machines here.
29702         * configure: Regenerated.
29703         * sysdeps/powerpc/preconfigure: Move machine and base_machine
29704         settings from configure.ac.
29705         * sysdeps/i386/preconfigure: New file.
29706         * sysdeps/s390/preconfigure: Likewise.
29707         * sysdeps/sh/preconfigure: Likewise.
29708         * sysdeps/sparc/preconfigure: Likewise.
29709
29710 2014-06-25  Roland McGrath  <roland@hack.frob.com>
29711
29712         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
29713         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
29714         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
29715         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
29716         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
29717         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
29718         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
29719         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
29720         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
29721         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
29722         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
29723         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
29724         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
29725         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
29726         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
29727         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
29728         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
29729         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
29730         * sysdeps/sparc/sparc64/Makefile: ... appended here.
29731
29732         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
29733         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
29734         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
29735         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
29736         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
29737         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
29738         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
29739         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
29740         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
29741         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
29742         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
29743         * sysdeps/sparc/sparc32/sem_post.c: ... here.
29744         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
29745         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
29746         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
29747         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
29748         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
29749         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
29750         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
29751         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
29752         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
29753         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
29754         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
29755         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
29756         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
29757         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
29758         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
29759         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
29760         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
29761         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
29762         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
29763         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
29764         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
29765         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
29766         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
29767         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
29768         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
29769         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
29770
29771         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
29772         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
29773         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
29774         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
29775         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
29776         Moved ...
29777         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
29778         ... here.
29779         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
29780         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
29781         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
29782         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
29783         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
29784         Moved ...
29785         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
29786         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
29787         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
29788         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
29789         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
29790         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
29791         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
29792         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
29793         Moved ...
29794         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
29795         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
29796         Moved ...
29797         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
29798         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
29799         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
29800         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
29801         Moved ...
29802         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
29803         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
29804         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
29805         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
29806         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
29807         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
29808         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
29809         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
29810         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
29811         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
29812         Moved ...
29813         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
29814         ... here.
29815         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
29816         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
29817         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
29818         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
29819         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
29820         Moved ...
29821         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
29822         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
29823         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
29824         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
29825         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
29826         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
29827         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
29828         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
29829         Moved ...
29830         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
29831         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
29832         Moved ...
29833         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
29834         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
29835         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
29836         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
29837         Moved ...
29838         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
29839         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
29840         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
29841         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
29842         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
29843
29844 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29845
29846         * timezone/checktab.awk: Update from tzcode 2014e.
29847         * timezone/private.h: Likewise.
29848         * timezone/tzfile.h: Likewise.
29849         * timezone/zdump.c: Likewise.
29850         * timezone/zic.c: Likewise.
29851
29852         * sysdeps/unix/sysv/linux/kernel-features.h
29853         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
29854         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
29855         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
29856         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
29857         Remove conditional code.
29858
29859 2014-06-25  Will Newton  <will.newton@linaro.org>
29860
29861         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
29862         (_dl_arm_cap_flags): Add HWCAP2 values.
29863         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
29864         (_DL_HWCAP_COUNT): Increase to 37.
29865         (_DL_HWCAP_LAST): New define.
29866         (_DL_HWCAP2_LAST): New define.
29867         (_dl_procinfo): Add support for printing
29868         AT_HWCAP2 entries.
29869         (_dl_string_hwcap): Use _dl_hwcap_string.
29870
29871 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29872
29873         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29874
29875 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
29876
29877         * README: Do not mention ports directory.
29878
29879         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
29880         Remove macro.
29881         * sysdeps/unix/sysv/linux/futimes.c: Do not include
29882         <kernel-features.h>.
29883         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
29884         conditional variable definition.
29885         (__futimes): Update comment.
29886         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
29887         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
29888
29889         [BZ #16560]
29890         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
29891         arguments close to 0.
29892         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
29893         Likewise.
29894         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
29895         Likewise.
29896         * math/auto-libm-test-in: Add more tests of exp10.
29897         * math/auto-libm-test-out: Regenerated.
29898         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29899
29900         * sysdeps/unix/sysv/linux/kernel-features.h
29901         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
29902         * sysdeps/unix/sysv/linux/readv.c: Do not include
29903         <kernel-features.h>.
29904         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29905         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29906         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29907         unconditional.
29908         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29909         conditional code.
29910         * sysdeps/unix/sysv/linux/writev.c: Do not include
29911         <kernel-features.h>.
29912         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
29913         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
29914         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
29915         unconditional.
29916         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
29917         conditional code.
29918
29919 2014-06-25  Will Newton  <will.newton@linaro.org>
29920
29921         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
29922         comment changes throughout the file.  Remove checks
29923         for HAVE_*_H definitions that are not required.
29924         (__gen_tempname): Call abort if an unknown kind value is
29925         passed.
29926
29927 2014-06-25  Andreas Schwab  <schwab@suse.de>
29928
29929         [BZ #17086]
29930         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
29931         scalbln, scalblnf, scalblnl in libc.
29932
29933 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
29934
29935         [BZ #17086]
29936         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
29937         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
29938         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
29939
29940 2014-06-24  Roland McGrath  <roland@hack.frob.com>
29941
29942         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
29943         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
29944         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
29945         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
29946         Update #include.
29947         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
29948         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
29949         Update #include.
29950         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
29951         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
29952         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
29953         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
29954         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
29955         * sysdeps/x86/bits/pthreadtypes.h: ... here.
29956         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
29957         * sysdeps/x86/bits/semaphore.h: ... here.
29958         * sysdeps/x86/nptl/elide.h: Moved ...
29959         * sysdeps/x86/elide.h: ... here.
29960         * sysdeps/x86_64/nptl/Implies: File removed.
29961         * sysdeps/i386/nptl/Implies: File removed.
29962
29963 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
29964
29965         [BZ #16539]
29966         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
29967         return the argument for normal arguments with exponent below -64.
29968         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
29969         Likewise.
29970         * math/auto-libm-test-in: Add another test of expm1.
29971         * math/auto-libm-test-out: Regenerated.
29972
29973         [BZ #16287]
29974         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
29975         calling __erfcl for arguments at least 16.
29976         * math/auto-libm-test-in: Add more tests of erf.
29977         * math/auto-libm-test-out: Regenerated.
29978
29979         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
29980         individual architectures.
29981         * sysdeps/unix/sysv/linux/configure: Regenerated.
29982         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
29983         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
29984         * sysdeps/unix/sysv/linux/powerpc/configure.ac
29985         (ldd_rewrite_script): Define variable.
29986         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
29987         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
29988         file.
29989         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
29990         generated file.
29991         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
29992         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
29993         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
29994         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
29995         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
29996         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
29997         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
29998         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
29999
30000 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30001
30002         [BZ #17084]
30003         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
30004         Rename member __data.d to __data.__elision_data.
30005
30006 2014-06-24  Wilco  <wdijkstr@arm.com>
30007
30008         * NEWS: Add 16918 to fixed bug list.
30009
30010 2014-06-24  Wilco  <wdijkstr@arm.com>
30011
30012         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
30013
30014 2014-06-24  Wilco  <wdijkstr@arm.com>
30015
30016         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
30017         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
30018         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
30019         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
30020         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
30021         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
30022         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
30023         Use _FPU_MASK_RM.
30024
30025 2014-06-24  Wilco  <wdijkstr@arm.com>
30026
30027         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
30028
30029 2014-06-24  Wilco  <wdijkstr@arm.com>
30030
30031         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
30032         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
30033         * sysdeps/arm/fesetround.c (fesetround): Remove space.
30034         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
30035
30036 2014-06-24  Wilco  <wdijkstr@arm.com>
30037
30038         [BZ #16918]
30039         * sysdeps/arm/feupdateenv.c (feupdateenv):
30040         Rewrite to reduce FPSCR accesses and fix return value.
30041
30042 2014-06-24  Wilco  <wdijkstr@arm.com>
30043
30044         * sysdeps/arm/fclrexcpt.c (feclearexcept):
30045         Optimize to avoid unnecessary FPSCR writes.
30046         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
30047         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
30048         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
30049         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
30050
30051 2014-06-24  Wilco  <wdijkstr@arm.com>
30052
30053         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
30054         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
30055         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
30056         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
30057         Call libc_fetestexcept_vfp.
30058         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
30059         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
30060         __SOFTFP__ ifdef so that they can be built for softfp.
30061
30062 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
30063
30064         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
30065         argument type signed char.
30066
30067         * Makerules (check-abi): Dump diff of symlist if the test
30068         fails.
30069
30070 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30071
30072         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
30073         using abort.
30074
30075         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
30076         Remove unused variable ST.
30077
30078 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
30079
30080         [BZ #16354]
30081         [BZ #17061]
30082         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
30083         small arguments before calling __expm1.
30084         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
30085         small arguments before calling __expm1f.
30086         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
30087         small arguments before calling __expm1l.
30088         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
30089         Likewise.
30090         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
30091         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
30092         spurious underflow for some cosh tests.
30093         * math/auto-libm-test-out: Regenerated.
30094         * sysdeps/i386/fpu/libm-test-ulps: Update.
30095
30096         [BZ #17050]
30097         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
30098         (__ieee754_y1): Set errno if return value overflows.
30099         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
30100         (__ieee754_y1f): Set errno if return value overflows.
30101         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
30102         (__ieee754_y1l): Set errno if return value overflows.
30103         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
30104         (__ieee754_y1l): Set errno if return value overflows.
30105         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
30106         * math/auto-libm-test-out: Regenerated.
30107
30108         * math/gen-auto-libm-tests.c: Document use of
30109         ignore-zero-inf-sign.
30110         (input_flag_type): Add value flag_ignore_zero_inf_sign.
30111         (input_flags): Add ignore-zero-inf-sign.
30112         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
30113         * math/gen-libm-test.pl (generate_testfile): Handle
30114         ignore-zero-inf-sign.
30115         * math/auto-libm-test-in: Mark some cpow tests with
30116         ignore-zero-inf-sign and some with xfail-rounding.
30117         * math/auto-libm-test-out: Regenerated.
30118         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
30119         * sysdeps/i386/fpu/libm-test-ulps: Update.
30120         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30121
30122         [BZ #16315]
30123         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
30124         overflowing or underflowing operations take place with sign of
30125         result.
30126         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
30127         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
30128         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
30129         (__ieee754_pow): Recompute overflowing and underflowing results in
30130         original rounding mode.
30131         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
30132         (__powl_helper): Allow negative argument X and scale negated value
30133         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
30134         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
30135         overflowing or underflowing operations take place with sign of
30136         result.
30137         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
30138         Include <math.h>.
30139         * math/auto-libm-test-in: Add more tests of pow.
30140         * math/auto-libm-test-out: Regenerated.
30141         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
30142         (pow_tonearest_test_data): Remove.
30143         (pow_test_tonearest): Likewise.
30144         (pow_towardzero_test_data): Likewise.
30145         (pow_test_towardzero): Likewise.
30146         (pow_downward_test_data): Likewise.
30147         (pow_test_downward): Likewise.
30148         (pow_upward_test_data): Likewise.
30149         (pow_test_upward): Likewise.
30150         (main): Don't call removed functions.
30151         * sysdeps/i386/fpu/libm-test-ulps: Update.
30152         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30153
30154 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30155
30156         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
30157         Moved ...
30158         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
30159         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
30160         Moved ...
30161         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
30162         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
30163         Moved ...
30164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
30165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
30166         Moved ...
30167         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
30168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
30169         File removed.
30170         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
30171         File removed.
30172         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
30173         File removed.
30174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
30175         File removed.
30176         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
30177         File removed.
30178         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
30179         File removed.
30180         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
30181         File removed.
30182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
30183         File removed.
30184         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
30185         File removed.
30186         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
30187         File removed.
30188         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
30189         File removed.
30190         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
30191         File removed.
30192         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
30193         Moved ...
30194         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
30195         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
30196         Moved ...
30197         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
30198         ... here.
30199         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
30200         Moved ...
30201         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
30202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
30203         Moved ...
30204         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
30205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
30206         Moved ...
30207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
30208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
30209         Moved ...
30210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
30211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
30212         Moved ...
30213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
30214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
30215         Moved ...
30216         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
30217         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
30218         Moved ...
30219         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
30220         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
30221         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
30222         ... here.
30223         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
30224         Moved ...
30225         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
30226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
30227         Moved ...
30228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
30229         ... here.
30230         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
30231         Moved ...
30232         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
30233         ... here.
30234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
30235         Moved ...
30236         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
30237         ... here.
30238         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
30239         Moved ...
30240         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
30241         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
30242         Moved ...
30243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
30244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
30245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
30246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
30247         Moved ...
30248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
30249         ... here.
30250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
30251         Moved ...
30252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
30253         ... here.
30254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
30255         Moved ...
30256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
30257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
30258         Moved ...
30259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
30260         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
30261         Moved ...
30262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
30263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
30264         Moved ...
30265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
30266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
30267         Moved ...
30268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
30269         ... here.
30270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
30271         Moved ...
30272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
30273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
30274         Moved ...
30275         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
30276         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
30277         Moved ...
30278         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
30279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
30280         Moved ...
30281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
30282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
30283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
30284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
30285         Moved ...
30286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
30287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
30288         Moved ...
30289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
30290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
30291         Moved ...
30292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
30293         ... here.
30294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
30295         Moved ...
30296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
30297         ... here.
30298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
30299         Moved ...
30300         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
30301         ... here.
30302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
30303         Moved ...
30304         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
30305         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
30306         Moved ...
30307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
30308         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
30309         Moved ...
30310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
30311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
30312         Moved ...
30313         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
30314         ... here.
30315         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
30316         Moved ...
30317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
30318         ... here.
30319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
30320         Moved ...
30321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
30322         ... here.
30323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
30324         Moved ...
30325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
30326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
30327         Moved ...
30328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
30329
30330 2014-06-23  Will Newton  <will.newton@linaro.org>
30331             Wilco  <wdijkstr@arm.com>
30332
30333         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
30334         implementation.  Include get-rounding-mode.h.
30335         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
30336         [!libc_feholdsetround_noex_ctx]: Define
30337         libc_feholdsetround_noex_ctx.
30338         [!libc_feholdsetround_noexf_ctx]: Define
30339         libc_feholdsetround_noexf_ctx.
30340         [!libc_feholdsetround_noexl_ctx]: Define
30341         libc_feholdsetround_noexl_ctx.
30342         (libc_feholdsetround_ctx): New function.
30343         (libc_feresetround_ctx): New function.
30344         (libc_feholdsetround_noex_ctx): New function.
30345         (libc_feresetround_noex_ctx): New function.
30346
30347 2014-06-23  Roland McGrath  <roland@hack.frob.com>
30348
30349         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
30350         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
30351         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
30352         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
30353         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
30354         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
30355
30356         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
30357         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
30358         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
30359         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
30360         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
30361         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
30362         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
30363         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
30364         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
30365         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
30366         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
30367         Moved ...
30368         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
30369         ... here.
30370         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
30371         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
30372         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
30373         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
30374         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
30375         Moved ...
30376         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
30377         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
30378         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
30379         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
30380         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
30381         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
30382         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
30383         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
30384         Moved ...
30385         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
30386         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
30387         Moved ...
30388         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
30389         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
30390         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
30391         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
30392         Moved ...
30393         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
30394         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
30395         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
30396         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
30397         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
30398         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
30399         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
30400         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
30401         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
30402         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
30403         Moved ...
30404         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
30405         ... here.
30406         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
30407         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
30408         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
30409         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
30410         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
30411         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
30412         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
30413         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
30414         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
30415         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
30416         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
30417         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
30418         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
30419         Moved ...
30420         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
30421         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
30422         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
30423         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
30424         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
30425         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
30426         Moved ...
30427         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
30428         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
30429         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
30430         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
30431         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
30432
30433         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
30434         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
30435         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
30436         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
30437         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
30438         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
30439         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
30440         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
30441         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
30442         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
30443         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
30444         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
30445         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
30446         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
30447         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
30448         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
30449         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
30450         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
30451         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
30452         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
30453         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
30454         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
30455         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
30456         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
30457         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
30458         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
30459         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
30460         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
30461
30462 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
30463
30464         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30465         (FALLOC_FL_COLLAPSE_RANGE): New macro.
30466         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
30467         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
30468         (IPV6_PMTUDISC_INTERFACE): Likewise.
30469         (IPV6_PMTUDISC_OMIT): Likewise.
30470
30471 2014-06-23  Andreas Schwab  <schwab@suse.de>
30472
30473         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
30474         Remove unused errout label.
30475
30476 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30477
30478         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
30479         macro: hardware supports Vector Crypto instructions.
30480
30481 2014-06-23  Will Newton  <will.newton@linaro.org>
30482
30483         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
30484         rather than __builtin_expect.
30485
30486         * elf/dl-lookup.c (undefined_msg): Remove variable.
30487         (_dl_lookup_symbol_x): Replace undefined_msg with string
30488         literal.
30489
30490         * elf/dl-lookup.c (do_lookup_unique): New function.
30491         (do_lookup_x): Move STB_GNU_UNIQUE handling code
30492         to a separate function.
30493
30494 2014-06-23  Andreas Schwab  <schwab@suse.de>
30495
30496         [BZ #17079]
30497         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
30498         before reading the next line.
30499
30500 2014-06-23  Will Newton  <will.newton@linaro.org>
30501
30502         * test-skeleton.c (signal_handler): Use printf and %m
30503         rather than perror.  Use printf rather than fprintf to
30504         stderr.  Use puts rather than fputs to stderr.
30505         (main): Likewise.
30506
30507 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
30508
30509         * nscd/nscd.c (thread_info_t): Remove typedef.
30510         (thread_info): Remove variable.
30511
30512 2014-06-21  Allan McRae  <allan@archlinux.org>
30513
30514         * NEWS: Mention CVE-2014-4043.
30515
30516 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30517
30518         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
30519         * nptl/smp.h: ... here.
30520
30521         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
30522
30523         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
30524         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
30525         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
30526         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
30527
30528         * nptl/allocatestack.c: Include <stack-aliasing.h>.
30529         * nptl/stack-aliasing.h: New file.
30530         * sysdeps/i386/i686/stack-aliasing.h: New file.
30531         * sysdeps/i386/i686/nptl/Makefile: File removed.
30532         * sysdeps/x86_64/stack-aliasing.h: New file.
30533         * sysdeps/x86_64/nptl/Makefile
30534         (CFLAGS-pthread_create.c): Variable removed.
30535
30536         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
30537         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
30538         old file.
30539         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
30540         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
30541         old file.
30542
30543 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
30544
30545         * sysdeps/unix/sysv/linux/arm/kernel-features.h
30546         (__ASSUME_SIGFRAME_V2): Remove macro.
30547         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
30548         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
30549         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
30550         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
30551         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
30552         Declare as function.  Remove conditional macro definitions.
30553         (__default_rt_sa_restorer): Likewise.
30554         (__default_sa_restorer_v1): Remove declaration.
30555         (__default_sa_restorer_v2): Likewise.
30556         (__default_rt_sa_restorer_v1): Likewise.
30557         (__default_rt_sa_restorer_v2): Likewise.
30558         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
30559         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
30560         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
30561
30562 2014-06-20  Roland McGrath  <roland@hack.frob.com>
30563
30564         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
30565         (libpthread-routines): Add sysdep.
30566         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
30567         * sysdeps/unix/sysv/linux/sparc/Versions
30568         (libpthread: GLIBC_2.3.3): New version set.
30569         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
30570         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
30571         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
30572         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
30573         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
30574         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
30575         Moved ...
30576         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
30577         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
30578         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
30579         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
30580         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
30581         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
30582         * sysdeps/sparc/nptl/sem_init.c: ... here.
30583         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
30584         * sysdeps/sparc/nptl/sem_post.c: ... here.
30585         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
30586         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
30587         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
30588         * sysdeps/sparc/nptl/sem_wait.c: ... here.
30589         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
30590         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
30591         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
30592         (libpthread-routines): Add cpu_relax.
30593         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
30594         File removed.
30595         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
30596         (librt: GLIBC_2.3.3): New version set.
30597         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
30598         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
30599         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
30600         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
30601         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
30602         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
30603         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
30604         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
30605         Moved ...
30606         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
30607         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
30608         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
30609         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
30610         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
30611         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
30612         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
30613         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
30614         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
30615         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
30616         Moved ...
30617         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
30618         Update #include.
30619         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
30620         Moved ...
30621         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
30622         Update #include.
30623         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
30624         Moved ...
30625         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
30626         Update #include.
30627         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
30628         Moved ...
30629         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
30630         Update #include.
30631         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
30632         Moved ...
30633         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
30634         Update #include.
30635         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
30636         Moved ...
30637         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
30638         Update #include.
30639         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
30640         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
30641         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
30642         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
30643         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
30644         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
30645         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
30646         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
30647         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
30648         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
30649         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
30650         Moved ...
30651         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
30652         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
30653         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
30654         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
30655         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
30656
30657 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30658
30659         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
30660         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
30661         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
30662         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
30663         * nscd/nscd.c: Likewise.
30664         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
30665         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
30666         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
30667         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
30668
30669         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
30670         <kernel-features.h>.
30671         (init_mq_netlink): Remove conditional have_sock_cloexec
30672         definitions.  Remove code conditional on have_sock_cloexec < 0.
30673         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
30674         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
30675         * sysdeps/unix/sysv/linux/opensock.c: Do not include
30676         <kernel-features.h>.
30677         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
30678         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
30679
30680 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30681
30682         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
30683         Add tests for memset_chk and memset.
30684
30685         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
30686         with AVX2_Usable.
30687
30688 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30689
30690         [BZ #16046]
30691         * elf/tst-dl-iter-static.c: New file.
30692         * elf/Makefile (tests-static): Add tst-dl-iter-static.
30693
30694         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
30695         error.
30696
30697 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30698
30699         * sysdeps/unix/sysv/linux/kernel-features.h
30700         (__ASSUME_F_GETOWN_EX): Remove macro.
30701         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
30702         <kernel-features.h>.
30703         (miss_F_GETOWN_EX): Remove variable or macro.
30704         (do_fcntl): Do not check miss_F_GETOWN_EX.
30705         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
30706
30707         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
30708         Remove macro.
30709         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
30710         [!__ASSUME_AT_RANDOM]: Remove conditional code.
30711         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
30712
30713         * sysdeps/unix/sysv/linux/kernel-features.h
30714         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
30715         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
30716         [ADJ_OFFSET_SS_READ]: Make code unconditional.
30717         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
30718
30719 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
30720
30721         [BZ #17075]
30722         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
30723         Fix calculation of the symbol's value.
30724         * sysdeps/arm/tst-armtlsdescloc.c: New file.
30725         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
30726         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
30727         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
30728         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
30729         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
30730         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
30731         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
30732         (modules-names): Add `tst-armtlsdescmod',
30733         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
30734         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
30735         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30736         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
30737         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
30738         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
30739         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
30740         ($(objpfx)tst-armtlsdescloc): New dependency.
30741         ($(objpfx)tst-armtlsdescextnow): Likewise.
30742         ($(objpfx)tst-armtlsdescextlazy): Likewise.
30743         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
30744         TLS scheme support.
30745         * sysdeps/arm/configure: Regenerate.
30746
30747 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
30748
30749         * include/fcntl.h (__atfct_seterrno): Remove prototype.
30750         (__atfct_seterrno_2): Likewise.
30751         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
30752         <kernel-features.h>.
30753         (__ASSUME_ATFCTS): Do not undefine and redefine.
30754         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
30755         (__have_atfcts): Remove conditional definition.
30756         (__fxstatat([__NR_fstatat64]: Make code unconditional.
30757         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
30758         unreachable if [__ASSUME_ATFCTS].
30759         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
30760         not undefine and redefine.
30761         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
30762         <kernel-features.h>.
30763         (faccessat) [__NR_faccessat]: Make code unconditional.
30764         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
30765         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
30766         <kernel-features.h>.
30767         (fchmodat) [__NR_fchmodat]: Make code unconditional.
30768         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30769         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
30770         <kernel-features.h>.
30771         (fchownat) [__NR_fchownat]: Make code unconditional.
30772         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
30773         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
30774         <kernel-features.h>.
30775         (futimesat) [__NR_futimesat]: Make code unconditional.
30776         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
30777         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
30778         <kernel-features.h>.
30779         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30780         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30781         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
30782         <kernel-features.h>.
30783         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
30784         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30785         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
30786         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
30787         <kernel-features.h>.
30788         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
30789         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30790         * sysdeps/unix/sysv/linux/linkat.c: Do not include
30791         <kernel-features.h>.
30792         (linkat) [__NR_linkat]: Make code unconditional.
30793         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30794         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
30795         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
30796         <kernel-features.h>.
30797         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
30798         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
30799         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
30800         <kernel-features.h>.
30801         (mkdirat) [__NR_mkdirat]: Make code unconditional.
30802         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
30803         * sysdeps/unix/sysv/linux/openat.c: Do not include
30804         <kernel-features.h>.
30805         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
30806         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
30807         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
30808         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
30809         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
30810         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
30811         <kernel-features.h>.
30812         (readlinkat) [__NR_readlinkat]: Make code unconditional.
30813         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
30814         result of INLINE_SYSCALL directly, not via int variable.
30815         * sysdeps/unix/sysv/linux/renameat.c: Do not include
30816         <kernel-features.h>.
30817         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
30818         (renameat) [__NR_renameat]: Make code unconditional.
30819         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
30820         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
30821         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
30822         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
30823         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
30824         (__ASSUME_ATFCTS): Do not undefine and redefine.
30825         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
30826         <kernel-features.h>.
30827         (symlinkat) [__NR_symlinkat]: Make code unconditional.
30828         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30829         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
30830         <kernel-features.h>.
30831         (unlinkat) [__NR_unlinkat]: Make code unconditional.
30832         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
30833         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
30834         (__ASSUME_ATFCTS): Do not undefine and redefine.
30835         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
30836         <kernel-features.h>.
30837         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
30838         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
30839         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
30840         <kernel-features.h>.
30841         (__xmknodat) [__NR_mknodat]: Make code unconditional.
30842         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
30843
30844 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
30845
30846         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
30847
30848 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
30849
30850         [BZ #17069]
30851         * posix/regcomp.c (parse_reg_exp): Deallocate partially
30852         constructed tree before returning error.
30853         * posix/bug-regexp36.c: Expand test case.
30854
30855 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
30856
30857         [BZ #6803]
30858         * math/libm-test.inc (scalbln_test_date):
30859         Add errno expectations.
30860         * math/w_scalblnf.c: New File.
30861         Add wrapper which checks for setting errno to ERANGE.
30862         Add weak_alias for corresponding scalbln function.
30863         * math/w_scalbln.c: Likewise.
30864         * math/w_scalblnl.c: Likewise.
30865         * math/Makefile (libm-calls): Add w_scalbln.
30866         * sysdeps/ieee754/flt-32/s_scalblnf.c:
30867         Remove weak_alias for corresponding scalbln function.
30868         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
30869         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
30870         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
30871         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
30872         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
30873         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
30874         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
30875         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
30876         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
30877         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
30878         Remove long_double_symbol for scalblnl function in libm, libc.
30879         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
30880         Add wrapper which checks for setting errno to ERANGE.
30881         Add long_double_symbol for scalblnl function in libm, libc.
30882         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
30883         Remove long_double_symbol for scalblnl in libm.
30884         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
30885         Add wrapper which checks for setting errno to ERANGE.
30886         Add long_double_symbol for scalblnl function in libm.
30887         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
30888         Do not use wrapper because of own implementation.
30889
30890 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
30891
30892         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
30893         3 bytes for __pad1 for x32.
30894         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
30895
30896 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
30897             H.J. Lu  <hongjiu.lu@intel.com>
30898
30899         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
30900         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
30901         * sysdeps/x86_64/multiarch/memset.S: Likewise.
30902         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
30903         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
30904
30905 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
30906
30907         [BZ #17069]
30908         * posix/regcomp.c (parse_expression): Deallocate partially
30909         constructed tree before returning error.
30910         * posix/Makefile.c (tests): Add bug-regex36.
30911         (generated): Add bug-regex36.mtrace.
30912         (tests-special): Add $(objpfx)bug-regex36-mem.out
30913         (bug-regex36-ENV): New variable.
30914         ($(objpfx)bug-regex36-mem.out): New rule.
30915         * posix/bug-regex36.c: New file.
30916
30917 2014-06-19  Will Newton  <will.newton@linaro.org>
30918
30919         * malloc/malloc.c (systrim): If extra is zero then return
30920         early.
30921
30922 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
30923
30924         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
30925
30926 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
30927
30928         * sysdeps/aarch64/strchr.S: New file.
30929
30930 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
30931
30932         [BZ #17022]
30933         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
30934         from arguments -2 or below.
30935         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
30936         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
30937
30938 2014-06-18  Andreas Schwab  <schwab@suse.de>
30939
30940         [BZ #17062]
30941         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
30942         of a bracket expr not to run off the end of the string.
30943         * posix/Makefile (tests): Add tst-fnmatch3.
30944         * posix/tst-fnmatch3.c: New file.
30945
30946 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
30947
30948         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
30949         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
30950         [$(cross-compiling) = no]: Likewise.
30951         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
30952         [$(cross-compiling) = no]: Likewise.
30953
30954 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30955
30956         [BZ #17031]
30957         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
30958         double, adjusted for any remainder from the high double.
30959         * math/libm-test.inc (nearbyint): Add tests.
30960         (rint): Likewise.
30961
30962 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30963
30964         * nptl/sysdeps/powerpc/Makefile: Moved ...
30965         * sysdeps/powerpc/nptl/Makefile: ... here.
30966         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
30967         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
30968         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
30969         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
30970         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
30971         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
30972         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
30973         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
30974         * nptl/sysdeps/powerpc/tls.h: Moved ...
30975         * sysdeps/powerpc/nptl/tls.h: ... here.
30976
30977 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
30978
30979         [BZ #16681]
30980         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
30981         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
30982         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
30983         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
30984         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
30985         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
30986         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
30987         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
30988         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
30989
30990 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
30991
30992         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
30993
30994 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
30995
30996         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
30997         defined operator.
30998
30999         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
31000         $TIMEOUTFACTOR.
31001
31002 2014-06-16  Florian Weimer  <fweimer@redhat.com>
31003
31004         [BZ #17058]
31005         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
31006         non-executed part of the test.
31007
31008 2014-06-16  Andreas Schwab  <schwab@suse.de>
31009
31010         * string/bits/string2.h (strdup, strndup): Update feature guard.
31011
31012 2014-06-14  David S. Miller  <davem@davemloft.net>
31013
31014         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31015
31016 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
31017
31018         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
31019         that was previously under [RESET_PID].
31020         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
31021
31022         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
31023         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
31024         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
31025         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
31026         (__libc_vfork): New strong alias.
31027         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
31028
31029 2014-06-14 Andi Kleen  <ak@linux.intel.com>
31030
31031         * sysdeps/generic/elide.h: New file.
31032
31033 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
31034
31035         * Makefile (installed-headers): Adjust path of pthread.h header.
31036
31037 2014-06-13  Roland McGrath  <roland@hack.frob.com>
31038
31039         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
31040         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
31041         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
31042         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
31043
31044         * nptl/sysdeps/s390/Makefile: Moved ...
31045         * sysdeps/s390/nptl/Makefile: ... here.
31046         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
31047         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
31048         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
31049         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
31050         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
31051         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
31052         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
31053         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
31054         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
31055         * sysdeps/s390/nptl/pthreaddef.h: ... here.
31056         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
31057         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
31058         * nptl/sysdeps/s390/tls.h: Moved ...
31059         * sysdeps/s390/nptl/tls.h: ... here.
31060
31061         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
31062         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
31063
31064 2014-06-13  David S. Miller  <davem@davemloft.net>
31065
31066         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
31067         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
31068         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
31069         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
31070         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
31071         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
31072         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
31073         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
31074         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
31075         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
31076         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
31077         Remove RESET_PID cpp guards.
31078         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
31079         Remove RESET_PID cpp guards.
31080         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
31081
31082 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
31083
31084         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
31085         __sp to uintptr_t.
31086
31087 2014-06-13  Andi Kleen  <ak@linux.intel.com>
31088
31089         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
31090         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
31091         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
31092         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
31093         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
31094         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
31095         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
31096         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
31097         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
31098         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
31099         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
31100         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
31101         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
31102         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
31103         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
31104         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
31105         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
31106         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
31107         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
31108         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
31109
31110         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
31111         (pthread_rwlock_rdlock): Add elision.
31112         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
31113         (pthread_rwlock_wrlock): Add elision.
31114         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
31115         (pthread_rwlock_trywrlock): Add elision.
31116         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
31117         (pthread_rwlock_tryrdlock): Add elision.
31118         * nptl/pthread_rwlock_unlock.c: Include elide.h.
31119         (pthread_rwlock_tryrdlock): Add elision unlock.
31120         * nptl/sysdeps/pthread/pthread.h:
31121         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
31122         (PTHREAD_RWLOCK_INITIALIZER,
31123         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
31124         Handle new elision field.
31125         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
31126         * sysdeps/arm/nptl/bits/pthreadtypes.h
31127         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31128         * sysdeps/sh/nptl/bits/pthreadtypes.h
31129         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31130         * sysdeps/tile/nptl/bits/pthreadtypes.h
31131         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31132         * sysdeps/a/nptl/bits/pthreadtypes.h
31133         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31134         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
31135         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31136         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
31137         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31138         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
31139         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31140         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
31141         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31142         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
31143         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31144         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
31145         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31146         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
31147         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31148         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
31149         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31150         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
31151         (elision_init): Set try_xbegin to zero when no RTM.
31152         * sysdeps/x86/nptl/bits/pthreadtypes.h
31153         (pthread_rwlock_t): Change __pad1 to __rwelision.
31154         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
31155
31156 2014-06-13  Andi Kleen  <ak@linux.intel.com>
31157
31158         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
31159         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
31160         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
31161         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
31162
31163 2014-06-13  Meador Inge  <meadori@codesourcery.com>
31164
31165         [BZ #16996]
31166         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
31167         that the cached result has been set before returning it.
31168
31169 2014-06-12  Roland McGrath  <roland@hack.frob.com>
31170
31171         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
31172         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
31173         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
31174         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
31175         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
31176         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
31177
31178         * nptl/sysdeps/sparc/Makefile: Moved ...
31179         * sysdeps/sparc/nptl/Makefile: ... here.
31180         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
31181         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
31182         * nptl/sysdeps/sparc/tls.h: Moved ...
31183         * sysdeps/sparc/nptl/tls.h: ... here.
31184         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
31185         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
31186         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
31187         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
31188         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
31189         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
31190         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
31191         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
31192         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
31193         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
31194         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
31195         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
31196         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
31197         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
31198         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
31199         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
31200         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
31201         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
31202         Update #include.
31203         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
31204         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
31205         Update #include.
31206         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
31207         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
31208         Update #include.
31209         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
31210         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
31211         Update #include.
31212
31213         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
31214
31215         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
31216         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
31217
31218         * sysdeps/pthread/posix-timer.h: Include <list.h>.
31219         (struct list_links): Type removed.
31220         (struct thread_node, struct timer_node): Replace struct list_links
31221         with struct list_head.
31222         (list_unlink_ip): Likewise.
31223         * sysdeps/pthread/timer_routines.c
31224         (timer_free_list, thread_free_list, thread_active_list): Likewise.
31225         (list_append, list_insbefore): Likewise.
31226         (list_init): Function removed.
31227         (thread_init, init_module): Use INIT_LIST_HEAD instead.
31228         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
31229         * sysdeps/pthread/Makefile: ... here, new file.
31230
31231         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
31232         * sysdeps/nptl/Implies: ... here.
31233         * sysdeps/unix/sysv/linux/Implies: Add nptl.
31234         * nptl/sysdeps/pthread/list.h: Moved ...
31235         * include/list.h: ... here.
31236         * nptl/sysdeps/pthread/createthread.c: Moved ...
31237         * nptl/createthread.c: ... here.
31238         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
31239         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
31240         * nptl/pt-longjmp.c: ... here.
31241         * nptl/sysdeps/pthread/Makefile: Moved ...
31242         * sysdeps/nptl/Makefile: ... here.
31243         * nptl/sysdeps/pthread/Subdirs: Moved ...
31244         * sysdeps/nptl/Subdirs: ... here.
31245         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
31246         * sysdeps/nptl/aio_misc.h: ... here.
31247         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
31248         * sysdeps/nptl/bits/libc-lock.h: ... here.
31249         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
31250         * sysdeps/nptl/bits/libc-lockP.h: ... here.
31251         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
31252         * sysdeps/nptl/bits/stdio-lock.h: ... here.
31253         * nptl/sysdeps/pthread/configure: Moved ...
31254         * sysdeps/nptl/configure: ... here.
31255         * nptl/sysdeps/pthread/configure.ac: Moved ...
31256         * sysdeps/nptl/configure.ac: ... here.
31257         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
31258         * sysdeps/nptl/gai_misc.h: ... here.
31259         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
31260         * sysdeps/nptl/librt-cancellation.c: ... here.
31261         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
31262         * sysdeps/nptl/malloc-machine.h: ... here.
31263         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
31264         * sysdeps/nptl/pthread-functions.h: ... here.
31265         * nptl/sysdeps/pthread/pthread.h: Moved ...
31266         * sysdeps/nptl/pthread.h: ... here.
31267         * nptl/sysdeps/pthread/setxid.h: Moved ...
31268         * sysdeps/nptl/setxid.h: ... here.
31269         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
31270         * sysdeps/nptl/sigfillset.c: ... here.
31271         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
31272         * sysdeps/nptl/tcb-offsets.h: ... here.
31273         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
31274         * sysdeps/nptl/tst-mqueue8x.c: ... here.
31275         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
31276         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
31277         * nptl/sysdeps/pthread/allocalim.h: Moved ...
31278         * sysdeps/pthread/allocalim.h: ... here.
31279         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
31280         * sysdeps/pthread/bits/sigthread.h: ... here.
31281         * nptl/sysdeps/pthread/flockfile.c: Moved ...
31282         * sysdeps/pthread/flockfile.c: ... here.
31283         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
31284         * sysdeps/pthread/ftrylockfile.c: ... here.
31285         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
31286         * sysdeps/pthread/funlockfile.c: ... here.
31287         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
31288         * sysdeps/pthread/posix-timer.h: ... here.
31289         * nptl/sysdeps/pthread/timer_create.c: Moved ...
31290         * sysdeps/pthread/timer_create.c: ... here.
31291         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
31292         * sysdeps/pthread/timer_delete.c: ... here.
31293         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
31294         * sysdeps/pthread/timer_getoverr.c: ... here.
31295         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
31296         * sysdeps/pthread/timer_gettime.c: ... here.
31297         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
31298         * sysdeps/pthread/timer_routines.c: ... here.
31299         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
31300         * sysdeps/pthread/timer_settime.c: ... here.
31301         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
31302         * sysdeps/pthread/tst-timer.c: ... here.
31303         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
31304         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
31305
31306         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
31307         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
31308
31309         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
31310         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
31311         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
31312         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
31313         Update #include target.
31314         * nptl/sysdeps/i386/i686/Makefile: Moved ...
31315         * sysdeps/i386/i686/nptl/Makefile: ... here.
31316         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
31317         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
31318         Update #include target.
31319         * nptl/sysdeps/i386/i686/tls.h: Moved ...
31320         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
31321         * nptl/sysdeps/i386/Makefile: Moved ...
31322         * sysdeps/i386/nptl/Makefile: ... here.
31323         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
31324         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
31325         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
31326         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
31327         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
31328         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
31329         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
31330         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
31331         * sysdeps/i386/nptl/pthreaddef.h: ... here.
31332         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
31333         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
31334         * nptl/sysdeps/i386/tls.h: Moved ...
31335         * sysdeps/i386/nptl/tls.h: ... here.
31336
31337         * sysdeps/sh/Makefile [$(subdir) = csu]
31338         (gen-as-const-headers): Add tcb-offsets.sym.
31339         * nptl/sysdeps/sh/Makefile: File removed.
31340         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
31341         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
31342         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
31343         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
31344         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
31345         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
31346         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
31347         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
31348         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
31349         * sysdeps/sh/nptl/pthreaddef.h: ... here.
31350         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
31351         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
31352         * nptl/sysdeps/sh/tls.h: Moved ...
31353         * sysdeps/sh/nptl/tls.h: ... here.
31354         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
31355         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
31356         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
31357         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
31358         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
31359         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
31360         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
31361         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
31362         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
31363         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
31364         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
31365         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
31366         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
31367         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
31368         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
31369         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
31370         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
31371         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
31372         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
31373         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
31374         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
31375         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
31376         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
31377         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
31378         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
31379         Moved ...
31380         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
31381         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
31382         Moved ...
31383         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
31384         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
31385         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
31386         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
31387         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
31388         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
31389         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
31390         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
31391         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
31392         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
31393         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
31394         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
31395         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
31396         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
31397         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
31398         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
31399         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
31400         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
31401         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
31402
31403 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
31404
31405         * posix/spawn_faction_addopen.c: Include string.h.
31406
31407 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31408
31409         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
31410         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
31411         * nptl/sysdeps/x86_64/Makefile: Moved ...
31412         * sysdeps/x86_64/nptl/Makefile: ... here.
31413         * nptl/sysdeps/x86_64/configure: Moved ...
31414         * sysdeps/x86_64/nptl/configure: ... here.
31415         * nptl/sysdeps/x86_64/configure.ac: Moved ...
31416         * sysdeps/x86_64/nptl/configure.ac: ... here.
31417         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
31418         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
31419         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
31420         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
31421         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
31422         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
31423         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
31424         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
31425         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
31426         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
31427         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
31428         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
31429         * nptl/sysdeps/x86_64/tls.h: Moved ...
31430         * sysdeps/x86_64/nptl/tls.h: ... here.
31431         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
31432         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
31433         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
31434         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
31435
31436         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
31437
31438 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31439
31440         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31441
31442 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
31443
31444         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
31445         type.
31446         [POSIX] (off_t): Likewise.
31447         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
31448         [POSIX] (S_ISBLK): Require macro.
31449         [POSIX] (S_ISCHR): Likewise.
31450         [POSIX] (S_ISDIR): Likewise.
31451         [POSIX] (S_ISFIFO): Likewise.
31452         [POSIX] (S_ISREG): Likewise.
31453         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
31454         optional-macro.
31455         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
31456         type.
31457         [POSIX] (time_t): Likewise.
31458         [POSIX] (timer_t): Likewise.
31459
31460 2014-06-11  Florian Weimer  <fweimer@redhat.com>
31461
31462         [BZ #17048]
31463         * posix/spawn_int.h (struct __spawn_action): Make the path string
31464         non-const to support deallocation.
31465         * posix/spawn_faction_addopen.c
31466         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
31467         * posix/spawn_faction_destroy.c
31468         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
31469         path in all spawn_do_open actions.
31470         * posix/tst-spawn.c (do_test): Exercise the copy operation in
31471         posix_spawn_file_actions_addopen.
31472
31473 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
31474
31475         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
31476         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
31477         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
31478         conditional code always true.
31479         (__libc_vfork): New alias.
31480
31481 2014-06-11  Roland McGrath  <roland@hack.frob.com>
31482
31483         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31484         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
31485
31486         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
31487
31488         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31489         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
31490
31491         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
31492         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
31493
31494         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31495         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
31496
31497 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
31498
31499         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
31500         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
31501         multiarch strcmp for PPC64.
31502         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
31503         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
31504         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
31505         multiarch optimizations.
31506         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
31507         (__libc_ifunc_impl_list): Likewise.
31508
31509 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
31510
31511         * benchtests/scripts/validate_benchout.py: New script.
31512         * benchtests/Makefile (bench-func): Call it.
31513         * benchtests/scripts/benchout.schema.json: New file.
31514
31515 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
31516
31517         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
31518         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
31519         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
31520         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
31521         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
31522         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
31523         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
31524         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
31525         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
31526         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
31527         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
31528         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
31529         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
31530         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
31531         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
31532         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
31533         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
31534         Moved ...
31535         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
31536         ... here.
31537         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
31538         Moved ...
31539         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
31540         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
31541         Moved ...
31542         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
31543         ... here.
31544         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
31545         Moved ...
31546         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
31547         ... here.
31548         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
31549         Moved ...
31550         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
31551         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
31552         Moved ...
31553         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
31554         ... here.
31555         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
31556         Moved ...
31557         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
31558         ... here.
31559         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
31560         Moved ...
31561         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
31562         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
31563         Moved ...
31564         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
31565         ... here.
31566         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
31567         Moved ...
31568         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
31569         ... here.
31570         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
31571         Moved ...
31572         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
31573         ... here.
31574         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
31575         Moved ...
31576         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
31577         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
31578         Moved ...
31579         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
31580         ... here.
31581         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
31582         Moved ...
31583         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
31584         ... here.
31585         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
31586         Moved ...
31587         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
31588         ... here.
31589         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
31590         Moved ...
31591         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
31592         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
31593         Moved ...
31594         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
31595         ... here.
31596         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
31597         Moved ...
31598         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
31599         ... here.
31600         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
31601         Moved ...
31602         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
31603         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
31604         Moved ...
31605         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
31606         ... here.
31607         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
31608         Moved ...
31609         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
31610         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
31611         Moved ...
31612         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
31613         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
31614         Moved ...
31615         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
31616         ... here.
31617         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
31618         Moved ...
31619         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
31620         ... here.
31621         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
31622         Moved ...
31623         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
31624         ... here.
31625         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
31626         Moved ...
31627         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
31628         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
31629         Moved ...
31630         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
31631         ... here.
31632         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
31633         Moved ...
31634         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
31635         ... here.
31636         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
31637         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
31638         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
31639         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
31640         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
31641         Moved ...
31642         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
31643         ... here.
31644         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
31645         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
31646         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
31647         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
31648         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
31649         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
31650         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
31651         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
31652         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
31653         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
31654         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
31655         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
31656         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
31657         Moved ...
31658         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
31659         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
31660         Moved ...
31661         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
31662         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
31663         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
31664         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
31665         Moved ...
31666         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
31667         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
31668         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
31669         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
31670         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
31671         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
31672         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
31673
31674 2014-06-10  Wilco  <wdijkstr@arm.com>
31675
31676         * math/test-fenv-return.c: New file.
31677         * math/Makefile: Add new test test-fenv-return.
31678
31679 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
31680
31681         [BZ #17042]
31682         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
31683         when x - 1 is zero.
31684         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
31685         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
31686         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
31687         0.0L for an argument of 1.0L.
31688         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
31689         Likewise.
31690         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
31691         value when x - 1 is zero.
31692         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
31693         * sysdeps/i386/fpu/libm-test-ulps: Update.
31694         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31695
31696 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
31697
31698         [BZ #15119]
31699         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
31700
31701 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31702
31703         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
31704         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
31705
31706 2014-06-09  Roland McGrath  <roland@hack.frob.com>
31707
31708         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31709         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
31710
31711         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31712         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
31713
31714         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31715         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
31716
31717         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
31718         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
31719
31720         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
31721         if not already defined.
31722         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
31723         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
31724         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
31725         (TLS_INIT_TP): Use it.
31726         (TLS_DEFINE_INIT_TP): New macro.
31727         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
31728
31729 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
31730
31731         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
31732         constant.
31733         [POSIX] (IXANY): Likewise.
31734         [POSIX] (OLCUC): Likewise.
31735         [POSIX || POSIX2008] (CBAUD): Do not allow.
31736         [POSIX || POSIX2008] (DEFECHO): Likewise.
31737         [POSIX || POSIX2008] (ECHOCTL): Likewise.
31738         [POSIX || POSIX2008] (ECHOKE): Likewise.
31739         [POSIX || POSIX2008] (ECHOPRT): Likewise.
31740         [POSIX || POSIX2008] (EXTA): Likewise.
31741         [POSIX || POSIX2008] (EXTB): Likewise.
31742         [POSIX || POSIX2008] (FLUSHO): Likewise.
31743         [POSIX || POSIX2008] (LOBLK): Likewise.
31744         [POSIX || POSIX2008] (PENDIN): Likewise.
31745         [POSIX || POSIX2008] (SWTCH): Likewise.
31746         [POSIX || POSIX2008] (VDISCARD): Likewise.
31747         [POSIX || POSIX2008] (VDSUSP): Likewise.
31748         [POSIX || POSIX2008] (VLNEXT): Likewise.
31749         [POSIX || POSIX2008] (VREPRINT): Likewise.
31750         [POSIX || POSIX2008] (VSTATUS): Likewise.
31751         [POSIX || POSIX2008] (VWERASE): Likewise.
31752         (B*): Change to B[0123456789]*.
31753         * conform/data/time.h-data [POSIX || UNIX98]
31754         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
31755         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
31756         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
31757         [POSIX] (tm_*): Do not allow.
31758
31759 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
31760
31761         * Makefile (install): Don't set LANGUAGE.
31762         * Makefile.in (install): Likewise.
31763         * assert/Makefile (test-assert-ENV): Remove variable.
31764         (test-assert-perr-ENV): Likewise.
31765         * elf/Makefile (neededtest4-ENV): Likewise.
31766         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
31767         [$(cross-compiling) = no]: Don't set LANGUAGE.
31768         * io/ftwtest-sh (LANG): Remove variable.
31769         * libio/Makefile (tst-widetext-ENV): Likewise.
31770         * manual/install.texi (Running make install): Don't refer to
31771         environment settings for make install.
31772         * INSTALL: Regenerated.
31773         * nptl/tst-tls6.sh: Don't set LANG.
31774         * posix/globtest.sh (LANG): Remove variable.
31775         * string/Makefile (tester-ENV): Likewise.
31776         (inl-tester-ENV): Likewise.
31777         (noinl-tester-ENV): Likewise.
31778         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
31779         [$(cross-compiling) = no]: Don't set LANGUAGE.
31780         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
31781         without explicit environment settings.
31782
31783 2014-06-06  Roland McGrath  <roland@hack.frob.com>
31784
31785         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
31786         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
31787         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
31788         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
31789
31790 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
31791
31792         * crypt/crypt-private.h [DOS]: Add some includes taken from the
31793         other files in the crypt directory.
31794         * crypt/crypt.c: Remove duplicate includes.
31795         * crypt/crypt-entry.c: Likewise.
31796         * crypt/crypt_util.c: Likewise.
31797
31798 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
31799
31800         * Makeconfig (run-program-env): New variable.
31801         (run-program-prefix-before-env): Likewise.
31802         (run-program-prefix-after-env): Likewise.
31803         (run-program-prefix): Define in terms of new variables.
31804         (built-program-cmd-before-env): New variable.
31805         (built-program-cmd-after-env): Likewise.
31806         (built-program-cmd): Define in terms of new variables.
31807         (test-program-prefix-before-env): New variable.
31808         (test-program-prefix-after-env): Likewise.
31809         (test-program-prefix): Define in terms of new variables.
31810         (test-program-cmd-before-env): New variable.
31811         (test-program-cmd-after-env): Likewise.
31812         (test-program-cmd): Define in terms of new variables.
31813         * Rules (make-test-out): Use $(run-program-env).
31814         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
31815         (help): Do not mention environment variables.  Mention
31816         --timeoutfactor option.
31817         (timeoutfactor): New variable.
31818         (blacklist_exports): Remove function.
31819         (exports): Remove variable.
31820         (command): Do not include ${exports}.
31821         * manual/install.texi (Configuring and compiling): Do not mention
31822         test wrappers preserving environment variables.  Mention that last
31823         assignment to a variable must take precedence.
31824         * INSTALL: Regenerated.
31825         * benchtests/Makefile (run-bench): Use $(run-program-env).
31826         * catgets/Makefile ($(objpfx)test1.cat): Use
31827         $(built-program-cmd-before-env), $(run-program-env) and
31828         $(built-program-cmd-after-env).
31829         ($(objpfx)test2.cat): Do not specify environment variables
31830         explicitly.
31831         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
31832         $(run-program-env) and $(built-program-cmd-after-env).
31833         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
31834         $(run-program-env) and $(test-program-cmd-after-env).
31835         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
31836         explicitly.
31837         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
31838         run_program_env and test_program_cmd_after_env arguments.
31839         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
31840         * elf/tst-pathopt.sh: Use run_program_env argument.
31841         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
31842         $(test-wrapper-env) and $(run-program-env).
31843         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
31844         run_program_env arguments.
31845         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
31846         * intl/Makefile ($(objpfx)tst-gettext.out): Use
31847         $(test-program-prefix-before-env), $(run-program-env) and
31848         $(test-program-prefix-after-env).
31849         ($(objpfx)tst-gettext2.out): Likewise.
31850         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
31851         run_program_env and test_program_prefix_after_env arguments.
31852         * intl/tst-gettext2.sh: Likewise.
31853         * intl/tst-gettext4.sh: Do not set environment variables
31854         explicitly.
31855         * intl/tst-gettext6.sh: Likewise.
31856         * intl/tst-translit.sh: Likewise.
31857         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
31858         $(test-program-prefix-before-env), $(run-program-env) and
31859         $(test-program-prefix-after-env).
31860         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
31861         run_program_env and test_program_prefix_after_env arguments.
31862         * math/Makefile (run-regen-ulps): Use $(run-program-env).
31863         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
31864         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
31865         explicitly with each use of ${test_wrapper_env}.
31866         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
31867         $(test-program-prefix-before-env), $(run-program-env) and
31868         $(test-program-prefix-after-env).
31869         * posix/tst-getconf.sh: Do not set environment variables
31870         explicitly.
31871         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
31872         run_program_env and test_program_prefix_after_env arguments.
31873         * stdio-common/tst-printf.sh: Do not set environment variables
31874         explicitly.
31875         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
31876         $(test-program-prefix-before-env), $(run-program-env) and
31877         $(test-program-prefix-after-env).
31878         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
31879         run_program_env and test_program_prefix_after_env arguments.
31880         Split $test calls into $test_pre and $test.
31881         * timezone/Makefile (build-testdata): Use
31882         $(built-program-cmd-before-env), $(run-program-env) and
31883         $(built-program-cmd-after-env).
31884
31885 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31886
31887         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
31888         strlen for non SHARED builds.
31889
31890 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
31891
31892         * nptl/allocatestack.c (check_list): Inlined function...
31893         (__reclaim_stacks): ... here.
31894
31895 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31896
31897         [BZ #15698]
31898         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
31899         memory overrun.
31900
31901 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
31902
31903         * Rules (make-test-out): Include
31904         LOCPATH=$(common-objpfx)localedata in default environment.
31905         * debug/Makefile (tst-chk1-ENV): Remove variable.
31906         (tst-chk2-ENV): Likewise.
31907         (tst-chk3-ENV): Likewise.
31908         (tst-chk4-ENV): Likewise.
31909         (tst-chk5-ENV): Likewise.
31910         (tst-chk6-ENV): Likewise.
31911         (tst-lfschk1-ENV): Likewise.
31912         (tst-lfschk2-ENV): Likewise.
31913         (tst-lfschk3-ENV): Likewise.
31914         (tst-lfschk4-ENV): Likewise.
31915         (tst-lfschk5-ENV): Likewise.
31916         (tst-lfschk6-ENV): Likewise.
31917         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
31918         (tst-iconv7-ENV): Likewise.
31919         * intl/Makefile (LOCPATH-ENV): Likewise.
31920         (tst-codeset-ENV): Likewise.
31921         (tst-gettext3-ENV): Likewise.
31922         (tst-gettext5-ENV): Likewise.
31923         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
31924         (tst-fopenloc-ENV): Likewise.
31925         (tst-fgetws-ENV): Remove variable.
31926         (tst-ungetwc1-ENV): Likewise.
31927         (tst-ungetwc2-ENV): Likewise.
31928         (bug-ungetwc2-ENV): Likewise.
31929         (tst-swscanf-ENV): Likewise.
31930         (bug-ftell-ENV): Likewise.
31931         (tst-fgetwc-ENV): Likewise.
31932         (tst-fseek-ENV): Likewise.
31933         (tst-ftell-partial-wide-ENV): Likewise.
31934         (tst-ftell-active-handler-ENV): Likewise.
31935         (tst-ftell-append-ENV): Likewise.
31936         * posix/Makefile (tst-fnmatch-ENV): Likewise.
31937         (tst-regexloc-ENV): Likewise.
31938         (bug-regex1-ENV): Likewise.
31939         (tst-regex-ENV): Likewise.
31940         (tst-regex2-ENV): Likewise.
31941         (bug-regex5-ENV): Likewise.
31942         (bug-regex6-ENV): Likewise.
31943         (bug-regex17-ENV): Likewise.
31944         (bug-regex18-ENV): Likewise.
31945         (bug-regex19-ENV): Likewise.
31946         (bug-regex20-ENV): Likewise.
31947         (bug-regex22-ENV): Likewise.
31948         (bug-regex23-ENV): Likewise.
31949         (bug-regex25-ENV): Likewise.
31950         (bug-regex26-ENV): Likewise.
31951         (bug-regex30-ENV): Likewise.
31952         (bug-regex32-ENV): Likewise.
31953         (bug-regex33-ENV): Likewise.
31954         (bug-regex34-ENV): Likewise.
31955         (bug-regex35-ENV): Likewise.
31956         (tst-rxspencer-ENV): Likewise.
31957         (tst-rxspencer-no-utf8-ENV): Likewise.
31958         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
31959         (tst-sscanf-ENV): Likewise.
31960         (tst-swprintf-ENV): Likewise.
31961         (tst-swscanf-ENV): Likewise.
31962         (test-vfprintf-ENV): Likewise.
31963         (scanf13-ENV): Likewise.
31964         (bug14-ENV): Likewise.
31965         (tst-grouping-ENV): Likewise.
31966         * stdlib/Makefile (tst-strtod-ENV): Likewise.
31967         (tst-strtod3-ENV): Likewise.
31968         (tst-strtod4-ENV): Likewise.
31969         (tst-strtod5-ENV): Likewise.
31970         (testmb2-ENV): Likewise./
31971         * string/Makefile (tst-strxfrm-ENV): Likewise.
31972         (tst-strxfrm2-ENV): Likewise.
31973         (bug-strcoll1-ENV): Likewise.
31974         (test-strcasecmp-ENV): Likewise.
31975         (test-strncasecmp-ENV): Likewise.
31976         * time/Makefile (tst-strptime-ENV): Likewise.
31977         (tst-ftime_l-ENV): Likewise.
31978         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
31979         (tst-mbrtowc-ENV): Likewise.
31980         (tst-wcrtomb-ENV): Likewise.
31981         (tst-mbrtowc2-ENV): Likewise.
31982         (tst-c16c32-1-ENV): Likewise.
31983         (tst-mbsnrtowcs-ENV): Likewise.
31984
31985 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
31986
31987         * manual/resource.texi (How to get information about the memory
31988         subsystem?): Fix typo.
31989         Reported by Peon de la Parra Ivan <peon@keba.com>
31990
31991 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
31992
31993         [BZ #16882]
31994         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
31995         (pthread_spin_lock): Branch out of spin loop to proper location.
31996         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
31997         (pthread_spin_lock): Likewise.
31998
31999         * nptl/tst-spin4.c: New test.
32000         * nptl/Makefile (tests): Add tst-spin4.
32001
32002 2014-06-03  Andreas Schwab  <schwab@suse.de>
32003
32004         [BZ #15946]
32005         * resolv/res_send.c (send_dg): Reload file descriptor after
32006         calling reopen.
32007
32008 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
32009
32010         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
32011
32012 2014-06-03  Richard Henderson  <rth@redhat.com>
32013
32014         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
32015         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
32016         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
32017         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
32018         in the SAVE_PID block.
32019         (__libc_vfork): New alias.
32020         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
32021
32022         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
32023         child in registers, not on the stack.  Remove RESET_PID conditionals.
32024         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
32025
32026 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
32027
32028         * sysdeps/aarch64/libm-test-ulps: Regenerate.
32029
32030 2014-06-03  Wilco  <wdijkstr@arm.com>
32031
32032         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
32033         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
32034         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
32035         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
32036         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
32037         Likewise.
32038
32039 2014-06-03  Wilco  <wdijkstr@arm.com>
32040
32041         * sysdeps/aarch64/fpu/math_private.h
32042         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
32043         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
32044         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
32045         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
32046         Fix declarations.
32047
32048 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32049
32050         * crypt/crypt-private.h: Include ufc-crypt.h.
32051         (__b64_from_24bit): Declare extern.
32052         * crypt/crypt_util.c(__b64_from_24bit): New function.
32053         (b64t): New static const variable.
32054         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
32055         (b64t): Remove variable.
32056         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
32057         * crypt/sha256-crypt.c: Include crypt-private.h.
32058         (b64t): Remove variable.
32059         (__sha256_crypt_r): Remove b64_from_24bit and replace
32060         with __b64_from_24bit.
32061         * crypt/sha512-crypt.c: Likewise.
32062
32063 2014-06-02  Roland McGrath  <roland@hack.frob.com>
32064
32065         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
32066         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
32067         Label the code __libc_vfork rather than __vfork.
32068         [!NOT_IN_libc] (vfork): Define as weak alias.
32069         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
32070         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
32071         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
32072
32073 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
32074
32075         * malloc/malloc.c (malloc_info): Fix format specifier for
32076         n_mmaps.
32077
32078 2014-06-02  Wilco  <wdijkstr@arm.com>
32079
32080         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
32081         FPCR write.
32082
32083 2014-06-02  Wilco  <wdijkstr@arm.com>
32084
32085         [BZ #17009]
32086         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
32087         Rewrite to reduce FPCR/FPSR accesses.
32088
32089 2014-06-01  David S. Miller  <davem@davemloft.net>
32090
32091         * sysdeps/sparc/fpu/libm-test-ulps: Update.
32092
32093 2014-05-31  David S. Miller  <davem@davemloft.net>
32094
32095         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
32096         to occur in round to nearest mode when |x| >= 2.0
32097
32098 2014-05-30  Richard Henderson  <rth@twiddle.net>
32099
32100         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
32101         (PSEUDO_RET_NOERRNO): Remove.
32102         (ret): Don't redefine.
32103         (ret_NOERRNO): Define in terms of ret.
32104         (ret_ERRVAL): Likewise.
32105
32106         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
32107         use of PSEUDO_RET; perform the error check directly.
32108
32109 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
32110
32111         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
32112         with __int128_t.
32113
32114 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
32115
32116         * malloc/malloc (malloc_info): Fix formatting.
32117
32118 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
32119             Roland McGrath  <roland@hack.frob.com>
32120
32121         * malloc/malloc (malloc_info): Also print mmapped statistics.
32122
32123 2014-05-30  Roland McGrath  <roland@hack.frob.com>
32124
32125         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
32126         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
32127
32128 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
32129
32130         * malloc/malloc.c (malloc_info): Inline mi_arena.
32131
32132 2014-05-29  Richard Henderson  <rth@twiddle.net>
32133
32134         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
32135         Remove comma before expanding ASM_ARGS_##nr.
32136         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
32137         Make _x0 a strict output; make _x8 a strict input; adjust expansion
32138         of ASM_ARGS_##nr.
32139         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
32140         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
32141         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
32142         (ASM_ARGS_1): Add leading comma.
32143
32144         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
32145         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
32146         to __errno_location.
32147         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
32148         Remove the expected plt for __errno_location.
32149
32150         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32151         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
32152         call to __read_tp.
32153
32154         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32155         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
32156         it and break it down.
32157         (DOCARGS_0, DOCARGS_1): Do nothing.
32158         (DOCARGS_2): Update to store into the new stack frame.
32159         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
32160         (UNDOCARGS_1): Update to restore from the new stack frame.
32161         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
32162         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
32163
32164         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32165         (SINGLE_THREAD_P): New parameter for result regno.
32166         (PSEUDO): Update to match; use cbz instead of beq.
32167
32168         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32169         Use ENTRY to define the _nocancel entry point.  Share the syscall
32170         and syscall error check paths with the cancel path.
32171         (PSEUDO_END): New.
32172
32173         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
32174         whitespace; tabs before and after asm mnemonics.
32175
32176 2014-05-29  Eric Wong  <normalperson@yhbt.net>
32177
32178         [BZ #15132]
32179         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
32180         Call fstat64 or stat64 internally, depending on arguments passed.
32181         Replace stat buffer argument with file descriptor argument.
32182         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
32183         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
32184         Pass fd to __internal_statvfs instead of calling fstat64.
32185         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
32186         Pass fd to __internal_statvfs64 instead of calling fstat64.
32187         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
32188         Pass -1 to __internal_statvfs instead of calling stat64.
32189         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
32190         Pass -1 to __internal_statvfs64 instead of calling stat64.
32191
32192 2014-05-28  Roland McGrath  <roland@hack.frob.com>
32193
32194         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
32195         that was previously under [RESET_PID].
32196         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
32197
32198         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
32199         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
32200
32201 2014-05-27  Roland McGrath  <roland@hack.frob.com>
32202
32203         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
32204
32205         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
32206         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
32207
32208 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
32209
32210         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
32211
32212 2014-05-27  Andreas Schwab  <schwab@suse.de>
32213
32214         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
32215         TLS_INIT_TP macro.
32216         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
32217         * elf/rtld.c (init_tls, dl_main): Likewise.
32218         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
32219         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
32220         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
32221         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
32222         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
32223         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
32224         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
32225         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
32226         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
32227         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
32228         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
32229         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
32230         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
32231         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
32232         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
32233         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
32234         * sysdeps/generic/tls.h: Update description.
32235
32236 2014-05-27  Will Newton  <will.newton@linaro.org>
32237
32238         [BZ #16990]
32239         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
32240         and restore r2 rather than just restoring.
32241
32242 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
32243
32244         [BZ #16724]
32245         * libio/tst-ftell-append.c: New test case.
32246         * libio/Makefile (tests): Add test case.
32247         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
32248         append mode.
32249         * libio/wfileops.c (do_ftell_wide): Likewise.
32250
32251 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32252
32253         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32254
32255         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
32256         ...
32257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
32258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
32259         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
32260         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
32261         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
32262         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
32263         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
32264         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
32265         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
32266         Moved ...
32267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
32268         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
32269         Moved ...
32270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
32271         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
32272         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
32273         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
32274         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
32275         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
32276         ...
32277         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
32278         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
32279         Moved ...
32280         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
32281         here.
32282         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
32283         ...
32284         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
32285         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
32286         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
32287
32288         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
32289         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
32290         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
32291         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
32292
32293         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
32294         merge into ...
32295         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
32296         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
32297         ...
32298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
32299         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
32300         ...
32301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
32302         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
32303         Moved ...
32304         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
32305         here.
32306         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
32307         Moved ...
32308         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
32309         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
32310         Moved ...
32311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
32312
32313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
32314         conditional [RESET_PID].
32315         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
32316         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
32317         removed.
32318         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
32319         removed.
32320
32321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
32322         <tcb-offsets.h>.
32323         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
32324         (__libc_vfork): New strong alias.
32325         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
32326         removed.
32327         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
32328         Removed.
32329
32330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
32331         <tcb-offsets.h>.
32332         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
32333         (__libc_vfork): New strong alias.
32334         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
32335         removed.
32336         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
32337         removed.
32338
32339 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
32340
32341         * malloc/malloc.c (mi_arena): New function.
32342         (malloc_info): Remove nested function mi_arena. Call non-nosted
32343         function mi_arena.
32344
32345 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32346
32347         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
32348         by insrwi.
32349         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32350         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32351         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
32352         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
32353         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
32354         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
32355         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
32356
32357 2014-05-26  Andreas Schwab  <schwab@suse.de>
32358
32359         [BZ #16984]
32360         * locale/programs/repertoire.c (repertoire_read): Add slash
32361         between I18NPATH element and file name.
32362         * locale/programs/locfile.c (locfile_read): Likewise.
32363
32364 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
32365
32366         * nptl/pthread_mutexattr_settype.c
32367         (__pthread_mutexattr_settype):
32368         Disable lock elision for PTHREAD_MUTEX_NORMAL.
32369
32370 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
32371
32372         * nptl/tst-mutex5 (do_test):
32373         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
32374
32375 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32376
32377         * benchtests/README: Document 'init' directive.
32378         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
32379         BENCH_INIT.
32380         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
32381         (parse_file): Recognize 'init' directive.
32382
32383 2014-05-26  Kyle McMartin  <kyle@redhat.com>
32384
32385         [BZ #16796]
32386         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
32387         alignment of struct pthread.
32388
32389 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32390
32391         [BZ #16878]
32392         * nscd/netgroupcache.c (addgetnetgrentX): Look for
32393         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
32394         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
32395         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
32396
32397 2014-05-25  Richard Henderson  <rth@twiddle.net>
32398
32399         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32400         (SINGLE_THREAD_P_PIC): Remove.
32401         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
32402         (SINGLE_THREAD_P_PIC): Remove.
32403
32404         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
32405         branch to syscall error ...
32406         (PSEUDO): ... here.
32407         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
32408         from __local_syscall_error to .Lsyscall_error.
32409         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
32410         (SYSCALL_ERROR): Update label name.
32411
32412         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32413         Do not use DOARGS/UNDOARGS.
32414         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
32415         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
32416         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
32417         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
32418         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
32419
32420         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
32421         block comment.
32422
32423         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
32424         define if !NOT_IN_libc.
32425         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
32426         define with non-default symbol versions.
32427
32428 2014-05-23  Richard Henderson  <rth@twiddle.net>
32429
32430         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
32431         (vfork, __vfork): Define via compat_symbol.
32432
32433         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
32434         [!HAVE_IFUNC] (vfork_compat): Remove.
32435         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
32436
32437 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32438
32439         [BZ #16978]
32440         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
32441         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
32442         variable.
32443
32444 2014-05-23  Richard Henderson  <rth@twiddle.net>
32445
32446         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
32447         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
32448         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
32449         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
32450
32451         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
32452         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
32453         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
32454         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
32455         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
32456         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
32457         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
32458         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
32459         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
32460         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
32461         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
32462         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
32463         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
32464         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
32465         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
32466         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
32467         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
32468         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
32469         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
32470         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
32471         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
32472         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
32473         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
32474         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
32475         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
32476         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
32477         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
32478         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
32479         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
32480         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
32481         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
32482         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
32483         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
32484         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
32485         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
32486         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
32487         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
32488         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
32489         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
32490         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
32491         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
32492         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
32493         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
32494         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
32495         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
32496         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
32497         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
32498         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
32499         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
32500         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
32501         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
32502         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
32503         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
32504         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
32505         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
32506         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
32507
32508         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
32509         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
32510         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
32511         before exiting on error.
32512         (__libc_vfork): New strong alias.
32513         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
32514         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
32515
32516         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
32517         that was previously under [RESET_PID].
32518         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
32519
32520         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
32521
32522 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
32523
32524         [BZ #16977]
32525         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
32526         value when x - 1 is zero.
32527         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
32528         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
32529         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
32530         0.0L for an argument of 1.0L.
32531         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
32532         Likewise.
32533         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
32534         value when x - 1 is zero.
32535         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
32536         * sysdeps/i386/fpu/libm-test-ulps: Update.
32537         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
32538
32539 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
32540
32541         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
32542         alphasort and versionsort.
32543
32544 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32545
32546         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
32547         macro.
32548         [copysignf]: Likewise.
32549
32550 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
32551
32552         * crypt/md5-crypt.c: Fix formatting.
32553
32554 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
32555
32556         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
32557         (b64_from_24bit): New function.
32558
32559 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32560
32561         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
32562         libc_hidden_builtin_def to ifunc.
32563         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
32564         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
32565
32566 2014-05-21  Roland McGrath  <roland@hack.frob.com>
32567
32568         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
32569         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
32570
32571 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
32572
32573         * nscd/Depend (linuxthreads): Remove.
32574         (nptl): Add.
32575         * resolv/Depend (linuxthreads): Remove.
32576         * rt/Depend (linuxthreads): Remove.
32577
32578         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
32579         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
32580         $(common-objpfx)elf/.
32581         (link-libc-before-gnulib): Likewise.
32582         (elfobjdir): Remove variable.
32583         * Makefile (install): Use $(elf-objpfx) instead of
32584         $(common-objpfx)elf/.
32585         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
32586         $(elfobjdir)/.
32587         (link-libc-deps): Likewise.
32588         ($(common-objpfx)libc.so): Likewise.
32589         ($(common-objpfx)linkobj/libc.so): Likewise.
32590         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
32591         instead of $(common-objpfx)elf/.
32592         (symbolic-link-list): Likewise.
32593         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
32594         [$(cross-compiling) = no]: Likewise.
32595         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
32596         $(elfobjdir)/.
32597         (static-gnulib-arch): Likewise.
32598         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
32599         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
32600         $(common-objpfx)elf/.
32601
32602 2014-05-21  Richard Henderson  <rth@redhat.com>
32603
32604         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
32605         (SINGLE_THREAD_P): Use the correct width load.  Fold
32606         into the ldr offset.
32607
32608         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
32609         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
32610
32611 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
32612
32613         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
32614         (libgcc_s_resume): Use __attribute_used__.
32615         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
32616         Likewise.
32617
32618 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32619
32620         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
32621         optimization when used with float constants.
32622
32623         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32624
32625 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
32626
32627         [BZ #16915]
32628         * locale/nl_langinfo_l.c: Make direct reference to every
32629         _nl_current_CATEGORY symbol.
32630         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
32631         (tests-static): Add tst-langinfo-static.
32632         (tests-special): Add tst-langinfo-static.out.
32633         ($(objpfx)tst-langinfo.out): Redirect output.
32634         ($(objpfx)tst-langinfo-static.out): New.
32635         * localedata/tst-langinfo.sh: Send output to stdout.
32636         * localedata/tst-langinfo-static.c: New file.
32637
32638         [BZ #16965]
32639         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
32640         when the shift amount is modulo the limb size.
32641
32642 2014-05-20  Richard Henderson  <rth@redhat.com>
32643
32644         [BZ #16967]
32645         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
32646         Change type of sa_flags from unsigned int to int.
32647
32648         [BZ #16966]
32649         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
32650
32651         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
32652
32653 2014-05-20  Will Newton  <will.newton@linaro.org>
32654
32655         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
32656         Test the return value of the system call in the nocancel case.
32657
32658 2014-05-20  Will Newton  <will.newton@linaro.org>
32659             Yvan Roux  <yvan.roux@linaro.org>
32660
32661         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
32662         #include of asm/ptrace.h.
32663         (PTRACE_GET_THREAD_AREA): Remove #undef.
32664         (PTRACE_GETHBPREGS): Likewise.
32665         (PTRACE_SETHBPREGS): Likewise.
32666         (struct user_regs_struct): New structure.
32667         (struct user_fpsimd_struct): New structure.
32668         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
32669         #include of asm/ptrace.h and second #include of sys/user.h.
32670         (PTRACE_GET_THREAD_AREA): Remove #undef.
32671         (PTRACE_GETHBPREGS): Likewise.
32672         (PTRACE_SETHBPREGS): Likewise.
32673         (ELF_NGREG): Use new struct user_regs_struct.
32674         (elf_fpregset_t): Use new struct user_fpsimd_struct.
32675
32676 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32677
32678         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
32679         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
32680
32681 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
32682
32683         [BZ #16958]
32684         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
32685         membar to avoid block loads/stores to overlap previous stores.
32686
32687 2014-05-17  Richard Henderson  <rth@redhat.com>
32688
32689         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
32690         Create the __##syscall_name##_nocancel entry point.
32691         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
32692         Remove; let the sysdep-cancel.h code create it.
32693
32694 2014-05-17  David S. Miller  <davem@davemloft.net>
32695
32696         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
32697         Protect with __USE_GNU.
32698         (TIOCSET_TEMPT): Likewise.
32699         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
32700         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
32701         these are already provided in bits/ioctl-types.h
32702
32703 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32704
32705         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
32706         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
32707
32708         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
32709         Use wait4 regardless of [__NR_waitpid].
32710
32711 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
32712
32713         PR libgcc/60166
32714         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
32715         (_FP_NANSIGN_Q): Set the quiet bit.
32716
32717 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
32718
32719         * benchtests/Makefile
32720         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
32721         not $(common-objpfx)math/libm.so.
32722         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
32723         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
32724         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
32725         $(common-objpfx)dlfcn/libdl.so.
32726         ($(objpfx)tst-audit8): Depend on $(libm), not
32727         $(common-objpfx)math/libm.so.
32728         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
32729         not $(common-objpfx)dlfcn/libdl.so.
32730         * math/Makefile
32731         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
32732         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
32733         [$(build-shared) = yes].
32734         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
32735         $(common-objpfx)nptl/libpthread.so.
32736         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
32737         $(common-objpfx)math/libm.so$(libm.so-version) or
32738         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
32739         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
32740         $(common-objpfx)dlfcn/libdl.so.
32741         * setjmp/Makefile (link-libm): Remove variable.
32742         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
32743         * stdio-common/Makefile (link-libm): Remove variable.
32744         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
32745         * stdlib/Makefile (link-libm): Remove variable.
32746         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
32747         ($(objpfx)tst-strtod-round): Likewise.
32748         ($(objpfx)tst-tininess): Likewise.
32749         ($(objpfx)tst-strtod-underflow): Likewise.
32750         ($(objpfx)tst-strtod6): Likewise.
32751         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
32752         $(libdl), not $(common-objpfx)nptl/libpthread.so and
32753         $(common-objpfx)dlfcn/libdl.so.
32754
32755 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32756
32757         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
32758         BSD terminal modes definitions.
32759
32760 2014-05-16  Roland McGrath  <roland@hack.frob.com>
32761
32762         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
32763         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
32764
32765         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
32766         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
32767         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
32768         Don't do #include_next.
32769         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
32770         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
32771         Don't do #include_next.
32772         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
32773         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
32774         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
32775         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
32776
32777 2014-05-16  Allan McRae  <allan@archlinux.org>
32778
32779         * po/sv.po: Update Swedish translation from translation project.
32780
32781         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
32782         in sed expression.
32783
32784 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
32785
32786         [BZ #16917]
32787         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
32788         errno if the TIOCGPTN ioctl fails with an error different than
32789         EINVAL.
32790         * login/tst-ptsname.c: New file.
32791         * login/Makefile (tests): Add tst-ptsname.
32792
32793         [BZ #16943]
32794         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
32795         and prlimit64.
32796
32797 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
32798
32799         [BZ #16849]
32800         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
32801         herrno to return EAI_AGAIN.
32802
32803 2014-05-14  Roland McGrath  <roland@hack.frob.com>
32804
32805         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
32806         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
32807         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
32808         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
32809         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
32810         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
32811         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
32812         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
32813         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
32814         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
32815         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
32816         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
32817         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
32818         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
32819         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
32820         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
32821         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
32822         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
32823         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
32824         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
32825         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
32826         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
32827         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
32828         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
32829         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
32830         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
32831         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
32832         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
32833         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
32834         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
32835         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
32836         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
32837         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
32838         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
32839         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
32840         Moved ...
32841         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
32842         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
32843         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
32844         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
32845         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
32846         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
32847         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
32848         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
32849         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
32850         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
32851         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
32852         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
32853         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
32854         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
32855         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
32856         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
32857         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
32858         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
32859         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
32860         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
32861         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
32862         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
32863         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
32864         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
32865         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
32866         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
32867         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
32868         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
32869         Moved ...
32870         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
32871         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
32872         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
32873         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
32874         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
32875         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
32876         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
32877         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
32878         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
32879         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
32880         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
32881         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
32882         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
32883         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
32884         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
32885         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
32886         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
32887         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
32888         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
32889         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
32890         Moved ...
32891         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
32892         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
32893         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
32894
32895         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
32896         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
32897         (libpthread-sysdep_routines): Add elision-related stuff here instead.
32898         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
32899         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
32900         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
32901         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
32902         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
32903         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
32904         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
32905         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
32906         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
32907         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
32908         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
32909         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
32910         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
32911         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
32912         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
32913         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
32914         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
32915         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
32916         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
32917         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
32918         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
32919         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
32920         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
32921         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
32922         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
32923         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
32924         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
32925         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
32926
32927         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
32928         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
32929
32930         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
32931         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
32932         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
32933         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
32934         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
32935         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
32936         Moved ...
32937         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
32938         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
32939         Moved ...
32940         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
32941         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
32942         Moved ...
32943         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
32944         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
32945         Moved ...
32946         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
32947         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
32948         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
32949         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
32950         Moved ...
32951         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
32952         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
32953         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
32954         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
32955         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
32956         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
32957         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
32958         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
32959         Moved ...
32960         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
32961         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
32962         Moved ...
32963         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
32964         ... here.
32965         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
32966         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
32967         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
32968         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
32969         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
32970         Moved ...
32971         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
32972         ... here.
32973         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
32974         Moved ...
32975         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
32976         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
32977         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
32978         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
32979         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
32980         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
32981         Moved ...
32982         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
32983         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
32984         Moved ...
32985         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
32986         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
32987         Moved ...
32988         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
32989         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
32990         Moved ...
32991         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
32992         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
32993         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
32994         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
32995         Moved ...
32996         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
32997         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
32998         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
32999         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
33000         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
33001         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
33002         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
33003         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
33004         Moved ...
33005         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
33006         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
33007         Moved ...
33008         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
33009         ... here.
33010         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
33011         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
33012         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
33013         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
33014         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
33015         Moved ...
33016         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
33017         ... here.
33018         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
33019         Moved ...
33020         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
33021         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
33022         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
33023         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
33024         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
33025         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
33026         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
33027         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
33028         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
33029         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
33030         Moved ...
33031         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
33032         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
33033         Moved ...
33034         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
33035         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
33036         Moved ...
33037         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
33038         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
33039         Moved ...
33040         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
33041         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
33042         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
33043         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
33044         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
33045         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
33046         Moved ...
33047         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
33048         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
33049         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
33050         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
33051         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
33052         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
33053         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
33054         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
33055         Moved ...
33056         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
33057         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
33058         Moved ...
33059         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
33060         ... here.
33061         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
33062         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
33063         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
33064         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
33065         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
33066         Moved ...
33067         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
33068         ... here.
33069         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
33070         Moved ...
33071         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
33072         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
33073         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
33074         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
33075         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
33076         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
33077         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
33078         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
33079         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
33080         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
33081         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
33082
33083         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
33084         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
33085
33086         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
33087         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
33088
33089         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
33090         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
33091         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
33092         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
33093         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
33094         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
33095         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
33096         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
33097         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
33098         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
33099         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
33100         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
33101         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
33102         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
33103         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
33104         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
33105         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
33106         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
33107         Moved ...
33108         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
33109         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
33110         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
33111         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
33112         Moved ...
33113         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
33114         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
33115         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
33116         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
33117         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
33118         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
33119         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
33120         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
33121         Moved ...
33122         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
33123         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
33124         Moved ...
33125         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
33126         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
33127         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
33128         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
33129         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
33130         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
33131         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
33132         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
33133         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
33134         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
33135         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
33136         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
33137         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
33138         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
33139         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
33140         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
33141         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
33142
33143         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
33144         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
33145         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
33146         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
33147         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
33148
33149         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
33150         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
33151         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
33152         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
33153         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
33154         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
33155         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
33156         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
33157         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
33158         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
33159
33160         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
33161         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
33162
33163         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
33164         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
33165         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
33166         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
33167         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
33168         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
33169         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
33170         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
33171         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
33172         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
33173         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
33174         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
33175         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
33176         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
33177         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
33178         Update #include.
33179         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
33180         Likewise.
33181         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
33182         Likewise.
33183         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
33184         Likewise.
33185         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
33186         Likewise.
33187         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
33188         Likewise.
33189         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
33190         Likewise.
33191         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
33192         Likewise.
33193         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
33194         Likewise.
33195         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
33196         Likewise.
33197         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
33198         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
33199         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
33200         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
33201         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
33202         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
33203         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
33204         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
33205         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
33206         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
33207         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
33208         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
33209         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
33210         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
33211         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
33212
33213         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
33214         that was previously under [RESET_PID].
33215         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
33216         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
33217         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
33218
33219         * sysdeps/i386/nptl/Implies: New file.
33220         * sysdeps/x86_64/nptl/Implies: New file.
33221         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
33222         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
33223         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
33224         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
33225
33226         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
33227         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33228         (__libc_vfork): New strong alias.
33229         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
33230         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
33231
33232         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
33233         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33234         (__libc_vfork): New strong alias.
33235         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
33236         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
33237
33238         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
33239         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
33240         (__libc_vfork): New strong alias.
33241         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
33242         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
33243         * nptl/pt-vfork.c: New file.
33244         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
33245         (libpthread: GLIBC_2.20): New version set (empty).
33246
33247 2014-05-14  Will Newton  <will.newton@linaro.org>
33248
33249         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
33250         rather than #if.
33251
33252 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
33253
33254         [BZ #16564]
33255         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
33256         arguments with exponent 65 or above.
33257         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
33258         arguments 0x1p113L or above.
33259         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
33260         to arguments 0x1p107L or above.
33261         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
33262         positive arguments with exponent 65 or above.
33263         * math/auto-libm-test-in: Add more tests of log1p.
33264         * math/auto-libm-test-out: Regenerated.
33265
33266         [BZ #16928]
33267         * math/s_cacos.c (__cacos): Ensure zero real part of result from
33268         non-finite arguments is +0.
33269         * math/s_cacosf.c (__cacosf): Likewise.
33270         * math/s_cacosl.c (__cacosl): Likewise.
33271         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
33272         * sysdeps/i386/fpu/libm-test-ulps: Update.
33273         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33274
33275         [BZ #16927]
33276         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
33277         value.
33278         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
33279         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
33280         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
33281         for explicit high bit of mantissa when testing for argument equal
33282         to 1.
33283         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
33284         * sysdeps/i386/fpu/libm-test-ulps: Update.
33285         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33286
33287         [BZ #16516]
33288         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
33289         (__erf): Scale by 16 instead of 8 in potentially underflowing
33290         case.  Ensure exception if result actually underflows.
33291         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
33292         (__erff): Scale by 16 instead of 8 in potentially underflowing
33293         case.  Ensure exception if result actually underflows.
33294         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
33295         (efx8): Remove variable.
33296         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33297         case.  Ensure exception if result actually underflows.
33298         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
33299         (efx8): Remove variable.
33300         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33301         case.  Ensure exception if result actually underflows.
33302         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
33303         (efx8): Remove variable.
33304         (__erfl): Scale by 16 instead of 8 in potentially underflowing
33305         case.  Ensure exception if result actually underflows.
33306         * math/auto-libm-test-in: Add more tests of erf.
33307         * math/auto-libm-test-out: Regenerated.
33308
33309 2014-05-14  Andreas Schwab  <schwab@suse.de>
33310
33311         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
33312         Remove code conditionalized on USE___THREAD.
33313
33314         * config.h.in (HAVE_PT_CHOWN): Define as 0.
33315         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
33316         not definedness.
33317
33318 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
33319
33320         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
33321         Define unconditionally.
33322         (__ASSUME_O_CLOEXEC): Likewise.
33323         (__ASSUME_SOCK_CLOEXEC): Likewise.
33324         (__ASSUME_IN_NONBLOCK): Likewise.
33325         (__ASSUME_PIPE2): Likewise.
33326         (__ASSUME_EVENTFD2): Likewise.
33327         (__ASSUME_SIGNALFD4): Likewise.
33328         (__ASSUME_DUP3): Likewise.
33329         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
33330         (__ASSUME_DUP3): Do not define.
33331         (__ASSUME_EVENTFD2): Likewise.
33332         (__ASSUME_IN_NONBLOCK): Likewise.
33333         (__ASSUME_O_CLOEXEC): Likewise.
33334         (__ASSUME_PIPE2): Likewise.
33335         (__ASSUME_SIGNALFD4): Likewise.
33336         (__ASSUME_SOCK_CLOEXEC): Likewise.
33337         (__ASSUME_UTIMES): Undefine.
33338         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33339         (__ASSUME_UTIMES): Do not define.
33340         (__ASSUME_O_CLOEXEC): Likewise.
33341         (__ASSUME_SOCK_CLOEXEC): Likewise.
33342         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
33343         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
33344         0x020621].
33345         (__ASSUME_PIPE2): Likewise.
33346         (__ASSUME_EVENTFD2): Likewise.
33347         (__ASSUME_SIGNALFD4): Likewise.
33348         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
33349         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
33350         Do not define.
33351         (__ASSUME_EVENTFD2): Likewise.
33352         (__ASSUME_SIGNALFD4): Likewise.
33353         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33354         (__ASSUME_32BITUIDS): Likewise.
33355         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
33356         (__ASSUME_IPC64): Likewise.
33357         (__ASSUME_ST_INO_64_BIT): Likewise.
33358         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
33359         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
33360         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33361         (__ASSUME_UTIMES): Do not define.
33362         (__ASSUME_PSELECT): Likewise.
33363         (__ASSUME_PPOLL): Likewise.
33364         (__ASSUME_O_CLOEXEC): Likewise.
33365         (__ASSUME_SOCK_CLOEXEC): Likewise.
33366         (__ASSUME_IN_NONBLOCK): Likewise.
33367         (__ASSUME_PIPE2): Likewise.
33368         (__ASSUME_EVENTFD2): Likewise.
33369         (__ASSUME_SIGNALFD4): Likewise.
33370         (__ASSUME_DUP3): Likewise.
33371         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33372         (__ASSUME_UTIMES): Likewise.
33373         (__ASSUME_O_CLOEXEC): Likewise.
33374         (__ASSUME_SOCK_CLOEXEC): Likewise.
33375         (__ASSUME_IN_NONBLOCK): Likewise.
33376         (__ASSUME_PIPE2): Likewise.
33377         (__ASSUME_EVENTFD2): Likewise.
33378         (__ASSUME_SIGNALFD4): Likewise.
33379         (__ASSUME_DUP3): Likewise.
33380         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33381         (__ASSUME_UTIMES): Likewise.
33382         (__ASSUME_O_CLOEXEC): Likewise.
33383         (__ASSUME_SOCK_CLOEXEC): Likewise.
33384         (__ASSUME_IN_NONBLOCK): Likewise.
33385         (__ASSUME_PIPE2): Likewise.
33386         (__ASSUME_EVENTFD2): Likewise.
33387         (__ASSUME_SIGNALFD4): Likewise.
33388         (__ASSUME_DUP3): Likewise.
33389         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
33390         Likewise.
33391         (__ASSUME_UTIMES): Likewise.
33392         (__ASSUME_EVENTFD2): Likewise.
33393         (__ASSUME_SIGNALFD4): Likewise.
33394         * sysdeps/unix/sysv/linux/tile/kernel-features.h
33395         (__ASSUME_O_CLOEXEC): Likewise.
33396         (__ASSUME_SOCK_CLOEXEC): Likewise.
33397         (__ASSUME_IN_NONBLOCK): Likewise.
33398         (__ASSUME_PIPE2): Likewise.
33399         (__ASSUME_EVENTFD2): Likewise.
33400         (__ASSUME_SIGNALFD4): Likewise.
33401         (__ASSUME_DUP3): Likewise.
33402         (__ASSUME_UTIMES): Undefine.
33403
33404         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
33405         feclearexcept.  Remove symbol versioning code.
33406         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
33407         symbol versioning code.
33408         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
33409         symbol versioning code.
33410         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
33411         feupdateenv.  Remove symbol versioning code.
33412         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
33413         fegetexceptflag.  Remove symbol versioning code.
33414         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
33415         fesetexceptflag.  Remove symbol versioning code.
33416         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
33417         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
33418         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
33419         (__posix_fadvise64_l32): Remove prototype.
33420         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
33421         code.
33422
33423 2014-05-13  Roland McGrath  <roland@hack.frob.com>
33424
33425         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
33426         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
33427         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
33428         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
33429
33430 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
33431
33432         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
33433         current working directory
33434
33435 2014-05-13  Roland McGrath  <roland@hack.frob.com>
33436
33437         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
33438         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
33439         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
33440         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
33441         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
33442         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
33443         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
33444         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
33445         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
33446         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
33447         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
33448         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
33449         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
33450         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
33451         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
33452         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
33453         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
33454         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
33455         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
33456         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
33457         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
33458         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
33459         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
33460         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
33461         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
33462         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
33463         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
33464         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
33465         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
33466         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
33467         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
33468         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
33469         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
33470         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
33471         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
33472         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
33473         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
33474         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
33475         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
33476         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
33477         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
33478         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
33479
33480         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
33481         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
33482
33483         * sysdeps/unix/sysv/linux/arm/Makefile
33484         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
33485         Add rt-aeabi_unwind_cpp_pr1.
33486         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
33487         Add nptl-aeabi_unwind_cpp_pr1.
33488         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
33489         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
33490         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
33491         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
33492         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
33493         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
33494
33495         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
33496         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
33497         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
33498         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
33499
33500         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
33501         Deconditionalize the code that was previously under [RESET_PID].
33502         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
33503
33504         * sysdeps/generic/exit-thread.h: New file.
33505         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
33506         * include/unistd.h (__exit_thread): Remove declaration.
33507         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
33508         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
33509         * csu/libc-start.c: Include <exit-thread.h>.
33510         (LIBC_START_MAIN): Pass no argument to __exit_thread.
33511         * nptl/pthread_create.c: Include <exit-thread.h>.
33512         (start_thread): Call __exit_thread in place of __exit_thread_inline.
33513         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
33514         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
33515         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
33516         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
33517         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
33518         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
33519         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
33520         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
33521         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
33522         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
33523         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
33524         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
33525         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
33526         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
33527         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
33528         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
33529
33530 2014-05-13  Andreas Schwab  <schwab@suse.de>
33531
33532         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
33533
33534 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
33535
33536         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
33537         (__ASSUME_UTIMES): Do not condition on kernel version.
33538         (__ASSUME_PSELECT): Define unconditionally.
33539         (__ASSUME_PPOLL): Likewise.
33540         (__ASSUME_ATFCTS): Likewise.
33541         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
33542         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
33543         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
33544         (__ASSUME_UTIMENSAT): Define unconditionally.
33545         (__ASSUME_PRIVATE_FUTEX): Likewise.
33546         (__ASSUME_FALLOCATE): Likewise.
33547         (__ASSUME_O_CLOEXEC): Likewise.
33548         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
33549         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
33550         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
33551         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
33552         (__ASSUME_IN_NONBLOCK): Likewise.
33553         (__ASSUME_PIPE2): Likewise.
33554         (__ASSUME_EVENTFD2): Likewise.
33555         (__ASSUME_SIGNALFD4): Likewise.
33556         (__ASSUME_DUP3): Likewise.
33557         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33558         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
33559         (__ASSUME_AT_RANDOM): Likewise.
33560         (__ASSUME_PREADV): Likewise.
33561         (__ASSUME_PWRITEV): Likewise.
33562         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
33563         (__ASSUME_F_GETOWN_EX): Define unconditionally.
33564         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
33565         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
33566         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
33567         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33568         (__ASSUME_O_CLOEXEC): Define unconditionally.
33569         (__ASSUME_PSELECT): Do not undefine conditionally.
33570         (__ASSUME_PPOLL): Likewise.
33571         (__ASSUME_ATFCTS): Likewise.
33572         (__ASSUME_SET_ROBUST_LIST): Likewise.
33573         (__ASSUME_UTIMENSAT): Likewise.
33574         (__ASSUME_FDATASYNC): Define unconditionally.
33575         * sysdeps/unix/sysv/linux/arm/kernel-features.h
33576         (__ASSUME_SIGFRAME_V2): Likewise.
33577         )__ASSUME_EVENTFD2): Likewise.
33578         (__ASSUME_SIGNALFD4): Likewise.
33579         (__ASSUME_PSELECT): Do not undefine conditionally.
33580         (__ASSUME_PPOLL): Likewise.
33581         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
33582         (__ASSUME_PSELECT): Define unconditionally.
33583         (__ASSUME_PPOLL): Likewise.
33584         (__ASSUME_O_CLOEXEC): Likewise.
33585         (__ASSUME_SOCK_CLOEXEC): Likewise.
33586         (__ASSUME_IN_NONBLOCK): Likewise.
33587         (__ASSUME_PIPE2): Likewise.
33588         (__ASSUME_EVENTFD2): Likewise.
33589         (__ASSUME_SIGNALFD4): Likewise.
33590         (__ASSUME_DUP3): Likewise.
33591         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
33592         (__ASSUME_O_CLOEXEC): Likewise.
33593         (__ASSUME_SOCK_CLOEXEC): Likewise.
33594         (__ASSUME_IN_NONBLOCK): Likewise.
33595         (__ASSUME_PIPE2): Likewise.
33596         (__ASSUME_EVENTFD2): Likewise.
33597         (__ASSUME_SIGNALFD4): Likewise.
33598         (__ASSUME_DUP3): Likewise.
33599         * sysdeps/unix/sysv/linux/mips/kernel-features.h
33600         (__ASSUME_EVENTFD2): Likewise.
33601         (__ASSUME_SIGNALFD4): Likewise.
33602         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
33603
33604 2014-05-12  Andreas Schwab  <schwab@suse.de>
33605
33606         [BZ #16932]
33607         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
33608         (_nss_nis_gethostbyname4_r): Return error if item length is larger
33609         than maximum RPC packet size.
33610         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
33611         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
33612         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
33613         (_nss_nis_getservbyport_r): Likewise.
33614
33615 2014-05-12  Will Newton  <will.newton@linaro.org>
33616
33617         * malloc/Makefile (tests): Add tst-mallopt.
33618         * malloc/tst-mallopt.c: New file.
33619
33620 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33621
33622         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
33623         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
33624
33625 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33626
33627         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
33628         (tst-tlsmod6.so): Likewise.
33629
33630 2014-05-09  Roland McGrath  <roland@hack.frob.com>
33631
33632         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
33633
33634 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
33635
33636         [BZ #16064]
33637         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
33638         and <dl-procinfo.h>.
33639         (__fegetenv): Save SSE state in envp->__eip if supported.
33640         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
33641         envp->__eip if supported.
33642         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
33643         and <dl-procinfo.h>.
33644         (__fesetenv): Always set __eip, __cs_selector, __opcode,
33645         __data_offset and __data_selector in environment to 0.  Set SSE
33646         state if supported.
33647         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
33648         test-fenv-sse.
33649         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
33650         -mfpmath=sse.
33651         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
33652
33653 2014-05-09  Will Newton  <will.newton@linaro.org>
33654
33655         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
33656         and libc_relro_required for ARM.
33657         * sysdeps/arm/preconfigure: Regenerate.
33658
33659 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33660             Stefan Liebler  <stli@linux.vnet.ibm.com>
33661
33662         * config.make.in (enable-lock-elision): New Makefile variable.
33663         * configure.ac: Likewise.
33664         * configure: Regenerate.
33665         * sysdeps/s390/configure.ac:
33666         Add check for gcc transactions support.
33667         * sysdeps/s390/configure: Regenerate.
33668         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
33669         Build elision files if enabled.
33670         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
33671         Add lock elision support for s390.
33672         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
33673         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
33674         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
33675         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
33676         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
33677         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
33678         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
33679         Likewise.
33680         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
33681         Likewise.
33682         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
33683         Likewise.
33684         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
33685         Likewise.
33686         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
33687         (__lll_timedlock_elision, __lll_lock_elision)
33688         (__lll_unlock_elision, __lll_trylock_elision)
33689         (lll_timedlock_elision, lll_lock_elision)
33690         (lll_unlock_elision, lll_trylock_elision): Add.
33691         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
33692         (pthread_mutex_t): Add lock elision support for s390.
33693
33694 2014-05-14  Wilco  <wdijkstr@arm.com>
33695
33696         * sysdeps/arm/fclrexcpt.c: Cleanup.
33697         * sysdeps/arm/fedisblxcpt.c: Cleanup.
33698         * sysdeps/arm/feenablxcpt.c: Cleanup.
33699         * sysdeps/arm/fegetenv.c: Cleanup.
33700         * sysdeps/arm/fegetexcept.c: Cleanup.
33701         * sysdeps/arm/fegetround.c: Cleanup.
33702         * sysdeps/arm/feholdexcpt.c: Cleanup.
33703         * sysdeps/arm/fesetenv.c: Cleanup.
33704         * sysdeps/arm/fesetround.c: Cleanup.
33705         * sysdeps/arm/feupdateenv.c: Cleanup.
33706         * sysdeps/arm/fgetexcptflg.c: Cleanup.
33707         * sysdeps/arm/fraiseexcpt.c: Cleanup.
33708         * sysdeps/arm/fsetexcptflg.c: Cleanup.
33709         * sysdeps/arm/ftestexcept.c: Cleanup.
33710         * sysdeps/arm/get-rounding-mode.h: Cleanup.
33711         * sysdeps/arm/setfpucw.c: Cleanup.
33712
33713 2014-05-09  Will Newton  <will.newton@linaro.org>
33714
33715         * sysdeps/arm/armv7/strcmp.S: New file.
33716         * NEWS: Mention addition of ARMv7 optimized strcmp.
33717
33718 2014-05-08  Roland McGrath  <roland@hack.frob.com>
33719
33720         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
33721         look for %.ac rather than %.in.
33722
33723         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
33724         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
33725         * sysdeps/mach/hurd/configure: Regenerated.
33726         * sysdeps/unix/sysv/linux/configure: Regenerated.
33727
33728         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
33729
33730 2014-05-07  Steve Ellcey  <sellcey@mips.com>
33731
33732         [BZ# 16922]
33733         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
33734         (LONG_SUB): Ditto.
33735         (PTR_SUB): Ditto.
33736
33737 2014-05-07  Andreas Schwab  <schwab@suse.de>
33738
33739         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
33740         when skipping over non-matching result from nscd.
33741
33742 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
33743
33744         [BZ #16876]
33745         * nptl/sockperf.c (client): Check socket return value.
33746
33747         [BZ #16877]
33748         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
33749         nscd security class.
33750
33751 2014-05-06  Roland McGrath  <roland@hack.frob.com>
33752
33753         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
33754         * sysdeps/arm/unwind.h: ... here.
33755
33756 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
33757
33758         [BZ# 16916]
33759         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
33760         Define.
33761
33762 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
33763
33764         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
33765         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
33766         multiarch strncpy for PPC64.
33767         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
33768         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
33769         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
33770         multiarch optimizations.
33771         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
33772         (__libc_ifunc_impl_list): Likewise.
33773         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
33774         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
33775         multiarch stpncpy for PPC64.
33776         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
33777         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
33778
33779 2014-05-06  Andreas Schwab  <schwab@suse.de>
33780
33781         [BZ #16912]
33782         * gmon/mcount.c (_MCOUNT_DECL): Use
33783         atomic_compare_and_exchange_bool_acq instead of
33784         catomic_compare_and_exchange_bool_acq.
33785
33786 2014-05-05  Roland McGrath  <roland@hack.frob.com>
33787
33788         * elf/Makefile (others, install-bin): Remove pldd.
33789         (pldd-modules): Variable removed.
33790         ($(objpfx)pldd): Target removed.
33791         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
33792         (others, install-bin): Append pldd here.
33793         ($(objpfx)pldd): New target.
33794
33795         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
33796         to 0, so the first #if test emitted later doesn't see it undefined.
33797         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
33798         * sysdeps/gnu/errlist.c: Regenerated.
33799
33800 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33801
33802         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
33803         [libc_hidden_builtin_def]: Define to empty value.
33804         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
33805         [libc_hidden_builtin_def]: Likewise.
33806         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
33807         [libc_hidden_builtin_def]: Likewise.
33808         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
33809         [libc_hidden_builtin_def]: Likewise.
33810         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
33811         __redirect_memcpy and define ifunc as default hidden symbol.
33812         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
33813         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
33814
33815 2014-05-04  Adam Conrad  <adconrad@0c3.net>
33816
33817         * locale/iso-4217.def: Reintroduce XDR currency.
33818
33819 2014-05-04  Allan McRae  <allan@archlinux.org>
33820
33821         * po/eo.po: Update Esperanto translation from translation project.
33822
33823 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
33824
33825         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
33826         and FEATURE_INDEX_MAX to 1.
33827         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
33828
33829 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33830
33831         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
33832         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
33833         * iconvdata/big5.c (ONE_DIRECTION): Define.
33834         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
33835         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
33836         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
33837         * iconvdata/cp932.c (ONE_DIRECTION): Define.
33838         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
33839         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
33840         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
33841         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
33842         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
33843         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
33844         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
33845         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
33846         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
33847         * iconvdata/gbk.c (ONE_DIRECTION): Define.
33848         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
33849         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
33850         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
33851         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
33852         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
33853         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
33854         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
33855         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
33856         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
33857         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
33858         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
33859         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
33860         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
33861         * iconvdata/iso646.c (ONE_DIRECTION): Define.
33862         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
33863         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
33864         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
33865         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
33866         * iconvdata/johab.c (ONE_DIRECTION): Define.
33867         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
33868         * iconvdata/sjis.c (ONE_DIRECTION): Define.
33869         * iconvdata/t.61.c (ONE_DIRECTION): Define.
33870         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
33871         * iconvdata/tscii.c (ONE_DIRECTION): Define.
33872         * iconvdata/uhc.c (ONE_DIRECTION): Define.
33873         * iconvdata/unicode.c (ONE_DIRECTION): Define.
33874         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
33875         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
33876         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
33877
33878 2014-05-01  Roland McGrath  <roland@hack.frob.com>
33879
33880         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
33881         (_IO_JUMPS_OFFSET): Define to 0.
33882
33883         * nptl/sysdeps/pthread/bits/libc-lock.h
33884         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
33885         (__libc_lock_define_initialized_recursive): Always define using
33886         initializer.  Modern compilers treat uninitialized (implicit zero) and
33887         explicit zero initializers the same (i.e. put the datum in bss).
33888
33889 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33890
33891         * nscd/nscd-client.h: Include <string.h>.
33892
33893 2014-05-01  David S. Miller  <davem@davemloft.net>
33894
33895         [BZ #16885]
33896         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
33897         multiple zero bytes exist at the end of a string.
33898         Reported by Aurelien Jarno <aurelien@aurel32.net>
33899
33900         * string/test-strcmp.c (check): Add explicit test for situations where
33901         there are multiple zero bytes after the first.
33902
33903 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33904
33905         [BZ #16890]
33906         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
33907         when compiling wprintf.
33908         * stdio-common/tstdiomisc.c (t3): New function.
33909         (main): Call it.
33910
33911 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33912
33913         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
33914         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
33915         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
33916         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
33917
33918 2014-05-01  Steve Ellcey  <sellcey@mips.com>
33919
33920         * stdlib/longlong.h: Updated from GCC.
33921
33922 2014-05-01  Will Newton  <will.newton@linaro.org>
33923             Bernard Ogden  <bernie.ogden@linaro.org>
33924
33925         * NEWS: Update fixed bug list.
33926
33927         [BZ #15119]
33928         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
33929
33930 2014-04-30  David S. Miller  <davem@davemloft.net>
33931
33932         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
33933         (libc_feholdexcept_setround_sparc_ctx): New function.
33934         (libc_fesetenv_sparc_ctx): Likewise.
33935         (libc_feupdateenv_sparc_ctx): Likewise.
33936         (libc_feholdsetround_sparc_ctx): Likewise.
33937         (libc_feholdexcept_setround_ctx): Define.
33938         (libc_feholdexcept_setroundf_ctx): Likewise.
33939         (libc_feholdexcept_setroundl_ctx): Likewise.
33940         (libc_fesetenv_ctx): Likewise.
33941         (libc_fesetenvf_ctx): Likewise.
33942         (libc_fesetenvl_ctx): Likewise.
33943         (libc_feupdateenv_ctx): Likewise.
33944         (libc_feupdateenvf_ctx): Likewise.
33945         (libc_feupdateenvl_ctx): Likewise.
33946         (libc_feresetround_ctx): Likewise.
33947         (libc_feresetroundf_ctx): Likewise.
33948         (libc_feresetroundl_ctx): Likewise.
33949         (libc_feholdsetround_ctx): Likewise.
33950         (libc_feholdsetroundf_ctx): Likewise.
33951         (libc_feholdsetroundl_ctx): Likewise.
33952
33953         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
33954         with __USE_GNU instead of XOPEN cpp guards.
33955
33956         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
33957         0.
33958
33959         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
33960         with XOPEN cpp guards.
33961
33962 2014-04-30  Julian Brown  <julian@codesourcery.com>
33963
33964         [BZ #16888]
33965         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
33966         handling.
33967
33968 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
33969
33970         [BZ #9894]
33971         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
33972         Change to 2.6.32.
33973         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
33974         * sysdeps/unix/sysv/linux/configure: Regenerated.
33975         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
33976         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
33977         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
33978         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
33979         * README: Update reference to required Linux kernel version.
33980         * manual/install.texi (Linux): Update reference to required Linux
33981         kernel headers version.
33982         * INSTALL: Regenerated.
33983
33984         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
33985         header inclusion.
33986         [POSIX] (limits.h): Likewise.
33987         [POSIX] (math.h): Likewise.
33988         [POSIX] (sys/wait.h): Likewise.
33989         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
33990         function.
33991         [POSIX] (stddef.h): Do not allow header inclusion.
33992
33993 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33994
33995         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
33996
33997 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
33998
33999         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
34000         Return immediately after lll_futex_wake.
34001
34002 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
34003
34004         [BZ #16791]
34005         * nscd/nscd-client.h (datahead_init_common): Initialize entire
34006         structure.
34007         (datahead_init_pos): Call datahead_init_common early.
34008         (datahead_init_neg): Likewise.
34009
34010         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
34011         datahead_init_neg): New functions.
34012         * nscd/aicache.c (addhstaiX): Use them.
34013         * nscd/grpcache.c (cache_addgr): Likewise.
34014         * nscd/hstcache.c (cache_addhst): Likewise.
34015         * nscd/initgrcache.c (addinitgroupsX): Likewise.
34016         * nscd/netgroupcache.c (do_notfound): Likewise.
34017         (addgetnetgrentX): Likewise.
34018         (addinnetgrX): Likewise.
34019         * nscd/pwdcache.c (cache_addpw): Likewise.
34020         * nscd/servicescache.c (cache_addserv): Likewise.
34021
34022 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
34023             Atsushi Onoe  <atsushi@onoe.org>
34024
34025         [BZ #14308]
34026         [BZ #12994]
34027         [BZ #13651]
34028         * resolv/res_query.c (__libc_res_nsearch): Return if at least
34029         one response is valid.
34030         * resolv/res_send.c (send_dg): Check for validity of other
34031         response if the current response is a referral.
34032
34033 2014-04-29  Steve Ellcey  <sellcey@mips.com>
34034
34035         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
34036
34037 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
34038
34039         [BZ #16823]
34040         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
34041         Always divide by positive zero when computing -Inf result.
34042         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
34043         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
34044
34045 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34046
34047         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
34048         FPSCR if value do not change.
34049         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
34050         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
34051         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
34052         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
34053         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
34054         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
34055         function.
34056
34057 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
34058
34059         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
34060         * sysdeps/unix/sysv/linux/hppa: Move directory from
34061         ports/systeps/unix/sysv/linux/hppa.
34062         * README: Update listing for hppa-*-linux-gnu.
34063
34064 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
34065
34066         [BZ #16754]
34067         * manual/stdio.texi (Hook functions): Fix types of stream hook
34068         functions.
34069         [BZ #16854]
34070         * socket/sys/socket.h: Fix typo in comment.
34071
34072 2014-04-28  Wilco  <wdijkstr@arm.com>
34073
34074         * sysdeps/arm/fenv_private.h: New file.
34075         * sysdeps/arm/math_private.h: New file.
34076         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
34077
34078 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
34079
34080         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
34081         with __int128_t.
34082         (La_x86_64_retval): Likewise.
34083
34084 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
34085
34086         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
34087         fpsr if value didn't change.
34088         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
34089         to fpcr if value didn't change.
34090         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
34091         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
34092         fpsr or fpcr if value didn't change.
34093         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
34094         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
34095         fpcr if value didn't change.
34096         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
34097         to fpsr if value didn't change.
34098
34099 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
34100
34101         * nptl/tst-sem3.c: Use test-skeleton.c
34102         (main): Rename to do_test.  Use return instead of
34103         exit.
34104         * nptl/tst-sem4.c: Use test-skeleton.c
34105         (main): Rename to do_test.
34106
34107 2014-04-22  David S. Miller  <davem@davemloft.net>
34108
34109         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
34110         (struct sigaction): New struct member __glibc_reserved0, change
34111         type of sa_flags to int.
34112
34113 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
34114
34115         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
34116         (COUNT_LEADING_ZEROS_0): Define for AArch64.
34117
34118 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
34119
34120         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
34121         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
34122
34123 2014-04-22  Will Newton  <will.newton@linaro.org>
34124             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
34125
34126         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
34127         (__longjmp): Add longjmp and longjmp_target SystemTap
34128         probes.
34129         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
34130         (__sigsetjmp): Add setjmp SystemTap probe.
34131
34132 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
34133
34134         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
34135         match manual order.
34136
34137 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34138
34139         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
34140
34141         * sysdeps/powerpc/fpu/fenv_private.h
34142         (libc_feholdexcept_setroundl_ctx): Define to
34143         libc_feholdexcept_setround_ppc_ctx.
34144         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
34145         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
34146         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
34147         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
34148
34149 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
34150
34151         * sysdeps/aarch64/math-tests.h: New file.
34152
34153 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
34154
34155         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
34156         New.
34157         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34158         Check and set bit_AVX2_Usable.
34159         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
34160         macro.
34161         (bit_AVX2): Likewise.
34162         (index_AVX2_Usable): Likewise.
34163         (CPUID_AVX2): Likewise.
34164         (HAS_AVX2): Likewise.
34165
34166 2014-04-17  Will Newton  <will.newton@linaro.org>
34167
34168         * manual/setjmp.texi (System V contexts): Add note that
34169         calling setcontext on a context created by a call to a
34170         signal handler is undefined.  Update text to note that
34171         setcontext from a signal handler is possible but not
34172         recommended.
34173
34174         [BZ #16629]
34175         * stdlib/tst-setcontext.c: Include signal.h.
34176         (main): Check that the signal stack before and
34177         after swapcontext is the same.
34178
34179         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
34180         Re-implement to restore registers in user code and avoid
34181         rt_sigreturn system call.
34182
34183 2014-04-17  Wilco  <wdijkstr@arm.com>
34184
34185         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
34186         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
34187         * math/test-fenv.c: Skip exception trap tests on targets which only
34188         support non-stop mode.
34189
34190 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
34191             Wilco Dijkstra  <wilco.dijkstra@arm.com>
34192
34193         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
34194         (libc_feholdsetround_aarch64_ctx)
34195         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
34196         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
34197         (libc_feresetround_ctx, libc_feresetroundf_ctx)
34198         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
34199         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
34200         (libc_feresetround_noexl_ctx): Define.
34201
34202 2014-04-16  Richard Henderson  <rth@redhat.com>
34203
34204         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
34205
34206         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
34207         unwind tables.
34208
34209         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
34210         const from the non-libc, non-ldso copy.
34211
34212         * sysdeps/alpha/libm-test-ulps: Regenerate.
34213
34214 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
34215             Wilco Dijkstra  <wilco.dijkstra@arm.com>
34216
34217         * sysdeps/aarch64/fpu/math_private.h: New file.
34218
34219 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
34220
34221         * sysdeps/aarch64/libm-test-ulps: Regenerate.
34222
34223 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
34224
34225         [BZ #16275]
34226         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
34227         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
34228         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
34229         Intel MPX bound registers before _dl_profile_fixup.
34230         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
34231         registers after _dl_profile_fixup.  Save and restore bound
34232         registers bnd0/bnd1 when calling _dl_call_pltexit.
34233         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
34234         (LR_BND_OFFSET): Likewise.
34235         (LRV_BND0_OFFSET): Likewise.
34236         (LRV_BND1_OFFSET): Likewise.
34237
34238 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34239
34240         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
34241         to...
34242         * sysdeps/mach/hurd/i386/tls.h: ... here.
34243         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
34244         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
34245         fields.
34246
34247 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34248
34249         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
34250
34251 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34252
34253         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
34254
34255 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
34256
34257         [BZ #14770]
34258         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
34259         * sysdeps/s390/configure: Regenerate.
34260
34261         [BZ #16824]
34262         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
34263         Set round-to-nearest internally to reduce error accumulation.
34264
34265 2014-04-16  Alan Modra  <amodra@gmail.com>
34266
34267         [BZ #16740]
34268         [BZ #16619]
34269         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
34270         * math/libm-test.inc (frexp_test_data): Add tests.
34271         * NEWS: Update fixed bug list.
34272
34273 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
34274
34275         * benchtests/Makefile: Depend on libraries in build directory.
34276         (bench-math): Separate out math tests.
34277         (bench-pthread): Separate out pthread tests.
34278         (bench): Include math and pthread tests.
34279
34280 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
34281
34282         [BZ #16831]
34283         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
34284         _dl_debug_initialize.
34285
34286         * configure.ac: Remove SELinux header check.
34287         * configure: Regenerate.
34288         * nscd/selinux.c (perms): Array of const char* to permission names.
34289         (nscd_request_avc_has_perm): Call security_deny_unknown to find
34290         default policy. Call string_to_security_class and string_to_av_perm to
34291         translate strings. Enforce default policy and call avs_has_perm with
34292         results of translated strings.
34293
34294 2014-04-13  David S. Miller  <davem@davemloft.net>
34295
34296         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34297
34298 2014-04-12  Allan McRae  <allan@archlinux.org>
34299
34300         [BZ #16838]
34301         * manual/string.texi (Collation Functions): Fix qsort argument
34302         order in example.
34303         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
34304
34305 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
34306
34307         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
34308         Make the test a no-op if there are no exceptions defined.
34309
34310 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
34311
34312         * elf/Makefile (tests): make tst-dlopen-aout conditional on
34313         enable-hardcoded-path-in-tests
34314
34315 2014-04-11  Will Newton  <will.newton@linaro.org>
34316
34317         * benchtests/Makefile (extra-objs): Add json-lib.o.
34318         (bench-func): Tidy up JSON output.
34319         * benchtests/bench-skeleton.c: Include json-lib.h.
34320         (main): Use JSON library functions to do output of
34321         benchmark results.
34322         * benchtests/bench-timing-type.c (main): Output the
34323         timing type simply, leaving formatting to the user.
34324         * benchtests/json-lib.c: New file.
34325         * benchtests/json-lib.h: Likewise.
34326
34327 2014-04-11  Torvald Riegel  <triegel@redhat.com>
34328
34329         [BZ #15215]
34330         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
34331         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
34332         memory barriers.  Add comments.
34333         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
34334         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
34335         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
34336         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
34337         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
34338         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
34339
34340 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
34341
34342         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
34343         * sysdeps/s390/s390-64/configure.ac: ... this ...
34344         * sysdeps/s390/configure.ac: ... to here.
34345         * sysdeps/s390/s390-32/configure: Delete file.
34346         * sysdeps/s390/s390-64/configure: Delete file.
34347         * sysdeps/s390/configure: Regenerate.
34348
34349 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
34350
34351         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
34352
34353 2014-04-11  Will Newton  <will.newton@linaro.org>
34354
34355         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
34356         to zero if it is not defined elsewhere.  (mtrim): Test
34357         the value of MALLOC_DEBUG with #if rather than #ifdef.
34358
34359 2014-04-10 Torvald Riegel  <triegel@redhat.com>
34360
34361         * benchtests/pthread_once-inputs: New file.
34362         * benchtests/pthread_once-source.c: New file.
34363         * benchtests/README: Update documentation.
34364
34365 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
34366             H.J. Lu  <hongjiu.lu@intel.com>
34367
34368         [BZ #16275]
34369         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
34370         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
34371         * sysdeps/x86_64/configure: Regenerated.
34372         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
34373         macro.
34374         (REGISTER_SAVE_RAX): Likewise.
34375         (REGISTER_SAVE_RCX): Likewise.
34376         (REGISTER_SAVE_RDX): Likewise.
34377         (REGISTER_SAVE_RSI): Likewise.
34378         (REGISTER_SAVE_RDI): Likewise.
34379         (REGISTER_SAVE_R8): Likewise.
34380         (REGISTER_SAVE_R9): Likewise.
34381         (REGISTER_SAVE_BND0): Likewise.
34382         (REGISTER_SAVE_BND1): Likewise.
34383         (REGISTER_SAVE_BND2): Likewise.
34384         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
34385         bound registers when calling _dl_fixup.
34386
34387 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34388
34389         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
34390         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
34391         of its definition.
34392         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
34393         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
34394         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
34395         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
34396         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
34397         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
34398         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
34399
34400 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
34401
34402         [BZ #15514]
34403         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
34404         pathconf(_PC_NAME_MAX).
34405
34406 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34407
34408         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
34409         Remove macro usage.
34410         (__PTHREAD_SPINS): Move definition to ...
34411         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34412         (__PTHREAD_SPINS): ... here.
34413         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34414         (__PTHREAD_SPIN): Likewise.
34415         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
34416         (__PTHREAD_SPIN): Likewise.
34417         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
34418         (__PTHREAD_SPIN): Likewise.
34419         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
34420         (__PTHREAD_SPIN): Likewise.
34421         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
34422         (__PTHREAD_SPIN): Likewise.
34423         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
34424         (__PTHREAD_SPIN): Likewise.
34425         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
34426         (__PTHREAD_SPIN): Likewise.
34427         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
34428         (__PTHREAD_SPIN): Likewise.
34429         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
34430         (__PTHREAD_SPIN): Likewise.
34431         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
34432         (__PTHREAD_SPIN): Likewise.
34433         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
34434         (__PTHREAD_SPIN): Likewise.
34435         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
34436         (__PTHREAD_SPIN): Likewise.
34437
34438         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
34439         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
34440         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
34441         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
34442         imply folder.
34443         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
34444         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
34445         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
34446         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
34447         correct imply path.
34448         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
34449         strlen symbol for non multi-arch builds.
34450         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
34451         missing hidden_def and weak_alias.
34452
34453 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
34454
34455         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
34456
34457 2014-04-07  Will Newton  <will.newton@linaro.org>
34458
34459         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
34460         and contents.  [!_LIBC] Remove #ifndef and contents.
34461         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
34462         * string/memccpy.c (__memccpy): Use ANSI prototype.
34463         * string/memfrob.c (memfrob): Likewise.
34464         * string/strcoll.c (STRCOLL): Likewise.
34465         * string/strlen.c (strlen): Likewise.
34466         * string/strtok.c (STRTOK): Likewise.
34467         * string/strcat.c: Remove unused #include of memcopy.h.
34468         (strcat): Use ANSI prototype.
34469         * string/strchr.c: Remove unused #include of memcopy.h.
34470         (strchr): Use ANSI prototype.
34471         * string/strcmp.c: Remove unused #include of memcopy.h.
34472         (strcmp): Use ANSI prototype.
34473         * string/strcpy.c: Remove unused #include of memcopy.h.
34474         (strcpy): Use ANSI prototype.
34475
34476 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34477
34478         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
34479         * config.make.in (config-extra-cppflags): Set it from
34480         libc_extra_cppflags.
34481         * configure.ac (libc_extra_cflags): Make it accumulate over
34482         configure fragments.
34483         (libc_extra_cppflags): New flag.
34484         * configure. Regenerate.
34485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
34486         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
34487         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
34488         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
34489
34490         [BZ #16815]
34491         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
34492         result for FE_DOWNWARD rounding mode.
34493         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
34494         Likewise.
34495         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34496
34497 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
34498
34499         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
34500         in function argument name.
34501
34502 2014-04-03  David Svoboda  <svoboda@cert.org>
34503
34504         [BZ #5666]
34505         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
34506         explicitly.
34507
34508 2014-04-03  Roland McGrath  <roland@hack.frob.com>
34509
34510         * elf/dl-unmap-segments.h: New file.
34511         * sysdeps/generic/ldsodefs.h
34512         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
34513         * elf/dl-close.c: Include <dl-unmap-segments.h>.
34514         * elf/dl-fptr.c: Likewise.
34515         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
34516         * sysdeps/aarch64/tlsdesc.c: Likewise.
34517         * sysdeps/arm/tlsdesc.c: Likewise.
34518         * sysdeps/i386/tlsdesc.c: Likewise.
34519         * sysdeps/tile/dl-runtime.c: Likewise.
34520         * sysdeps/x86_64/tlsdesc.c: Likewise.
34521         * elf/dl-load.h: New file.
34522         * elf/dl-load.c: Include it.
34523         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
34524         Macros moved to dl-load.h.
34525         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
34526         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
34527         Use _dl_unmap_segments in place of __munmap.
34528         Break out segment-mapping loop into ...
34529         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
34530
34531 2014-04-03  Will Newton  <will.newton@linaro.org>
34532
34533         * elf/dl-lookup.c (do_lookup_x): Remove comment
34534         referring to nested function and move variable
34535         declarations down to before first use.
34536
34537 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
34538
34539         [BZ #16799]
34540         [BZ #16800]
34541         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
34542         with 0 numerator.
34543         * math/s_catanf.c (__catanf): Likewise.
34544         * math/s_catanh.c (__catanh): Likewise.
34545         * math/s_catanhf.c (__catanhf): Likewise.
34546         * math/s_catanhl.c (__catanhl): Likewise.
34547         * math/s_catanl.c (__catanl): Likewise.
34548         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
34549         by positive zero when computing -Inf result.
34550         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
34551         (catanh_test): Likewise.
34552         * sysdeps/i386/fpu/libm-test-ulps: Update.
34553         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34554
34555         [BZ #16789]
34556         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
34557         instead of using underflowing value in computing result.
34558         * math/s_clog10.c (__clog10): Likewise.
34559         * math/s_clog10f.c (__clog10f): Likewise.
34560         * math/s_clog10l.c (__clog10l): Likewise.
34561         * math/s_clogf.c (__clogf): Likewise.
34562         * math/s_clogl.c (__clogl): Likewise.
34563         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
34564         (clog10_test): Likewise.
34565         * sysdeps/i386/fpu/libm-test-ulps: Update.
34566         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34567
34568 2014-04-02  Alan Modra  <amodra@gmail.com>
34569
34570         [BZ #16739]
34571         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
34572         output when value is near a power of two.  Use int64_t for lx and
34573         remove casts.  Use decimal rather than hex exponent constants.
34574         Don't use long double multiplication when double will suffice.
34575         * math/libm-test.inc (nextafter_test_data): Add tests.
34576         * NEWS: Add 16739 and 16786 to bug list.
34577
34578         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
34579
34580         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
34581
34582 2014-04-01  Will Newton  <will.newton@linaro.org>
34583
34584         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
34585         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
34586
34587 2014-04-01  Florian Weimer  <fweimer@redhat.com>
34588
34589         [BZ #13347]
34590         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
34591         * nptl/tst-setuid2.c: New file.
34592         * nptl/Makefile (xtests): Add tst-setuid2.
34593
34594 2014-04-01  Alan Modra  <amodra@gmail.com>
34595
34596         [BZ #16786]
34597         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
34598
34599 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34600
34601         [BZ #6803]
34602         [BZ #6804]
34603         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
34604         set errno as appropriate.
34605         * math/w_scalbf.c (__scalbf): Likewise.
34606         * math/w_scalbl.c (__scalbl): Likewise.
34607         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
34608         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
34609         * math/libm-test.inc (scalb_test_data): Add errno expectations.
34610         Add more NaN tests.
34611
34612         [BZ #16349]
34613         * math/w_atan2.c: Include <errno.h>.
34614         (__atan2): Set errno for result underflowing to zero.
34615         * math/w_atan2f.c: Include <errno.h>.
34616         (__atan2f): Set errno for result underflowing to zero.
34617         * math/w_atan2l.c: Include <errno.h>.
34618         (__atan2l): Set errno for result underflowing to zero.
34619         * math/auto-libm-test-in: Don't allow missing errno for some atan2
34620         tests.
34621         * math/auto-libm-test-out: Regenerated.
34622
34623 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34624
34625         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
34626         Encode instruction correctly in little endian.
34627         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
34628         Likewise.
34629         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
34630         Likewise.
34631         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
34632         Likewise.
34633         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
34634         Likewise.
34635
34636 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
34637
34638         [BZ #9894]
34639         * sysdeps/unix/sysv/linux/kernel-features.h
34640         [__sparc__ && !__arch64__ && !__sparc_v9__]
34641         (__ASSUME_SET_ROBUST_LIST): Do not define.
34642         [__sparc__ && !__arch64__ && !__sparc_v9__]
34643         (__ASSUME_FUTEX_LOCK_PI): Likewise.
34644         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
34645         Likewise.
34646         * sysdeps/unix/sysv/linux/arm/kernel-features.h
34647         (__ASSUME_FUTEX_LOCK_PI): Undefine.
34648         (__ASSUME_REQUEUE_PI): Likewise.
34649         (__ASSUME_SET_ROBUST_LIST): Likewise.
34650         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
34651         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
34652         Undefine.
34653         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34654         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
34655         Likewise.
34656         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
34657         Likewise.
34658         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
34659         Likewise.
34660         * sysdeps/unix/sysv/linux/mips/kernel-features.h
34661         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
34662         Undefine.
34663         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
34664         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
34665         Likewise.
34666
34667         [BZ #16648]
34668         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
34669         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
34670         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
34671
34672 2014-03-31  Will Newton  <will.newton@linaro.org>
34673
34674         * benchtests/Makefile (bench): Add ffs and ffsll to list
34675         of tests.
34676         * benchtests/ffs-inputs: New file.
34677         * benchtests/ffsll-inputs: Likewise.
34678
34679 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
34680
34681         [BZ #16770]
34682         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
34683         too large before casting to int.
34684         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
34685         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
34686         * math/libm-test.inc (scalb_test_data): Add more tests.
34687
34688 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
34689
34690         * benchtests/Makefile (DETAILED_OPT): New make option.
34691         (bench-func): Run benchmark program with -d if DETAILED_OPT is
34692         set.
34693         * benchtests/bench-skeleton.c: Include stdbool.h.
34694         (main): Store and print timings per input.
34695         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
34696         member to each argument value.
34697         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
34698         (_print_arg_data): Initialize per-input timing to 0.
34699
34700         * benchtests/Makefile (timing-type): New binary.
34701         (bench-clean): Also remove bench-timing-type.
34702         (bench): New target for timing-type.
34703         (bench-func): Print output in JSON format.
34704         * benchtests/bench-skeleton.c (main): Print output in JSON
34705         format.
34706         * benchtests/bench-timing-type.c: New file.
34707         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
34708         (TIMING_PRINT_STATS): Remove.
34709         * benchtests/scripts/bench.py (_print_arg_data): Store variant
34710         name separately.
34711
34712         * benchtests/bench-modf.c: Remove.
34713         * benchtests/modf-inputs: New inputs file.
34714
34715 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
34716
34717         [BZ #16362]
34718         * math/s_clog10.c (M_PI_LOG10E): New macro.
34719         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
34720         imaginary parts are 0.
34721         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
34722         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
34723         imaginary parts are 0.
34724         * math/s_clog10l.c (M_PI_LOG10El): New macro.
34725         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
34726         imaginary parts are 0.
34727         * math/libm-test.inc (clog10_test_data): Update expected results
34728         for when real and imaginary parts are 0.
34729
34730 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
34731
34732         * elf/dl-load.c: Finish conversion of __builtin_expect into
34733         __glibc_{un}likely.
34734
34735 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
34736
34737         [BZ #16348]
34738         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
34739         1+x for argument with exponent below -67.
34740         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
34741         Likewise.
34742         * math/auto-libm-test-in: Add more tests of exp.
34743         * math/auto-libm-test-out: Regenerated.
34744
34745 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34746
34747         [BZ #16759]
34748         * inet/getnetgrent_r.c (get_nonempty_val): New function.
34749         (nscd_getnetgrent): Use it.
34750
34751         [BZ #16760]
34752         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
34753         of stpcpy.
34754
34755 2014-03-27  Andi Kleen  <ak@linux.intel.com>
34756
34757         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
34758         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34759         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34760         (lll_robust_unlock): Remove out of line section. Use cfi
34761         intrinsics.
34762         (LLL_STUB_UNWIND_INFO*): Remove.
34763         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
34764         (lll_robust_lock, lll_cond_lock, lll_timedlock)
34765         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
34766         (lll_robust_unlock): Remove out of line section. Use cfi
34767         intrinsics.
34768         (LLL_STUB_UNWIND_INFO*): Remove.
34769
34770 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
34771
34772         [BZ #16758]
34773         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
34774         blank values.
34775
34776 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
34777
34778         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
34779
34780 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
34781
34782         [BZ #16198]
34783         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
34784         fnstenv.
34785         * math/test-fenv-preserve.c: New file.
34786         * math/Makefile (tests): Add test-fenv-preserve.
34787
34788 2014-03-26  Will Newton <will.newton@linaro.org>
34789
34790         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
34791
34792 2014-03-25  Roland McGrath  <roland@hack.frob.com>
34793
34794         * scripts/versionlist.awk: Partition the version sets and emit all
34795         GLIBC_* (sorted) before all others (sorted).
34796
34797 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34798
34799         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
34800         GLIBC_2.2.5 version.
34801
34802 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34803
34804         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
34805         calls.
34806
34807         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
34808         previous change.
34809
34810         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
34811
34812 2014-03-25  Andreas Schwab  <schwab@suse.de>
34813
34814         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
34815         label to be used after in6ailist is initialized.
34816
34817 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34818
34819         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
34820         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34821
34822 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
34823
34824         [BZ #16357]
34825         [BZ #16599]
34826         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
34827         min_plus_half.
34828         (fp_formats): Update initializers.
34829         (init_fp_formats): Initialize new field.
34830         (output_for_one_input_case): Allow underflow for results up to
34831         min_plus_half.
34832         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
34833         * math/auto-libm-test-in: Don't mark some underflows from asin and
34834         atanh as spurious.
34835         * math/auto-libm-test-out: Regenerated.
34836         * sysdeps/i386/fpu/libm-test-ulps: Update.
34837         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34838
34839 2014-03-25  Andreas Schwab  <schwab@suse.de>
34840
34841         * libio/Makefile (tst-ftell-partial-wide-ENV)
34842         (tst-ftell-active-handler-ENV): Define.
34843
34844 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
34845
34846         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
34847
34848 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34849
34850         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
34851
34852 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34853
34854         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
34855         * sysdeps/x86_64/fpu/multiarch/e_exp.c
34856         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
34857
34858 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
34859
34860         [BZ #16634]
34861         * elf/dl-load.c (open_verify): Add mode parameter.
34862         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
34863         (open_path): Change from boolean 'secure' to complete flag 'mode'
34864         (_dl_map_object): Adjust.
34865         * elf/Makefile (tests): Add tst-dlopen-aout.
34866         * elf/tst-dlopen-aout.c: New test.
34867
34868 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
34869
34870         [BZ #16714]
34871         * sysdeps/unix/sysv/linux/s390/bits/stat.h
34872         (struct stat): Rename member pad0 to __glibc_reserved0.
34873
34874         [BZ #16712]
34875         * sysdeps/s390/s390-32/bits/wordsize.h
34876         (__WORDSIZE32_SIZE_ULONG): New define.
34877         * sysdeps/s390/s390-64/bits/wordsize.h
34878         (__WORDSIZE32_SIZE_ULONG): Likewise.
34879         * sysdeps/generic/stdint.h (SIZE_MAX):
34880         Define as UL if __WORDSIZE32_SIZE_ULONG.
34881
34882         [BZ #16713]
34883         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34884         (__glibc_reserved0): New variable.
34885         (sa_flags): Change type to int.
34886
34887         * posix/Makefile (before-compile): Use += before-compile instead
34888         of a :=.
34889
34890         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
34891         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
34892
34893 2014-03-20  Andreas Schwab  <schwab@suse.de>
34894
34895         [BZ #16743]
34896         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
34897         non-matching result from nscd.
34898
34899 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
34900
34901         * scripts/bench.py: Moved to ...
34902         * benchtests/scripts/bench.py: ... here.
34903         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
34904
34905 2014-03-24  Andreas Schwab  <schwab@suse.de>
34906
34907         [BZ #16002]
34908         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
34909         alloca_account and account alloca use for struct in6ailist.
34910
34911 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
34912
34913         [BZ #16284]
34914         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
34915         rounding mode to recompute results that overflow to infinity or
34916         underflow to zero.
34917         * math/auto-libm-test-in: Don't mark tests as expected to fail for
34918         bug 16284.
34919         * math/auto-libm-test-out: Regenerated.
34920         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
34921         (ccosh_test): Likewise.
34922         (csin_test_data): Use plus_oflow.
34923         (csin_test): Use ALL_RM_TEST.
34924         (csinh_test_data): Use plus_oflow.
34925         (csinh_test): Use ALL_RM_TEST.
34926         * sysdeps/i386/fpu/libm-test-ulps: Update.
34927         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34928
34929 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
34930
34931         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
34932         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
34933         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
34934
34935         [BZ #16731]
34936         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
34937         when x - 1 is zero.
34938         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
34939         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
34940         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
34941         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
34942         argument is 1.
34943         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
34944         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
34945         zero.
34946         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
34947         * sysdeps/i386/fpu/libm-test-ulps: Update.
34948         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34949
34950 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
34951
34952         * scripts/bench.pl: Remove file.
34953         * scripts/bench.py: New benchmark script.
34954         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
34955         * benchtests/README: Mention python dependency.
34956         * scripts/pylintrc: New file.
34957         * scripts/pylint: New file.
34958
34959         * bits/mathdef.h: Use #ifdef instead of #if.
34960         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
34961         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34962         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
34963         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34964         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
34965         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
34966
34967 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34968             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
34969
34970         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
34971         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
34972         and strpbrk-ppc64 objects.
34973         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
34974         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
34975         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
34976         multiarch strpbrk for POWER7.
34977         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
34978         multiarch strpbrk for PPC64.
34979         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
34980         ifunc selector.
34981         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
34982         strpbrk for POWER7.
34983
34984 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
34985
34986         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
34987         (atan_test): Likewise.
34988         (atanh_test_data): Use NO_TEST_INLINE for two tests.
34989         (atanh_test): Use ALL_RM_TEST.
34990         (atan2_test_data): Likewise.
34991         (cabs_test): Likewise.
34992         (cacosh_test): Likewise.
34993         (carg_test): Likewise.
34994         (casin_test): Likewise.
34995         (casinh_test): Likewise.
34996         (cbrt_test): Likewise.
34997         (csqrt_test): Likewise.
34998         (erf_test): Likewise.
34999         (erfc_test): Likewise.
35000         (pow10_test): Likewise.
35001         (exp2_test): Likewise.
35002         (hypot_test): Likewise.
35003         (j0_test): Likewise.
35004         (j1_test): Likewise.
35005         (lgamma_test): Likewise.
35006         (gamma_test): Likewise.
35007         (sincos_test): Likewise.
35008         (tanh_test): Likewise.
35009         (y0_test): Likewise.
35010         (y1_test): Likewise.
35011         * sysdeps/i386/fpu/libm-test-ulps: Update.
35012         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35013
35014 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35015
35016         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
35017         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
35018         and strcspn-ppc64 objects.
35019         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
35020         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
35021         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
35022         multiarch strcspn for POWER7.
35023         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
35024         multiarch strcspn for PPC64.
35025         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
35026         ifunc selector.
35027         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
35028         strcspn for POWER7.
35029
35030 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
35031
35032         * math/gen-libm-test.pl (generate_testfile): Expect only function
35033         name as argument to AUTO_TESTS_* and pass results for all rounding
35034         modes to parse_args.
35035         (parse_auto_input): Separate inputs of automatic tests from
35036         outputs before storing in %auto_tests.
35037         * math/libm-test.inc (acos_test_data): Update call to
35038         AUTO_TESTS_f_f.
35039         (acos_test): Use ALL_RM_TEST.
35040         (acos_tonearest_test_data): Remove.
35041         (acos_test_tonearest): Likewise.
35042         (acos_towardzero_test_data): Likewise.
35043         (acos_test_towardzero): Likewise.
35044         (acos_downward_test_data): Likewise.
35045         (acos_test_downward): Likewise.
35046         (acos_upward_test_data): Likewise.
35047         (acos_test_upward): Likewise.
35048         (acosh_test_data): Update call to AUTO_TESTS_f_f.
35049         (asin_test_data): Likewise.
35050         (asin_test): Use ALL_RM_TEST.
35051         (asin_tonearest_test_data): Remove.
35052         (asin_test_tonearest): Likewise.
35053         (asin_towardzero_test_data): Likewise.
35054         (asin_test_towardzero): Likewise.
35055         (asin_downward_test_data): Likewise.
35056         (asin_test_downward): Likewise.
35057         (asin_upward_test_data): Likewise.
35058         (asin_test_upward): Likewise.
35059         (asinh_test_data): Update call to AUTO_TESTS_f_f.
35060         (atan_test_data): Likewise.
35061         (atanh_test_data): Likewise.
35062         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
35063         (cabs_test_data): Update call to AUTO_TESTS_c_f.
35064         (carg_test_data): Likewise.
35065         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
35066         (ccos_test_data): Update call to AUTO_TESTS_c_c.
35067         (ccosh_test_data): Likewise.
35068         (cexp_test_data): Likewise.
35069         (clog_test_data): Likewise.
35070         (clog10_test_data): Likewise.
35071         (cos_test_data): Update call to AUTO_TESTS_f_f.
35072         (cos_test): Use ALL_RM_TEST.
35073         (cos_tonearest_test_data): Remove.
35074         (cos_test_tonearest): Likewise.
35075         (cos_towardzero_test_data): Likewise.
35076         (cos_test_towardzero): Likewise.
35077         (cos_downward_test_data): Likewise.
35078         (cos_test_downward): Likewise.
35079         (cos_upward_test_data): Likewise.
35080         (cos_test_upward): Likewise.
35081         (cosh_test_data): Update call to AUTO_TESTS_f_f.
35082         (cosh_test): Use ALL_RM_TEST.
35083         (cosh_tonearest_test_data): Remove.
35084         (cosh_test_tonearest): Likewise.
35085         (cosh_towardzero_test_data): Likewise.
35086         (cosh_test_towardzero): Likewise.
35087         (cosh_downward_test_data): Likewise.
35088         (cosh_test_downward): Likewise.
35089         (cosh_upward_test_data): Likewise.
35090         (cosh_test_upward): Likewise.
35091         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
35092         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
35093         (ctan_test_data): Likewise.
35094         (ctan_test): Use ALL_RM_TEST.
35095         (ctan_tonearest_test_data): Remove.
35096         (ctan_test_tonearest): Likewise.
35097         (ctan_towardzero_test_data): Likewise.
35098         (ctan_test_towardzero): Likewise.
35099         (ctan_downward_test_data): Likewise.
35100         (ctan_test_downward): Likewise.
35101         (ctan_upward_test_data): Likewise.
35102         (ctan_test_upward): Likewise.
35103         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
35104         (ctanh_test): Use ALL_RM_TEST.
35105         (ctanh_tonearest_test_data): Remove.
35106         (ctanh_test_tonearest): Likewise.
35107         (ctanh_towardzero_test_data): Likewise.
35108         (ctanh_test_towardzero): Likewise.
35109         (ctanh_downward_test_data): Likewise.
35110         (ctanh_test_downward): Likewise.
35111         (ctanh_upward_test_data): Likewise.
35112         (ctanh_test_upward): Likewise.
35113         (erf_test_data): Update call to AUTO_TESTS_f_f.
35114         (erfc_test_data): Likewise.
35115         (exp_test_data): Likewise.
35116         (exp_test): Use ALL_RM_TEST.
35117         (exp_tonearest_test_data): Remove.
35118         (exp_test_tonearest): Likewise.
35119         (exp_towardzero_test_data): Likewise.
35120         (exp_test_towardzero): Likewise.
35121         (exp_downward_test_data): Likewise.
35122         (exp_test_downward): Likewise.
35123         (exp_upward_test_data): Likewise.
35124         (exp_test_upward): Likewise.
35125         (exp10_test_data): Update call to AUTO_TESTS_f_f.
35126         (exp10_test): Use ALL_RM_TEST.
35127         (exp10_tonearest_test_data): Remove.
35128         (exp10_test_tonearest): Likewise.
35129         (exp10_towardzero_test_data): Likewise.
35130         (exp10_test_towardzero): Likewise.
35131         (exp10_downward_test_data): Likewise.
35132         (exp10_test_downward): Likewise.
35133         (exp10_upward_test_data): Likewise.
35134         (exp10_test_upward): Likewise.
35135         (exp2_test_data): Update call to AUTO_TESTS_f_f.
35136         (expm1_test_data): Likewise.
35137         (expm1_test): Use ALL_RM_TEST.
35138         (expm1_tonearest_test_data): Remove.
35139         (expm1_test_tonearest): Likewise.
35140         (expm1_towardzero_test_data): Likewise.
35141         (expm1_test_towardzero): Likewise.
35142         (expm1_downward_test_data): Likewise.
35143         (expm1_test_downward): Likewise.
35144         (expm1_upward_test_data): Likewise.
35145         (expm1_test_upward): Likewise.
35146         (fma_test_data): Update call to AUTO_TESTS_fff_f.
35147         (fma_test): Use ALL_RM_TEST.
35148         (fma_towardzero_test_data): Remove.
35149         (fma_test_towardzero): Likewise.
35150         (fma_downward_test_data): Likewise.
35151         (fma_test_downward): Likewise.
35152         (fma_upward_test_data): Likewise.
35153         (fma_test_upward): Likewise.
35154         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
35155         (j0_test_data): Update call to AUTO_TESTS_f_f.
35156         (j1_test_data): Likewise.
35157         (jn_test_data): Update call to AUTO_TESTS_if_f.
35158         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
35159         (log_test_data): Update call to AUTO_TESTS_f_f.
35160         (log10_test_data): Likewise.
35161         (log1p_test_data): Likewise.
35162         (log2_test_data): Likewise.
35163         (pow_test_data): Update call to AUTO_TESTS_ff_f.
35164         (pow_tonearest_test_data): Likewise.
35165         (sin_test_data): Update call to AUTO_TESTS_f_f.
35166         (sin_test): Use ALL_RM_TEST.
35167         (sin_tonearest_test_data): Remove.
35168         (sin_test_tonearest): Likewise.
35169         (sin_towardzero_test_data): Likewise.
35170         (sin_test_towardzero): Likewise.
35171         (sin_downward_test_data): Likewise.
35172         (sin_test_downward): Likewise.
35173         (sin_upward_test_data): Likewise.
35174         (sin_test_upward): Likewise.
35175         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
35176         (sinh_test_data): Update call to AUTO_TESTS_f_f.
35177         (sinh_test): Use ALL_RM_TEST.
35178         (sinh_tonearest_test_data): Remove.
35179         (sinh_test_tonearest): Likewise.
35180         (sinh_towardzero_test_data): Likewise.
35181         (sinh_test_towardzero): Likewise.
35182         (sinh_downward_test_data): Likewise.
35183         (sinh_test_downward): Likewise.
35184         (sinh_upward_test_data): Likewise.
35185         (sinh_test_upward): Likewise.
35186         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
35187         (sqrt_test): Use ALL_RM_TEST.
35188         (sqrt_tonearest_test_data): Remove.
35189         (sqrt_test_tonearest): Likewise.
35190         (sqrt_towardzero_test_data): Likewise.
35191         (sqrt_test_towardzero): Likewise.
35192         (sqrt_downward_test_data): Likewise.
35193         (sqrt_test_downward): Likewise.
35194         (sqrt_upward_test_data): Likewise.
35195         (sqrt_test_upward): Likewise.
35196         (tan_test_data): Update call to AUTO_TESTS_f_f.
35197         (tan_test): Use ALL_RM_TEST.
35198         (tan_tonearest_test_data): Remove.
35199         (tan_test_tonearest): Likewise.
35200         (tan_towardzero_test_data): Likewise.
35201         (tan_test_towardzero): Likewise.
35202         (tan_downward_test_data): Likewise.
35203         (tan_test_downward): Likewise.
35204         (tan_upward_test_data): Likewise.
35205         (tan_test_upward): Likewise.
35206         (tanh_test_data): Update call to AUTO_TESTS_f_f.
35207         (tgamma_test_data): Likewise.
35208         (y0_test_data): Likewise.
35209         (y1_test_data): Likewise.
35210         (yn_test_data): Update call to AUTO_TESTS_if_f.
35211         (main): Do not call removed functions.
35212
35213 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
35214
35215         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
35216         (ldexp_test_data): Remove.
35217         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
35218         scalbn_test_data.
35219         (scalb_test): Use ALL_RM_TEST.
35220
35221 2014-03-19  Andreas Schwab  <schwab@suse.de>
35222
35223         * nscd/nscd.service: Also invalidate netgroup cache on reload.
35224
35225 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
35226
35227         [BZ #16649]
35228         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
35229         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
35230         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
35231         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35232         (__ASSUME_PREADV): Undefine.
35233         (__ASSUME_PWRITEV): Likewise.
35234
35235 2014-03-18  Roland McGrath  <roland@hack.frob.com>
35236
35237         * bits/mman-linux.h: Add comment about non-Linux use.
35238         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
35239         bits/mman-linux.h resting place.
35240
35241         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
35242         * bits/mman-linux.h: ... here.
35243
35244 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35245
35246         * conform/conformtest.pl: Add standard definition when calling C
35247         preprocessor on data files.
35248         (checknamespace): Remove unused variable.
35249
35250 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
35251
35252         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
35253         minus_oflow, plus_uflow and minus_uflow in expected results.
35254         * math/libm-test.inc (scalbn_test_data): Add more tests of
35255         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
35256         minus_uflow.
35257         (scalbn_test): Use ALL_RM_TEST.
35258         (scalbln_test_data): Add more tests of negative arguments.  Use
35259         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
35260         (scalbln_test): Use ALL_RM_TEST.
35261
35262 2014-03-18  Roland McGrath  <roland@hack.frob.com>
35263
35264         * scripts/abilist.awk: Ignore symbols marked with .hidden.
35265
35266 2014-03-18  Will Newton  <will.newton@linaro.org>
35267
35268         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
35269         inaccurate comment.
35270
35271 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
35272
35273         * Makerules [!subdir] (check-abi): Exit with error status if a
35274         test failed.
35275
35276 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
35277
35278         * math/libm-test.inc (nearbyint_test_data): Include all tests used
35279         for rint.  Include results for all rounding modes.
35280         (nearbyint_test): Use ALL_RM_TEST.
35281         (rint_test_data): Include all tests used for nearbyint.
35282
35283 2014-03-17  Will Newton  <will.newton@linaro.org>
35284
35285         * nptl/sysdeps/pthread/pthread.h: Revert previous
35286         change.
35287
35288         * sysdeps/generic/ldsodefs.h: Revert previous
35289         change.
35290
35291         * libio/genops.c: Revert previous change.
35292         * libio/libioP.h: Likewise.
35293         * stdio-common/vfprintf.c: Likewise.
35294
35295         * sysdeps/generic/math_private.h: Revert previous
35296         change.
35297
35298         * sysdeps/generic/math_private.h: Check whether
35299         HAVE_RM_CTX is defined with #ifdef rather
35300         than #if.
35301
35302         * argp/argp-fmtstream.h: Check whether
35303         __STRICT_ANSI__ is defined with #ifdef rather
35304         than #if.
35305         * argp/argp.h: Likewise.
35306
35307         * libio/genops.c: Check whether
35308         _IO_JUMPS_OFFSET is defined with #ifdef rather
35309         than #if.
35310         * libio/libioP.h: Likewise.
35311         * stdio-common/vfprintf.c: Likewise.
35312
35313         * sysdeps/generic/ldsodefs.h: Check whether
35314         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
35315         than #if.
35316
35317         * nptl/sysdeps/pthread/pthread.h: Check
35318         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
35319         its value.
35320
35321 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
35322
35323         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
35324         setting O_APPEND.
35325         * libio/tst-ftell-active-handler.c (do_append_test): Add a
35326         test case.
35327
35328         [BZ #16680]
35329         * libio/fileops.c (_IO_file_open): Seek to end of file but
35330         don't cache the offset.
35331         (get_file_offset): Remove function.
35332         (do_ftell): Use cached offset when available.
35333         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
35334         don't cache the offset.
35335         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
35336         case.
35337         (do_one_test): Call it.
35338         (do_ftell_test): Fix up expected old offset for a+ mode.
35339         * libio/wfileops.c (do_ftell_wide): Used cached offset when
35340         available.
35341
35342         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
35343         up test status with function return status.
35344         (do_write_test): Likewise.
35345         (do_append_test): Likewise.
35346
35347         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
35348         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
35349         Remove.
35350
35351 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
35352
35353         * math/gen-libm-test.pl (parse_args): Handle results specified for
35354         each rounding mode separately.
35355         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
35356         tests and results from lrint_tonearest_test_data,
35357         lrint_towardzero_test_data, lrint_downward_test_data and
35358         lrint_upward_test_data.
35359         (lrint_test): Use ALL_RM_TEST.
35360         (lrint_tonearest_test_data): Remove.
35361         (lrint_test_tonearest): Likewise.
35362         (lrint_towardzero_test_data): Likewise.
35363         (lrint_test_towardzero): Likewise.
35364         (lrint_downward_test_data): Likewise.
35365         (lrint_test_downward): Likewise.
35366         (lrint_upward_test_data): Likewise.
35367         (lrint_test_upward): Likewise.
35368         (llrint_test_data): Merge in per-rounding-mode tests and results
35369         from llrint_tonearest_test_data, llrint_towardzero_test_data,
35370         llrint_downward_test_data and llrint_upward_test_data.
35371         (llrint_test): Use ALL_RM_TEST.
35372         (llrint_tonearest_test_data): Remove.
35373         (llrint_test_tonearest): Likewise.
35374         (llrint_towardzero_test_data): Likewise.
35375         (llrint_test_towardzero): Likewise.
35376         (llrint_downward_test_data): Likewise.
35377         (llrint_test_downward): Likewise.
35378         (llrint_upward_test_data): Likewise.
35379         (llrint_test_upward): Likewise.
35380         (rint_test_data): Merge in per-rounding-mode tests and results
35381         from rint_tonearest_test_data, rint_towardzero_test_data,
35382         rint_downward_test_data and rint_upward_test_data.  Add
35383         per-rounding-mode results for tests not in those arrays.
35384         (rint_test): Use ALL_RM_TEST.
35385         (rint_tonearest_test_data): Remove.
35386         (rint_test_tonearest): Likewise.
35387         (rint_towardzero_test_data): Likewise.
35388         (rint_test_towardzero): Likewise.
35389         (rint_downward_test_data): Likewise.
35390         (rint_test_downward): Likewise.
35391         (rint_upward_test_data): Likewise.
35392         (rint_test_upward): Likewise.
35393         (main): Don't call removed functions.
35394
35395 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35396
35397         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
35398         "Compiled on ..." crapola.  It is anti-useful.
35399
35400 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
35401
35402         * scripts/evaluate-test.sh: Handle fourth argument to determine
35403         whether test run should stop on failure.
35404         * Makeconfig (stop-on-test-failure): New variable.
35405         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
35406         $(stop-on-test-failure).
35407         * Makefile (tests): Give a summary of results from testing and
35408         exit with failure status if they include an ERROR or FAIL.
35409         (xtests): Likewise.
35410         * manual/install.texi (Configuring and compiling): Mention
35411         stop-on-test-failure=y.
35412         * INSTALL: Regenerated.
35413
35414 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35415
35416         * scripts/versionlist.awk: New file.
35417         * Makerules [$(build-shared) = yes]
35418         (postclean-generated): Add Versions.def, not Versions.def.v and
35419         Versions.def.v.i.
35420         ($(common-objpfx)Versions.def.v.i): Target removed.
35421         ($(common-objpfx)Versions.def): New target.
35422         ($(common-objpfx)Versions.all): Depend on that rather that
35423         $(common-objpfx)Versions.def.v.
35424         * Versions.def: File removed.
35425
35426         * Makeconfig (+gccwarn): Add -Wundef.
35427         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
35428         a dl-sysdep.h breaking its contract.
35429         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
35430         * include/stackinfo.h: New file.
35431         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
35432         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
35433         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
35434         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
35435         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
35436         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
35437         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35438         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35439         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35440         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35441         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35442         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
35443         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35444         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35445         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
35446
35447 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35448
35449         [BZ #16707]
35450         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
35451         implementation.
35452         * math/libm-test.inc (round_test_data): Add more tests.
35453
35454         [BZ #16706]
35455         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
35456         implementation.
35457         * math/libm-test.inc (nearbyint_test_data): Add more tests.
35458
35459         [BZ #16701]
35460         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
35461         implementation.
35462         * math/libm-test.inc (ceil_test_data): Add more tests.
35463
35464         * math/libm-test.inc (trunc_test_data): Add more tests related to
35465         BZ#16414.
35466
35467 2014-03-14  Roland McGrath  <roland@hack.frob.com>
35468
35469         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
35470         with #if rather than #ifdef.
35471         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
35472
35473 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
35474
35475         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
35476         first.  Disable AVX-512 GCC support if assembler doesn't support
35477         it.
35478         * sysdeps/x86_64/configure: Regenerated.
35479
35480 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
35481
35482         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
35483         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
35484         (__old_pthread_attr_setstack): Likewise.
35485         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
35486         [!_STACK_GROWS_DOWN]: Likewise.
35487
35488 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
35489
35490         * config.make.in (have-bash2): Delete.
35491         * configure.ac (libc_cv_have_bash2): Delete.
35492         * configure: Regenerate.
35493         * elf/Makefile (common-ldd-rewrite): Rename to ...
35494         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
35495         (sh-ldd-rewrite): Delete.
35496         (bash-ldd-rewrite): Delete.
35497         (have-bash2): Delete checks.
35498         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
35499         ldd-rewrite.
35500
35501         * config.make.in (have-ksh): Delete.
35502         (KSH): Delete.
35503         * configure.ac (libc_cv_have_ksh): Delete.
35504         * configure: Regenerate.
35505
35506         * elf/Makefile: Delete $(have-ksh) check.
35507         ($(objpfx)sotruss): Change KSH to BASH.
35508         * elf/sotruss.ksh: Rename to ...
35509         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
35510         function style to match POSIX.  Drop ksh vim mode setting.
35511
35512         * manual/time.texi (Specifying the Time Zone with TZ): Change
35513         Tuesday to Thursday.
35514
35515         * debug/tst-longjmp_chk2.c: Update header comment.
35516         (stackoverflow_handler): Add comment.  Call assert on pass value.
35517
35518 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
35519
35520         [BZ #16194]
35521         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
35522         (HAVE_AVX512_ASM_SUPPORT): Likewise.
35523         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
35524         (La_x86_64_vector): Add zmm.
35525         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
35526         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
35527         ($(objpfx)tst-audit10): New target.
35528         ($(objpfx)tst-audit10.out): Likewise.
35529         (tst-audit10-ENV): New.
35530         (AVX512-CFLAGS): Likewise.
35531         (CFLAGS-tst-audit10.c): Likewise.
35532         (CFLAGS-tst-auditmod10a.c): Likewise.
35533         (CFLAGS-tst-auditmod10b.c): Likewise.
35534         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
35535         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
35536         * sysdeps/x86_64/configure: Regenerated.
35537         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
35538         AVX-512 zmm register support.
35539         (_dl_x86_64_save_sse): Likewise.
35540         (_dl_x86_64_restore_sse): Likewise.
35541         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
35542         size vector registers.
35543         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
35544         (ZMM_SIZE): Likewise.
35545         * sysdeps/x86_64/tst-audit10.c: New file.
35546         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
35547         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
35548
35549 2014-03-13  Roland McGrath  <roland@hack.frob.com>
35550
35551         * configure.ac (HAVE_EHDR_START): New check.
35552         * configure: Regenerated.
35553         * config.h.in (HAVE_EHDR_START): New #undef.
35554         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
35555         assuming the lowest-addressed segment maps the start of the file.
35556
35557 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
35558
35559         * INSTALL: Regenerated.
35560
35561 2014-03-13  Will Newton  <will.newton@linaro.org>
35562
35563         * manual/setjmp.texi (System V contexts): Improve
35564         clarity and grammar of documentation.
35565
35566 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
35567
35568         [BZ #16381]
35569         * elf/Makefile (tests): Add tst-pie2.
35570         (tests-pie): Add tst-pie2.
35571         * elf/tst-pie2.c: New file.
35572         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
35573         for ET_EXEC.
35574         * elf/rtld.c (map_doit): Load executable as lt_executable.
35575         (dl_main): Likewise.
35576
35577 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
35578
35579         [BZ #16642]
35580         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
35581         (__ASSUME_PSELECT): Undefine.
35582
35583 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35584
35585         [BZ #16689]
35586         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
35587         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
35588         static build.
35589         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
35590         selector for static builds.
35591
35592 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
35593
35594         [BZ #16695]
35595         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
35596         key in the buffer.
35597
35598 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35599
35600         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
35601         IFUNC selector for static builds.
35602
35603 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
35604
35605         * sysdeps/mips/math_private.h [__mips_hard_float]
35606         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
35607         libc_feresetround_mips_ctx.
35608         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
35609         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
35610         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
35611
35612         [BZ #16677]
35613         * math/s_nextafter.c (__nextafter): Do not return value from
35614         overflowing computation.
35615         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
35616         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
35617         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
35618         Likewise.
35619         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
35620         Likewise.
35621         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35622         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
35623
35624 2014-03-11  Roland McGrath  <roland@hack.frob.com>
35625
35626         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
35627         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
35628         Move sfi_sp use from the load-multiple (that no longer sets sp) to
35629         the new mov targetting sp.
35630
35631 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35632
35633         [BZ #16683]
35634         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
35635         Define it for static builds as well.
35636         (NO_BZERO_IMPL): Likewise.
35637
35638 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35639
35640         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
35641         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
35642         multiarch strspn for PPC64.
35643         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
35644         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
35645         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35646         (__libc_ifunc_impl_list): Likewise.
35647         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
35648         multiarch optimizations
35649         * string/strspn.c (strspn): Using macro to redefine symbol name.
35650
35651 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
35652             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35653
35654         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
35655         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
35656         multiarch strncat for PPC64.
35657         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
35658         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
35659         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
35660         (__libc_ifunc_impl_list): Likewise.
35661         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
35662         multiarch optimizations
35663
35664 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
35665
35666         [BZ #16639]
35667         * nscd/nscd.service: Make service type forking.
35668
35669 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35670
35671         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
35672         sign in non default rounding modes.
35673         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
35674
35675 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
35676
35677         * math/libm-test.inc (ALL_RM_TEST): New macro.
35678         (ceil_test): Use ALL_RM_TEST.
35679         (cimag_test): Likewise.
35680         (conj_test): Likewise.
35681         (copysign_test): Likewise.
35682         (cproj_test): Likewise.
35683         (creal_test): Likewise.
35684         (fabs_test): Likewise.
35685         (floor_test): Likewise.
35686         (fmax_test): Likewise.
35687         (fmin_test): Likewise.
35688         (fmod_test): Likewise.
35689         (fpclassify_test): Likewise.
35690         (frexp_test): Likewise.
35691         (ilogb_test): Likewise.
35692         (isfinite_test): Likewise.
35693         (finite_test): Likewise.
35694         (isgreater_test): Likewise.
35695         (isgreaterequal_test): Likewise.
35696         (isinf_test): Likewise.
35697         (isless_test): Likewise.
35698         (islessequal_test): Likewise.
35699         (islessgreater_test): Likewise.
35700         (isnan_test): Likewise.
35701         (isnormal_test): Likewise.
35702         (issignaling_test): Likewise.
35703         (isunordered_test): Likewise.
35704         (logb_test): Likewise.
35705         (logb_downward_test_data): Remove.
35706         (logb_test_downward): Likewise.
35707         (lround_test): Use ALL_RM_TEST.
35708         (llround_test): Likewise.
35709         (modf_test): Likewise.
35710         (nexttoward_test): Likewise.
35711         (remainder_test): Likewise.
35712         (drem_test): Likewise.
35713         (remainder_tonearest_test_data): Likewise.
35714         (remainder_test_tonearest): Likewise.
35715         (drem_test_tonearest): Likewise.
35716         (remainder_towardzero_test_data): Likewise.
35717         (remainder_test_towardzero): Likewise.
35718         (drem_test_towardzero): Likewise.
35719         (remainder_downward_test_data): Likewise.
35720         (remainder_test_downward): Likewise.
35721         (drem_test_downward): Likewise.
35722         (remainder_upward_test_data): Likewise.
35723         (remainder_test_upward): Likewise.
35724         (drem_test_upward): Likewise.
35725         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
35726         (round_test): Use ALL_RM_TEST.
35727         (signbit_test): Likewise.
35728         (trunc_test): Likewise.
35729         (significand_test): Likewise.
35730         (main): Don't call removed functions.
35731
35732 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
35733
35734         [BZ #16674]
35735         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
35736         || __USE_XOPEN2K8].
35737         (ILL_ILLOPN): Likewise.
35738         (ILL_ILLADR): Likewise.
35739         (ILL_ILLTRP): Likewise.
35740         (ILL_PRVOPC): Likewise.
35741         (ILL_PRVREG): Likewise.
35742         (ILL_COPROC): Likewise.
35743         (ILL_BADSTK): Likewise.
35744         (FPE_INTDIV): Likewise.
35745         (FPE_INTOVF): Likewise.
35746         (FPE_FLTDIV): Likewise.
35747         (FPE_FLTOVF): Likewise.
35748         (FPE_FLTUND): Likewise.
35749         (FPE_FLTRES): Likewise.
35750         (FPE_FLTINV): Likewise.
35751         (FPE_FLTSUB): Likewise.
35752         (SEGV_MAPERR): Likewise.
35753         (SEGV_ACCERR): Likewise.
35754         (BUS_ADRALN): Likewise.
35755         (BUS_ADRERR): Likewise.
35756         (BUS_OBJERR): Likewise.
35757         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35758         (TRAP_TRACE): Likewise.
35759         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35760         __USE_XOPEN2K8].
35761         (CLD_KILLED): Likewise.
35762         (CLD_DUMPED): Likewise.
35763         (CLD_TRAPPED): Likewise.
35764         (CLD_STOPPED): Likewise.
35765         (CLD_CONTINUED): Likewise.
35766         (POLL_IN): Likewise.
35767         (POLL_OUT): Likewise.
35768         (POLL_MSG): Likewise.
35769         (POLL_ERR): Likewise.
35770         (POLL_PRI): Likewise.
35771         (POLL_HUP): Likewise.
35772         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
35773         Likewise.
35774         (ILL_ILLOPN): Likewise.
35775         (ILL_ILLADR): Likewise.
35776         (ILL_ILLTRP): Likewise.
35777         (ILL_PRVOPC): Likewise.
35778         (ILL_PRVREG): Likewise.
35779         (ILL_COPROC): Likewise.
35780         (ILL_BADSTK): Likewise.
35781         (FPE_INTDIV): Likewise.
35782         (FPE_INTOVF): Likewise.
35783         (FPE_FLTDIV): Likewise.
35784         (FPE_FLTOVF): Likewise.
35785         (FPE_FLTUND): Likewise.
35786         (FPE_FLTRES): Likewise.
35787         (FPE_FLTINV): Likewise.
35788         (FPE_FLTSUB): Likewise.
35789         (SEGV_MAPERR): Likewise.
35790         (SEGV_ACCERR): Likewise.
35791         (BUS_ADRALN): Likewise.
35792         (BUS_ADRERR): Likewise.
35793         (BUS_OBJERR): Likewise.
35794         (BUS_MCEERR_AR): Likewise.
35795         (BUS_MCEERR_AO): Likewise.
35796         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35797         (TRAP_TRACE): Likewise.
35798         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35799         __USE_XOPEN2K8].
35800         (CLD_KILLED): Likewise.
35801         (CLD_DUMPED): Likewise.
35802         (CLD_TRAPPED): Likewise.
35803         (CLD_STOPPED): Likewise.
35804         (CLD_CONTINUED): Likewise.
35805         (POLL_IN): Likewise.
35806         (POLL_OUT): Likewise.
35807         (POLL_MSG): Likewise.
35808         (POLL_ERR): Likewise.
35809         (POLL_PRI): Likewise.
35810         (POLL_HUP): Likewise.
35811         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
35812         (ILL_ILLOPN): Likewise.
35813         (ILL_ILLADR): Likewise.
35814         (ILL_ILLTRP): Likewise.
35815         (ILL_PRVOPC): Likewise.
35816         (ILL_PRVREG): Likewise.
35817         (ILL_COPROC): Likewise.
35818         (ILL_BADSTK): Likewise.
35819         (FPE_INTDIV): Likewise.
35820         (FPE_INTOVF): Likewise.
35821         (FPE_FLTDIV): Likewise.
35822         (FPE_FLTOVF): Likewise.
35823         (FPE_FLTUND): Likewise.
35824         (FPE_FLTRES): Likewise.
35825         (FPE_FLTINV): Likewise.
35826         (FPE_FLTSUB): Likewise.
35827         (SEGV_MAPERR): Likewise.
35828         (SEGV_ACCERR): Likewise.
35829         (BUS_ADRALN): Likewise.
35830         (BUS_ADRERR): Likewise.
35831         (BUS_OBJERR): Likewise.
35832         (BUS_MCEERR_AR): Likewise.
35833         (BUS_MCEERR_AO): Likewise.
35834         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35835         (TRAP_TRACE): Likewise.
35836         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35837         __USE_XOPEN2K8].
35838         (CLD_KILLED): Likewise.
35839         (CLD_DUMPED): Likewise.
35840         (CLD_TRAPPED): Likewise.
35841         (CLD_STOPPED): Likewise.
35842         (CLD_CONTINUED): Likewise.
35843         (POLL_IN): Likewise.
35844         (POLL_OUT): Likewise.
35845         (POLL_MSG): Likewise.
35846         (POLL_ERR): Likewise.
35847         (POLL_PRI): Likewise.
35848         (POLL_HUP): Likewise.
35849         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
35850         Likewise.
35851         (ILL_ILLOPN): Likewise.
35852         (ILL_ILLADR): Likewise.
35853         (ILL_ILLTRP): Likewise.
35854         (ILL_PRVOPC): Likewise.
35855         (ILL_PRVREG): Likewise.
35856         (ILL_COPROC): Likewise.
35857         (ILL_BADSTK): Likewise.
35858         (ILL_BADIADDR): Likewise.
35859         (ILL_BREAK): Likewise.
35860         (FPE_INTDIV): Likewise.
35861         (FPE_INTOVF): Likewise.
35862         (FPE_FLTDIV): Likewise.
35863         (FPE_FLTOVF): Likewise.
35864         (FPE_FLTUND): Likewise.
35865         (FPE_FLTRES): Likewise.
35866         (FPE_FLTINV): Likewise.
35867         (FPE_FLTSUB): Likewise.
35868         (FPE_DECOVF): Likewise.
35869         (FPE_DECDIV): Likewise.
35870         (FPE_DECERR): Likewise.
35871         (FPE_INVASC): Likewise.
35872         (FPE_INVDEC): Likewise.
35873         (SEGV_MAPERR): Likewise.
35874         (SEGV_ACCERR): Likewise.
35875         (SEGV_PSTKOVF): Likewise.
35876         (BUS_ADRALN): Likewise.
35877         (BUS_ADRERR): Likewise.
35878         (BUS_OBJERR): Likewise.
35879         (BUS_MCEERR_AR): Likewise.
35880         (BUS_MCEERR_AO): Likewise.
35881         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35882         (TRAP_TRACE): Likewise.
35883         (TRAP_BRANCH): Likewise.
35884         (TRAP_HWBKPT): Likewise.
35885         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35886         __USE_XOPEN2K8].
35887         (CLD_KILLED): Likewise.
35888         (CLD_DUMPED): Likewise.
35889         (CLD_TRAPPED): Likewise.
35890         (CLD_STOPPED): Likewise.
35891         (CLD_CONTINUED): Likewise.
35892         (POLL_IN): Likewise.
35893         (POLL_OUT): Likewise.
35894         (POLL_MSG): Likewise.
35895         (POLL_ERR): Likewise.
35896         (POLL_PRI): Likewise.
35897         (POLL_HUP): Likewise.
35898         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
35899         (ILL_ILLOPN): Likewise.
35900         (ILL_ILLADR): Likewise.
35901         (ILL_ILLTRP): Likewise.
35902         (ILL_PRVOPC): Likewise.
35903         (ILL_PRVREG): Likewise.
35904         (ILL_COPROC): Likewise.
35905         (ILL_BADSTK): Likewise.
35906         (FPE_INTDIV): Likewise.
35907         (FPE_INTOVF): Likewise.
35908         (FPE_FLTDIV): Likewise.
35909         (FPE_FLTOVF): Likewise.
35910         (FPE_FLTUND): Likewise.
35911         (FPE_FLTRES): Likewise.
35912         (FPE_FLTINV): Likewise.
35913         (FPE_FLTSUB): Likewise.
35914         (SEGV_MAPERR): Likewise.
35915         (SEGV_ACCERR): Likewise.
35916         (BUS_ADRALN): Likewise.
35917         (BUS_ADRERR): Likewise.
35918         (BUS_OBJERR): Likewise.
35919         (BUS_MCEERR_AR): Likewise.
35920         (BUS_MCEERR_AO): Likewise.
35921         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35922         (TRAP_TRACE): Likewise.
35923         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35924         __USE_XOPEN2K8].
35925         (CLD_KILLED): Likewise.
35926         (CLD_DUMPED): Likewise.
35927         (CLD_TRAPPED): Likewise.
35928         (CLD_STOPPED): Likewise.
35929         (CLD_CONTINUED): Likewise.
35930         (POLL_IN): Likewise.
35931         (POLL_OUT): Likewise.
35932         (POLL_MSG): Likewise.
35933         (POLL_ERR): Likewise.
35934         (POLL_PRI): Likewise.
35935         (POLL_HUP): Likewise.
35936         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
35937         (ILL_ILLOPN): Likewise.
35938         (ILL_ILLADR): Likewise.
35939         (ILL_ILLTRP): Likewise.
35940         (ILL_PRVOPC): Likewise.
35941         (ILL_PRVREG): Likewise.
35942         (ILL_COPROC): Likewise.
35943         (ILL_BADSTK): Likewise.
35944         (FPE_INTDIV): Likewise.
35945         (FPE_INTOVF): Likewise.
35946         (FPE_FLTDIV): Likewise.
35947         (FPE_FLTOVF): Likewise.
35948         (FPE_FLTUND): Likewise.
35949         (FPE_FLTRES): Likewise.
35950         (FPE_FLTINV): Likewise.
35951         (FPE_FLTSUB): Likewise.
35952         (SEGV_MAPERR): Likewise.
35953         (SEGV_ACCERR): Likewise.
35954         (BUS_ADRALN): Likewise.
35955         (BUS_ADRERR): Likewise.
35956         (BUS_OBJERR): Likewise.
35957         (BUS_MCEERR_AR): Likewise.
35958         (BUS_MCEERR_AO): Likewise.
35959         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35960         (TRAP_TRACE): Likewise.
35961         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
35962         __USE_XOPEN2K8].
35963         (CLD_KILLED): Likewise.
35964         (CLD_DUMPED): Likewise.
35965         (CLD_TRAPPED): Likewise.
35966         (CLD_STOPPED): Likewise.
35967         (CLD_CONTINUED): Likewise.
35968         (POLL_IN): Likewise.
35969         (POLL_OUT): Likewise.
35970         (POLL_MSG): Likewise.
35971         (POLL_ERR): Likewise.
35972         (POLL_PRI): Likewise.
35973         (POLL_HUP): Likewise.
35974         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
35975         (ILL_ILLOPN): Likewise.
35976         (ILL_ILLADR): Likewise.
35977         (ILL_ILLTRP): Likewise.
35978         (ILL_PRVOPC): Likewise.
35979         (ILL_PRVREG): Likewise.
35980         (ILL_COPROC): Likewise.
35981         (ILL_BADSTK): Likewise.
35982         (FPE_INTDIV): Likewise.
35983         (FPE_INTOVF): Likewise.
35984         (FPE_FLTDIV): Likewise.
35985         (FPE_FLTOVF): Likewise.
35986         (FPE_FLTUND): Likewise.
35987         (FPE_FLTRES): Likewise.
35988         (FPE_FLTINV): Likewise.
35989         (FPE_FLTSUB): Likewise.
35990         (SEGV_MAPERR): Likewise.
35991         (SEGV_ACCERR): Likewise.
35992         (BUS_ADRALN): Likewise.
35993         (BUS_ADRERR): Likewise.
35994         (BUS_OBJERR): Likewise.
35995         (BUS_MCEERR_AR): Likewise.
35996         (BUS_MCEERR_AO): Likewise.
35997         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
35998         (TRAP_TRACE): Likewise.
35999         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36000         __USE_XOPEN2K8].
36001         (CLD_KILLED): Likewise.
36002         (CLD_DUMPED): Likewise.
36003         (CLD_TRAPPED): Likewise.
36004         (CLD_STOPPED): Likewise.
36005         (CLD_CONTINUED): Likewise.
36006         (POLL_IN): Likewise.
36007         (POLL_OUT): Likewise.
36008         (POLL_MSG): Likewise.
36009         (POLL_ERR): Likewise.
36010         (POLL_PRI): Likewise.
36011         (POLL_HUP): Likewise.
36012         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
36013         (ILL_ILLOPN): Likewise.
36014         (ILL_ILLADR): Likewise.
36015         (ILL_ILLTRP): Likewise.
36016         (ILL_PRVOPC): Likewise.
36017         (ILL_PRVREG): Likewise.
36018         (ILL_COPROC): Likewise.
36019         (ILL_BADSTK): Likewise.
36020         (ILL_DBLFLT): Likewise.
36021         (ILL_HARDWALL): Likewise.
36022         (FPE_INTDIV): Likewise.
36023         (FPE_INTOVF): Likewise.
36024         (FPE_FLTDIV): Likewise.
36025         (FPE_FLTOVF): Likewise.
36026         (FPE_FLTUND): Likewise.
36027         (FPE_FLTRES): Likewise.
36028         (FPE_FLTINV): Likewise.
36029         (FPE_FLTSUB): Likewise.
36030         (SEGV_MAPERR): Likewise.
36031         (SEGV_ACCERR): Likewise.
36032         (BUS_ADRALN): Likewise.
36033         (BUS_ADRERR): Likewise.
36034         (BUS_OBJERR): Likewise.
36035         (BUS_MCEERR_AR): Likewise.
36036         (BUS_MCEERR_AO): Likewise.
36037         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36038         (TRAP_TRACE): Likewise.
36039         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36040         __USE_XOPEN2K8].
36041         (CLD_KILLED): Likewise.
36042         (CLD_DUMPED): Likewise.
36043         (CLD_TRAPPED): Likewise.
36044         (CLD_STOPPED): Likewise.
36045         (CLD_CONTINUED): Likewise.
36046         (POLL_IN): Likewise.
36047         (POLL_OUT): Likewise.
36048         (POLL_MSG): Likewise.
36049         (POLL_ERR): Likewise.
36050         (POLL_PRI): Likewise.
36051         (POLL_HUP): Likewise.
36052         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
36053         (ILL_ILLOPN): Likewise.
36054         (ILL_ILLADR): Likewise.
36055         (ILL_ILLTRP): Likewise.
36056         (ILL_PRVOPC): Likewise.
36057         (ILL_PRVREG): Likewise.
36058         (ILL_COPROC): Likewise.
36059         (ILL_BADSTK): Likewise.
36060         (FPE_INTDIV): Likewise.
36061         (FPE_INTOVF): Likewise.
36062         (FPE_FLTDIV): Likewise.
36063         (FPE_FLTOVF): Likewise.
36064         (FPE_FLTUND): Likewise.
36065         (FPE_FLTRES): Likewise.
36066         (FPE_FLTINV): Likewise.
36067         (FPE_FLTSUB): Likewise.
36068         (SEGV_MAPERR): Likewise.
36069         (SEGV_ACCERR): Likewise.
36070         (BUS_ADRALN): Likewise.
36071         (BUS_ADRERR): Likewise.
36072         (BUS_OBJERR): Likewise.
36073         (BUS_MCEERR_AR): Likewise.
36074         (BUS_MCEERR_AO): Likewise.
36075         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
36076         (TRAP_TRACE): Likewise.
36077         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
36078         __USE_XOPEN2K8].
36079         (CLD_KILLED): Likewise.
36080         (CLD_DUMPED): Likewise.
36081         (CLD_TRAPPED): Likewise.
36082         (CLD_STOPPED): Likewise.
36083         (CLD_CONTINUED): Likewise.
36084         (POLL_IN): Likewise.
36085         (POLL_OUT): Likewise.
36086         (POLL_MSG): Likewise.
36087         (POLL_ERR): Likewise.
36088         (POLL_PRI): Likewise.
36089         (POLL_HUP): Likewise.
36090         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
36091         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
36092
36093         [BZ #16670]
36094         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
36095         before #include of <time.h>.
36096         [!__USE_XOPEN2K] (__need_timespec): Likewise.
36097         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
36098         (test-xfail-UNIX98/sched.h/conform): Likewise.
36099
36100 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
36101
36102         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
36103         error absence of trapping exception support.
36104         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
36105
36106 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
36107
36108         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
36109         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
36110         * timezone/Makefile (testdata): Move definition above include of
36111         Rules.
36112         (test-zones): New variable.
36113         (tests-special): Add zone files.
36114         (build-testdata): Use $(evaluate-test).
36115
36116         * elf/Makefile (tests-special): Rename tests to end with .out.
36117         ($(objpfx)noload-mem): Likewise.
36118         ($(objpfx)tst-leaks1-mem): Likewise.
36119         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
36120         * iconv/Makefile (xtests-special): Change test-iconvconfig to
36121         $(objpfx)test-iconvconfig.out.
36122         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
36123         set -e inside subshell and redirect output to file.
36124         * iconvdata/Makefile (generated): Rename tests to end with .out.
36125         Correct type.
36126         (tests-special): Rename tests to end with .out.
36127         ($(objpfx)mtrace-tst-loading): Likewise.
36128         * intl/Makefile (generated): Likewise.
36129         (tests-special): Likewise.
36130         ($(objpfx)mtrace-tst-gettext): Likewise.
36131         * misc/Makefile (generated): Likewise.
36132         (tests-special): Likewise.
36133         ($(objpfx)tst-error1-mem): Likewise.
36134         * nptl/Makefile (tests-special): Likewise.
36135         ($(objpfx)tst-stack3-mem): Likewise.
36136         (generated): Likewise.
36137         * posix/Makefile (generated): Likewise.
36138         (tests-special): Likewise.
36139         (xtests-special): Likewise.
36140         ($(objpfx)tst-fnmatch-mem): Likewise.
36141         ($(objpfx)bug-regex2-mem): Likewise.
36142         ($(objpfx)bug-regex14-mem): Likewise.
36143         ($(objpfx)bug-regex21-mem): Likewise.
36144         ($(objpfx)bug-regex31-mem): Likewise.
36145         ($(objpfx)tst-vfork3-mem): Likewise.
36146         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
36147         ($(objpfx)tst-pcre-mem): Likewise.
36148         ($(objpfx)tst-boost-mem): Likewise.
36149         ($(objpfx)bug-ga2-mem): Likewise.
36150         ($(objpfx)bug-glob2-mem): Likewise.
36151         * resolv/Makefile (generate): Likewise.
36152         (tests-special): Likewise.
36153         (xtests-special): Likewise.
36154         (generated): Likewise.
36155         ($(objpfx)mtrace-tst-leaks): Likewise.
36156         ($(objpfx)mtrace-tst-leaks2): Likewise.
36157
36158         * scripts/merge-test-results.sh: New file.
36159         * Makefile (tests-special-notdir): New variable.
36160         (tests): Run merge-test-results.sh.
36161         (xtests): Likewise.
36162         * Rules (tests-special-notdir): New variable.
36163         (xtests-special-notdir): Likewise.
36164         (tests): Run merge-test-results.sh
36165         (xtests): Likewise.
36166
36167         * Makeconfig (test-xfail-name): New variable.
36168         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
36169         compute variable name for expected failures.
36170         * conform/Makefile (conformtest-headers-data): New variable.
36171         (conformtest-standards): Likewise.
36172         (conformtest-headers-ISO): Likewise.
36173         (conformtest-headers-ISO99): Likewise.
36174         (conformtest-headers-ISO11): Likewise.
36175         (conformtest-headers-POSIX): Likewise.
36176         (conformtest-headers-XPG3): Likewise.
36177         (conformtest-headers-XPG4): Likewise.
36178         (conformtest-headers-UNIX98): Likewise.
36179         (conformtest-headers-XOPEN2K): Likewise.
36180         (conformtest-headers-POSIX2008): Likewise.
36181         (conformtest-headers-XOPEN2K8): Likewise.
36182         (conformtest-header-list-base): Likewise.
36183         (conformtest-header-list-tests): Likewise.
36184         (conformtest-header-base): Likewise.
36185         (conformtest-header-tests): Likewise.
36186         (tests-special): Add $(conformtest-header-list-tests).  If
36187         [$(fast-check) && !$(cross-compiling)], add
36188         $(conformtest-header-tests) instead of
36189         $(objpfx)run-conformtest.out.
36190         (generated): Add $(conformtest-header-list-base).  If
36191         [$(fast-check) && !$(cross-compiling)], add
36192         $(conformtest-header-base).  Remove previous setting.
36193         ($(conformtest-header-list-tests)): New target.
36194         (test-xfail-run-conformtest): Remove variable.
36195         ($(objpfx)run-conformtest.out): Remove target.
36196         (test-xfail-ISO11/complex.h/conform): New variable.
36197         (test-xfail-ISO11/stdalign.h/conform): Likewise.
36198         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
36199         (test-xfail-XPG3/varargs.h/conform): Likewise.
36200         (test-xfail-XPG4/varargs.h/conform): Likewise.
36201         (test-xfail-UNIX98/varargs.h/conform): Likewise.
36202         (test-xfail-XPG4/ndbm.h/conform): Likewise.
36203         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
36204         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
36205         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
36206         (test-xfail-XPG3/fcntl.h/conform): Likewise.
36207         (test-xfail-XPG3/ftw.h/conform): Likewise.
36208         (test-xfail-XPG3/grp.h/conform): Likewise.
36209         (test-xfail-XPG3/langinfo.h/conform): Likewise.
36210         (test-xfail-XPG3/limits.h/conform): Likewise.
36211         (test-xfail-XPG3/pwd.h/conform): Likewise.
36212         (test-xfail-XPG3/search.h/conform): Likewise.
36213         (test-xfail-XPG3/signal.h/conform): Likewise.
36214         (test-xfail-XPG3/stdio.h/conform): Likewise.
36215         (test-xfail-XPG3/stdlib.h/conform): Likewise.
36216         (test-xfail-XPG3/string.h/conform): Likewise.
36217         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
36218         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
36219         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
36220         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
36221         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
36222         (test-xfail-XPG3/sys/types.h/conform): Likewise.
36223         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
36224         (test-xfail-XPG3/termios.h/conform): Likewise.
36225         (test-xfail-XPG3/time.h/conform): Likewise.
36226         (test-xfail-XPG3/unistd.h/conform): Likewise.
36227         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
36228         (test-xfail-XPG4/fcntl.h/conform): Likewise.
36229         (test-xfail-XPG4/langinfo.h/conform): Likewise.
36230         (test-xfail-XPG4/netdb.h/conform): Likewise.
36231         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
36232         (test-xfail-XPG4/signal.h/conform): Likewise.
36233         (test-xfail-XPG4/stdio.h/conform): Likewise.
36234         (test-xfail-XPG4/stdlib.h/conform): Likewise.
36235         (test-xfail-XPG4/stropts.h/conform): Likewise.
36236         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
36237         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
36238         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
36239         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
36240         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
36241         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
36242         (test-xfail-XPG4/sys/time.h/conform): Likewise.
36243         (test-xfail-XPG4/sys/types.h/conform): Likewise.
36244         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
36245         (test-xfail-XPG4/termios.h/conform): Likewise.
36246         (test-xfail-XPG4/ucontext.h/conform): Likewise.
36247         (test-xfail-XPG4/unistd.h/conform): Likewise.
36248         (test-xfail-XPG4/utmpx.h/conform): Likewise.
36249         (test-xfail-POSIX/sched.h/conform): Likewise.
36250         (test-xfail-POSIX/signal.h/conform): Likewise.
36251         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
36252         (test-xfail-POSIX/tar.h/conform): Likewise.
36253         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
36254         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
36255         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
36256         (test-xfail-UNIX98/netdb.h/conform): Likewise.
36257         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
36258         (test-xfail-UNIX98/sched.h/conform): Likewise.
36259         (test-xfail-UNIX98/signal.h/conform): Likewise.
36260         (test-xfail-UNIX98/stdio.h/conform): Likewise.
36261         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
36262         (test-xfail-UNIX98/stropts.h/conform): Likewise.
36263         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
36264         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
36265         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
36266         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
36267         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
36268         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
36269         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
36270         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
36271         (test-xfail-UNIX98/unistd.h/conform): Likewise.
36272         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
36273         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
36274         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
36275         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
36276         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
36277         (test-xfail-XOPEN2K/math.h/conform): Likewise.
36278         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
36279         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
36280         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
36281         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
36282         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
36283         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
36284         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
36285         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
36286         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
36287         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
36288         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
36289         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
36290         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
36291         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
36292         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
36293         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
36294         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
36295         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
36296         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
36297         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
36298         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
36299         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
36300         (test-xfail-POSIX2008/signal.h/conform): Likewise.
36301         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
36302         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
36303         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
36304         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
36305         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
36306         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
36307         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
36308         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
36309         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
36310         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
36311         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
36312         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
36313         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
36314         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
36315         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
36316         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
36317         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
36318         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
36319         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
36320         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
36321         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
36322         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
36323         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
36324         (conformtest-cc-flags): Likewise.
36325         ($(conformtest-header-tests): New target.
36326         * conform/check-header-lists.sh: New file.
36327         * conform/run-conformtest.sh: Remove.
36328
36329         * conform/conformtest.pl: Allow ' and \ in values given for
36330         constants.
36331         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
36332         inclusion.
36333         [POSIX] (sys/types.h): Likewise.
36334         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
36335         inclusion.
36336         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
36337         inclusion.
36338         * conform/data/signal.h-data (SIGIO): Remove expectation.
36339         [XPG3] (SIGBUS): Do not expect.
36340         [POSIX || XPG3] (SIGPOLL): Likewise.
36341         [POSIX || XPG3] (SIGPROF): Likewise.
36342         [POSIX || XPG3] (SIGSYS): Likewise.
36343         [XPG3] (SIGTRAP): Likewise.
36344         [POSIX || XPG3] (SIGURG): Likewise.
36345         [POSIX || XPG3] (SIGVTALRM): Likewise.
36346         [POSIX || XPG3] (SIGXCPU): Likewise.
36347         [POSIX || XPG3] (SIGXFSZ): Likewise.
36348         [POSIX] (SA_SIGINFO): Expect.
36349         [XPG3] (siginfo_t): Do not expect type or contents.
36350         [POSIX] (si_pid): Do not expect element.
36351         [POSIX] (si_uid): Likewise.
36352         [POSIX] (si_addr): Likewise.
36353         [POSIX] (si_status): Likewise.
36354         [POSIX] (si_band): Likewise.
36355         [XPG4] (si_value): Likewise.
36356         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
36357         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
36358         [POSIX || XPG3] (ILL_ILLADR): Likewise.
36359         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
36360         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
36361         [POSIX || XPG3] (ILL_PRVREG): Likewise.
36362         [POSIX || XPG3] (ILL_COPROC): Likewise.
36363         [POSIX || XPG3] (ILL_BADSTK): Likewise.
36364         [POSIX || XPG3] (FPE_INTDIV): Likewise.
36365         [POSIX || XPG3] (FPE_INTOVF): Likewise.
36366         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
36367         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
36368         [POSIX || XPG3] (FPE_FLTUND): Likewise.
36369         [POSIX || XPG3] (FPE_FLTRES): Likewise.
36370         [POSIX || XPG3] (FPE_FLTINV): Likewise.
36371         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
36372         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
36373         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
36374         [POSIX || XPG3] (BUS_ADRALN): Likewise.
36375         [POSIX || XPG3] (BUS_ADRERR): Likewise.
36376         [POSIX || XPG3] (BUS_OBJERR): Likewise.
36377         [POSIX || XPG3] (CLD_EXITED): Likewise.
36378         [POSIX || XPG3] (CLD_KILLED): Likewise.
36379         [POSIX || XPG3] (CLD_DUMPED): Likewise.
36380         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
36381         [POSIX || XPG3] (CLD_STOPPED): Likewise.
36382         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
36383         [POSIX || XPG3] (POLL_IN): Likewise.
36384         [POSIX || XPG3] (POLL_OUT): Likewise.
36385         [POSIX || XPG3] (POLL_MSG): Likewise.
36386         [POSIX || XPG3] (POLL_ERR): Likewise.
36387         [POSIX || XPG3] (POLL_PRI): Likewise.
36388         [POSIX || XPG3] (POLL_HUP): Likewise.
36389         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
36390         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
36391         (SIG*): Do not allow.
36392         [XPG3] (si_*): Likewise.
36393         [XPG3] (SI_*): Likewise.
36394         [XPG3 || XPG4] (sigev_*): Likewise.
36395         [XPG3 || XPG4] (SIGEV_*): Likewise.
36396         [XPG3 || XPG4] (sival_*): Likewise.
36397         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
36398         [POSIX || XPG3] (BUS_*): Likewise.
36399         [POSIX || XPG3] (CLD_*): Likewise.
36400         [POSIX || XPG3] (FPE_*): Likewise.
36401         [POSIX || XPG3] (ILL_*): Likewise.
36402         [POSIX || XPG3] (POLL_*): Likewise.
36403         [POSIX || XPG3] (SEGV_*): Likewise.
36404         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
36405         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
36406         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
36407         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
36408         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
36409         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
36410         Specify type and value.
36411         (TVERSLEN): Likewise.
36412         (REGTYPE): Likewise.
36413         (AREGTYPE): Likewise.
36414         (LNKTYPE): Likewise.
36415         (SYMTYPE): Likewise.
36416         (CHRTYPE): Likewise.
36417         (BLKTYPE): Likewise.
36418         (DIRTYPE): Likewise.
36419         (FIFOTYPE): Likewise.
36420         (CONTTYPE): Likewise.
36421         (TSUID): Likewise.
36422         (TSGID): Likewise.
36423         (TSVTX): Likewise.
36424         (TUREAD): Likewise.
36425         (TUWRITE): Likewise.
36426         (TUEXEC): Likewise.
36427         (TGREAD): Likewise.
36428         (TGWRITE): Likewise.
36429         (TGEXEC): Likewise.
36430         (TOREAD): Likewise.
36431         (TOWRITE): Likewise.
36432         (TOEXEC): Likewise.
36433         [POSIX] (TSVTX): Expect constant.
36434
36435 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
36436
36437         * Makefile (tests): Change dependencies to ....
36438         (tests-special): ... additions to this variable.
36439         (tests): Depend on $(tests-special).
36440         * Makerules (check-abi-list): New variable.
36441         (check-abi): Depend on $(check-abi-list).
36442         [$(subdir) = elf] (tests-special): Add
36443         $(objpfx)check-abi-libc.out.
36444         [$(build-shared) = yes && subdir] (tests-special): Add
36445         $(check-abi-list).
36446         [$(build-shared) = yes && subdir] (tests): Do not depend on
36447         check-abi.
36448         * Rules (tests): Depend on $(tests-special).
36449         (xtests): Depend on $(xtests-special).
36450         * catgets/Makefile (tests): Change dependencies to ....
36451         (tests-special): ... additions to this variable.
36452         * conform/Makefile (tests): Change dependencies to ....
36453         (tests-special): ... additions to this variable.
36454         * elf/Makefile (tests): Change dependencies to ....
36455         (tests-special): ... additions to this variable.
36456         * grp/Makefile (tests): Change dependencies to ....
36457         (tests-special): ... additions to this variable.
36458         * iconv/Makefile (xtests): Change dependencies to ....
36459         (xtests-special): ... additions to this variable.
36460         * iconvdata/Makefile (tests): Change dependencies to ....
36461         (tests-special): ... additions to this variable.
36462         * intl/Makefile (tests): Change dependencies to ....
36463         (tests-special): ... additions to this variable.  Also add
36464         $(objpfx)tst-gettext.out.
36465         * io/Makefile (tests): Change dependencies to ....
36466         (tests-special): ... additions to this variable.
36467         * libio/Makefile (tests): Change dependencies to ....
36468         (tests-special): ... additions to this variable.
36469         * malloc/Makefile (tests): Change dependencies to ....
36470         (tests-special): ... additions to this variable.
36471         * misc/Makefile (tests): Change dependencies to ....
36472         (tests-special): ... additions to this variable.
36473         * nptl/Makefile (tests): Change dependencies to ....
36474         (tests-special): ... additions to this variable.
36475         * nptl_db/Makefile (tests): Change dependencies to ....
36476         (tests-special): ... additions to this variable.
36477         * posix/Makefile (tests): Change dependencies to ....
36478         (tests-special): ... additions to this variable.
36479         (xtests): Change dependencies to ....
36480         (xtests-special): ... additions to this variable.
36481         * resolv/Makefile (tests): Change dependencies to ....
36482         (tests-special): ... additions to this variable.
36483         (xtests): Change dependencies to ....
36484         (xtests-special): ... additions to this variable.
36485         * stdio-common/Makefile (tests): Change dependencies to ....
36486         (tests-special): ... additions to this variable.
36487         (do-tst-unbputc): Remove target.
36488         (do-tst-printf): Likewise.
36489         * stdlib/Makefile (tests): Change dependencies to ....
36490         (tests-special): ... additions to this variable.
36491         * string/Makefile (tests): Change dependencies to ....
36492         (tests-special): ... additions to this variable.
36493         * sysdeps/x86/Makefile (tests): Change dependencies to ....
36494         (tests-special): ... additions to this variable.
36495
36496         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
36497         whole file.
36498         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
36499         whole file.
36500         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
36501         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
36502
36503         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
36504         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
36505         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
36506         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
36507         * conform/data/libgen.h-data [XPG3]: Likewise.
36508         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
36509         * conform/data/ndbm.h-data [XPG3]: Likewise.
36510         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36511         * conform/data/netdb.h-data [XPG3]: Likewise.
36512         * conform/data/netinet/in.h-data [XPG3]: Likewise.
36513         * conform/data/poll.h-data [XPG3]: Likewise.
36514         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
36515         * conform/data/strings.h-data [XPG3]: Likewise.
36516         * conform/data/stropts.h-data [XPG3]: Likewise.
36517         * conform/data/sys/mman.h-data [XPG3]: Likewise.
36518         * conform/data/sys/resource.h-data [XPG3]: Likewise.
36519         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
36520         Likewise.
36521         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
36522         * conform/data/sys/time.h-data [XPG3]: Likewise.
36523         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
36524         * conform/data/sys/uio.h-data [XPG3]: Likewise.
36525         * conform/data/sys/un.h-data [XPG3]: Likewise.
36526         * conform/data/syslog.h-data [XPG3]: Likewise.
36527         * conform/data/ucontext.h-data [XPG3]: Likewise.
36528         * conform/data/utmpx.h-data [XPG3]: Likewise.
36529         * conform/data/varargs.h-data [UNIX98]: Enable file.
36530
36531         * manual/Makefile (INSTALL_INFO): Remove variable setting.
36532
36533         * math/libm-test.inc (struct test_f_f_data): Move expected results
36534         into structure for each rounding mode.
36535         (struct test_ff_f_data): Likewise.
36536         (struct test_ff_f_data_nexttoward): Likewise.
36537         (struct test_fi_f_data): Likewise.
36538         (struct test_fl_f_data): Likewise.
36539         (struct test_if_f_data): Likewise.
36540         (struct test_fff_f_data): Likewise.
36541         (struct test_c_f_data): Likewise.
36542         (struct test_f_f1_data): Likewise.
36543         (struct test_fF_f1_data): Likewise.
36544         (struct test_ffI_f1_data): Likewise.
36545         (struct test_c_c_data): Likewise.
36546         (struct test_cc_c_data): Likewise.
36547         (struct test_f_i_data): Likewise.
36548         (struct test_ff_i_data): Likewise.
36549         (struct test_f_l_data): Likewise.
36550         (struct test_f_L_data): Likewise.
36551         (struct test_fFF_11_data): Likewise.
36552         (RM_): New macro.
36553         (RM_FE_DOWNWARD): Likewise.
36554         (RM_FE_TONEAREST): Likewise.
36555         (RM_FE_TOWARDZERO): Likewise.
36556         (RM_FE_UPWARD): Likewise.
36557         (RUN_TEST_LOOP_f_f): Update references to expected results.
36558         (RUN_TEST_LOOP_2_f): Likewise.
36559         (RUN_TEST_LOOP_fff_f): Likewise.
36560         (RUN_TEST_LOOP_c_f): Likewise.
36561         (RUN_TEST_LOOP_f_f1): Likewise.
36562         (RUN_TEST_LOOP_fF_f1): Likewise.
36563         (RUN_TEST_LOOP_fI_f1): Likewise.
36564         (RUN_TEST_LOOP_ffI_f1): Likewise.
36565         (RUN_TEST_LOOP_c_c): Likewise.
36566         (RUN_TEST_LOOP_cc_c): Likewise.
36567         (RUN_TEST_LOOP_f_i): Likewise.
36568         (RUN_TEST_LOOP_f_i_tg): Likewise.
36569         (RUN_TEST_LOOP_ff_i_tg): Likewise.
36570         (RUN_TEST_LOOP_f_b): Likewise.
36571         (RUN_TEST_LOOP_f_b_tg): Likewise.
36572         (RUN_TEST_LOOP_f_l): Likewise.
36573         (RUN_TEST_LOOP_f_L): Likewise.
36574         (RUN_TEST_LOOP_fFF_11): Likewise.
36575         * math/gen-libm-test.pl (parse_args): Output four copies of
36576         expected results for each test.
36577
36578         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
36579         (__ASSUME_UTIMES): Remove.
36580         * sysdeps/unix/sysv/linux/tile/kernel-features.h
36581         (__ASSUME_UTIMES): Likewise.
36582
36583         * math/gen-auto-libm-tests.c: Update comment on output format.
36584         (output_for_one_input_case): Generate before-rounding and
36585         after-rounding information as conditions on output flags not
36586         floating-point format.
36587         * math/auto-libm-test-out: Regenerated.
36588         * math/gen-libm-test.pl (cond_value): New function.
36589         (or_cond_value): Use cond_value.
36590         (generate_testfile): Handle conditional exceptions.
36591
36592 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
36593
36594         * math/libm-test.inc (max_valid_error): New variable.
36595         (init_max_error): Take new argument specifying whether function
36596         results are exactly determined.  Set max_valid_error and bound
36597         other variables for errors based on this argument.
36598         (set_max_error): Do not record results above max_valid_error.
36599         (check_float_internal): Only accept errors of up to 0.5ulps if
36600         also at most max_valid_error.
36601         (START): Take new argument EXACT and pass it to init_max_error.
36602         (acos_test): Update call to START.
36603         (acos_test_tonearest): Likewise.
36604         (acos_test_towardzero): Likewise.
36605         (acos_test_downward): Likewise.
36606         (acos_test_upward): Likewise.
36607         (acosh_test): Likewise.
36608         (asin_test): Likewise.
36609         (asin_test_tonearest): Likewise.
36610         (asin_test_towardzero): Likewise.
36611         (asin_test_downward): Likewise.
36612         (asin_test_upward): Likewise.
36613         (asinh_test): Likewise.
36614         (atan_test): Likewise.
36615         (atanh_test): Likewise.
36616         (atan2_test): Likewise.
36617         (cabs_test): Likewise.
36618         (cacos_test): Likewise.
36619         (cacosh_test): Likewise.
36620         (carg_test): Likewise.
36621         (casin_test): Likewise.
36622         (casinh_test): Likewise.
36623         (catan_test): Likewise.
36624         (catanh_test): Likewise.
36625         (cbrt_test): Likewise.
36626         (ccos_test): Likewise.
36627         (ccosh_test): Likewise.
36628         (ceil_test): Likewise.
36629         (cexp_test): Likewise.
36630         (cimag_test): Likewise.
36631         (clog_test): Likewise.
36632         (clog10_test): Likewise.
36633         (conj_test): Likewise.
36634         (copysign_test): Likewise.
36635         (cos_test): Likewise.
36636         (cos_test_tonearest): Likewise.
36637         (cos_test_towardzero): Likewise.
36638         (cos_test_downward): Likewise.
36639         (cos_test_upward): Likewise.
36640         (cosh_test): Likewise.
36641         (cosh_test_tonearest): Likewise.
36642         (cosh_test_towardzero): Likewise.
36643         (cosh_test_downward): Likewise.
36644         (cosh_test_upward): Likewise.
36645         (cpow_test): Likewise.
36646         (cproj_test): Likewise.
36647         (creal_test): Likewise.
36648         (csin_test): Likewise.
36649         (csinh_test): Likewise.
36650         (csqrt_test): Likewise.
36651         (ctan_test): Likewise.
36652         (ctan_test_tonearest): Likewise.
36653         (ctan_test_towardzero): Likewise.
36654         (ctan_test_downward): Likewise.
36655         (ctan_test_upward): Likewise.
36656         (ctanh_test): Likewise.
36657         (ctanh_test_tonearest): Likewise.
36658         (ctanh_test_towardzero): Likewise.
36659         (ctanh_test_downward): Likewise.
36660         (ctanh_test_upward): Likewise.
36661         (erf_test): Likewise.
36662         (erfc_test): Likewise.
36663         (exp_test): Likewise.
36664         (exp_test_tonearest): Likewise.
36665         (exp_test_towardzero): Likewise.
36666         (exp_test_downward): Likewise.
36667         (exp_test_upward): Likewise.
36668         (exp10_test): Likewise.
36669         (exp10_test_tonearest): Likewise.
36670         (exp10_test_towardzero): Likewise.
36671         (exp10_test_downward): Likewise.
36672         (exp10_test_upward): Likewise.
36673         (pow10_test): Likewise.
36674         (exp2_test): Likewise.
36675         (expm1_test): Likewise.
36676         (expm1_test_tonearest): Likewise.
36677         (expm1_test_towardzero): Likewise.
36678         (expm1_test_downward): Likewise.
36679         (expm1_test_upward): Likewise.
36680         (fabs_test): Likewise.
36681         (fdim_test): Likewise.
36682         (floor_test): Likewise.
36683         (fma_test): Likewise.
36684         (fma_test_towardzero): Likewise.
36685         (fma_test_downward): Likewise.
36686         (fma_test_upward): Likewise.
36687         (fmax_test): Likewise.
36688         (fmin_test): Likewise.
36689         (fmod_test): Likewise.
36690         (fpclassify_test): Likewise.
36691         (frexp_test): Likewise.
36692         (hypot_test): Likewise.
36693         (ilogb_test): Likewise.
36694         (isfinite_test): Likewise.
36695         (finite_test): Likewise.
36696         (isgreater_test): Likewise.
36697         (isgreaterequal_test): Likewise.
36698         (isinf_test): Likewise.
36699         (isless_test): Likewise.
36700         (islessequal_test): Likewise.
36701         (islessgreater_test): Likewise.
36702         (isnan_test): Likewise.
36703         (isnormal_test): Likewise.
36704         (issignaling_test): Likewise.
36705         (isunordered_test): Likewise.
36706         (j0_test): Likewise.
36707         (j1_test): Likewise.
36708         (jn_test): Likewise.
36709         (ldexp_test): Likewise.
36710         (lgamma_test): Likewise.
36711         (gamma_test): Likewise.
36712         (lrint_test): Likewise.
36713         (lrint_test_tonearest): Likewise.
36714         (lrint_test_towardzero): Likewise.
36715         (lrint_test_downward): Likewise.
36716         (lrint_test_upward): Likewise.
36717         (llrint_test): Likewise.
36718         (llrint_test_tonearest): Likewise.
36719         (llrint_test_towardzero): Likewise.
36720         (llrint_test_downward): Likewise.
36721         (llrint_test_upward): Likewise.
36722         (log_test): Likewise.
36723         (log10_test): Likewise.
36724         (log1p_test): Likewise.
36725         (log2_test): Likewise.
36726         (logb_test): Likewise.
36727         (logb_test_downward): Likewise.
36728         (lround_test): Likewise.
36729         (llround_test): Likewise.
36730         (modf_test): Likewise.
36731         (nearbyint_test): Likewise.
36732         (nextafter_test): Likewise.
36733         (nexttoward_test): Likewise.
36734         (pow_test): Likewise.
36735         (pow_test_tonearest): Likewise.
36736         (pow_test_towardzero): Likewise.
36737         (pow_test_downward): Likewise.
36738         (pow_test_upward): Likewise.
36739         (remainder_test): Likewise.
36740         (drem_test): Likewise.
36741         (remainder_test_tonearest): Likewise.
36742         (drem_test_tonearest): Likewise.
36743         (remainder_test_towardzero): Likewise.
36744         (drem_test_towardzero): Likewise.
36745         (remainder_test_downward): Likewise.
36746         (drem_test_downward): Likewise.
36747         (remainder_test_upward): Likewise.
36748         (drem_test_upward): Likewise.
36749         (remquo_test): Likewise.
36750         (rint_test): Likewise.
36751         (rint_test_tonearest): Likewise.
36752         (rint_test_towardzero): Likewise.
36753         (rint_test_downward): Likewise.
36754         (rint_test_upward): Likewise.
36755         (round_test): Likewise.
36756         (scalb_test): Likewise.
36757         (scalbn_test): Likewise.
36758         (scalbln_test): Likewise.
36759         (signbit_test): Likewise.
36760         (sin_test): Likewise.
36761         (sin_test_tonearest): Likewise.
36762         (sin_test_towardzero): Likewise.
36763         (sin_test_downward): Likewise.
36764         (sin_test_upward): Likewise.
36765         (sincos_test): Likewise.
36766         (sinh_test): Likewise.
36767         (sinh_test_tonearest): Likewise.
36768         (sinh_test_towardzero): Likewise.
36769         (sinh_test_downward): Likewise.
36770         (sinh_test_upward): Likewise.
36771         (sqrt_test): Likewise.
36772         (sqrt_test_tonearest): Likewise.
36773         (sqrt_test_towardzero): Likewise.
36774         (sqrt_test_downward): Likewise.
36775         (sqrt_test_upward): Likewise.
36776         (tan_test): Likewise.
36777         (tan_test_tonearest): Likewise.
36778         (tan_test_towardzero): Likewise.
36779         (tan_test_downward): Likewise.
36780         (tan_test_upward): Likewise.
36781         (tanh_test): Likewise.
36782         (tgamma_test): Likewise.
36783         (trunc_test): Likewise.
36784         (y0_test): Likewise.
36785         (y1_test): Likewise.
36786         (yn_test): Likewise.
36787         (significand_test): Likewise.
36788
36789         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
36790         individual tests in comment.
36791         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
36792         (prev_max_error): New variable.
36793         (prev_real_max_error): Likewise.
36794         (prev_imag_max_error): Likewise.
36795         (compare_ulp_data): Don't refer to test names in comment.
36796         (find_test_ulps): Remove function.
36797         (find_function_ulps): Likewise.
36798         (find_complex_function_ulps): Likewise.
36799         (init_max_error): Take function name as argument.  Look up ulps
36800         for that function.
36801         (print_ulps): Remove function.
36802         (print_max_error): Use prev_max_error instead of calling
36803         find_function_ulps.
36804         (print_complex_max_error): Use prev_real_max_error and
36805         prev_imag_max_error instead of calling find_complex_function_ulps.
36806         (check_float_internal): Take max_ulp parameter instead of calling
36807         find_test_ulps.  Don't call print_ulps.
36808         (check_float): Update call to check_float_internal.
36809         (check_complex): Update calls to check_float_internal.
36810         (START): Pass argument to init_max_error.
36811         * math/gen-libm-test.pl (%results): Don't include "kind"
36812         information.
36813         (parse_ulps): Don't handle ulps of individual tests.
36814         (print_ulps_file): Likewise.
36815         (output_ulps): Likewise.
36816         * math/README.libm-test: Update.
36817         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
36818         individual tests.
36819         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
36820         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
36821         * sysdeps/arm/libm-test-ulps: Likewise.
36822         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
36823         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
36824         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
36825         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
36826         * sysdeps/microblaze/libm-test-ulps: Likewise.
36827         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
36828         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
36829         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
36830         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
36831         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
36832         * sysdeps/sh/libm-test-ulps: Likewise.
36833         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
36834         * sysdeps/tile/libm-test-ulps: Likewise.
36835         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36836
36837 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
36838
36839         * math/libm-test.inc (print_complex_max_error): Check separately
36840         whether real and imaginary errors are within allowed range and
36841         pass 0 to print_complex_function_ulps instead of value within
36842         allowed range.
36843
36844 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
36845
36846         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
36847         formatting.
36848         (get_handles_fopen): Likewise.
36849         (do_write_test): Likewise.
36850
36851         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
36852
36853         * libio/fileops.c (do_ftell): Use cached offset when
36854         available.
36855         * libio/iofwide.c (do_ftell_wide): Likewise.
36856         * libio/iofdopen.c (_IO_new_fdopen): Don't use
36857         _IO_file_attach.
36858         * libio/wfileops.c (_IO_fwide): Don't cache offset.
36859
36860         [BZ #16532]
36861         * libio/libioP.h (get_file_offset): New function.
36862         * libio/fileops.c (get_file_offset): Likewise.
36863         (do_ftell): Likewise.
36864         (_IO_new_file_seekoff): Split out ftell logic.
36865         * libio/wfileops.c (do_ftell_wide): Likewise.
36866         (_IO_wfile_seekoff): Split out ftell logic.
36867         * libio/tst-ftell-active-handler.c: New test case.
36868         * libio/Makefile (tests): Add it.
36869
36870 2014-03-03  Roland McGrath  <roland@hack.frob.com>
36871
36872         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
36873         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
36874
36875 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
36876
36877         [BZ #16639]
36878         * nscd/connections.c (nscd_init): Call do_exit.
36879         (start_threads): Call do_exit and notify_parent.
36880         (begin_drop_privileges): Call do_exit.
36881         (finish_drop_privileges): Likewise.
36882         * nscd/selinux.c (preserve_capabilities): Likewise.
36883         (install_real_capabilities): Likewise.
36884         (nscd_selinux_enabled): Likewise.
36885         (avc_create_thread): Likewise.
36886         (avc_alloc_lock): Likewise.
36887         (nscd_avc_init): Likewise.
36888         * nscd/nscd.c (parent_fd): New static variable.
36889         (main): Create a pipe between parent and child processes.
36890         Skip closing parent_fd.
36891         (monitor_child): New function.
36892         (do_exit): Likewise.
36893         (notify_parent): Likewise.
36894         * nscd/nscd.h (notify_parent): Likewise.
36895         (do_exit): Likewise.
36896
36897 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
36898
36899         * malloc/malloc.c (__libc_calloc): Revert last change.
36900
36901 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36902
36903         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36904
36905 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
36906
36907         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
36908         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
36909         implementation.
36910         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
36911         (__libc_ifunc_impl_list): Likewise.
36912         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
36913         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
36914         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
36915         * string/strrchr.c: Define STRRCHR.
36916
36917 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
36918
36919         * benchtest/bench-strtok.c (simple_strtok): Delete.
36920         (strtok_string): Use as benchmark.
36921         * string/strtok (STRTOK): New macro.
36922
36923 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
36924
36925         * manual/threads.texi: Add header and standard comments to all
36926         functions.
36927
36928         * elf/dl-lookup.c (check_match): New function.
36929         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
36930         (do_lookup_x): Remove nested function check_match. Use non-nested
36931         function check_match.
36932
36933 2014-02-28  Roland McGrath  <roland@hack.frob.com>
36934
36935         * csu/Makefile (generated, before-compile): Use += rather than =.
36936         * catgets/Makefile (generated, generated-dirs): Likewise.
36937         * debug/Makefile (generated): Likewise.
36938         * dlfcn/Makefile (generated): Likewise.
36939         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
36940         * iconvdata/Makefile (before-compile, generated): Likewise.
36941         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
36942         * libio/Makefile (generated): Likewise.
36943         * malloc/Makefile (generated): Likewise.
36944         * manual/Makefile (generated, generated-dirs): Likewise.
36945         * misc/Makefile (generated): Likewise.
36946         * posix/Makefile (generated): Likewise.
36947         * resolv/Makefile (generated): Likewise.
36948         * sunrpc/Makefile (generated, generated-dirs): Likewise.
36949         * timezone/Makefile (generated, generated-dirs): Likewise.
36950
36951         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
36952
36953 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36954
36955         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
36956         power8 implementation.
36957         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
36958         file: POWER8 llround ifunc implementation.
36959         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
36960         (__lllround): Add POWER8 implementation.
36961         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
36962         POWER8 llround implementation.
36963
36964         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
36965         power8 implementation.
36966         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
36967         file: POWER8 llrint ifunc implementation.
36968         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
36969         Add POWER8 implementation.
36970         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
36971         POWER8 llrint implementation.
36972
36973         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
36974         power8 implementation.
36975         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
36976         file: POWER8 finite ifunc implementation.
36977         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
36978         Add POWER8 implementation.
36979         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
36980         Likewise.
36981         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
36982         POWER8 finite implementation.
36983         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
36984
36985         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
36986         power8 implementation.
36987         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
36988         file: POWER8 isinf ifunc implementation.
36989         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
36990         POWER8 implementation.
36991         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
36992         Likewise.
36993         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
36994         isinf implementation.
36995         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
36996
36997         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
36998         (INIT_ARCH): Add hwcap2 initialization.
36999         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
37000         power8 implementation.
37001         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
37002         file: POWER8 isnan ifunc implementation.
37003         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
37004         POWER8 implementation.
37005         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
37006         Likewise.
37007         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
37008         isnan implementation.
37009         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
37010
37011 2014-02-27  Joey Ye  <joey.ye@arm.com>
37012
37013         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
37014         (_FP_NANFRAC_Q): Set to zero.
37015
37016 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
37017
37018         [BZ #16623]
37019         * math/auto-libm-test-in: New test inputs.
37020         * math/auto-libm-test-out: Regenerate.
37021         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
37022         and DA.
37023         (__cos): Likewise.
37024         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
37025
37026 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
37027
37028         * scripts/evaluate-test.sh: Take new argument indicating whether
37029         failure is expected.
37030         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
37031         indicating whether failure is expected.
37032         * conform/Makefile (test-xfail-run-conformtest): New variable.
37033         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
37034         level.
37035         * posix/Makefile (test-xfail-annexc): New variable.
37036         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
37037
37038 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
37039
37040         * argp/Makefile: Include Makeconfig immediately after defining
37041         subdir.
37042         * assert/Makefile: Likewise.
37043         * benchtests/Makefile: Likewise.
37044         * catgets/Makefile: Likewise.
37045         * conform/Makefile: Likewise.
37046         * crypt/Makefile: Likewise.
37047         * csu/Makefile: Likewise.
37048         (all): Remove target.
37049         * ctype/Makefile: Include Makeconfig immediately after defining
37050         subdir.
37051         * debug/Makefile: Likewise.
37052         * dirent/Makefile: Likewise.
37053         * dlfcn/Makefile: Likewise.
37054         * gmon/Makefile: Likewise.
37055         * gnulib/Makefile: Likewise.
37056         * grp/Makefile: Likewise.
37057         * gshadow/Makefile: Likewise.
37058         * hesiod/Makefile: Likewise.
37059         * hurd/Makefile: Likewise.
37060         (all): Remove target.
37061         * iconvdata/Makefile: Include Makeconfig immediately after
37062         defining subdir.
37063         * inet/Makefile: Likewise.
37064         * intl/Makefile: Likewise.
37065         * io/Makefile: Likewise.
37066         * libio/Makefile: Likewise.
37067         (all): Remove target.
37068         * locale/Makefile: Include Makeconfig immediately after defining
37069         subdir.
37070         * login/Makefile: Likewise.
37071         * mach/Makefile: Likewise.
37072         (all): Remove target.
37073         * malloc/Makefile: Include Makeconfig immediately after defining
37074         subdir.
37075         (all): Remove target.
37076         * manual/Makefile: Include Makeconfig immediately after defining
37077         subdir.
37078         * math/Makefile: Likewise.
37079         * misc/Makefile: Likewise.
37080         * nis/Makefile: Likewise.
37081         * nss/Makefile: Likewise.
37082         * po/Makefile: Likewise.
37083         (all): Remove target.
37084         * posix/Makefile: Include Makeconfig immediately after defining
37085         subdir.
37086         * pwd/Makefile: Likewise.
37087         * resolv/Makefile: Likewise.
37088         * resource/Makefile: Likewise.
37089         * rt/Makefile: Likewise.
37090         * setjmp/Makefile: Likewise.
37091         * shadow/Makefile: Likewise.
37092         * signal/Makefile: Likewise.
37093         * socket/Makefile: Likewise.
37094         * soft-fp/Makefile: Likewise.
37095         * stdio-common/Makefile: Likewise.
37096         * stdlib/Makefile: Likewise.
37097         * streams/Makefile: Likewise.
37098         * string/Makefile: Likewise.
37099         * sunrpc/Makefile: Likewise.
37100         (all): Remove target.
37101         * sysvipc/Makefile: Include Makeconfig immediately after defining
37102         subdir.
37103         * termios/Makefile: Likewise.
37104         * time/Makefile: Likewise.
37105         * timezone/Makefile: Likewise.
37106         (all): Remove target.
37107         * wcsmbs/Makefile: Include Makeconfig immediately after defining
37108         subdir.
37109         * wctype/Makefile: Likewise.
37110
37111 2014-02-26  Steve Ellcey  <sellcey@mips.com>
37112
37113         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
37114         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
37115         (libc_feholdexcept_setround_mips): Ditto.
37116         (libc_feholdsetround): New.
37117         (libc_feholdsetroundf): New.
37118         (libc_feholdsetroundl): New.
37119         (libc_feupdateenv_test_mips): New.
37120         (libc_feupdateenv_test): New.
37121         (libc_feupdateenv_testf): New.
37122         (libc_feupdateenv_testl): New.
37123         (libc_feresetround): New.
37124         (libc_feresetroundf): New.
37125         (libc_feresetroundl): New.
37126         (libc_fetestexcept_mips): New.
37127         (libc_fetestexcept): New.
37128         (libc_fetestexceptf): New.
37129         (libc_fetestexceptl): New.
37130         (HAVE_RM_CTX): New.
37131         (libc_feholdexcept_setround_mips_ctx): New.
37132         (libc_feholdexcept_setround_ctx): New.
37133         (libc_feholdexcept_setroundf_ctx): New.
37134         (libc_feholdexcept_setroundl_ctx): New.
37135         (libc_fesetenv_mips_ctx): New.
37136         (libc_fesetenv_ctx): New.
37137         (libc_fesetenv_ctxf): New.
37138         (libc_fesetenv_ctxl): New.
37139         (libc_feupdateenv_mips_ctx): New.
37140         (libc_feupdateenv_ctx): New.
37141         (libc_feupdateenvf_ctx): New.
37142         (libc_feupdateenvl_ctx): New.
37143         (libc_feholdsetround_mips_ctx): New.
37144         (libc_feholdsetround_ctx): New.
37145         (libc_feholdsetroundf_ctx): New.
37146         (libc_feholdsetroundl_ctx): New.
37147         (libc_feresetround_mips_ctx): New.
37148         (libc_feresetround_ctx): New.
37149         (libc_feresetroundf_ctx): New.
37150         (libc_feresetroundl_ctx): New.
37151
37152 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
37153
37154         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
37155
37156         * manual/ipc.texi: New file.
37157         * manual/Makefile (chapters): Add ipc.
37158         * manual/job.texi: Add "Inter-Process Communication" to next.
37159         * manual/process.texi: Add "Inter-Process Communication" to prev.
37160
37161 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37162
37163         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37164
37165 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
37166
37167         * malloc/malloc.c (__libc_calloc): Simplify implementation.
37168
37169         * manual/arith.texi: Fix spaces after sentences.
37170         * manual/charset.texi: Likewise.
37171         * manual/errno.texi: Likewise.
37172         * manual/install.texi: Likewise.
37173         * manual/llio.texi: Likewise.
37174         * manual/locale.texi: Likewise.
37175         * manual/maint.texi: Likewise.
37176         * manual/math.texi: Likewise.
37177         * manual/memory.texi: Likewise.
37178         * manual/message.texi: Likewise.
37179         * manual/probes.texi: Likewise.
37180         * manual/resource.texi: Likewise.
37181         * manual/signal.texi: Likewise.
37182         * manual/socket.texi: Likewise.
37183         * manual/stdio.texi: Likewise.
37184         * manual/string.texi: Likewise.
37185         * manual/time.texi: Likewise.
37186         * manual/users.texi: Likewise.
37187
37188 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
37189
37190         [BZ #16632]
37191         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
37192         _DEFAULT_SOURCE is defined.
37193
37194 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
37195             Carlos O'Donell  <carlos@redhat.com>
37196
37197         [BZ #16613]
37198         * elf/dl-tls.c (_dl_count_modids): New function.
37199         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
37200         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
37201         audit library and increment generation counter.
37202         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
37203         * elf/tst-audit9.c: New file.
37204         * elf/tst-auditmod9a.c: New file.
37205         * elf/tst-auditmod9b.c: New file.
37206         * elf/Makefile: Add rules to build and run tst-audit9.
37207
37208 2014-02-25  Florian Weimer  <fweimer@redhat.com>
37209
37210         [BZ #15347]
37211         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
37212
37213 2014-02-25  Will Newton  <will.newton@linaro.org>
37214
37215         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
37216         (__longjmp): Restore sp and lr before restoring callee
37217         saved registers.  Add longjmp and longjmp_target
37218         SystemTap probe point.
37219         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
37220         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
37221         Define to zero to match jmpbuf layout.
37222         * sysdeps/arm/setjmp.S: Include stap-probe.h.
37223         (__sigsetjmp): Save sp and lr before saving callee
37224         saved registers.  Add setjmp SystemTap probe point.
37225
37226 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
37227
37228         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
37229
37230 2014-02-24  Andreas Schwab  <schwab@suse.de>
37231
37232         [BZ #15804]
37233         * elf/pldd.c (wait_for_ptrace_stop): New function.
37234         (main): Call it after attaching.
37235
37236 2014-02-22  Roland McGrath  <roland@hack.frob.com>
37237
37238         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
37239         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
37240         Versions files is now verboten.
37241         * hurd/Versions (libc: GLIBC_2.0):
37242         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
37243         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
37244         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
37245         * mach/Versions: Likewise.
37246
37247         * csu/Versions: Remove unused %include.
37248         * resolv/Versions: Likewise.
37249
37250 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
37251
37252         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
37253         ($(objpfx)check-local-headers.out): Likewise.
37254         ($(objpfx)begin-end-check.out): Likewise.
37255         * Makerules (check-abi-%.out): Likewise.
37256         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
37257         ($(objpfx)test2.cat): Likewise.
37258         ($(objpfx)de/libc.cat): Likewise.
37259         ($(objpfx)test-gencat.out): Likewise.
37260         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
37261         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
37262         ($(objpfx)noload-mem): Likewise.
37263         ($(objpfx)tst-pathopt.out): Likewise.
37264         ($(objpfx)tst-rtld-load-self.out): Likewise.
37265         ($(objpfx)tst-array1-cmp.out): Likewise.
37266         ($(objpfx)tst-array1-static-cmp.out): Likewise.
37267         ($(objpfx)tst-array2-cmp.out): Likewise.
37268         ($(objpfx)tst-array3-cmp.out): Likewise.
37269         ($(objpfx)tst-array4-cmp.out): Likewise.
37270         ($(objpfx)tst-array5-cmp.out): Likewise.
37271         ($(objpfx)tst-array5-static-cmp.out): Likewise.
37272         ($(objpfx)check-textrel.out): Likewise.
37273         ($(objpfx)check-execstack.out): Likewise.
37274         ($(objpfx)check-localplt.out): Likewise.
37275         ($(objpfx)order2-cmp.out): Likewise.
37276         ($(objpfx)tst-leaks1-mem): Likewise.
37277         ($(objpfx)tst-leaks1-static-mem): Likewise.
37278         ($(objpfx)tst-initorder-cmp.out): Likewise.
37279         ($(objpfx)tst-initorder2-cmp.out): Likewise.
37280         ($(objpfx)tst-unused-dep.out): Likewise.
37281         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
37282         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
37283         * iconv/Makefile (test-iconvconfig): Likewise.
37284         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
37285         ($(objpfx)iconv-test.out): Likewise.
37286         ($(objpfx)tst-tables.out): Likewise.
37287         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
37288         ($(objpfx)tst-gettext.out): Likewise.
37289         ($(objpfx)tst-translit.out): Likewise.
37290         ($(objpfx)tst-gettext2.out): Likewise.
37291         ($(objpfx)tst-gettext4.out): Likewise.
37292         ($(objpfx)tst-gettext6.out): Likewise.
37293         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
37294         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
37295         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
37296         ($(objpfx)tst-fopenloc-mem.out): Likewise.
37297         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
37298         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
37299         * posix/Makefile ($(objpfx)globtest.out): Likewise.
37300         ($(objpfx)wordexp-tst.out): Likewise.
37301         ($(objpfx)annexc.out): Likewise.
37302         ($(objpfx)tst-fnmatch-mem): Likewise.
37303         ($(objpfx)bug-regex2-mem): Likewise.
37304         ($(objpfx)bug-regex14-mem): Likewise.
37305         ($(objpfx)bug-regex21-mem): Likewise.
37306         ($(objpfx)bug-regex31-mem): Likewise.
37307         ($(objpfx)tst-vfork3-mem): Likewise.
37308         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
37309         ($(objpfx)tst-pcre-mem): Likewise.
37310         ($(objpfx)tst-boost-mem): Likewise.
37311         ($(objpfx)tst-getconf.out): Likewise.
37312         ($(objpfx)bug-ga2-mem): Likewise.
37313         ($(objpfx)bug-glob2-mem): Likewise.
37314         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
37315         ($(objpfx)mtrace-tst-leaks2): Likewise.
37316         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
37317         ($(objpfx)tst-printf.out): Likewise.
37318         ($(objpfx)tst-setvbuf1.out): Likewise.
37319         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
37320         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
37321         ($(objpfx)tst-fmtmsg.out): Likewise.
37322         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
37323         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
37324
37325         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
37326         * bits/sigaction.h [__USE_MISC]: Likewise.
37327         * bits/waitstatus.h: Update #endif comments.
37328         * ctype/ctype.h: Likewise.
37329         * dirent/dirent.h: Likewise.
37330         [__USE_MISC]: Remove redundant conditionals.
37331         * grp/grp.h: Update #endif comments.
37332         [__USE_GNU]: Remove redundant conditionals.
37333         [__USE_MISC]: Likewise.
37334         * inet/netinet/in.h [__USE_GNU]: Likewise.
37335         * io/sys/stat.h [__USE_MISC]: Likewise.
37336         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
37337         * libio/bits/stdio.h: Update #endif comments.
37338         [__USE_MISC]: Remove redundant conditionals.
37339         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
37340         * libio/stdio.h: Update #endif comments.
37341         [__USE_MISC]: Remove redundant conditionals.
37342         * math/bits/math-finite.h [__USE_MISC]: Likewise.
37343         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
37344         * math/math.h: Update #else and #endif comments.
37345         [__USE_MISC]: Remove redundant conditionals.
37346         * misc/sys/uio.h: Update #endif comments.
37347         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
37348         * posix/glob.h [__USE_MISC]: Likewise.
37349         * posix/sys/types.h: Update #endif comments.
37350         [__USE_MISC]: Remove redundant conditionals.
37351         * posix/sys/wait.h: Update #endif comments.
37352         [__USE_MISC]: Remove redundant conditionals.
37353         * posix/unistd.h: Update #endif comments.
37354         [__USE_MISC]: Remove redundant conditionals.
37355         * pwd/pwd.h [__USE_GNU]: Likewise.
37356         [__USE_MISC]: Likewise.
37357         * resolv/netdb.h [__USE_GNU]: Likewise.
37358         * signal/signal.h: Update #endif comments.
37359         [__USE_MISC]: Remove redundant conditionals.
37360         * stdlib/stdlib.h: Update #else and #endif comments.
37361         [__USE_MISC]: Remove redundant conditionals.
37362         [__USE_GNU]: Likewise.
37363         * string/bits/string2.h [__USE_MISC]: Likewise.
37364         * string/string.h: Update #endif comments.
37365         [__USE_MISC]: Remove redundant conditionals.
37366         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
37367         Likewise.
37368         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
37369         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
37370         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
37371         Likewise.
37372         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
37373         Likewise.
37374         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
37375         comments.
37376         [__USE_MISC]: Remove redundant conditionals.
37377         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
37378         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
37379         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
37380         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
37381         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
37382         Likewise.
37383         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
37384         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
37385         Likewise.
37386         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
37387         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
37388         Likewise.
37389         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
37390         Likewise.
37391         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
37392         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
37393         Likewise.
37394         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
37395         Likewise.
37396         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
37397         * sysdeps/x86/bits/string.h: Update #endif comments.
37398         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
37399         conditionals.
37400         * time/sys/time.h: Update #endif comments.
37401         * time/time.h: Likewise.
37402         [__USE_MISC]: Remove redundant conditionals.
37403
37404 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
37405
37406         [BZ #16600]
37407         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
37408
37409 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
37410
37411         * Versions.def (librt): Add GLIBC_2.17.
37412
37413 2014-02-21  Adam Conrad  <adconrad@0c3.net>
37414
37415         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
37416         synonym for _SYS_AUXV_H to allow direct inclusion.
37417         * sysdeps/sparc/bits/hwcap.h: Likewise.
37418         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
37419         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
37420         * sysdeps/sparc/sysdep.h: Likewise.
37421
37422 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
37423
37424         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
37425
37426 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
37427
37428         * benchtests/bench-strrchr.c: Print length instead of position.
37429
37430 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
37431
37432         [BZ #16611]
37433         * sysdeps/unix/sysv/linux/kernel-features.h
37434         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
37435         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
37436         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
37437         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
37438         Likewise.
37439         [__i386__ || __powerpc__ || __sh__ || __sparc__]
37440         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37441         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
37442         (__ASSUME_SENDMMSG): Define instead of using previous
37443         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
37444         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37445         (__ASSUME_SENDMMSG_SYSCALL): Define.
37446         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37447         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
37448         Likewise.
37449         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37450         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37451         Likewise.
37452         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37453         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37454         Likewise.
37455         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
37456         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37457         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37458         [__ASSUME_SENDMMSG]: Change conditionals to
37459         [__ASSUME_SENDMMSG_SOCKETCALL].
37460         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37461         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
37462         Define.
37463         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37464         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
37465         Likewise.
37466         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
37467         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
37468         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
37469         [!__ASSUME_SENDMMSG]: Change conditional to
37470         [!__ASSUME_SENDMMSG_SOCKETCALL].
37471         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37472         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
37473         Define.
37474
37475         [BZ #16610]
37476         * sysdeps/unix/sysv/linux/kernel-features.h
37477         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
37478         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
37479         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
37480         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
37481         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
37482         [__i386__ || __sparc__]
37483         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37484         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
37485         (__ASSUME_RECVMMSG): Define instead of using previous
37486         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
37487         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37488         (__ASSUME_RECVMMSG_SYSCALL): Define.
37489         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37490         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37491         Likewise.
37492         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37493         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37494         Likewise.
37495         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37496         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37497         Likewise.
37498         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
37499         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37500         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37501         [__ASSUME_RECVMMSG]: Change condition to
37502         [__ASSUME_RECVMMSG_SOCKETCALL].
37503         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37504         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37505         Define.
37506         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
37507         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37508         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
37509         Likewise.
37510         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
37511         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
37512         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
37513         [!__ASSUME_RECVMMSG]: Change condition to
37514         [!__ASSUME_RECVMMSG_SOCKETCALL].
37515         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37516         (__ASSUME_RECVMMSG_SYSCALL): Define.
37517
37518         [BZ #16609]
37519         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
37520         __powerpc__ || __s390__ || __sh__ || __sparc__]
37521         (__ASSUME_SOCKETCALL): Define.
37522         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
37523         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
37524         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
37525         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
37526         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
37527         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
37528         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
37529         (__ASSUME_ACCEPT4): Define instead of using previous
37530         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
37531         __powerpc__ || __sparc__ || __s390__)] condition.
37532         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
37533         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37534         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
37535         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37536         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37537         [!__ASSUME_ACCEPT4]: Change condition to
37538         [!__ASSUME_ACCEPT4_SOCKETCALL].
37539         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
37540         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
37541         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
37542         * sysdeps/unix/sysv/linux/arm/kernel-features.h
37543         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
37544         __ASSUME_ACCEPT4_SYSCALL.
37545         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
37546         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
37547         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
37548         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
37549         __ASSUME_ACCEPT4_SYSCALL.
37550         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
37551         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
37552         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
37553         [__ASSUME_ACCEPT4]: Change condition to
37554         [__ASSUME_ACCEPT4_SOCKETCALL].
37555         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
37556         (__ASSUME_SOCKETCALL): Define.
37557         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
37558         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
37559         (__ASSUME_SOCKETCALL): Define.
37560         (__ASSUME_ACCEPT4): Remove.
37561         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
37562         Define.
37563         * sysdeps/unix/sysv/linux/mips/kernel-features.h
37564         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
37565         Likewise.
37566         * sysdeps/unix/sysv/linux/tile/kernel-features.h
37567         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
37568
37569         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
37570         macro.
37571         (HWCAP_ARM_LPAE): Likewise.
37572         (HWCAP_ARM_EVTSTRM): Likewise.
37573         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
37574         Add vpfd32, lpae and evtstrm.
37575         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
37576         Increase to 22.
37577
37578 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
37579
37580         * math/auto-libm-test-in: Add tests of clog10.
37581         * math/auto-libm-test-out: Regenerated.
37582         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
37583         * sysdeps/i386/fpu/libm-test-ulps: Update.
37584         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37585
37586 2014-02-18  Andreas Schwab  <schwab@suse.de>
37587
37588         [BZ #16574]
37589         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
37590         Store non-zero if the second buffer was newly allocated.
37591         (send_dg): Likewise.
37592         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
37593         to send_vc and send_dg.
37594         (res_nsend): Pass NULL for ansp2_malloced.
37595         * resolv/res_query.c (__libc_res_nquery): Add parameter
37596         answerp2_malloced and pass it down to __libc_res_nsend.
37597         (res_nquery): Pass additional NULL to __libc_res_nquery.
37598         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
37599         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
37600         second answer buffer if answerp2_malloced was set.
37601         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
37602         (__libc_res_nquerydomain): Add parameter
37603         answerp2_malloced and pass it down to __libc_res_nquery.
37604         (res_nquerydomain): Pass additional NULL to
37605         __libc_res_nquerydomain.
37606         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
37607         additional NULL to __libc_res_nsend and __libc_res_nquery.
37608         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
37609         additional NULL to __libc_res_nsearch.
37610         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
37611         parameter of __libc_res_nsearch to check for separately allocated
37612         second buffer.
37613         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
37614         __libc_res_nquery.
37615         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
37616         additional NULL to __libc_res_nquery.
37617         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
37618         __libc_res_nsearch.
37619         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
37620         * include/resolv.h: Update prototypes of __libc_res_nquery,
37621         __libc_res_nsearch, __libc_res_nsend.
37622
37623 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
37624
37625         * math/auto-libm-test-in: Add tests of fma.
37626         * math/auto-libm-test-out: Regenerated.
37627         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
37628         (fma_towardzero_test_data): Likewise.
37629         (fma_downward_test_data): Likewise.
37630         (fma_upward_test_data): Likewise.
37631         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
37632         mpc_mode.
37633         (rounding_modes): Add values for new field.
37634         (func_calc_method): Add value mpfr_fff_f.
37635         (func_calc_desc): Add mpfr_fff_f union field.
37636         (test_function): Add field exact_args.
37637         (FUNC): Add macro argument EXACT_ARGS.
37638         (FUNC_mpfr_f_f): Update call to FUNC.
37639         (FUNC_mpfr_f_f): Likewise.
37640         (FUNC_mpfr_ff_f): Likewise.
37641         (FUNC_mpfr_if_f): Likewise.
37642         (FUNC_mpc_c_f): Likewise.
37643         (FUNC_mpc_c_c): Likewise.
37644         (test_functions): Add fma.  Update calls to FUNC.
37645         (handle_input_arg): Add argument exact_args.
37646         (add_test): Update call to handle_input_arg.
37647         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
37648         (output_for_one_input_case): Update call to calc_generic_results.
37649         Recalculate exact zero results in each rounding mode.
37650
37651         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
37652         non-negative before setting low bit.
37653         * math/auto-libm-test-in: Mark one asin test possibly having
37654         spurious underflow.
37655         * math/auto-libm-test-out: Regenerated.
37656         * sysdeps/i386/fpu/libm-test-ulps: Update.
37657         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37658
37659 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
37660
37661         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
37662         * sysdeps/unix/sysv/linux/microblaze: Move directory from
37663         ports/sysdeps/unix/sysv/linux/microblaze.
37664         * README: Add missing listing for microblaze*-*-linux-gnu.
37665
37666 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
37667
37668         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
37669         duplicate code
37670
37671 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
37672
37673         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
37674         * sysdeps/unix/sysv/linux/ia64: Move directory from
37675         ports/sysdeps/unix/sysv/linux/ia64.
37676         * README: Update listing for ia64-*-linux-gnu.
37677
37678 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
37679             Joseph Myers  <joseph@codesourcery.com>
37680
37681         * Makeconfig (test-name): New variable.
37682         (evaluate-test): Likewise.
37683         * Makerules (do-test-clean): Remove .test-result files.
37684         (common-mostlyclean): Likewise.
37685         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
37686         * scripts/evaluate-test.sh: New file.
37687
37688 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
37689
37690         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
37691         separate $(objpfx)tst-fopenloc-cmp.out and
37692         $(objpfx)tst-fopenloc-mem.out targets.
37693         (tests): Update dependencies.
37694         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
37695         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
37696         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
37697         (tst-rxspencer-no-utf8-ARGS): New variable.
37698         (tst-rxspencer-no-utf8-ENV): Likewise.
37699         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
37700         instead of $(objpfx)tst-rxspencer-mem.
37701         ($(objpfx)tst-rxspencer-mem): Change target to
37702         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
37703         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
37704         * posix/tst-rxspencer-no-utf8.c: New file.
37705
37706         * elf/Makefile ($(objpfx)order.out): Remove rule.
37707         [$(run-built-tests) = yes] (tests): Depend on
37708         $(objpfx)order-cmp.out.
37709         ($(objpfx)order-cmp.out): New rule.
37710         [$(run-built-tests) = yes] (tests): Depend on
37711         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
37712         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
37713         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
37714         $(objpfx)tst-array5-static-cmp.out.
37715         ($(objpfx)tst-array1.out): Remove rule.
37716         ($(objpfx)tst-array1-cmp.out): New rule.
37717         ($(objpfx)tst-array1-static.out): Remove rule.
37718         ($(objpfx)tst-array1-static-cmp.out): New rule.
37719         ($(objpfx)tst-array2.out): Remove rule.
37720         ($(objpfx)tst-array2-cmp.out): New rule.
37721         ($(objpfx)tst-array3.out): Remove rule.
37722         ($(objpfx)tst-array3-cmp.out): New rule.
37723         ($(objpfx)tst-array4.out): Remove rule.
37724         ($(objpfx)tst-array4-cmp.out): New rule.
37725         ($(objpfx)tst-array5.out): Remove rule.
37726         ($(objpfx)tst-array5-cmp.out): New rule.
37727         ($(objpfx)tst-array5-static.out): Remove rule.
37728         ($(objpfx)tst-array5-static-cmp.out): New rule.
37729         [$(run-built-tests) = yes] (tests): Depend on
37730         $(objpfx)order2-cmp.out.
37731         ($(objpfx)order2.out): Remove rule.
37732         ($(objpfx)order2-cmp.out): New rule.
37733         ($(objpfx)tst-initorder.out): Remove rule.
37734         [$(run-built-tests) = yes] (tests): Depend on
37735         $(objpfx)tst-initorder-cmp.out.
37736         ($(objpfx)tst-initorder-cmp.out): New rule.
37737         ($(objpfx)tst-initorder2.out): Remove rule.
37738         [$(run-built-tests) = yes] (tests): Depend on
37739         $(objpfx)tst-initorder2-cmp.out.
37740         ($(objpfx)tst-initorder2-cmp.out): New rule.
37741         [$(run-built-tests) = yes] (tests): Depend on
37742         $(objpfx)tst-unused-dep-cmp.out.
37743         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
37744         ($(objpfx)tst-unused-dep-cmp.out): New rule.
37745         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
37746         on $(objpfx)tst-setvbuf1-cmp.out.
37747         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
37748         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
37749         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
37750         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
37751         ($(objpfx)tst-svc.out): Remove rule.
37752         ($(objpfx)tst-svc-cmp.out): New rule.
37753
37754 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
37755
37756         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
37757         * ctype/ctype.h [__USE_MISC]: Likewise.
37758         * dirent/dirent.h [__USE_MISC]: Likewise.
37759         * grp/grp.h [__USE_MISC]: Likewise.
37760         * io/fcntl.h [__USE_MISC]: Likewise.
37761         * io/sys/stat.h [__USE_MISC]: Likewise.
37762         * libio/stdio.h [__USE_MISC]: Likewise.
37763         * posix/unistd.h [__USE_MISC]: Likewise.
37764         * pwd/pwd.h [__USE_MISC]: Likewise.
37765         * stdlib.h [__USE_MISC]: Likewise.
37766         * string/bits/string2.h [__USE_MISC]: Likewise.
37767         * string/string.h [__USE_MISC]: Likewise.
37768         * time/time.h [__USE_MISC]: Likewise.
37769
37770 2014-02-13  Andreas Schwab  <schwab@suse.de>
37771
37772         [BZ #16574]
37773         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
37774         second answer buffer if it was separately allocated.
37775
37776 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
37777
37778         * sysdeps/mips/math-tests.h: Include <features.h>.
37779         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37780         (ROUNDING_TESTS_long_double): Do not define.
37781         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
37782         (EXCEPTION_TESTS_long_double): Likewise.
37783         * sysdeps/mips/mips64/libm-test-ulps: Update.
37784
37785         * include/features.h (__USE_BSD): Remove macro definitions.
37786         (__USE_SVID): Likewise.
37787         (_BSD_SOURCE): Likewise.
37788         (_SVID_SOURCE): Likewise.
37789         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
37790         from definition of _DEFAULT_SOURCE.
37791         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
37792         [_DEFAULT_SOURCE].
37793         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
37794         * bits/mman.h [__USE_BSD]: Likewise.
37795         * bits/termios.h [__USE_BSD]: Likewise.
37796         * bits/waitstatus.h [__USE_BSD]: Likewise.
37797         * ctype/ctype.h [__USE_SVID]: Likewise.
37798         * dirent/dirent.h [__USE_BSD]: Likewise.
37799         * grp/grp.h [__USE_SVID]: Likewise.
37800         [__USE_BSD]: Likewise.
37801         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
37802         * io/fcntl.h [__USE_BSD]: Likewise.
37803         * io/ftw.h [__USE_BSD]: Likewise.
37804         * io/sys/stat.h [__USE_BSD]: Likewise.
37805         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
37806         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
37807         * libio/stdio.h [__USE_SVID]: Likewise.
37808         [__USE_BSD]: Likewise.
37809         * math/math.h [__USE_SVID]: Likewise.
37810         [__USE_BSD]: Likewise.
37811         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
37812         * misc/bits/syslog.h [__USE_BSD]: Likewise.
37813         * misc/search.h [__USE_SVID]: Likewise.
37814         * misc/sys/mman.h [__USE_BSD]: Likewise.
37815         * misc/sys/syslog.h [__USE_BSD]: Likewise.
37816         * misc/sys/uio.h [__USE_BSD]: Likewise.
37817         * posix/bits/unistd.h [__USE_BSD]: Likewise.
37818         * posix/glob.h [__USE_BSD]: Likewise.
37819         * posix/regex.h [__USE_BSD]: Likewise.
37820         * posix/sys/types.h [__USE_BSD]: Likewise.
37821         [__USE_SVID]: Likewise.
37822         * posix/sys/utsname.h [__USE_SVID]: Likewise.
37823         * posix/sys/wait.h [__USE_BSD]: Likewise.
37824         [__USE_SVID]: Likewise.
37825         * posix/unistd.h [__USE_BSD]: Likewise.
37826         [__USE_SVID]: Likewise.
37827         * pwd/pwd.h [__USE_SVID]: Likewise.
37828         * resolv/netdb.h [__USE_BSD]: Likewise.
37829         * setjmp/setjmp.h [__USE_BSD]: Likewise.
37830         * signal/signal.h [__USE_BSD]: Likewise.
37831         [__USE_SVID]: Likewise.
37832         * socket/sys/socket.h [__USE_BSD]: Likewise.
37833         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
37834         * stdlib/stdlib.h [__USE_BSD]: Likewise.
37835         [__USE_SVID]: Likewise.
37836         * string/bits/string2.h [__USE_BSD]: Likewise.
37837         [__USE_SVID]: Likewise.
37838         * string/bits/string3.h [__USE_BSD]: Likewise.
37839         * string/endian.h [__USE_BSD]: Likewise.
37840         * string/string.h [__USE_SVID]: Likewise.
37841         [__USE_BSD]: Likewise.
37842         * string/strings.h [__USE_BSD]: Likewise.
37843         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
37844         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
37845         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
37846         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
37847         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
37848         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
37849         Likewise.
37850         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
37851         Likewise.
37852         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
37853         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
37854         Likewise.
37855         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
37856         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
37857         Likewise.
37858         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
37859         Likewise.
37860         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
37861         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
37862         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
37863         Likewise.
37864         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
37865         Likewise.
37866         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
37867         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
37868         * termios/termios.h [__USE_BSD]: Likewise.
37869         * time/sys/time.h [__USE_BSD]: Likewise.
37870         * time/time.h [__USE_BSD]: Likewise.
37871         [__USE_SVID]: Likewise.
37872
37873         * Makefile (subdir_targets): Remove subdir_lint.out.
37874
37875         * stdio-common/Makefile (do-tst-unbputc): Remove target.
37876         (do-tst-printf): Likewise.
37877         (tests): Depend directly on $(objpfx)tst-unbputc.out and
37878         $(objpfx)tst-printf.out.
37879
37880         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
37881
37882         * Makerules (check-abi-%): Change target to
37883         $(objpfx)check-abi-%.out.
37884         (check-abi target): Update dependencies.
37885         (check-abi-pattern variable): Redirect output of diff to $@.
37886         (check-abi variable): Likewise.
37887         * elf/Makefile (check-abi): Update dependencies.
37888
37889         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
37890         unused.
37891         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
37892         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
37893         subnormal range.
37894         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
37895         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
37896         value has largest subnormal exponent.
37897         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
37898         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
37899         * sysdeps/aarch64/soft-fp/sfp-machine.h
37900         (_FP_TININESS_AFTER_ROUNDING): New macro.
37901         * sysdeps/alpha/soft-fp/sfp-machine.h
37902         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37903         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37904         Likewise.
37905         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
37906         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37907         * sysdeps/mips/soft-fp/sfp-machine.h
37908         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37909         * sysdeps/powerpc/soft-fp/sfp-machine.h
37910         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37911         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37912         Likewise.
37913         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
37914         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37915         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
37916         (_FP_TININESS_AFTER_ROUNDING): Likewise.
37917         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
37918         Likewise.
37919
37920 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
37921
37922         [BZ #16545]
37923         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
37924         model 1.
37925
37926 2014-02-12  Richard Henderson  <rth@redhat.com>
37927
37928         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
37929         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
37930         * sysdeps/unix/sysv/linux/alpha: Move directory from
37931         ports/sysdeps/unix/sysv/linux/alpha.
37932         * README: Update listing for alpha-*-linux-gnu.
37933
37934 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
37935
37936         * include/features.h: Update comment documenting feature test
37937         macros.
37938         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
37939         _DEFAULT_SOURCE.
37940         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
37941         (_SVID_SOURCE): Likewise.
37942         (_DEFAULT_SOURCE): Update description of default features.
37943         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
37944         with _GNU_SOURCE.
37945         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
37946         (S_ISVTX): Likewise.
37947         * manual/math.texi (Mathematical Constants): Likewise.
37948         * manual/signal.texi (Interrupted Primitives): Likewise.
37949         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
37950         * math/test-matherr.c (_SVID_SOURCE): Do not define.
37951         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
37952         Don't refer to _SVID_SOURCE in warning text.
37953
37954         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
37955
37956         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
37957         already defined.
37958         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
37959         * sysdeps/mips/dl-lookup.c: Remove.
37960         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
37961
37962 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
37963
37964         [BZ #16447]
37965         * math/auto-libm-test-in: Add testcase for expl.
37966         * math/auto-libm-test-out: Regenerate.
37967         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
37968         calculation of unsafe.
37969         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
37970
37971 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
37972
37973         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
37974         * sysdeps/unix/sysv/linux/aarch64: Move directory from
37975         ports/sysdeps/unix/sysv/linux/aarch64.
37976         * README: Update listing for aarch64*-*-linux-gnu.
37977
37978 2014-02-11  Will Newton  <will.newton@linaro.org>
37979
37980         * manual/probes.texi (Mathematical Function Probes): Use
37981         "triggered" instead of "hit".
37982
37983         * manual/probes.texi (Internal Probes): Add documentation
37984         of setjmp, longjmp and longjmp_target probes.
37985
37986         * include/stap-probe.h: Add comment about probe argument
37987         format.
37988
37989         * malloc/mtrace.c (attribute_hidden): Remove unused macro
37990         definition.  (tr_where, tr_freehook, tr_mallochook,
37991         tr_reallochook, tr_memalignhook): Use ANSI protoype.
37992
37993 2014-02-11  David S. Miller  <davem@davemloft.net>
37994
37995         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
37996         processing int_tests.
37997
37998 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
37999
38000         * sysdeps/mips: Move directory from ports/sysdeps/mips.
38001         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
38002         * sysdeps/unix/sysv/linux/mips: Move directory from
38003         ports/sysdeps/unix/sysv/linux/mips.
38004         * README: Update listing for mips-*-linux-gnu and
38005         mips64-*-linux-gnu.
38006
38007 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
38008
38009         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
38010         * sysdeps/unix/sysv/linux/m68k: Move directory from
38011         ports/sysdeps/unix/sysv/linux/m68k.
38012         * README: Update listing for m68k-*-linux-gnu.
38013
38014 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
38015
38016         * sysdeps/tile: Move directory from ports/sysdeps/tile.
38017         * sysdeps/unix/sysv/linux/generic: Move directory from
38018         ports/sysdeps/unix/sysv/linux/generic.
38019         * sysdeps/unix/sysv/linux/tile: Move directory from
38020         ports/sysdeps/unix/sysv/linux/tile.
38021         * README: Update listing for tile*-*-linux-gnu.
38022
38023 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
38024
38025         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
38026         __builtin_expect.
38027         * benchtests/bench-memmem.c (simple_memmem): Likewise.
38028         * catgets/open_catalog.c (__open_catalog): Likewise.
38029         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
38030         * debug/confstr_chk.c: Likewise.
38031         * debug/fread_chk.c (__fread_chk): Likewise.
38032         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
38033         * debug/getgroups_chk.c: Likewise.
38034         * debug/mbsnrtowcs_chk.c: Likewise.
38035         * debug/mbsrtowcs_chk.c: Likewise.
38036         * debug/mbstowcs_chk.c: Likewise.
38037         * debug/memcpy_chk.c: Likewise.
38038         * debug/memmove_chk.c: Likewise.
38039         * debug/mempcpy_chk.c: Likewise.
38040         * debug/memset_chk.c: Likewise.
38041         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
38042         * debug/strcat_chk.c (__strcat_chk): Likewise.
38043         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
38044         * debug/strncat_chk.c (__strncat_chk): Likewise.
38045         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
38046         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
38047         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
38048         * debug/wcpncpy_chk.c: Likewise.
38049         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
38050         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
38051         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
38052         * debug/wcsncpy_chk.c: Likewise.
38053         * debug/wcsnrtombs_chk.c: Likewise.
38054         * debug/wcsrtombs_chk.c: Likewise.
38055         * debug/wcstombs_chk.c: Likewise.
38056         * debug/wmemcpy_chk.c: Likewise.
38057         * debug/wmemmove_chk.c: Likewise.
38058         * debug/wmempcpy_chk.c: Likewise.
38059         * debug/wmemset_chk.c: Likewise.
38060         * dirent/scandirat.c (SCANDIRAT): Likewise.
38061         * dlfcn/dladdr1.c (dladdr1): Likewise.
38062         * dlfcn/dladdr.c (dladdr): Likewise.
38063         * dlfcn/dlclose.c (dlclose_doit): Likewise.
38064         * dlfcn/dlerror.c (__dlerror): Likewise.
38065         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
38066         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
38067         * dlfcn/dlopen.c (dlopen_doit): Likewise.
38068         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
38069         * dlfcn/dlsym.c (dlsym_doit): Likewise.
38070         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
38071         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
38072         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
38073         Likewise.
38074         * elf/dl-conflict.c: Likewise.
38075         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
38076         * elf/dl-dst.h: Likewise.
38077         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
38078         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
38079         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
38080         * elf/dl-init.c (call_init, _dl_init): Likewise.
38081         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
38082         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
38083         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
38084         Likewise.
38085         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
38086         Likewise.
38087         * elf/dl-minimal.c (__libc_memalign): Likewise.
38088         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
38089         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
38090         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
38091         * elf/dl-sym.c (do_sym): Likewise.
38092         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
38093         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
38094         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
38095         * elf/dl-writev.h (_dl_writev): Likewise.
38096         * elf/ldconfig.c (search_dir): Likewise.
38097         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
38098         (dl_main): Likewise.
38099         * elf/setup-vdso.h (setup_vdso): Likewise.
38100         * grp/compat-initgroups.c (compat_call): Likewise.
38101         * grp/fgetgrent.c (fgetgrent): Likewise.
38102         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
38103         * grp/putgrent.c (putgrent): Likewise.
38104         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
38105         Likewise.
38106         * hurd/hurdinit.c: Likewise.
38107         * iconvdata/8bit-gap.c (struct): Likewise.
38108         * iconvdata/ansi_x3.110.c : Likewise.
38109         * iconvdata/big5.c : Likewise.
38110         * iconvdata/big5hkscs.c : Likewise.
38111         * iconvdata/cp1255.c: Likewise.
38112         * iconvdata/cp1258.c : Likewise.
38113         * iconvdata/cp932.c : Likewise.
38114         * iconvdata/euc-cn.c: Likewise.
38115         * iconvdata/euc-jisx0213.c : Likewise.
38116         * iconvdata/euc-jp.c: Likewise.
38117         * iconvdata/euc-jp-ms.c : Likewise.
38118         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
38119         * iconvdata/gb18030.c : Likewise.
38120         * iconvdata/gbbig5.c (const): Likewise.
38121         * iconvdata/gbgbk.c: Likewise.
38122         * iconvdata/gbk.c : Likewise.
38123         * iconvdata/ibm1364.c : Likewise.
38124         * iconvdata/ibm930.c : Likewise.
38125         * iconvdata/ibm932.c: Likewise.
38126         * iconvdata/ibm933.c : Likewise.
38127         * iconvdata/ibm935.c : Likewise.
38128         * iconvdata/ibm937.c : Likewise.
38129         * iconvdata/ibm939.c : Likewise.
38130         * iconvdata/ibm943.c: Likewise.
38131         * iconvdata/iso_11548-1.c: Likewise.
38132         * iconvdata/iso-2022-cn.c : Likewise.
38133         * iconvdata/iso-2022-cn-ext.c : Likewise.
38134         * iconvdata/iso-2022-jp-3.c: Likewise.
38135         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
38136         * iconvdata/iso-2022-kr.c : Likewise.
38137         * iconvdata/iso646.c (gconv_end): Likewise.
38138         * iconvdata/iso_6937-2.c : Likewise.
38139         * iconvdata/iso_6937.c : Likewise.
38140         * iconvdata/iso8859-1.c: Likewise.
38141         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
38142         * iconvdata/shift_jisx0213.c : Likewise.
38143         * iconvdata/sjis.c : Likewise.
38144         * iconvdata/t.61.c : Likewise.
38145         * iconvdata/tcvn5712-1.c : Likewise.
38146         * iconvdata/tscii.c: Likewise.
38147         * iconvdata/uhc.c : Likewise.
38148         * iconvdata/unicode.c (gconv_end): Likewise.
38149         * iconvdata/utf-16.c (gconv_end): Likewise.
38150         * iconvdata/utf-32.c (gconv_end): Likewise.
38151         * iconvdata/utf-7.c (base64): Likewise.
38152         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
38153         * iconv/gconv_close.c (__gconv_close): Likewise.
38154         * iconv/gconv_open.c (__gconv_open): Likewise.
38155         * iconv/gconv_simple.c (internal_ucs4_loop_single)
38156         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
38157         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
38158         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
38159         (ucs4le_internal_loop_single): Likewise.
38160         * iconv/iconv.c (iconv): Likewise.
38161         * iconv/iconv_close.c: Likewise.
38162         * iconv/loop.c (SINGLE): Likewise.
38163         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
38164         * include/atomic.h: Likewise.
38165         * inet/inet6_option.c (option_alloc): Likewise.
38166         * intl/bindtextdom.c (set_binding_values): Likewise.
38167         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
38168         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
38169         * intl/localealias.c (read_alias_file): Likewise.
38170         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
38171         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
38172         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
38173         * libio/fmemopen.c (fmemopen): Likewise.
38174         * libio/iofgets.c (_IO_fgets): Likewise.
38175         * libio/iofgets_u.c (fgets_unlocked): Likewise.
38176         * libio/iofgetws.c (fgetws): Likewise.
38177         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
38178         * libio/iogetdelim.c (_IO_getdelim): Likewise.
38179         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
38180         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
38181         * locale/findlocale.c (_nl_find_locale): Likewise.
38182         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
38183         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
38184         Likewise.
38185         * locale/setlocale.c (setlocale): Likewise.
38186         * login/programs/pt_chown.c (main): Likewise.
38187         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
38188         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
38189         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
38190         (mmap, mmap64, mremap, munmap): Likewise.
38191         * math/e_exp2l.c: Likewise.
38192         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
38193         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
38194         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
38195         * math/s_catan.c (__catan): Likewise.
38196         * math/s_catanf.c (__catanf): Likewise.
38197         * math/s_catanh.c (__catanh): Likewise.
38198         * math/s_catanhf.c (__catanhf): Likewise.
38199         * math/s_catanhl.c (__catanhl): Likewise.
38200         * math/s_catanl.c (__catanl): Likewise.
38201         * math/s_ccosh.c (__ccosh): Likewise.
38202         * math/s_ccoshf.c (__ccoshf): Likewise.
38203         * math/s_ccoshl.c (__ccoshl): Likewise.
38204         * math/s_cexp.c (__cexp): Likewise.
38205         * math/s_cexpf.c (__cexpf): Likewise.
38206         * math/s_cexpl.c (__cexpl): Likewise.
38207         * math/s_clog10.c (__clog10): Likewise.
38208         * math/s_clog10f.c (__clog10f): Likewise.
38209         * math/s_clog10l.c (__clog10l): Likewise.
38210         * math/s_clog.c (__clog): Likewise.
38211         * math/s_clogf.c (__clogf): Likewise.
38212         * math/s_clogl.c (__clogl): Likewise.
38213         * math/s_csin.c (__csin): Likewise.
38214         * math/s_csinf.c (__csinf): Likewise.
38215         * math/s_csinh.c (__csinh): Likewise.
38216         * math/s_csinhf.c (__csinhf): Likewise.
38217         * math/s_csinhl.c (__csinhl): Likewise.
38218         * math/s_csinl.c (__csinl): Likewise.
38219         * math/s_csqrt.c (__csqrt): Likewise.
38220         * math/s_csqrtf.c (__csqrtf): Likewise.
38221         * math/s_csqrtl.c (__csqrtl): Likewise.
38222         * math/s_ctan.c (__ctan): Likewise.
38223         * math/s_ctanf.c (__ctanf): Likewise.
38224         * math/s_ctanh.c (__ctanh): Likewise.
38225         * math/s_ctanhf.c (__ctanhf): Likewise.
38226         * math/s_ctanhl.c (__ctanhl): Likewise.
38227         * math/s_ctanl.c (__ctanl): Likewise.
38228         * math/w_pow.c: Likewise.
38229         * math/w_powf.c: Likewise.
38230         * math/w_powl.c: Likewise.
38231         * math/w_scalb.c (sysv_scalb): Likewise.
38232         * math/w_scalbf.c (sysv_scalbf): Likewise.
38233         * math/w_scalbl.c (sysv_scalbl): Likewise.
38234         * misc/error.c (error_tail): Likewise.
38235         * misc/pselect.c (__pselect): Likewise.
38236         * nis/nis_callback.c (__nis_create_callback): Likewise.
38237         * nis/nis_call.c (__nisfind_server): Likewise.
38238         * nis/nis_creategroup.c (nis_creategroup): Likewise.
38239         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
38240         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
38241         * nis/nis_getservlist.c (nis_getservlist): Likewise.
38242         * nis/nis_lookup.c (nis_lookup): Likewise.
38243         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
38244         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
38245         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
38246         * nis/nis_xdr.c (xdr_endpoint): Likewise.
38247         * nis/nss_compat/compat-grp.c (getgrent_next_file)
38248         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
38249         * nis/nss_compat/compat-initgroups.c (add_group)
38250         (internal_getgrent_r): Likewise.
38251         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
38252         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
38253         * nis/nss_compat/compat-spwd.c (getspent_next_file)
38254         (internal_getspnam_r): Likewise.
38255         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
38256         (_nss_nis_getaliasbyname_r): Likewise.
38257         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
38258         (_nss_nis_getntohost_r): Likewise.
38259         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
38260         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
38261         (_nss_nis_getgrgid_r): Likewise.
38262         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
38263         (internal_nis_gethostent_r, internal_gethostbyname2_r)
38264         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
38265         (_nss_nis_gethostbyname4_r): Likewise.
38266         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
38267         (initgroups_netid): Likewise.
38268         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
38269         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
38270         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
38271         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
38272         (_nss_nis_getprotobynumber_r): Likewise.
38273         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
38274         (_nss_nis_getsecretkey): Likewise.
38275         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
38276         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
38277         (_nss_nis_getpwuid_r): Likewise.
38278         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
38279         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
38280         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
38281         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
38282         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
38283         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
38284         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
38285         Likewise.
38286         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
38287         (_nss_nisplus_getntohost_r): Likewise.
38288         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
38289         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
38290         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
38291         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
38292         Likewise.
38293         * nis/nss_nisplus/nisplus-initgroups.c
38294         (_nss_nisplus_initgroups_dyn): Likewise.
38295         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
38296         (_nss_nisplus_getnetbyaddr_r): Likewise.
38297         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
38298         (_nss_nisplus_getprotobynumber_r): Likewise.
38299         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
38300         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
38301         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
38302         Likewise.
38303         * nis/nss_nisplus/nisplus-service.c
38304         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
38305         (_nss_nisplus_getservbyport_r): Likewise.
38306         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
38307         (_nss_nisplus_getspnam_r): Likewise.
38308         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
38309         Likewise.
38310         * nscd/aicache.c (addhstaiX): Likewise.
38311         * nscd/cache.c (cache_search, prune_cache): Likewise.
38312         * nscd/connections.c (register_traced_file, send_ro_fd)
38313         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
38314         (main_loop_epoll): Likewise.
38315         * nscd/grpcache.c (addgrbyX): Likewise.
38316         * nscd/hstcache.c (addhstbyX): Likewise.
38317         * nscd/initgrcache.c (addinitgroupsX): Likewise.
38318         * nscd/mem.c (gc, mempool_alloc): Likewise.
38319         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
38320         (addinnetgrX): Likewise.
38321         * nscd/nscd-client.h (__nscd_acquire_maplock)
38322         (__nscd_drop_map_ref): Likewise.
38323         * nscd/nscd_getai.c (__nscd_getai): Likewise.
38324         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
38325         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
38326         Likewise.
38327         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
38328         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
38329         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
38330         (__nscd_get_map_ref): Likewise.
38331         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
38332         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
38333         Likewise.
38334         * nscd/pwdcache.c (addpwbyX): Likewise.
38335         * nscd/selinux.c (preserve_capabilities): Likewise.
38336         * nscd/servicescache.c (addservbyX): Likewise.
38337         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
38338         * posix/fnmatch.c (fnmatch): Likewise.
38339         * posix/getopt.c (_getopt_internal_r): Likewise.
38340         * posix/glob.c (glob, glob_in_dir): Likewise.
38341         * posix/wordexp.c (exec_comm_child): Likewise.
38342         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
38343         (getanswer_r, gaih_getanswer_slice): Likewise.
38344         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
38345         * resolv/res_init.c: Likewise.
38346         * resolv/res_mkquery.c (res_nmkquery): Likewise.
38347         * resolv/res_query.c (__libc_res_nquery): Likewise.
38348         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
38349         Likewise.
38350         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
38351         * stdio-common/perror.c (perror): Likewise.
38352         * stdio-common/printf_fp.c (___printf_fp): Likewise.
38353         * stdio-common/tmpnam.c (tmpnam): Likewise.
38354         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
38355         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
38356         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
38357         Likewise.
38358         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
38359         * stdlib/putenv.c (putenv): Likewise.
38360         * stdlib/setenv.c (__add_to_environ): Likewise.
38361         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
38362         * stdlib/strtol_l.c (INTERNAL): Likewise.
38363         * string/memmem.c (memmem): Likewise.
38364         * string/strerror.c (strerror): Likewise.
38365         * string/strnlen.c (__strnlen): Likewise.
38366         * string/test-memmem.c (simple_memmem): Likewise.
38367         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
38368         * sunrpc/pm_getport.c (__get_socket): Likewise.
38369         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
38370         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
38371         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
38372         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
38373         Likewise.
38374         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
38375         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
38376         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
38377         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
38378         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
38379         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
38380         Likewise.
38381         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
38382         Likewise.
38383         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
38384         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
38385         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
38386         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
38387         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
38388         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
38389         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
38390         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
38391         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
38392         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
38393         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
38394         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
38395         Likewise.
38396         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
38397         Likewise.
38398         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
38399         Likewise.
38400         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
38401         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
38402         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
38403         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
38404         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
38405         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
38406         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
38407         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
38408         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
38409         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
38410         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
38411         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
38412         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
38413         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
38414         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
38415         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
38416         Likewise.
38417         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
38418         Likewise.
38419         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
38420         Likewise.
38421         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
38422         Likewise.
38423         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
38424         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
38425         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
38426         Likewise.
38427         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
38428         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
38429         * sysdeps/posix/opendir.c (__opendirat): Likewise.
38430         * sysdeps/posix/sleep.c: Likewise.
38431         * sysdeps/posix/tempname.c: Likewise.
38432         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
38433         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
38434         Likewise.
38435         * sysdeps/powerpc/powerpc32/dl-machine.h
38436         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
38437         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
38438         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
38439         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
38440         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
38441         Likewise.
38442         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
38443         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
38444         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
38445         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
38446         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
38447         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
38448         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
38449         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
38450         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
38451         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
38452         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
38453         (elf_machine_lazy_rel): Likewise.
38454         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
38455         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
38456         (elf_machine_lazy_rel): Likewise.
38457         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
38458         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
38459         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
38460         * sysdeps/unix/grantpt.c (grantpt): Likewise.
38461         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
38462         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
38463         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
38464         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
38465         Likewise.
38466         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
38467         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
38468         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
38469         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
38470         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
38471         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
38472         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
38473         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
38474         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
38475         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
38476         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
38477         Likewise.
38478         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
38479         (__posix_fallocate64_l64): Likewise.
38480         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
38481         (posix_fallocate): Likewise.
38482         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
38483         Likewise.
38484         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
38485         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
38486         (getifaddrs_internal): Likewise.
38487         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
38488         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
38489         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
38490         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
38491         * sysdeps/unix/sysv/linux/posix_fallocate64.c
38492         (__posix_fallocate64_l64): Likewise.
38493         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
38494         Likewise.
38495         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
38496         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
38497         (__get_clockfreq): Likewise.
38498         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
38499         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
38500         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
38501         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
38502         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
38503         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
38504         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
38505         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
38506         Likewise.
38507         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
38508         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
38509         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
38510         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
38511         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
38512         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
38513         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
38514         Likewise.
38515         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
38516         (posix_fallocate): Likewise.
38517         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
38518         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
38519         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
38520         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
38521         (elf_machine_rela, elf_machine_rela_relative)
38522         (elf_machine_lazy_rel): Likewise.
38523         * time/asctime.c (asctime_internal): Likewise.
38524         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
38525         * time/tzset.c (__tzset_parse_tz): Likewise.
38526         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
38527         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
38528         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
38529         * wcsmbs/wcsmbsload.h: Likewise.
38530
38531         [BZ #15894]
38532         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
38533
38534         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
38535         (arena_get2): Remove THREAD_STATS conditionals.
38536         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
38537         (__malloc_stats, int): Likewise.
38538
38539 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
38540
38541         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
38542         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
38543
38544         * manual/setjmp.texi: Fix typos/grammar errors.
38545
38546         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
38547         Only return early when n is <= 0.  Delete unused return statement.
38548
38549         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
38550         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
38551         * debug/tst-longjmp_chk3.c: New file.
38552
38553         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
38554         (test_main): Replace code with set_fortify_handler call.
38555         * debug/test-strcpy_chk.c: Likewise.
38556         * debug/tst-chk1.c: Likewise.
38557         * debug/tst-longjmp_chk.c: Likewise.
38558         * test-skeleton.c: Include fcntl.h & paths.h
38559         (set_fortify_handler): Define.
38560
38561         * debug/tst-longjmp_chk.c: Add header comment and include
38562         ../test-skeleton.c.
38563         (do_test): Mark static.
38564         (TEST_FUNCTION): Define.
38565
38566         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
38567         (IP_PMTUDISC_INTERFACE): Likewise.
38568         (IP_MULTICAST_IF): Likewise.
38569         (IP_MULTICAST_TTL): Likewise.
38570         (IP_MULTICAST_LOOP): Likewise.
38571         (IP_ADD_MEMBERSHIP): Likewise.
38572         (IP_DROP_MEMBERSHIP): Likewise.
38573         (IP_UNBLOCK_SOURCE): Likewise.
38574         (IP_BLOCK_SOURCE): Likewise.
38575         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
38576         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
38577         (IP_MSFILTER): Likewise.
38578         (MCAST_JOIN_GROUP): Likewise.
38579         (MCAST_BLOCK_SOURCE): Likewise.
38580         (MCAST_UNBLOCK_SOURCE): Likewise.
38581         (MCAST_LEAVE_GROUP): Likewise.
38582         (MCAST_JOIN_SOURCE_GROUP): Likewise.
38583         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
38584         (MCAST_MSFILTER): Likewise.
38585         (IP_MULTICAST_ALL): Likewise.
38586         (IP_UNICAST_IF): Likewise.
38587
38588         * timezone/Makefile: Delete $(have-ksh) check.
38589         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
38590         * timezone/tzselect.ksh: Add +x mode bits.
38591
38592         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
38593         (ANON_INODE_FS_MAGIC): Likewise.
38594         (BDEVFS_MAGIC): Likewise.
38595         (BINFMTFS_MAGIC): Likewise.
38596         (BTRFS_TEST_MAGIC): Likewise.
38597         (CRAMFS_MAGIC_WEND): Likewise.
38598         (DEBUGFS_MAGIC): Likewise.
38599         (ECRYPTFS_SUPER_MAGIC): Likewise.
38600         (EXT3_SUPER_MAGIC): Likewise.
38601         (EXT4_SUPER_MAGIC): Likewise.
38602         (FUTEXFS_SUPER_MAGIC): Likewise.
38603         (HOSTFS_SUPER_MAGIC): Likewise.
38604         (HUGETLBFS_MAGIC): Likewise.
38605         (MINIX3_SUPER_MAGIC): Likewise.
38606         (MTD_INODE_FS_MAGIC): Likewise.
38607         (NILFS_SUPER_MAGIC): Likewise.
38608         (OPENPROM_SUPER_MAGIC): Likewise.
38609         (PIPEFS_MAGIC): Likewise.
38610         (PSTOREFS_MAGIC): Likewise.
38611         (QNX6_SUPER_MAGIC): Likewise.
38612         (RAMFS_MAGIC): Likewise.
38613         (REISERFS_SUPER_MAGIC_STRING): Likewise.
38614         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
38615         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
38616         (SECURITYFS_MAGIC): Likewise.
38617         (SELINUX_MAGIC): Likewise.
38618         (SMACK_MAGIC): Likewise.
38619         (SOCKFS_MAGIC): Likewise.
38620         (SQUASHFS_MAGIC): Likewise.
38621         (STACK_END_MAGIC): Likewise.
38622         (TMPFS_MAGIC): Likewise.
38623         (USBDEVICE_SUPER_MAGIC): Likewise.
38624         (V9FS_MAGIC): Likewise.
38625         (XENFS_SUPER_MAGIC): Likewise.
38626         (CRAMFS_MAGIC): Fix typo in comment.
38627         (EXT2_SUPER_MAGIC): Update comment.
38628         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
38629
38630 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
38631
38632         * sysdeps/arm: Move directory from ports/sysdeps/arm.
38633         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
38634         * sysdeps/unix/sysv/linux/arm: Move directory from
38635         ports/sysdeps/unix/sysv/linux/arm.
38636         * README: Update listing for arm-*-linux-gnueabi.
38637
38638         * README: Remove mention of am33.
38639
38640 2014-02-07  Roland McGrath  <roland@hack.frob.com>
38641
38642         * bits/sigset.h (__sigemptyset): Use a statement expression rather
38643         than the comma operator, to avoid "rhs of comma has no effect"
38644         compiler warnings.
38645         (__sigfillset, __sigandset, __sigorset): Likewise.
38646         * include/signal.h (__sigemptyset): Likewise.
38647         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
38648
38649 2014-02-07  Allan McRae  <allan@archlinux.org>
38650
38651         * version.h (RELEASE): Set to "development".
38652         (VERSION): Set to "2.19.90"
38653         * NEWS: Add 2.20 section.
38654
38655 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
38656
38657         [BZ #16529]
38658         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
38659
38660 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
38661
38662         * manual/contrib.texi: Update entry for Carlos O'Donell,
38663         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
38664
38665 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
38666
38667         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
38668
38669         * sysdeps/unix/sysv/linux/kernel-features.h
38670         [__LINUX_KERNEL_VERSION >= 0x020621]
38671         (__ASSUME_PROC_PID_TASK_COMM): Define.
38672
38673 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
38674
38675         [BZ #16398]
38676         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
38677         conversion when destination buffer does not have enough space.
38678         * libio/tst-ftell-partial-wide.c: New test case.
38679         * libio/Makefile (tests): Add tst-ftell-partial-wide.
38680
38681         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
38682         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
38683         Leonard and Allan McRae.
38684
38685 2014-02-04  David S. Miller  <davem@davemloft.net>
38686
38687         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
38688         32-bit.
38689
38690 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38691
38692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
38693         New file
38694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
38695         New file
38696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
38697         New file.
38698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
38699         New file.
38700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
38701         New file.
38702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
38703         New file.
38704         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
38705         New file.
38706         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
38707         New file.
38708         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
38709         New file.
38710         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
38711         New file.
38712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
38713         New file.
38714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
38715         New file.
38716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
38717         New file.
38718
38719 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38720
38721         * nptl/shlib-versions: Change powerpc*le start to 2.17.
38722         * shlib-versions: Likewise.
38723
38724 2014-02-04  Roland McGrath  <roland@hack.frob.com>
38725             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38726
38727         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
38728         (abilist-pattern): New variable, set to %-le.abilist.
38729
38730         * Makerules (abilist-pattern): New variable.
38731         (vpath): Use $(abilist-pattern) in place of %.abilist.
38732         (check-abi-% pattern rule): Likewise.
38733         (check-abi, update-abi): Likewise.
38734
38735 2014-02-04  Eric Wong  <normalperson@yhbt.net>
38736
38737         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
38738
38739 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
38740
38741         * manual/startup.texi: Add next, previous, and top entries for
38742         the `Program Arguments' and `Environment Variables' nodes.
38743
38744 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
38745
38746         * manual/macros.texi: Add comments before MTASC-safety macros.
38747
38748         * manual/users.texi: Document MTASC-safety properties.
38749
38750         * manual/threads.texi (pthread_key_create, pthread_key_delete)
38751         (pthread_getspecific, pthread_setspecific): Format with
38752         @deftypefun, and add @safety note.
38753         * manual/signal.texi: Move comments that analyze the above
38754         functions to their home place.
38755
38756 2014-02-03  Allan McRae  <allan@archlinux.org>
38757
38758         * po/sl.po: Update Slovenian translation from translation project.
38759
38760 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
38761
38762         * manual/time.texi (timegm): Add missing blank after @c.
38763         Reported by Joseph Myers <joseph@codesourcery.com>.
38764
38765 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
38766
38767         * manual/check-safety.sh: New.
38768         * manual/Makefile ($(objpfx)stamp-summary): Run it.
38769
38770         * manual/terminal.texi: Document MTASC-safety properties.
38771
38772         * manual/filesys.texi: Document MTASC-safety properties.
38773
38774         * manual/errno.texi: Document MTASC-safety properties.
38775
38776         * manual/intro.texi: Document safety identifiers and
38777         conditionals.
38778
38779         * manual/string.texi (wcstok): Fix prototype.
38780         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
38781
38782         * manual/time.texi: Document MTASC-safety properties.
38783
38784         * manual/string.texi: Document MTASC-safety properties.
38785
38786         * manual/threads.texi: Document MTASC-safety properties.
38787
38788         * manual/stdio.texi: Document MTASC-safety properties.
38789
38790         * manual/syslog.texi: Document MTASC-safety properties.
38791
38792         * manual/sysinfo.texi: Document MTASC-safety properties.
38793
38794         * manual/startup.texi: Document MTASC-safety properties.
38795
38796         * manual/socket.texi: Document MTASC-safety properties.
38797
38798         * manual/signal.texi: Document MTASC-safety properties.
38799
38800 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
38801
38802         * manual/setjmp.texi: Document MTASC-safety properties.
38803
38804         * manual/search.texi: Document MTASC-safety properties.
38805
38806         * manual/resource.texi: Document MTASC-safety properties.
38807
38808         * manual/process.texi: Document MTASC-safety properties.
38809
38810         * manual/platform.texi: Document MTASC-safety properties.
38811
38812         * manual/pipe.texi: Document MTASC-safety properties.
38813
38814         * manual/pattern.texi: Document MTASC-safety properties.
38815
38816         * manual/message.texi: Document MTASC-safety properties.
38817
38818         [BZ #12751]
38819         * manual/memory.texi: Document MTASC-safety properties.
38820
38821         * manual/math.texi: Document MTASC-safety properties.
38822
38823         * manual/locale.texi: Document MTASC-safety properties.
38824
38825         * manual/llio.texi: Document MTASC-safety properties.
38826
38827         * manual/libdl.texi: New.
38828
38829         * manual/lang.texi: Document MTASC-safety properties.
38830
38831         * manual/job.texi: Document MTASC-safety properties.
38832
38833         * manual/getopt.texi: Document MTASC-safety properties.
38834
38835         * manual/ctype.texi: Document MTASC-safety properties.
38836
38837 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
38838
38839         [BZ #16046]
38840         * csu/libc-tls.c (static_map): Remove variable.
38841         (__libc_setup_tls): Use main executable's link map for TLS data.
38842         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
38843         casing for LM_ID_BASE and GL(dl_nns).
38844         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
38845         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
38846         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
38847         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
38848         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
38849         member.
38850         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
38851         l_phnum members.
38852
38853 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
38854
38855         * manual/debug.texi: Document MTASC-safety properties.
38856
38857 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
38858
38859         [BZ #16510]
38860         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
38861         of __x86_64__ when disabling x87 inline functions.
38862
38863 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
38864
38865         * manual/charset.texi: Document MTASC-safety properties.
38866
38867         * manual/crypt.texi: Document MTASC-safety properties.
38868
38869         * manual/conf.texi: Document MTASC-safety properties.
38870
38871         * manual/arith.texi: Document MTASC-safety properties.
38872
38873         * manual/argp.texi: Document MTASC-safety properties.
38874
38875         * manual/macros.texi: Introduce macros to document multi
38876         thread, asynchronous signal and asynchronous cancellation
38877         safety properties.
38878         * manual/intro.texi: Introduce the properties themselves.
38879
38880 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38881
38882         * sysdeps/sh/sh4/Makefile: New file.
38883
38884 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
38885
38886         * math/gen-libm-test.pl ($srcdir): New variable.
38887         ($auto_input): Use it.
38888
38889 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
38890
38891         [BZ #16506]
38892         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
38893         access beyond array bounds when parsing netgroups file.
38894
38895         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
38896         the old buffer before realloc.
38897
38898 2014-01-27  Allan McRae  <allan@archlinux.org>
38899
38900         * po/fr.po: Update French translation from translation project.
38901
38902 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38903
38904         * sysdeps/sh/libm-test-ulps: Regenerate.
38905
38906 2014-01-24  David S. Miller  <davem@davemloft.net>
38907
38908         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
38909
38910 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38911
38912         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
38913         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
38914
38915 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
38916
38917         [BZ #16474]
38918         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
38919         string pointers after reallocation.
38920
38921 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38922
38923         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
38924         __SH4A__ instead of __SH_FPU_ANY__.
38925
38926 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38927
38928         * sysdeps/sh/fpu_control.h: New file.
38929         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
38930         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
38931         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
38932         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
38933         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
38934         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
38935         * sysdeps/sh/sys/ucontext.h: Remove.
38936         * sysdeps/sh/sys: Remove directory.
38937
38938 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38939
38940         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
38941         s390/sys/ucontext.h.
38942         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
38943         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
38944
38945 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
38946
38947         [BZ #15605]
38948         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
38949
38950 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38951
38952         [BZ#16431]
38953         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
38954         Adjust the vDSO correctly for internal calls.
38955         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
38956
38957 2014-01-20  Allan McRae  <allan@archlinux.org>
38958
38959         * po/ca.po: Update Catalan translation from translation project.
38960
38961 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
38962
38963         * sysdeps/s390/sotruss-lib.c: New file.
38964
38965 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38966
38967         [BZ#16430]
38968         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
38969         (__GI___gettimeofday): Alias for a different internal symbol to avoid
38970         local calls issues by not having a PLT stub required for IFUNC calls.
38971         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
38972
38973 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
38974
38975         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
38976         * math/test-fpucw-static.c: Likewise.
38977
38978 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
38979
38980         [BZ #16453]
38981         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
38982
38983 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38984
38985         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
38986         implementation for powerpc.
38987
38988 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
38989
38990         [BZ #14782]
38991         * sysdeps/posix/system.c (__libc_system): Do not enable
38992         asynchronous cancellation.
38993
38994 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38995
38996         [BZ #16427]
38997         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
38998         handling only for numbers special also in the IEEE case.
38999
39000 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39001
39002         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
39003
39004 2014-01-11  Allan McRae  <allan@archlinux.org>
39005
39006         * po/bg.po: Update Bulgarian translation from translation project.
39007
39008         * po/de.po: Update German translation from translation project.
39009
39010 2014-01-10  Roland McGrath  <roland@hack.frob.com>
39011
39012         * sysdeps/generic/gcc-compat.h: New file.
39013
39014 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
39015
39016         * benchtests/asin-inputs: Correct slow inputs.
39017         * benchtests/acos-inputs: Likewise.
39018
39019 2014-01-10  Allan McRae  <allan@archlinux.org>
39020
39021         * po:sv.po: Update Swedish translation from translation project.
39022
39023         * po/vi.po: Update Vietnamese translation from translation project.
39024
39025         * po/eo.po: Update Esperanto translation from translation project.
39026
39027         * po/cs.po: Update Czech translation from translation project.
39028
39029         * po/nl.po: Update Dutch translation from translation project.
39030
39031         * po/pl.po: Update Polish translation from translation project.
39032
39033         * po/ru.po: Update Russian translation from translation project.
39034
39035         * po/uk.po: Update Ukrainian translation from translation project.
39036
39037 2014-01-08  Brooks Moses  <bmoses@google.com>
39038
39039         * elf/dl-load.c: Fix comment typo.
39040
39041 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
39042
39043         * po/header.pot: Rename to...
39044         * po/pot.header: ... this.
39045         * po/Makefile: Use pot.header.
39046
39047 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
39048             Maxim Kuvyrkov  <maxim@kugelworks.com>
39049
39050         [BZ #16394]
39051         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
39052         SRC and DEST against LEN.
39053
39054 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39055
39056         [BZ #16414]
39057         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
39058         implementation.
39059         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
39060
39061 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39062
39063         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39064
39065 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
39066
39067         [BZ #16408]
39068         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
39069         for large positive arguments.
39070
39071 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
39072
39073         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
39074
39075         * math/auto-libm-test-in: Mark various tests with
39076         xfail-rounding:ldbl-128ibm.
39077         * math/auto-libm-test-out: Regenerated.
39078
39079         [BZ #16407]
39080         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
39081         Increase overflow threshold.
39082
39083 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
39084
39085         [BZ #14286]
39086         * stdio-common/vfprintf.c: Check for integer overflow.
39087
39088 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39089
39090         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
39091         the first argument and return value of __tls_get_addr_internal.
39092
39093 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39094
39095         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
39096         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
39097
39098 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
39099
39100         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
39101         * sysdeps/s390/rtld-global-offsets.sym: New file.
39102         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
39103         GLIBC_2.19 symbol.
39104         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
39105         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
39106         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
39107         ... this.
39108         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
39109         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
39110         ... this.
39111         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
39112         Regenerate.
39113         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
39114         Regenerate.
39115         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
39116         halfs of GPRs for high_gprs contexts.
39117         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
39118         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
39119         field.
39120         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
39121         uc_flags field.
39122         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
39123         64 bit versions:
39124         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
39125         for high GPRs (uc_high_gprs) and for future extensions
39126         (__reserved).
39127         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
39128         for future extensions (__reserved).
39129         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
39130         64 bit versions:
39131         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
39132         SC_HIGHGPRS offset definition.
39133         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
39134         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
39135
39136         * Versions.def: Add GLIBC_2.19 for libpthread.
39137         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
39138         siglongjmp for libpthread with GLIBC_2.19 symver.
39139         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
39140         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
39141         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
39142         * sysdeps/s390/__longjmp.c: New file.
39143         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
39144         * sysdeps/s390/longjmp.c: New file.
39145         * sysdeps/s390/setjmp.S: New file.
39146         * sysdeps/s390/sigjmp.S: New file.
39147         * sysdeps/s390/v1-longjmp.c: New file.
39148         * sysdeps/s390/v1-setjmp.h: New file.
39149         * sysdeps/s390/v1-sigjmp.c: New file.
39150         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
39151         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
39152         GLIBC_2.19 version.
39153         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
39154         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
39155         versioned symbols for ____longjmp_chk.
39156         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
39157         Likewise.
39158         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
39159         Regenerate.
39160         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
39161         Regenerate.
39162         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
39163         Regenerate.
39164         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
39165         Regenerate.
39166         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
39167         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
39168         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
39169         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
39170         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
39171         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
39172         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
39173         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
39174         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
39175         * sysdeps/s390/rtld-__longjmp.c: New file.
39176         * sysdeps/s390/rtld-setjmp.S: New file.
39177
39178 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
39179
39180         [BZ #16400]
39181         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
39182         Return -__logl (x) for small positive arguments without evaluating
39183         a polynomial.
39184
39185 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
39186
39187         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
39188         Rename to ...
39189         (__ptrace_peeksiginfo_args): ... this.
39190         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
39191         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
39192         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
39193
39194 2014-01-06  Allan McRae  <allan@archlinux.org>
39195
39196         * inet/netinet/in.h: Fix typo in comment.
39197
39198 2014-01-05  Andreas Jaeger  <aj@suse.de>
39199
39200         * sysdeps/i386/fpu/libm-test-ulps: Update.
39201
39202 2014-01-05  Allan McRae  <allan@archlinux.org>
39203
39204         * po/libc.pot: Regenerated.
39205
39206         * malloc/memusagestat.c: Fix gettext call formatting.
39207
39208 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
39209
39210         * nscd/nscd.c: Improve usage() output.
39211
39212 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
39213
39214         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
39215         * sysdeps/unix/sysv/linux/configure: Regenerated.
39216         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
39217         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
39218
39219 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
39220
39221         [BZ #16390]
39222         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
39223         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
39224
39225 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39226
39227         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
39228         extra tokens at end of #undef directive.
39229         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
39230         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
39231         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
39232
39233 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
39234
39235         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
39236
39237         * math/auto-libm-test-in: Mark various tests with
39238         xfail-rounding:ldbl-128ibm.
39239         * math/auto-libm-test-out: Regenerated.
39240
39241 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
39242
39243         [BZ #16386]
39244         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
39245         numbers with subnormal high part when calculating exponent.
39246
39247         [BZ #16385]
39248         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
39249         fabs.
39250
39251         [BZ #16384]
39252         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
39253         M_LN2l.
39254         (__ieee754_acoshl): Use __log1pl not __log1p.
39255
39256 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
39257
39258         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
39259         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
39260         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
39261         (grow_heap, heap_trim, _int_new_arena, get_free_list)
39262         (reused_arena, arena_get2): Convert to GNU style.
39263         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
39264         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
39265         (memalign_check, __malloc_set_state): Likewise.
39266         * malloc/mallocbug.c (main): Likewise.
39267         * malloc/malloc.c (__malloc_assert, malloc_init_state)
39268         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
39269         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
39270         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
39271         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
39272         (__posix_memalign, malloc_info): Likewise.
39273         * malloc/malloc.h: Likewise.
39274         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
39275         (mallochook, memalignhook, reallochook, mabort): Likewise.
39276         * malloc/mcheck.h: Likewise.
39277         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
39278         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
39279         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
39280         * malloc/morecore.c (__default_morecore): Likewise.
39281         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
39282         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
39283         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
39284         (print_and_abort): Likewise.
39285         * malloc/obstack.h: Likewise.
39286         * malloc/set-freeres.c (__libc_freeres): Likewise.
39287         * malloc/tst-mallocstate.c (main): Likewise.
39288         * malloc/tst-mtrace.c (main): Likewise.
39289         * malloc/tst-realloc.c (do_test): Likewise.
39290
39291 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
39292
39293         [BZ #16366]
39294         * nscd/netgroupcache.c (do_notfound): New function.
39295         (addgetnetgrentX): Use it.
39296
39297         [BZ # 16365]
39298         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
39299         NSS_STATUS_NOTFOUND.
39300
39301 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
39302
39303         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
39304         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39305
39306 2014-01-01  Allan McRae  <allan@archlinux.org>
39307
39308         * scripts/update-copyrights: Update configure input file suffix.
39309
39310         * NEWS: Update copyright year.
39311         * catgets/gencat.c: Likewise.
39312         * csu/version.c: Likewise.
39313         * debug/catchsegv.sh: Likewise.
39314         * debug/pcprofiledump.c: Likewise.
39315         * debug/xtrace.sh: Likewise.
39316         * elf/ldconfig.c: Likewise.
39317         * elf/ldd.bash.in: Likewise.
39318         * elf/pldd.c: Likewise.
39319         * elf/sotruss.ksh: Likewise.
39320         * elf/sprof.c: Likewise.
39321         * iconv/iconv_prog.c: Likewise.
39322         * iconv/iconvconfig.c: Likewise.
39323         * locale/programs/locale.c: Likewise.
39324         * locale/programs/localedef.c: Likewise.
39325         * login/programs/pt_chown.c: Likewise.
39326         * malloc/memusage.sh: Likewise.
39327         * malloc/memusagestat.c: Likewise.
39328         * malloc/mtrace.pl: Likewise.
39329         * manual/libc.texinfo: Likewise.
39330         * nscd/nscd.c: Likewise.
39331         * nss/getent.c: Likewise.
39332         * nss/makedb.c: Likewise.
39333         * posix/getconf.c: Likewise.
39334         * scripts/test-installation.pl: Likewise.
39335
39336         * All files with FSF copyright notices: Update copyright dates
39337         using scripts/update-copyrights.
39338         * intl/plural.c: Regenerated.
39339         * locale/programs/charmap-kw.h: Likewise.
39340         * locale/programs/locfile-kw.h: Likewise.
39341
39342 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
39343
39344         * sysdeps/unix/sysv/linux/configure: Regenerated.
39345         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
39346         the linux/fanotify.h header.
39347         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
39348         HAVE_LINUX_FANOTIFY_H is defined.
39349
39350 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
39351
39352         * benchtests/cos-inputs: New inputs.
39353         * benchtests/sin-inputs: Likewise.
39354
39355         * benchtests/atan-inputs: New inputs. Fix name of multiple
39356         precision fallback inputs.
39357
39358         * benchtests/atanh-inputs: New inputs.
39359         * benchtests/tanh-inputs: Likewise.
39360
39361         * benchtests/acosh-inputs: New inputs.
39362         * benchtests/asinh-inputs: Likewise.
39363
39364         * benchtests/cosh-inputs: New inputs.
39365         * benchtests/sinh-inputs: Likewise.
39366
39367         * benchtests/acos-inputs: Add more inputs.
39368         * benchtests/asin-inputs: Likewise.
39369
39370 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
39371
39372         [BZ #16375]
39373         * manual/arith.texi: Fix spelling.
39374         * manual/charset.texi: Likewise.
39375         * manual/errno.texi: Likewise.
39376         * manual/filesys.texi: Likewise.
39377         * manual/lang.texi: Likewise.
39378         * manual/llio.texi: Likewise.
39379         * manual/locale.texi: Likewise.
39380         * manual/message.texi: Likewise.
39381         * manual/resource.texi: Likewise.
39382         * manual/search.texi: Likewise.
39383         * manual/setjmp.texi: Likewise.
39384         * manual/stdio.texi: Likewise.
39385         * manual/string.texi: Likewise.
39386         * manual/sysinfo.texi: Likewise.
39387         * manual/time.texi: Likewise.
39388
39389 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
39390
39391         * po/sl.po: New file.
39392
39393 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
39394
39395         * .gitignore: Add core/.gdbinit/.gdb_history.
39396
39397 2013-12-27  Allan McRae  <allan@archlinux.org>
39398
39399         [BZ #16369]
39400         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
39401         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
39402
39403 2013-12-24  Brooks Moses  <bmoses@google.com>
39404
39405         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
39406         all compilers that claim C++98 compliance, not just GCC.
39407         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
39408         Likewise.
39409
39410 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
39411
39412         * NEWS: Restore accidentally deleted bug-fix entries.
39413
39414 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
39415             Ondřej Bílka  <neleai@seznam.cz>
39416
39417         [BZ #15073]
39418         * malloc/malloc.c (_int_free): Perform sanity check only if we
39419         have_lock.
39420
39421 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
39422
39423         [BZ #12986]
39424         * manual/stdio.texi (String Input Conversions): Clarify that character
39425         classes are not supported.
39426
39427 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39428
39429         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39430
39431 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
39432
39433         [BZ #16337]
39434         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
39435         Calculate results for small negative arguments directly rather
39436         than using reflection formula with special underflow handling.
39437
39438         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
39439         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
39440         sysdeps/unix/bsd/bsd4.4/syscalls.list.
39441         (fchflags): Likewise.
39442         (revoke): Likewise.
39443         (setlogin): Likewise.
39444         (sigaltstack): Likewise.
39445         (wait4): Likewise.
39446         (sigblock): Remove.
39447         (sigsetmask): Likewise.
39448         (wait3): Likewise.
39449         (waitpid): Likewise.
39450         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
39451         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
39452         file.
39453         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
39454         * sysdeps/unix/bsd/Makefile: ... here.
39455         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
39456         * sysdeps/unix/bsd/Versions: ... here.
39457         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
39458         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
39459         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
39460         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
39461         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
39462         * sysdeps/unix/bsd/sigblock.c: ... here.
39463         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
39464         * sysdeps/unix/bsd/sigsetmask.c: ... here.
39465         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
39466         * sysdeps/unix/bsd/sigvec.c: ... here.
39467         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
39468         * sysdeps/unix/bsd/tcdrain.c: ... here.
39469         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
39470         * sysdeps/unix/bsd/tcgetattr.c: ... here.
39471         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
39472         * sysdeps/unix/bsd/tcsetattr.c: ... here.
39473         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
39474         * sysdeps/unix/bsd/wait.c: ... here.
39475         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
39476         * sysdeps/unix/bsd/wait3.c: ... here.
39477         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
39478         * sysdeps/unix/bsd/waitpid.c: ... here.
39479
39480 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
39481
39482         [BZ #16356]
39483         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
39484         round-to-nearest for [!USE_AS_EXPM1L].
39485         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
39486         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
39487         more tests of exp and exp10.  Expect some exp10 tests to miss
39488         exceptions or fail in directed rounding modes.
39489         * math/auto-libm-test-out: Regenerated.
39490         * math/libm-test.inc (exp10_tonearest_test_data): New array.
39491         (exp10_test_tonearest): New function.
39492         (exp10_towardzero_test_data): New array.
39493         (exp10_test_towardzero): New function.
39494         (exp10_downward_test_data): New array.
39495         (exp10_test_downward): New function.
39496         (exp10_upward_test_data): New array.
39497         (exp10_test_upward): New function.
39498         (main): Call the new functions.
39499         * sysdeps/i386/fpu/libm-test-ulps: Update.
39500         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39501
39502 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
39503
39504         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
39505         asinh, atan, atan2, atanh, cbrt, cos and cosh.
39506         * math/auto-libm-test-out: Regenerated.
39507         * math/libm-test.inc (acosh_test_data): Add more tests.
39508         (atanh_test_data): Likewise.
39509         (ceil_test_data): Likewise.
39510         (copysign_test_data): Likewise.
39511         * sysdeps/i386/fpu/libm-test-ulps: Update.
39512         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39513
39514         * timezone/checktab.awk: Update from tzcode 2013i.
39515         * timezone/private.h: Likewise.
39516         * timezone/scheck.c: Likewise.
39517         * timezone/tzfile.h: Likewise.
39518         * timezone/tzselect.ksh: Likewise.
39519         * timezone/zdump.c: Likewise.
39520         * timezone/zic.c: Likewise.
39521
39522         * math/auto-libm-test-in: Add tests of cpow.
39523         * math/auto-libm-test-out: Regenerated.
39524         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
39525         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39526         mpc_cc_c.
39527         (func_calc_desc): Add mpc_cc_c union field.
39528         (test_functions): Add cpow.
39529         (special_fill_2pi): New function.
39530         (special_real_inputs): Add 2pi.
39531         (calc_generic_results): Handle mpc_cc_c.
39532         * sysdeps/i386/fpu/libm-test-ulps: Update.
39533         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39534
39535         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
39536         csqrt, ctan and ctanh.
39537         * math/auto-libm-test-out: Regenerated.
39538         * math/libm-test.inc (TEST_COND_x86_64): New macro.
39539         (TEST_COND_x86): Likewise.
39540         (ccos_test_data): Use AUTO_TESTS_c_c.
39541         (ccosh_test_data): Likewise.
39542         (cexp_test_data): Likewise.
39543         (clog_test_data): Likewise.
39544         (csqrt_test_data): Likewise.
39545         (ctan_test_data): Likewise.
39546         (ctan_tonearest_test_data): Likewise.
39547         (ctan_towardzero_test_data): Likewise.
39548         (ctan_downward_test_data): Likewise.
39549         (ctan_upward_test_data): Likewise.
39550         (ctanh_test_data): Likewise.
39551         (ctanh_tonearest_test_data): Likewise.
39552         (ctanh_towardzero_test_data): Likewise.
39553         (ctanh_downward_test_data): Likewise.
39554         (ctanh_upward_test_data): Likewise.
39555         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39556         mpc_c_c.
39557         (func_calc_desc): Add mpc_c_c union field.
39558         (FUNC_mpc_c_c): New macro.
39559         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
39560         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
39561         ctanh.
39562         (special_fill_min_subnorm_p120): New function.
39563         (special_real_inputs): Add min_subnorm_p120.
39564         (calc_generic_results): Handle mpc_c_c.
39565         * sysdeps/i386/fpu/libm-test-ulps: Update.
39566         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39567
39568 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
39569
39570         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
39571         (do_sin_slow): New functions.
39572         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
39573         (cslow2, csloww1, csloww2): Use the new functions.
39574
39575         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
39576         Use M to change sign of result instead of X.  Assume X is
39577         positive.
39578         (csloww1): Likewise.
39579         (__sin): Adjust.
39580         (__cos): Adjust.
39581
39582         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
39583         arguments A and DA.
39584         (__sin): Adjust.
39585         (__cos): Likewise.
39586
39587         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
39588         (__cos): Likewise.
39589         (sloww1): Don't adjust sign of DX.
39590         (csloww1): Likewise.
39591         (sloww2): Use X directly and don't adjust sign of DX.
39592         (csloww2): Likewise.
39593
39594 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39595
39596         * math/auto-libm-test-in: Add tests of cabs and carg.
39597         * math/auto-libm-test-out: Regenerated.
39598         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
39599         (carg_test_data): Likewise.
39600         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39601         mpc_c_f.
39602         (func_calc_desc): Add mpc_c_f union field.
39603         (test_functions): Add cabs and carg.
39604         (calc_generic_results): Handle mpc_c_f.
39605
39606         * sysdeps/powerpc/powerpc32/libgcc-compat.S
39607         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
39608         as a macro and a compat symbol.
39609         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
39610         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
39611         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
39612         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
39613         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
39614         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
39615         not use .hidden.
39616         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
39617         Likewise.
39618         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
39619         Likewise.
39620         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
39621         Likewise.
39622         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
39623         Likewise.
39624         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
39625         Likewise.
39626         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
39627         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
39628         from GLIBC_2.3.2.
39629
39630 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39631
39632         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39633
39634 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39635
39636         * manual/texinfo.tex: Update to version 2013-11-26.10 with
39637         trailing whitespace removed.
39638         * scripts/config.guess: Update to version 2013-11-29.
39639         * scripts/config.sub: Update to version 2013-10-01.
39640
39641         * math/auto-libm-test-in: Add tests of sincos.
39642         * math/auto-libm-test-out: Regenerated.
39643         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
39644         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39645         mpfr_f_11.
39646         (func_calc_desc): Add mpfr_f_11 union field.
39647         (test_functions): Add sincos.
39648         (calc_generic_results): Handle mpfr_f_11.
39649         * sysdeps/i386/fpu/libm-test-ulps: Update.
39650         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39651
39652 2013-12-19  Andreas Schwab  <schwab@suse.de>
39653
39654         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
39655         CALL_MCOUNT.
39656         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
39657         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
39658         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
39659
39660 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
39661
39662         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
39663         * sysdeps/i386/fpu/libm-test-ulps: Update.
39664         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39665
39666         [BZ #16293]
39667         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
39668         round-to-nearest mode when using frndint.
39669         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
39670         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
39671         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
39672         Likewise.
39673         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
39674         sinh test to fail.
39675         * math/auto-libm-test-out: Regenerated.
39676         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
39677         (TEST_COND_x86): Likewise.
39678         (expm1_tonearest_test_data): New array.
39679         (expm1_test_tonearest): New function.
39680         (expm1_towardzero_test_data): New array.
39681         (expm1_test_towardzero): New function.
39682         (expm1_downward_test_data): New array.
39683         (expm1_test_downward): New function.
39684         (expm1_upward_test_data): New array.
39685         (expm1_test_upward): New function.
39686         (main): Run the new test functions.
39687         * sysdeps/i386/fpu/libm-test-ulps: Update.
39688         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39689
39690         * include/features.h: Update comment documenting feature test
39691         macros.  Mention _DEFAULT_SOURCE in comment.
39692         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
39693         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
39694         _BSD_SOURCE and _SVID_SOURCE.
39695         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
39696         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
39697         !_SVID_SOURCE]: Likewise.
39698         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39699         (__USE_POSIX_IMPLICITLY): Define.
39700         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39701         (_POSIX_SOURCE): Undefine and redefine.
39702         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
39703         (_POSIX_C_SOURCE): Likewise.
39704         * manual/creature.texi (_DEFAULT_SOURCE): Document.
39705         (Feature Test Macros): Update documentation of default features.
39706
39707 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
39708
39709         * benchtests/Makefile: Add bench-strtok.
39710         * benchtests/bench-strtok.c: New file: strtok benchtest.
39711
39712 2013-12-19  Allan McRae  <allan@archlinux.org>
39713
39714         * manual/install.texi: Suppress menu for plain text output.
39715         * INSTALL: Regenerated.
39716
39717 2013-12-18  Brooks Moses  <bmoses@google.com>
39718
39719         [BZ #15846]
39720         * misc/getauxval.c: Include errno.h.
39721         (__getauxval): Set errno to ENOENT if the requested type is not
39722         found.
39723         * misc/sys/auxv.h (getauxval): Document that it may set errno;
39724         don't declare with __attribute_const__.
39725         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
39726         * manual/startup.texi: Document that getauxval sets errno.
39727
39728 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39729
39730         * math/auto-libm-test-in: Add tests of jn and yn.
39731         * math/auto-libm-test-out: Regenerated.
39732         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
39733         (yn_test_data): Likewise.
39734         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39735         mpfr_if_f.
39736         (func_calc_desc): Add mpfr_if_f union field.
39737         (FUNC_mpfr_if_f): New macro.
39738         (test_functions): Add jn and yn.
39739         (calc_generic_results): Assert type of second input for
39740         mpfr_ff_f.  Handle mpfr_if_f.
39741         (output_for_one_input_case): Disable all checking for arguments
39742         fitting floating-point types in case of an integer argument.
39743         * sysdeps/i386/fpu/libm-test-ulps: Update.
39744         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39745
39746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
39747         Don't expect fegetround reference in libm.so.
39748
39749 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
39750
39751         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
39752         $(config-cflags-nofma).
39753
39754 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
39755
39756         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
39757         * math/auto-libm-test-out: Regenerated.
39758
39759         [BZ #16338]
39760         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
39761         to determine exponent and adjust argument to have exponent of -1.
39762         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
39763         log2.
39764         * math/auto-libm-test-out: Regenerated.
39765         * sysdeps/i386/fpu/libm-test-ulps: Update.
39766         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39767
39768 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
39769
39770         * manual/probes.texi: Remove cases when per-thread arenas are
39771         disabled.
39772
39773 2013-12-18  Andreas Schwab  <schwab@suse.de>
39774
39775         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
39776         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
39777         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
39778         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
39779         * sysdeps/i386/i686/multiarch/Makefile: Update.
39780         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
39781
39782 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39783
39784         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
39785         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
39786
39787 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
39788
39789         [BZ #15968]
39790         Support TZ transition times < 00:00:00.
39791         This is needed for version-3 tz-format files; it supports time
39792         stamps past 2037 for America/Godthab (the only entry in the tz
39793         database for which this change is relevant).
39794         * manual/time.texi (TZ Variable): Document transition times
39795         from -167:59:59 through -00:00:01.
39796         * time/tzset.c (tz_rule): Time of day is now signed.
39797         (__tzset_parse_tz): Parse negative time of day.
39798
39799         Document TZ transition times >= 25:00:00.
39800         * manual/time.texi (TZ Variable): Document transition times from
39801         25:00:00 through 167:59:59.  These are already supported, and this
39802         support will help with version-3 tz-format files.
39803
39804         * manual/time.texi (TZ Variable): Modernize North America example
39805         to reflect current (i.e., 2007-and-later) daylight saving rules.
39806
39807         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
39808
39809 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39810
39811         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
39812         * sysdeps/unix/bsd/bits/stat.h: Likewise.
39813         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
39814         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
39815         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
39816         * sysdeps/unix/bsd/bsdstat.h: Likewise.
39817         * sysdeps/unix/bsd/clock.c: Likewise.
39818         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
39819         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
39820         * sysdeps/unix/bsd/init-posix.c: Likewise.
39821         * sysdeps/unix/bsd/poll.c: Likewise.
39822         * sysdeps/unix/bsd/ptsname.c: Likewise.
39823         * sysdeps/unix/bsd/seekdir.c: Likewise.
39824         * sysdeps/unix/bsd/setegid.c: Likewise.
39825         * sysdeps/unix/bsd/seteuid.c: Likewise.
39826         * sysdeps/unix/bsd/setgid.c: Likewise.
39827         * sysdeps/unix/bsd/setrgid.c: Likewise.
39828         * sysdeps/unix/bsd/setruid.c: Likewise.
39829         * sysdeps/unix/bsd/setsid.c: Likewise.
39830         * sysdeps/unix/bsd/setuid.c: Likewise.
39831         * sysdeps/unix/bsd/sigaction.c: Likewise.
39832         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
39833         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
39834         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
39835         * sysdeps/unix/bsd/telldir.c: Likewise.
39836         * sysdeps/unix/bsd/times.c: Likewise.
39837         * sysdeps/unix/bsd/usleep.c: Likewise.
39838
39839         * misc/Makefile (install-lib): Remove libbsd-compat.a.
39840         ($(objpfx)libbsd-compat.a): Remove rule.
39841
39842         * include/features.h (__FAVOR_BSD): Do not define.
39843         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
39844         features conflicting with POSIX.
39845         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
39846         (_BSD_SOURCE): Remove description of not being a subset of other
39847         feature test macros.
39848         * manual/job.texi (getpgrp): Do not document BSD version.
39849         (getpgid): Do not document by reference to BSD getpgrp.
39850         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
39851         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
39852         * signal/signal.h [__FAVOR_BSD]: Likewise.
39853         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
39854         instead of making contents conditional on [__FAVOR_BSD].
39855         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
39856
39857 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39858
39859         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39860
39861 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
39862
39863         [BZ #16314]
39864         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
39865         values below 2**-450, not 2**-500.
39866         * math/auto-libm-test-in: Don't allow spurious underflow from
39867         hypot.
39868         * math/auto-libm-test-out: Regenerated.
39869
39870         [BZ #16316]
39871         [BZ #16330]
39872         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
39873         values of ha and hb and sort them after adjusting subnormal
39874         arguments.
39875         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
39876         Likewise.
39877         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
39878         values of ea and eb and sort them after adjusting subnormal
39879         arguments.
39880         * math/auto-libm-test-in: Do not expect some hypot tests of
39881         subnormals to fail.  Add more hypot tests.
39882         * math/auto-libm-test-out: Regenerated.
39883
39884 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39885
39886         [BZ #13304]
39887         * sysdeps/sh/s_fma.c: New file.
39888         * sysdeps/sh/s_fmaf.c: New file.
39889         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
39890         version.
39891         * sysdeps/sh/Implies: Add sh/soft-fp.
39892
39893 2013-12-16  Roland McGrath  <roland@hack.frob.com>
39894
39895         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
39896         level of indirection to members `objname', `errstring', `malloced'.
39897         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
39898         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
39899         it as the __longjmp argument (just pass 1 instead).
39900         (_dl_catch_error): Initialize C with argument pointers and address of
39901         volatile local ERRCODE rather than copying values out of C at return.
39902
39903 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
39904
39905         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
39906         * math/auto-libm-test-out: Regenerated.
39907         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
39908         (hypot_test_data): Likewise.
39909         (pow_test_data): Likewise.
39910         (pow_tonearest_test_data): Likewise.
39911         * math/gen-auto-libm-tests.c (func_calc_method): Add value
39912         mpfr_ff_f.
39913         (func_calc_desc): Add mpfr_ff_f union field.
39914         (FUNC_mpfr_ff_f): New macro.
39915         (test_functions): Add atan2, hypot and pow.
39916         (special_fill_min): New function.
39917         (special_fill_minus_min): Likewise.
39918         (special_fill_min_subnorm): Likewise.
39919         (special_fill_minus_min_subnorm): Likewise.
39920         (special_real_inputs): Add min, -min, min_subnorm and
39921         -min_subnorm.
39922         (calc_generic_results): Handle mpfr_ff_f.
39923         * sysdeps/i386/fpu/libm-test-ulps: Update.
39924         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39925
39926 2013-12-16  Will Newton  <will.newton@linaro.org>
39927
39928         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
39929         (Aligned Memory Blocks): Add documentation for aligned_alloc
39930         and suggest it as an alternative to posix_memalign.
39931         (Hooks for Malloc): Document __memalign_hook is also called
39932         for aligned_alloc.  (Summary of Malloc): Add summary for
39933         aligned alloc.  Document __memalign_hook is also called
39934         for aligned_alloc.
39935
39936 2013-12-16  Will Newton  <will.newton@linaro.org>
39937
39938         * manual/memory.texi (Malloc Examples): Clarify default
39939         alignment documentation.  Suggest posix_memalign rather
39940         than memalign or valloc.
39941         (Aligned Memory Blocks): Remove suggestion to use memalign
39942         or valloc.  Remove obsolete comment about BSD.
39943         Document memalign errno values and mark the function obsolete.
39944         Document posix_memalign returned error codes.  Mark valloc
39945         as obsolete.  (Hooks for Malloc): __memalign_hook is also
39946         called for posix_memalign and valloc.
39947         (Summary of Malloc): Add posix_memalign to function summary.
39948         __memalign_hook is also called for posix_memalign and valloc.
39949
39950 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
39951
39952         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
39953         TAYLOR_SIN.
39954         (__sin): Adjust.
39955         (__cos): Likewise.
39956         (sloww): Use mynumber union.  Expand ternary operator into
39957         if-else statements.
39958         (cslow): use mynumber union.
39959
39960 2013-12-16  Allan McRae  <allan@archlinux.org>
39961
39962         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
39963         * configure: Regenerated.
39964
39965         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
39966
39967         [BZ #14120]
39968         * configure.ac: Added --enable-maintainer-mode. Check for
39969         autoconf when enabled.
39970         * configure: Regenerated.
39971
39972         * nscd/nscd.service: New file.
39973         * nscd/nscd.tmpfiles: New file.
39974
39975 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
39976
39977         [BZ #12100]
39978         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
39979         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
39980         * sysdeps/x86_64/multiarch/strstr.c: ... here.
39981         (strstr): Add __strstr_sse2_unaligned ifunc.
39982         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
39983         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
39984         (strcasestr): Remove __strcasestr_sse42 ifunc.
39985         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
39986         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
39987         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
39988
39989 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
39990
39991         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
39992         * sysdeps/sh/bits/fenv.h: ... here.
39993         * sysdeps/sh/sh4/fpu/bits: Remove directory.
39994
39995 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39996
39997         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
39998
39999         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
40000         hypotf multiarch implementations.
40001         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
40002         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
40003         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
40004         multiarch hypot for PPC64.
40005         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
40006         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
40007         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
40008         multiarch hypotf for PPC64.
40009
40010         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
40011         modff multiarch implementations.
40012         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
40013         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
40014         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
40015         multiarch modf for PPC64.
40016         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
40017         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
40018         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
40019         multiarch modff for PPC64.
40020
40021         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
40022         and logl multiarch implementations.
40023         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
40024         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
40025         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
40026         multiarch logb for PPC64.
40027         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
40028         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
40029         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
40030         multiarch logb for PPC64.
40031         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
40032         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
40033         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
40034         multiarch logb for PPC64.
40035
40036         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
40037         isinff multiarch implementation.
40038         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
40039         file.
40040         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
40041         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
40042         multiarch isinf for PPC64.
40043         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
40044         file.
40045         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
40046         multiarch isinff for PPC64.
40047
40048         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
40049         finitef multiarch implementation.
40050         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
40051         file.
40052         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
40053         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
40054         multiarch finite for PPC64.
40055         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
40056         file.
40057         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
40058         multiarch finitef for PPC64.
40059
40060         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
40061         lrint multiarch implementation.
40062         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
40063         file.
40064         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
40065         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
40066         multiarch llrint for PPC64.
40067         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
40068         multiarch lrint for PPC64.
40069
40070         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
40071         copysignf multiarch implementation.
40072         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
40073         file.
40074         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
40075         file.
40076         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
40077         multiarch copysign for PPC64.
40078         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
40079         multiarch copysignf for PPC64.
40080
40081         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
40082         multiarch implementation.
40083         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
40084         file.
40085         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
40086         file.
40087         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
40088         file.
40089         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
40090         file.
40091         multiarch llround for PPC64.
40092         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
40093         multiarch trunc for PPC64.
40094         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
40095         multiarch truncf for PPC64.
40096
40097         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
40098         multiarch implementation.
40099         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
40100         file.
40101         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
40102         file.
40103         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
40104         file.
40105         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
40106         file.
40107         multiarch llround for PPC64.
40108         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
40109         multiarch round for PPC64.
40110         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
40111         multiarch roundf for PPC64.
40112
40113         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
40114         multiarch implementation.
40115         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
40116         file.
40117         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
40118         file.
40119         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
40120         file.
40121         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
40122         file.
40123         multiarch llround for PPC64.
40124         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
40125         multiarch floor for PPC64.
40126         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
40127         multiarch floorf for PPC64.
40128
40129         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
40130         multiarch implementation.
40131         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
40132         file.
40133         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
40134         file.
40135         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
40136         file.
40137         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
40138         file.
40139         multiarch llround for PPC64.
40140         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
40141         multiarch ceil for PPC64.
40142         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
40143         multiarch ceilf for PPC64.
40144
40145         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
40146         multiarch implementation.
40147         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
40148         file.
40149         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
40150         file.
40151         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
40152         file.
40153         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
40154         multiarch llround for PPC64.
40155         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
40156         multiarch lround for PPC64.
40157
40158         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
40159         multiarch implementation.
40160         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
40161         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
40162         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
40163         file.
40164         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
40165         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
40166         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
40167         multiarch isnan for PPC64.
40168         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
40169         multiarch isnanf for PPC64.
40170
40171         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
40172         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
40173         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
40174         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
40175         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
40176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
40177
40178         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
40179         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
40180         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
40181         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
40182
40183         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
40184         multiarch implementations.
40185         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40186         (__libc_ifunc_impl_list): Likewise.
40187         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
40188         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
40189         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
40190         multiarch stpcpy for PPC64.
40191
40192         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
40193         multiarch implementations.
40194         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40195         (__libc_ifunc_impl_list): Likewise.
40196         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
40197         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
40198         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
40199         multiarch strcpy for PPC64.
40200
40201         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
40202         redefine function name.
40203         (_wordcopy_fwd_dest_aligned): Likewise.
40204         (_wordcopy_bwd_aligned): Likewise.
40205         (_wordcopy_bwd_dest_aligned): Likewise.
40206         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
40207         multiarch implementations.
40208         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40209         (__libc_ifunc_impl_list): Likewise.
40210         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
40211         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
40212         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
40213         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
40214         multiarch wcscpy for PPC64.
40215
40216         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
40217         multiarch implementations.
40218         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40219         (__libc_ifunc_impl_list): Likewise.
40220         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
40221         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
40222         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
40223         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
40224         multiarch wcscpy for PPC64.
40225
40226         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
40227         multiarch implementations.
40228         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40229         (__libc_ifunc_impl_list): Likewise.
40230         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
40231         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
40232         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
40233         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
40234         multiarch wcsrchr for PPC64.
40235
40236         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
40237         multiarch implementations.
40238         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40239         (__libc_ifunc_impl_list): Likewise.
40240         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
40241         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
40242         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
40243         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
40244         multiarch wcschr for PPC64.
40245
40246         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
40247         multiarch implementations.
40248         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40249         (__libc_ifunc_impl_list): Likewise.
40250         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
40251         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
40252         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
40253         multiarch strchrnul for PPC64.
40254
40255         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
40256         implementations.
40257         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40258         (__libc_ifunc_impl_list): Likewise.
40259         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
40260         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
40261         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
40262         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
40263         strchr for PPC64.
40264
40265         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
40266         implementations.
40267         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40268         (__libc_ifunc_impl_list): Likewise.
40269         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
40270         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
40271         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
40272         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
40273         strncmp for PPC64.
40274
40275         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
40276         multiarch implementations.
40277         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40278         (__libc_ifunc_impl_list): Likewise.
40279         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
40280         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
40281         strncasecmp for PPC64.
40282         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
40283         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
40284         multiarch strncasecmp_l for PPC64.
40285
40286         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
40287         multiarch implementations.
40288         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
40289         (__libc_ifunc_impl_list): Likewise.
40290         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
40291         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
40292         multiarch strcasecmp for PPC64.
40293         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
40294         file.
40295         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
40296         multiarch strcasecmp_l for PPC64.
40297
40298         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
40299         implementations.
40300         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40301         (__libc_ifunc_impl_list): Likewise.
40302         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
40303         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
40304         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
40305         strnlen for PPC64.
40306
40307         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
40308         implementations.
40309         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40310         (__libc_ifunc_impl_list): Likewise.
40311         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
40312         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
40313         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
40314         strlen for PPC64.
40315
40316         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
40317         implementations.
40318         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40319         (__libc_ifunc_impl_list): Likewise.
40320         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
40321         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
40322         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
40323         rawmemrchr for PPC64.
40324
40325         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
40326         implementation.
40327         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40328         (__libc_ifunc_impl_list): Likewise.
40329         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
40330         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
40331         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
40332         memrchr for PPC64.
40333
40334         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
40335         implementation.
40336         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40337         (__libc_ifunc_impl_list): Likewise.
40338         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
40339         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
40340         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
40341         memchr for PPC64.
40342
40343         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
40344         implementation.
40345         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40346         (__libc_ifunc_impl_list): Likewise.
40347         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
40348         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
40349         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
40350         mempcpy for PPC64.
40351
40352         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
40353         avoid cretion of __bzero symbol.
40354         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
40355         Likewise.
40356         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
40357         Likewise.
40358         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
40359         Likewise.
40360         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
40361         multiarch implementations.
40362         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40363         (__libc_ifunc_impl_list): Likewise.
40364         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
40365         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
40366         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
40367         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
40368         bzero for PPC32.
40369         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
40370         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
40371         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
40372         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
40373         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
40374         memset for PPC64.
40375         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
40376
40377         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
40378         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
40379         implementations.
40380         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
40381         (__libc_ifunc_impl_list): Likewise.
40382         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
40383         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
40384         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
40385         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
40386         memcmp for PPC64.
40387
40388         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
40389         multiarch for POWER/PPC64.
40390         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
40391         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
40392         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
40393         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
40394         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
40395         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
40396         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
40397         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
40398         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
40399         memcpy for PPC64.
40400
40401         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
40402         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
40403         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
40404         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
40405         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
40406         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
40407         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
40408         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
40409         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
40410         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
40411         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
40412         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
40413         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
40414         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
40415         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
40416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
40417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
40418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
40419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
40420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
40421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
40422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
40423
40424 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40425
40426         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
40427
40428 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
40429
40430         * benchtests/Makefile (bench): Add exp2 and log2.
40431         (LDLIBS-bench-exp2): Add -lm.
40432         (LDLIBS-bench-log2): Likewise.
40433         * benchtests/exp2-inputs: New inputs file.
40434         * benchtests/log2-inputs: New inputs file.
40435         * benchtests/log-inputs: Add new inputs.
40436         * benchtests/tan-inputs: Likewise.
40437
40438 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
40439
40440         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
40441         definition...
40442         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
40443         (csloww2): ... from here.
40444
40445         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
40446         instead of structures.
40447         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
40448         (POLYNOMIAL): Likewise.
40449         (TAYLOR_SLOW): Likewise.
40450         (__sin): Likewise.
40451         (__cos): Likewise.
40452         (slow1): Likewise.
40453         (slow2): Likewise.
40454         (sloww): Likewise.
40455         (sloww1); Likewise.
40456         (sloww2): Likewise.
40457         (bsloww1): Likewise.
40458         (bsloww2): Likewise.
40459         (cslow2): Likewise.
40460         (csloww): Likewise.
40461         (csloww1): Likewise.
40462         (csloww2): Likewise.
40463
40464 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
40465
40466         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
40467         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
40468         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
40469         * malloc/hooks.c (realloc_check): Likewise.
40470
40471         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
40472         * malloc/arena.c: Remove PER_THREAD conditional.
40473         [!PER_THREAD]: Remove code.
40474         (ptmalloc_unlock_all2): Likewise.
40475         (ptmalloc_init): Likewise.
40476         (_int_new_arena): Likewise.
40477         (arena_get2): Likewise.
40478         * malloc/hooks.c (__malloc_get_state): Likewise.
40479         (__malloc_set_state): Likewise.
40480         * malloc/malloc.c: Likewise.
40481         (struct malloc_state): Likewise.
40482         (struct malloc_par): Likewise.
40483         (__libc_realloc): Likewise.
40484         (__libc_mallopt): Likewise.
40485
40486 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40487
40488         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
40489
40490 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
40491
40492         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
40493         macro to a function.  Check for zero perturb_byte.
40494         (_int_malloc, _int_free): Remove zero perturb_byte checks.
40495
40496         * malloc/malloc.c: (force_reg): Remove.
40497         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
40498         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
40499         force_reg by atomic_forced_read.
40500         * malloc/arena.c (ptmalloc_init): Likewise.
40501         * malloc/hooks.c (top_check): Likewise.
40502
40503 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40504
40505         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
40506
40507 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
40508
40509         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
40510
40511 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
40512
40513         * math/auto-libm-test-in: Add tests of lgamma.
40514         * math/auto-libm-test-out: Regenerated.
40515         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
40516         (M_LOG_2_SQRT_PIl): Likewise.
40517         (lgamma_test_data): Use AUTO_TESTS_f_f1.
40518         * math/gen-auto-libm-tests.c (func_calc_method): Add value
40519         mpfr_f_f1.
40520         (func_calc_desc): Add mpfr_f_f1 union field.
40521         (ARGS1): New macro.
40522         (ARGS2): Likewise.
40523         (ARGS3): Likewise.
40524         (ARGS4): Likewise.
40525         (RET1): Likewise.
40526         (RET2): Likewise.
40527         (CALC): Likewise.
40528         (FUNC): Likewise.
40529         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
40530         (test_functions): Add lgamma.
40531         (calc_generic_results): Handle mpfr_f_f1.
40532         * sysdeps/i386/fpu/libm-test-ulps: Update.
40533         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40534
40535 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40536
40537         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
40538         __mpn_add_n for PowerPC64/POWER7.
40539         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
40540         __mpn_sub_n for PowerPC64/POWER7.
40541
40542         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
40543         __mpn_addmul_1 for PowerPC64.
40544         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
40545         __mpn_submul_1 for PowerPC64.
40546         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
40547         for PowerPC64.
40548         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
40549         for PowerPC64.
40550
40551 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
40552
40553         [BZ #15089]
40554         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
40555
40556 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40557
40558         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
40559
40560         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
40561         add multiarch folders.
40562         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
40563         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
40564         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
40565         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
40566         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
40567         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
40568         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
40569         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
40570         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
40571         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
40572         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
40573         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
40574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
40575         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
40576         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
40577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
40578         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
40579
40580         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40581         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
40582         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
40583         New file.
40584         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
40585         New file.
40586         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
40587         multiarch __ieee754_hypot for PowerPC32.
40588         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
40589         New file.
40590         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
40591         New file.
40592         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
40593         multiarch __ieee754_hypotf for PowerPC32.
40594
40595         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
40596         long_double_symbol only if __logbl is defined.
40597         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
40598         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
40599         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
40600         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
40601         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
40602         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
40603         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
40604         path for implementation.
40605         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
40606         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
40607         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
40608         logb, and logbl multiarch implementations for PowerPC32.
40609         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
40610         file.
40611         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
40612         file.
40613         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
40614         multiarch logb for PowerPC32.
40615         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
40616         file.
40617         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
40618         file.
40619         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
40620         multiarch logbf for PowerPC32.
40621         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
40622         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
40623         file.
40624         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
40625         multiarch logbl implementation for PowerPC32.
40626
40627         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
40628         and modff multiarch implementations.
40629         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
40630         New file.
40631         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
40632         New file.
40633         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
40634         multiarch modf for PowerPC32.
40635         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
40636         New file.
40637         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
40638         New file.
40639         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
40640         multiarch modff for PowerPC32.
40641
40642         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
40643         and lrintf multiarch implementations.
40644         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
40645         New file.
40646         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
40647         New file.
40648         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
40649         multiarch lrint for PowerPC32.
40650         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
40651         file: multiarch lrintf for PowerPC32.
40652
40653         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
40654         and lroundf multiarch implementations.
40655         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
40656         New file.
40657         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
40658         New file.
40659         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
40660         New file.
40661         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
40662         multiarch lround for PowerPC32.
40663         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
40664         file: multiarch lroundf for PowerPC32.
40665
40666         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
40667         copysign and copysignf multiarch implementations.
40668         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
40669         New file.
40670         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
40671         New file.
40672         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
40673         file: multiarch copysign for PowerPC32.
40674         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
40675         file: multiarch copysignf for PowerPC32.
40676
40677         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
40678         and truncf multiarch implementations.
40679         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
40680         New file.
40681         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
40682         file.
40683         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
40684         multiarch trunc for PowerPC32.
40685         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
40686         New file.
40687         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
40688         New file.
40689         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
40690         multiarch truncf for PowerPC32.
40691
40692         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
40693         and roundf multiarch implementations.
40694         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
40695         New file.
40696         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
40697         file.
40698         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
40699         multiarch round for PowerPC32.
40700         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
40701         New file.
40702         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
40703         New file.
40704         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
40705         multiarch roundf for PowerPC32.
40706
40707         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
40708         and floorf multiarch implementations.
40709         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
40710         New file.
40711         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
40712         file.
40713         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
40714         multiarch floor for PowerPC32.
40715         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
40716         New file.
40717         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
40718         New file.
40719         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
40720         multiarch floorf for PowerPC32.
40721
40722         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
40723         and ceilf multiarch implementations.
40724         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
40725         New file.
40726         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
40727         file.
40728         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
40729         multiarch ceil for PowerPC32.
40730         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
40731         New file.
40732         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
40733         file.
40734         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
40735         multiarch ceilf for PowerPC32.
40736
40737         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
40738         is defined.
40739         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
40740         FINITEF is defined.
40741         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
40742         and finitef multiarch implementations.
40743         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
40744         New file.
40745         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
40746         file.
40747         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
40748         multiarch finite for PowerPC32.
40749         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
40750         New file.
40751         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
40752         file: multiarch finitef for PowerPC32.
40753
40754         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
40755         and isinff multiarch implementations.
40756         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
40757         file.
40758         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
40759         file.
40760         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
40761         multiarch isinf for PowerPC32.
40762         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
40763         New file.
40764         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
40765         multiarch isinff for PowerPC32.
40766
40767         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
40768         alias when __isnan is defined.
40769         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
40770         and isnanf multiarch implementations.
40771         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
40772         file.
40773         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
40774         file.
40775         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
40776         file.
40777         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
40778         file.
40779         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
40780         multiarch isnan for PowerPC32.
40781         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
40782         New file.
40783         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
40784         New file.
40785         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
40786         multiarch isnanf for PowerPC32.
40787
40788         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
40789         and sqrtf multiarch implementations.
40790         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
40791         file.
40792         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
40793         file.
40794         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
40795         multiarch sqrt for PowerPC32.
40796         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
40797         file.
40798         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
40799         file.
40800         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
40801         multiarch sqrtf for PowerPC32.
40802
40803         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
40804         and llroundf multiarch implementations.
40805         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
40806         New file.
40807         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
40808         New file.
40809         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
40810         New file.
40811         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
40812         file: multiarch llround for PowerPC32.
40813         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
40814         file: multiarch llroundf for PowerPC32.
40815
40816         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
40817         multiarch PowerPC32 fpu implementations.
40818         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
40819         New file.
40820         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
40821         New file.
40822         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
40823         multiarch llrint for PowerPC32.
40824         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
40825         New file.
40826         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
40827         New file.
40828         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
40829         file.
40830
40831         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
40832
40833         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
40834         file.
40835         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
40836         file.
40837         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
40838         file.
40839         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
40840         multiarch wordcopy for PPC32.
40841         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40842         wordcopy objects.
40843         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40844         (__libc_ifunc_impl_list): Likewise.
40845         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
40846         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
40847         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
40848         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
40849         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
40850         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
40851
40852         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
40853         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
40854         file.
40855         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
40856         file.
40857         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
40858         file.
40859         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
40860         multiarch wcscpy for PPC32.
40861         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
40862         multiarch objects.
40863         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40864         (__libc_ifunc_impl_list): Likewise.
40865         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40866         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40867         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
40868         sysdeps/powerpc/power6/wcscpy.c.
40869
40870         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
40871         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
40872         file.
40873         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
40874         file.
40875         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
40876         file.
40877         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
40878         multiarch wcsrchr for PPC32.
40879         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40880         multiarch objects.
40881         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40882         (__libc_ifunc_impl_list): Likewise.
40883         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
40884         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
40885         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
40886         sysdeps/powerpc/power6/wcsrchr.c.
40887
40888         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
40889         file.
40890         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
40891         file.
40892         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
40893         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
40894         multiarch wcschr for PPc32.
40895         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
40896         multiarch objects.
40897         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40898         (__libc_ifunc_impl_list): Likewise.
40899         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
40900         * sysdeps/powerpc/power6/wcschr.c: ... to here.
40901         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
40902         sysdeps/powerpc/power6/wcschr.c.
40903
40904         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
40905         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
40906         file.
40907         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
40908         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
40909         file: multiarch strchr for PPC32.
40910         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
40911         multiarch objects.
40912         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40913         (__libc_ifunc_impl_list): Likewise.
40914
40915         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
40916         name.
40917         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
40918         file.
40919         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
40920         file.
40921         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
40922         multiarch strchrnul for PPC32.
40923         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
40924         multiarch objects.
40925         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40926         (__libc_ifunc_impl_list): Likewise.
40927
40928         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
40929         file.
40930         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
40931         multiarch strncasecmp for PPC32.
40932         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
40933         file.
40934         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
40935         multiarch strncasecmp_l for PPC32.
40936         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
40937         strncasecmp multiarch objects.
40938         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40939         (__libc_ifunc_impl_list): Likewise.
40940
40941         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
40942         file.
40943         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
40944         multiarch strncasecmp for PPC32.
40945         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
40946         New file.
40947         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
40948         multiarch strcasecmp_l for PPC32.
40949         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
40950         multiarch objects.
40951         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40952         (__libc_ifunc_impl_list): Likewise.
40953
40954         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
40955         file.
40956         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
40957         file.
40958         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
40959         multiarch strncmp for PPC32.
40960         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
40961         multiarch objects.
40962         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40963         (__libc_ifunc_impl_list): Likewise.
40964
40965         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
40966         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
40967         file.
40968         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
40969         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
40970         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
40971         multiarch objects.
40972         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40973         (__libc_ifunc_impl_list): Likewise.
40974
40975         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
40976         file.
40977         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
40978         file.
40979         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
40980         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
40981         multiarch objects.
40982         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40983         (__libc_ifunc_impl_list): Likewise.
40984
40985         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
40986         file.
40987         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
40988         file.
40989         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
40990         multiarch rawmemchr for PPC32.
40991         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
40992         multiarch objects.
40993         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
40994         (__libc_ifunc_impl_list): Likewise.
40995
40996         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
40997         file.
40998         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
40999         file.
41000         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
41001         file: memrchr multiarch for PPC32.
41002         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
41003         multiarch objects.
41004         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
41005         (__libc_ifunc_impl_list): Likewise.
41006
41007         * string/memchr.c (__memchr): Using macro to redefine symbol name.
41008         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
41009         file.
41010         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
41011         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
41012         multiarch memchr for PPC32.
41013         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
41014         multiarch objects.
41015         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41016         (__libc_ifunc_impl_list): Likewise.
41017
41018         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
41019         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
41020         file.
41021         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
41022         file.
41023         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
41024         file: multiarch mempcpy for PPC32.
41025         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
41026         multiarch objects.
41027         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41028         (__libc_ifunc_impl_list): Likewise.
41029
41030         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
41031         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
41032         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
41033         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
41034         multiarch bzero for PPC32.
41035         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
41036         file.
41037         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
41038         file.
41039         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
41040         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
41041         file: multiarch memset for PPC32.
41042         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
41043         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
41044         memset multiarch objects.
41045         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41046         (__libc_ifunc_impl_list): Likewise.
41047
41048         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
41049         file.
41050         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
41051         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
41052         memcmp for PPC32.
41053         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
41054         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
41055         multiarch objects.
41056         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41057         (__libc_ifunc_impl_list): Likewise.
41058
41059         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
41060         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
41061         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
41062         file.
41063         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
41064         file.
41065         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
41066         file.
41067         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
41068         multiarch memcpy for PPC32.
41069         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
41070         multiarch objects.
41071         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
41072         (__libc_ifunc_impl_list): Likewise.
41073
41074         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
41075         support multiarch for POWER/PPC32.
41076         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
41077         Likewise.
41078         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
41079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
41080         Implies file to make multiarch folder appers before the fpu and
41081         default folder for power4 configuration.
41082
41083 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
41084
41085         * scripts/bench.pl: Append volatile keyword to type.
41086
41087 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
41088
41089         * sysdeps/sh/sotruss-lib.c: New file.
41090         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
41091
41092 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41093
41094         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41095
41096 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
41097
41098         [BZ #6810]
41099         * math/w_tgamma.c: Include <errno.h>.
41100         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
41101         * math/w_tgammaf.c: Include <errno.h>.
41102         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
41103         * math/w_tgammal.c: Include <errno.h>.
41104         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
41105         * math/auto-libm-test-in: Do not allow missing errno on tgamma
41106         underflow.  Add more tgamma tests.
41107         * math/auto-libm-test-out: Regenerated.
41108         * sysdeps/i386/fpu/libm-test-ulps: Update.
41109         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41110
41111         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
41112         sin, sinh, tan, tanh, tgamma, y0 and y1.
41113         * math/auto-libm-test-out: Regenerated.
41114         * math/libm-test.inc (TEST_COND_x86_64): New macro.
41115         (TEST_COND_x86): Likewise.
41116         (M_E2l): Remove macro.
41117         (M_E3l): Likewise.
41118         (M_2_SQRT_PIl): Likewise.
41119         (M_SQRT_PIl): Likewise.
41120         (M_1_DIV_El): Likewise.
41121         (log_test_data): Use AUTO_TESTS_f_f.
41122         (log10_test_data): Likewise.
41123         (log1p_test_data): Likewise.
41124         (log2_test_data): Likewise.
41125         (sin_test_data): Likewise.
41126         (sin_tonearest_test_data): Likewise.
41127         (sin_towardzero_test_data): Likewise.
41128         (sin_downward_test_data): Likewise.
41129         (sin_upward_test_data): Likewise.
41130         (sinh_test_data): Likewise.
41131         (sinh_tonearest_test_data): Likewise.
41132         (sinh_towardzero_test_data): Likewise.
41133         (sinh_downward_test_data): Likewise.
41134         (sinh_upward_test_data): Likewise.
41135         (tan_test_data): Likewise.
41136         (tan_tonearest_test_data): Likewise.
41137         (tan_towardzero_test_data): Likewise.
41138         (tan_downward_test_data): Likewise.
41139         (tan_upward_test_data): Likewise.
41140         (tanh_test_data): Likewise.
41141         (tgamma_test_data): Likewise.
41142         (y0_test_data): Likewise.
41143         (y1_test_data): Likewise.
41144         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
41145         (special_real_inputs): Add pi/4.
41146         * sysdeps/i386/fpu/libm-test-ulps: Update.
41147         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41148
41149 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41150
41151         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
41152         "longjmp_target" static probes.
41153         (__longjmp): Rename to __longjmp_symbol.
41154         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
41155         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
41156         on which longjmp to generate.
41157         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
41158         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
41159         probe.
41160         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41161         (__sigjmp_save): Rename to __sigjmp_save_symbol.
41162         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
41163         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
41164         and __sigjmp_save_symbol based on which sigsetjmp to generated.
41165         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
41166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
41167         __longjmp_symbol based on which __longjmp to generate.
41168         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
41169         probe.
41170         (setjmp): Rename to setjmp_symbol.
41171         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41172         (_setjmp): Rename to _setjmp_symbol.
41173         (__sigsetjmp): Rename to __sigsetjmp_symbol.
41174         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
41175         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
41176         which setjmp to generate.
41177         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
41178         "longjmp_target" static probes.
41179
41180 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
41181
41182         * benchtests/README: Add note about output arguments.
41183         * benchtests/bench-sincos.c: Remove file.
41184         * benchtests/sincos-inputs: New file.
41185         * scripts/bench.pl: Identify output arguments and define
41186         static variables for them.
41187
41188         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
41189
41190         [BZ #15941]
41191         * Makefile (INSTALL): Add install-plain.texi as the primary
41192         dependency.
41193         * manual/install-plain.texi: New file.
41194         * manual/install.texi: Include node directive only for
41195         non-plaintext output.
41196
41197 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
41198
41199         * stdlib/longlong.h: Update from GCC.
41200
41201         [BZ #6807]
41202         [BZ #15901]
41203         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
41204         * math/w_j0f.c (y0f): Likewise.
41205         * math/w_j0l.c (__y0l): Likewise.
41206         * math/w_j1.c (y1): Likewise.
41207         * math/w_j1f.c (y1f): Likewise.
41208         * math/w_j1l.c (__y1l): Likewise.
41209         * math/w_jn.c (yn): Likewise.
41210         * math/w_jnf.c (ynf): Likewise.
41211         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
41212         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
41213         value for Bessel function domain errors outside _SVID_ mode.
41214         Adjust sign of return value for yn (negative integer, 0).
41215         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
41216         by zero in return for negative x and set sign appropriately for
41217         negative n.
41218         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
41219         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
41220         * math/libm-test.inc (y0_test_data): Add more tests and adjust
41221         expectations in error cases.
41222         (y1_test_data): Likewise.
41223         (yn_test_data): Likewise.
41224         * sysdeps/i386/fpu/libm-test-ulps: Update.
41225         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41226
41227 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41228
41229         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
41230         "64" to "64-v1".  Add "64-v2".
41231         (abi-64-options): Rename to ...
41232         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
41233         (abi-64-condition): Rename to ...
41234         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
41235         (abi-64-ld-soname): Rename to ...
41236         (abi-64-v1-ld-soname): ... this.
41237         (abi-64-v2-options): Define.
41238         (abi-64-v2-condition): Likewise.
41239         (abi-64-v2-ld-soname): Likewise.
41240         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
41241         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
41242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
41243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
41244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
41245
41246 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41247             Alan Modra  <amodra@gmail.com>
41248
41249         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
41250         New versions for use with the ELFv2 ABI.
41251         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
41252         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
41253         declaration.
41254         (struct La_ppc64v2_retval): Likewise.
41255         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
41256         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
41257         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
41258         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
41259         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
41260         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
41261         Do not save or restore CR.
41262         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
41263         (_dl_profile_resolve): Do no save or restore CR.  Support extended
41264         return values for ELFv2 ABI.  Fix location of FPR return registers.
41265         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
41266         updated values for _CALL_ELF == 2.
41267         (La_regs, La_retval, int_retval): Likewise.
41268
41269 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41270
41271         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
41272         (FRAME_MIN_SIZE_PARM): Likewise.
41273         (FRAME_BACKCHAIN): Likewise.
41274         (FRAME_CR_SAVE): Likewise.
41275         (FRAME_LR_SAVE): Likewise.
41276         (FRAME_TOC_SAVE): Likewise.
41277         (FRAME_PARM_SAVE): Likewise.
41278         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
41279         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
41280         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
41281         (call_mcount_parm_offset): New macro.
41282         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
41283         (PROF): Use symbolic stack frame offsets.
41284         (TAIL_CALL_SYSCALL_ERROR): Likewise.
41285         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
41286         Redefine in terms of FRAME_MIN_SIZE.
41287         (_dl_runtime_resolve): Use symbolic stack frame offsets.
41288         (_dl_profile_resolve): Likewise.  Update comment.
41289         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
41290         symbols stack frame offsets.
41291         (__sigsetjmp): Likewise.
41292         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
41293         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
41294         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
41295         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
41296
41297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
41298         (FRAME_BACKCHAIN): Remove.
41299         (FRAME_CR_SAVE): Likewise.
41300         (FRAME_LR_SAVE): Likewise.
41301         (FRAME_COMPILER_DW): Likewise.
41302         (FRAME_LINKER_DW): Likewise.
41303         (FRAME_TOC_SAVE): Likewise.
41304         (FRAME_PARM_SAVE): Likewise.
41305         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
41306         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
41307         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
41308         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
41309         (CHECK_SP): Use symbolic stack frame offsets.
41310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
41311         zone" instead of caller's parameter save area for temp storage.
41312         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
41313         Likewise.  Also, use symbolic stack frame offsets.
41314         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
41315         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
41316         our own stack frame instead of the caller's.
41317         (__socket): Use symbolic stack frame offsets.
41318
41319 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41320             Alan Modra  <amodra@gmail.com>
41321
41322         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
41323         Define.
41324         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
41325         (PPC64_LOCAL_ENTRY_OFFSET): Define.
41326         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
41327         New function.
41328         (elf_machine_fixup_plt): Call it.
41329         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
41330         reloc arguments.
41331         (elf_machine_rela): Update call to elf_machine_plt_conflict.
41332         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
41333         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
41334         r2 before calling target.
41335
41336 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41337             Alan Modra  <amodra@gmail.com>
41338
41339         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
41340         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
41341         versions of macros to support ELFv2 ABI.
41342         (LOCALENTRY): New macro.
41343         (ENTRY, EALIGN): Use it.
41344         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
41345         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
41346         fall through into ENTRY entry point.
41347         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
41348         Only define if _CALL_ELF != 2.
41349
41350         (elf_machine_matches_host): Verify ABI version matches.
41351         (RTLD_START): Use LOCALENTRY.
41352         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
41353         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
41354         (PLT_ENTRY_WORDS): New macro.
41355         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
41356         (elf_machine_runtime_setup): Support ELFv2 ABI.
41357         (elf_machine_fixup_plt): Likewise.
41358         (elf_machine_plt_conflict): Likewise.
41359         (resolve_ifunc): Likewise.
41360         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
41361         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
41362         Likewise.
41363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
41364         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
41365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
41366         (makecontext): Support ELFv2 ABI.
41367         * elf/elf.h (EF_PPC64_ABI): Define.
41368
41369 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41370
41371         * sysdeps/powerpc/powerpc64/sysdep.h
41372         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
41373         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
41374         (ENTRY) [ASSEMBLER]: ... but instead here ...
41375         (EALIGN) [ASSEMBLER]: ... and here.
41376         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
41377         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
41378         (ENTRY_2) [!ASSEMBLER]: Use it.
41379         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
41380         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
41381         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
41382         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
41383         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
41384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
41385         Use PPC64_LOAD_FUNCPTR.
41386
41387         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
41388
41389 2013-12-04  Alan Modra  <amodra@gmail.com>
41390
41391         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
41392         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
41393         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
41394         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
41395
41396         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
41397         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
41398         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
41399         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
41400         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
41401         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
41402
41403 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
41404
41405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
41406         (__makecontext): Fix incorrect CFI when backtracing out of
41407         context created via makecontext.
41408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
41409         (__setcontext): Fix incorrect CFI during switch to new context.
41410         (__novec_setcontext): Likewise.
41411
41412 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
41413
41414         [BZ #4772]
41415         * time/strptime_l.c (__strptime_internal): Allow modifiers
41416         in strptime.
41417         * time/tst-strptime.c (day_tests): Add testcase.
41418
41419 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
41420
41421         * scripts/bench.pl: Skip over blank lines.
41422
41423 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
41424
41425         [BZ #926]
41426         * manual/time.texi (Calendar Time): Clarify what timezone functions
41427         use.
41428
41429 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41430
41431         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41432
41433 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
41434
41435         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
41436         implementation.
41437         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
41438         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
41439         * debug/memset_chk.c (__memset_chk): Likewise.
41440         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
41441         * debug/strncpy_chk.c: Likewise.
41442
41443 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41444
41445         [BZ #15268]
41446         [BZ #15425]
41447         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
41448         (__ieee754_exp): For possibly underflowing results, check size of
41449         result and force underflow exception if required.
41450         * math/auto-libm-test-in: Add more tests of exp.
41451         * math/auto-libm-test-out: Regenerated.
41452         * sysdeps/i386/fpu/libm-test-ulps: Update.
41453         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41454
41455         [BZ #16283]
41456         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
41457         * math/w_exp2f.c (__exp2f): Likewise.
41458         * math/w_exp2l.c (__exp2l): Likewise.
41459         * math/auto-libm-test-in: Do not allow missing errno on exp2
41460         underflow.
41461         * math/auto-libm-test-out: Regenerated.
41462
41463 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
41464
41465         [BZ #16274]
41466         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
41467         handle filename validation.
41468         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
41469         (do_open): Delete.
41470
41471 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
41472
41473         [BZ #6786]
41474         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
41475         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
41476         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
41477         <float.h>.
41478         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
41479         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
41480         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41481         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
41482         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41483         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
41484         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
41485         * math/auto-libm-test-in: Don't allow missing errno from erfc.
41486         Add more erfc tests.
41487         * math/auto-libm-test-out: Regenerated.
41488         * sysdeps/i386/fpu/libm-test-ulps: Update.
41489         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41490
41491         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
41492         exp2, expm1, j0 and j1.
41493         * math/auto-libm-test-out: Regenerated.
41494         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
41495         (erfc_test_data): Likewise.
41496         (exp_test_data): Likewise.
41497         (exp_tonearest_test_data): Likewise.
41498         (exp_towardzero_test_data): Likewise.
41499         (exp_downward_test_data): Likewise.
41500         (exp_upward_test_data): Likewise.
41501         (exp10_test_data): Likewise.
41502         (exp2_test_data): Likewise.
41503         (expm1_test_data): Likewise.
41504         (j0_test_data): Likewise.
41505         (j1_test_data): Likewise.
41506         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
41507         (input_flag_type): Add flag_xfail_rounding.
41508         (input_flags): Add xfail-rounding.
41509         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
41510         (output_for_one_input_case): Handle flag_xfail_rounding.
41511         * sysdeps/i386/fpu/libm-test-ulps: Update.
41512         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41513
41514 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
41515
41516         [BZ #16289]
41517         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
41518         division by 0.
41519
41520 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
41521
41522         [BZ #16195]
41523         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
41524         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
41525         (STAP_PROBE0): New macro.
41526         (STAP_PROBE1): Likewise.
41527         (STAP_PROBE2): Likewise.
41528         (STAP_PROBE3): Likewise.
41529         (STAP_PROBE4): Likewise.
41530
41531 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
41532
41533         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
41534
41535 2013-12-02  Steve Ellcey  <sellcey@mips.com>
41536
41537         * benchtests/Makefile (bench): Add sqrt.
41538         (LDLIBS-bench-sqrt): New.
41539         * benchtests/sqrt-input: New.
41540
41541 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
41542
41543         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
41544         (GAIH_EAI): Likewise.
41545         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
41546         (gaih_inet): Likewise.
41547         (getaddrinfo): Don't use GAIH_EAI.
41548
41549         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
41550         (struct gaih): Remove definition.
41551
41552 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
41553
41554         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
41555         Use HERRNOP directly.
41556
41557 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41558
41559         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41560
41561 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
41562
41563         * math/gen-auto-libm-tests.c (test_functions): Add more
41564         single-argument functions.
41565         (special_fill_pi_2): New function.
41566         (special_fill_minus_pi_2): Likewise.
41567         (special_fill_pi_6): Likewise.
41568         (special_fill_minus_pi_6): Likewise.
41569         (special_fill_pi_3): Likewise.
41570         (special_fill_2pi_3): Likewise.
41571         (special_fill_e): Likewise.
41572         (special_fill_1_e): Likewise.
41573         (special_fill_e_minus_1): Likewise.
41574         (special_real_inputs): Add more special inputs.
41575         (output_for_one_input_case): Do not require ERANGE on underflow to
41576         zero if round-to-nearest result does not underflow to zero, unless
41577         exact results required.
41578         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
41579         atan, atanh, cbrt, cos and cosh.
41580         * math/auto-libm-test-out: Regenerated.
41581         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
41582         (acos_tonearest_test_data): Likewise.
41583         (acos_towardzero_test_data): Likewise.
41584         (acos_downward_test_data): Likewise.
41585         (acos_upward_test_data): Likewise.
41586         (acosh_test_data): Likewise.
41587         (asin_test_data): Likewise.
41588         (asin_tonearest_test_data): Likewise.
41589         (asin_towardzero_test_data): Likewise.
41590         (asin_upward_test_data): Likewise.
41591         (asinh_test_data): Likewise.
41592         (atan_test_data): Likewise.
41593         (atanh_test_data): Likewise.
41594         (cbrt_test_data): Likewise.
41595         (cos_test_data): Likewise.
41596         (cos_tonearest_test_data): Likewise.
41597         (cos_towardzero_test_data): Likewise.
41598         (cos_downward_test_data): Likewise.
41599         (cos_upward_test_data): Likewise.
41600         (cosh_test_data): Likewise.
41601         (cosh_tonearest_test_data): Likewise.
41602         (cosh_towardzero_test_data): Likewise.
41603         (cosh_downward_test_data): Likewise.
41604         (cosh_upward_test_data): Likewise.
41605         * sysdeps/i386/fpu/libm-test-ulps: Update.
41606         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41607
41608 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
41609
41610         [BZ #6787]
41611         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
41612         * math/w_exp10f.c (__exp10f): Likewise.
41613         * math/w_exp10l.c (__exp10l): Likewise.
41614         * math/libm-test.inc (exp10_test_data): Add more tests and expect
41615         errno settings in existing tests.
41616
41617         [BZ #14032]
41618         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
41619         precision control set to double precision.
41620         * sysdeps/i386/fpu/w_sqrt.c: New file.
41621         * math/auto-libm-test-in: Add more tests.
41622         * math/auto-libm-test-out: Update.
41623
41624         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
41625         (sqrt_test_tonearest): New function.
41626         (sqrt_towardzero_test_data): New variable.
41627         (sqrt_test_towardzero): New function.
41628         (sqrt_downward_test_data): New variable.
41629         (sqrt_test_downward): New function.
41630         (sqrt_upward_test_data): New variable.
41631         (sqrt_test_upward): New function.
41632         (main): Call the new functions.
41633
41634         * math/gen-auto-libm-tests.c: New file.
41635         * math/auto-libm-test-in: Likewise.
41636         * math/auto-libm-test-out: New generated file.
41637         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
41638         variables.
41639         (%beautify): Add generated representations of zero.
41640         (top level): Set $auto_input and call parse_auto_input.
41641         (beautify): Remove trailing "f" from hex float constants.
41642         (parse_args): Handle XFAIL_TEST.
41643         (convert_condition): New function.
41644         (or_value): Likewise.
41645         (or_cond_value): Likewise.
41646         (generate_testfile): Handle AUTO_TESTS_* lines.
41647         (parse_auto_input): New function.
41648         * math/libm-test.inc (XFAIL_TEST): New macro.
41649         (ERRNO_UNCHANGED): Update value.
41650         (ERRNO_EDOM): Likewise.
41651         (ERRNO_ERANGE): Likewise.
41652         (IGNORE_RESULT): Likewise.
41653         (TEST_COND_flt_32): New macro.
41654         (TEST_COND_dbl_64): Likewise.
41655         (TEST_COND_ldbl_96_intel): Likewise.
41656         (TEST_COND_ldbl_96_m68k): Likewise.
41657         (TEST_COND_ldbl_128): Likewise.
41658         (TEST_COND_ldbl_128ibm): Likewise.
41659         (TEST_COND_long32): Likewise.
41660         (TEST_COND_long64): Likewise.
41661         (TEST_COND_before_rounding): Likewise.
41662         (TEST_COND_after_rounding): Likewise.
41663         (enable_test): Handle XFAIL_TEST flag.
41664         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
41665         with finite results.
41666         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
41667         auto-libm-test-out.
41668
41669 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
41670             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41671
41672         [BZ #16214]
41673         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
41674         __tls_get_addr_internal instead of __tls_get_offset in order to
41675         avoid GOT pointer dependency.  Make rtld export
41676         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
41677         __tls_get_addr since we are a __tls_get_offset platform.
41678         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
41679         GOT pointer being set up before.
41680         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
41681
41682 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
41683
41684         * manual/math.texi (Errors in Math Functions): Document accuracy
41685         goals.
41686
41687         [BZ #15004]
41688         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
41689         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
41690         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
41691         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
41692         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
41693         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
41694         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
41695         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
41696         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
41697         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
41698         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
41699         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
41700         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
41701         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
41702         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
41703         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
41704
41705         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
41706         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
41707         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
41708         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
41709         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
41710         Likewise.
41711         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
41712         Likewise.
41713         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
41714         Likewise.
41715         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
41716         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
41717         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
41718         atomic-feupdateenv and flt-rounds.
41719         * sysdeps/powerpc/nofpu/Versions (libc): Add
41720         __atomic_feholdexcept, __atomic_feclearexcept,
41721         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
41722         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
41723         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
41724         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
41725         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
41726         here.
41727         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
41728         Update.
41729
41730         * manual/arith.texi (FP Exceptions): Document that exceptions may
41731         not be raised when matherr is used.
41732         (Math Error Reporting): Document overflow in directed rounding
41733         modes.  Document that errno may not be set when finite values are
41734         returned on overflow.  Document intent to set errno on underflow
41735         only for underflow to zero.
41736
41737         [BZ #16271]
41738         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
41739         round-to-nearest then adjust result for other rounding modes.
41740         * include/fenv.h (fegetround): Use libm_hidden_proto.
41741         * math/fegetround.c (fegetround): Use libm_hidden_def.
41742         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
41743         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
41744         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
41745         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
41746         Likewise.
41747         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
41748         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
41749         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
41750         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
41751
41752 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
41753
41754         [BZ #16077]
41755         * nss/Versions (libnss_files): Add
41756         _nss_files_gethostbyname3_r.
41757         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
41758         New function.
41759         (HOST_DB_LOOKUP): Remove macro.
41760         (_nss_files_gethostbyname_r): Implement function without the
41761         HOST_DB_LOOKUP macro.
41762         (_nss_files_gethostbyname2_r): Likewise.
41763
41764 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
41765
41766         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
41767
41768 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
41769
41770         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
41771         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
41772         warning.
41773
41774 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41775
41776         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
41777         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
41778         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
41779         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
41780         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
41781         __fe_nomask_env_priv and attribute_hidden.
41782         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
41783         (libc_feupdateenv_test_ppc): Likewise.
41784         (libc_feresetround_ppc): Likewise.
41785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
41786         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
41787         compat_symbol macro.
41788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
41789         (__fe_nomask_env): Likewise.
41790         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
41791
41792 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41793
41794         * string/Makefile: Remove ifunc tests.
41795         * string/test-string.h: Define TEST_IFUNC.
41796         * string/test-bcopy-ifunc.c: Remove.
41797         * string/test-bzero-ifunc.c: Likewise.
41798         * string/test-memccpy-ifunc.c: Likewise.
41799         * string/test-memchr-ifunc.c: Likewise.
41800         * string/test-memcmp-ifunc.c: Likewise.
41801         * string/test-memcpy-ifunc.c: Likewise.
41802         * string/test-memmem-ifunc.c: Likewise.
41803         * string/test-memmove-ifunc.c: Likewise.
41804         * string/test-mempcpy-ifunc.c: Likewise.
41805         * string/test-memrchr-ifunc.c: Likewise.
41806         * string/test-memset-ifunc.c: Likewise.
41807         * string/test-rawmemchr-ifunc.c: Likewise.
41808         * string/test-stpcpy-ifunc.c: Likewise.
41809         * string/test-stpncpy-ifunc.c: Likewise.
41810         * string/test-strcasecmp-ifunc.c: Likewise.
41811         * string/test-strcasestr-ifunc.c: Likewise.
41812         * string/test-strcat-ifunc.c: Likewise.
41813         * string/test-strchr-ifunc.c: Likewise.
41814         * string/test-strchrnul-ifunc.c: Likewise.
41815         * string/test-strcmp-ifunc.c: Likewise.
41816         * string/test-strcpy-ifunc.c: Likewise.
41817         * string/test-strcspn-ifunc.c: Likewise.
41818         * string/test-strlen-ifunc.c: Likewise.
41819         * string/test-strncasecmp-ifunc.c: Likewise.
41820         * string/test-strncat-ifunc.c: Likewise.
41821         * string/test-strncmp-ifunc.c: Likewise.
41822         * string/test-strncpy-ifunc.c: Likewise.
41823         * string/test-strnlen-ifunc.c: Likewise.
41824         * string/test-strpbrk-ifunc.c: Likewise.
41825         * string/test-strrchr-ifunc.c: Likewise.
41826         * string/test-strspn-ifunc.c: Likewise.
41827         * string/test-strstr-ifunc.c: Likewise.
41828
41829 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41830
41831         * benchtests/Makefile: Remove ifunc tests.
41832         * benchtests/bench-string.h: Define TEST_IFUNC.
41833         * benchtests/bench-bcopy-ifunc.c: Remove.
41834         * benchtests/bench-bzero-ifunc.c: Likewise.
41835         * benchtests/bench-memccpy-ifunc.c: Likewise.
41836         * benchtests/bench-memchr-ifunc.c: Likewise.
41837         * benchtests/bench-memcmp-ifunc.c: Likewise.
41838         * benchtests/bench-memcpy-ifunc.c: Likewise.
41839         * benchtests/bench-memmem-ifunc.c: Likewise.
41840         * benchtests/bench-memmove-ifunc.c: Likewise.
41841         * benchtests/bench-mempcpy-ifunc.c: Likewise.
41842         * benchtests/bench-memrchr-ifunc.c: Likewise.
41843         * benchtests/bench-memset-ifunc.c: Likewise.
41844         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
41845         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
41846         * benchtests/bench-stpcpy-ifunc.c: Likewise.
41847         * benchtests/bench-stpncpy-ifunc.c: Likewise.
41848         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
41849         * benchtests/bench-strcasestr-ifunc.c: Likewise.
41850         * benchtests/bench-strcat-ifunc.c: Likewise.
41851         * benchtests/bench-strchr-ifunc.c: Likewise.
41852         * benchtests/bench-strchrnul-ifunc.c: Likewise.
41853         * benchtests/bench-strcmp-ifunc.c: Likewise.
41854         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
41855         * benchtests/bench-strcpy-ifunc.c: Likewise.
41856         * benchtests/bench-strcspn-ifunc.c: Likewise.
41857         * benchtests/bench-strlen-ifunc.c: Likewise.
41858         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
41859         * benchtests/bench-strncat-ifunc.c: Likewise.
41860         * benchtests/bench-strncmp-ifunc.c: Likewise.
41861         * benchtests/bench-strncpy-ifunc.c: Likewise.
41862         * benchtests/bench-strnlen-ifunc.c: Likewise.
41863         * benchtests/bench-strpbrk-ifunc.c: Likewise.
41864         * benchtests/bench-strrchr-ifunc.c: Likewise.
41865         * benchtests/bench-strsep-ifunc.c: Likewise.
41866         * benchtests/bench-strspn-ifunc.c: Likewise.
41867         * benchtests/bench-strstr-ifunc.c: Likewise.
41868
41869 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41870
41871         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
41872
41873 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
41874
41875         * resolv/netdb.h: Use __glibc_reserved instead __unused.
41876         * rt/aio.h: Likewise.
41877         * sysdeps/gnu/bits/utmp.h: Likewise.
41878         * sysdeps/gnu/bits/utmpx.h: Likewise.
41879         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
41880         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
41881         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
41882         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
41883         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
41884         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
41885         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
41886         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
41887         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
41888         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
41889         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
41890         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
41891         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
41892         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
41893         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
41894         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
41895         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
41896         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
41897         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
41898         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
41899         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
41900         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
41901         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
41902         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
41903         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
41904         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
41905         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
41906         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
41907         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
41908         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
41909         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
41910         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
41911         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
41912         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
41913         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
41914         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
41915         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
41916         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
41917         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
41918         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
41919         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
41920         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
41921
41922 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
41923
41924         [BZ #16245]
41925         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
41926         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
41927
41928 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
41929
41930         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
41931         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
41932         Likewise.
41933
41934 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41935
41936         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
41937         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
41938         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
41939         (__fesetround): Remove define.
41940         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
41941         rounding and exceptions handling.
41942         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
41943         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
41944         (__fe_nomask_env): Likewise.
41945         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
41946         __fegetround instead of fegetround.
41947         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
41948         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
41949
41950 2013-11-21  Roland McGrath  <roland@hack.frob.com>
41951
41952         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
41953         it's there.
41954
41955         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
41956
41957 2013-11-21  Meador Inge  <meadori@codesourcery.com>
41958
41959         [BZ #11157]
41960         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
41961         (encrypt_r): Likewise.
41962         * malloc/obstack.h (obstack_free): Likewise.
41963         * posix/unistd.h (encrypt): Likewise.
41964
41965 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
41966
41967         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
41968         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
41969         DL_CALL_DT_FINI() that call the functions directly.
41970         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
41971         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
41972         * elf/dl-fini.c: Likewise.
41973
41974 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
41975
41976         * malloc/hooks.c (memalign_check): Add alignment rounding.
41977         * malloc/malloc.c (_mid_memalign): New function.
41978         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
41979         Implement by calling _mid_memalign.
41980         * manual/probes.texi (Memory Allocation Probes): Remove
41981         memory_valloc_retry and memory_pvalloc_retry.
41982
41983 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
41984
41985         * locale/programs/locarchive.c (open_archive): Add const
41986         qualifier to ARCHIVEFNAME and copy default fname to
41987         DEFAULT_FNAME.
41988
41989         [BZ #15601]
41990         * libio/tst-widetext.input: Rename Oriya to Odia.
41991         * locale/iso-639.def: Likewise.
41992
41993         * manual/probes.texi (Mathematical Function Probes): Add
41994         documentation for sin, cos, asin and acos probes.
41995         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
41996         (__sin32): Add slowasin probe.
41997         (__cos32): Add slowacos probe.
41998         (__mpsin): Add slowsin probe.
41999         (__mpcos): Add slowcos probe.
42000
42001 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
42002
42003         [BZ #15483]
42004         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
42005         thread-local __sim_exceptions_thread and global
42006         __sim_exceptions_global.
42007         (__sim_disabled_exceptions): Change to thread-local
42008         __sim_disabled_exceptions_thread and global
42009         __sim_disabled_exceptions_global.
42010         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
42011         and global __sim_round_mode_global.
42012         (__simulate_exceptions): Use thread-local floating-point state and
42013         set global state from it as needed.
42014         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
42015         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
42016         __sim_round_mode_thread.
42017         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
42018         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
42019         and global __sim_exceptions_global.
42020         (__sim_disabled_exceptions): Change to thread-local
42021         __sim_disabled_exceptions_thread and global
42022         __sim_disabled_exceptions_global.
42023         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
42024         and global __sim_round_mode_global.
42025         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
42026         (SIM_SET_GLOBAL): Likewise.
42027         * sysdeps/powerpc/soft-fp/sfp-machine.h
42028         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
42029         __sim_round_mode_thread.
42030         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
42031         __sim_disabled_exceptions_thread.
42032         (__sim_exceptions): Change to __sim_exceptions_thread.
42033         (__sim_disabled_exceptions): Change to
42034         __sim_disabled_exceptions_thread.
42035         (__sim_round_mode): Change to __sim_round_mode_thread.
42036         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
42037         thread-local floating-point state and set global state from it as
42038         needed.
42039         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
42040         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
42041         (__sim_disabled_exceptions): Remove extern declaration.
42042         (feenableexcept): Use thread-local floating-point state and set
42043         global state from it as needed.
42044         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
42045         extern declaration.
42046         (__sim_disabled_exceptions): Likewise.
42047         (__sim_round_mode): Likewise.
42048         (__fegetenv): Use thread-local floating-point state.
42049         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
42050         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
42051         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
42052         floating-point state and set global state from it as needed.
42053         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
42054         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
42055         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
42056         Likewise.
42057         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
42058         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
42059         Likewise.
42060         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
42061         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
42062         Use __sim_round_mode_thread.
42063         * math/test-fenv-tls.c: New file.
42064         * math/Makefile (tests): Add test-fenv-tls.
42065         ($(objpfx)test-fenv-tls): Depend on
42066         $(common-objpfx)nptl/libpthread.so.
42067
42068 2013-11-19  Andreas Schwab  <schwab@suse.de>
42069
42070         * locale/programs/locale.c (show_info): Decode wordarray elements.
42071         * locale/categories.def (LC_MONETARY): Add element for
42072         _NL_MONETARY_CRNCYSTR.
42073         * locale/C-monetary.c (conversion_rate): New variable.
42074         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
42075         element.
42076
42077 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
42078
42079         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
42080         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
42081
42082 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
42083
42084         * elf/Makefile (tst-auxv): New test.
42085         * elf/tst-auxv.c: New
42086         * elf/rtld.c (dl_main): Adjust AT_EXECFN
42087
42088 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
42089
42090         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
42091         (hidden_proto): Caller changed.
42092         (hidden_tls_proto): New macro.
42093         (libc_hidden_tls_proto): Likewise.
42094         (rtld_hidden_tls_proto): Likewise.
42095         (libm_hidden_tls_proto): Likewise.
42096         (libresolv_hidden_tls_proto): Likewise.
42097         (librt_hidden_tls_proto): Likewise.
42098         (libdl_hidden_tls_proto): Likewise.
42099         (libnss_files_hidden_tls_proto): Likewise.
42100         (libnsl_hidden_tls_proto): Likewise.
42101         (libnss_nisplus_hidden_tls_proto): Likewise.
42102         (libutil_hidden_tls_proto): Likewise.
42103
42104 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
42105
42106         [BZ #10253]
42107         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
42108         (decompose_rpath): Defer expansion to fillin_rpath.
42109         (_dl_init_paths): Pass linkmap to fillin_rpath.
42110
42111 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
42112
42113         * benchtests/Makefile: Add strsep.
42114         * benchtests/bench-strsep.c: New file: strsep benchtest.
42115         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
42116
42117 2013-11-18  Andreas Schwab  <schwab@suse.de>
42118
42119         * locale/programs/locale.c (show_info) [case byte]: Check for
42120         '\377' instead of '\177'.
42121         * locale/C-monetary.c (not_available): Always use "\377".
42122         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
42123         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
42124         detect unavailable sign_posn locale elements.
42125         * locale/localeconv.c (__localeconv): For grouping and
42126         mon_grouping handle "\177" and "\377" like no grouping.
42127         (INT_ELEM): New macro.  Use it to set all numeric members.
42128         * locale/programs/ld-monetary.c (monetary_read)
42129         <tok_mon_grouping>: Normalize single -1 to the empty string.
42130         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
42131         Likewise.
42132
42133 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
42134
42135         [BZ #16055]
42136         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
42137         when we match (nil).
42138         * stdio-common/tst-sscanf.c (struct test): Add testcase.
42139
42140 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
42141
42142         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
42143         (NO_TEST_INLINE): Update value.
42144         (ERRNO_UNCHANGED): Likewise.
42145         (ERRNO_EDOM): Likewise.
42146         (ERRNO_ERANGE): Likewise.
42147         (IGNORE_RESULT): Likewise.
42148         (check_float_internal): Check signs of NaN results if
42149         TEST_NAN_SIGN used.
42150         (check_complex): Pass TEST_NAN_SIGN flag through to second
42151         check_float_internal call.
42152         (copysign_test_data): Add tests with quiet NaNs as second
42153         argument.  Use TEST_NAN_SIGN.
42154         (fabs_test_data): Add test of negative quiet NaN argument.  Use
42155         TEST_NAN_SIGN.
42156         (signbit_test_data): Add tests of quiet NaN argument.
42157         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
42158
42159         * math/gen-libm-test.pl (show_exceptions): Take extra argument
42160         $ignore_result.
42161         (parse_args): Handle function results specified as IGNORE.
42162         * math/libm-test.inc (IGNORE_RESULT): New macro.
42163         (check_float_internal): Do not check numerical result if flag
42164         IGNORE_RESULT set.
42165         (check_complex): Pass through IGNORE_RESULT to second
42166         check_float_internal call.
42167         (check_int): Do not check numerical result if flag IGNORE_RESULT
42168         set.
42169         (check_long): Likewise.
42170         (check_bool): Likewise.
42171         (check_longlong): Likewise.
42172         (lrint_test_data): Add tests of infinite and NaN arguments.
42173         (lrint_tonearest_test_data): Likewise.
42174         (lrint_towardzero_test_data): Likewise.
42175         (lrint_downward_test_data): Likewise.
42176         (lrint_upward_test_data): Likewise.
42177         (llrint_test_data): Likewise.
42178         (llrint_tonearest_test_data): Likewise.
42179         (llrint_towardzero_test_data): Likewise.
42180         (llrint_downward_test_data): Likewise.
42181         (llrint_upward_test_data): Likewise.
42182         (lround_test_data): Likewise.
42183         (llround_test_data): Likewise.
42184
42185         * math/libm-test.inc (NO_TEST_INLINE): New macro.
42186         (ERRNO_UNCHANGED): Update value.
42187         (ERRNO_EDOM): Likewise.
42188         (ERRNO_ERANGE): Likewise.
42189         (NO_TEST_INLINE_FLOAT): New macro.
42190         (NO_TEST_INLINE_DOUBLE): Likewise.
42191         (enable_test): New function.
42192         (RUN_TEST_f_f): Check enable_test before running test.
42193         (RUN_TEST_2_f): Likewise.
42194         (RUN_TEST_fff_f): Likewise.
42195         (RUN_TEST_c_f): Likewise.
42196         (RUN_TEST_f_f1): Likewise.
42197         (RUN_TEST_fF_f1): Likewise.
42198         (RUN_TEST_fI_f1): Likewise.
42199         (RUN_TEST_ffI_f1): Likewise.
42200         (RUN_TEST_c_c): Likewise.
42201         (RUN_TEST_cc_c): Likewise.
42202         (RUN_TEST_f_i): Likewise.
42203         (RUN_TEST_f_i_tg): Likewise.
42204         (RUN_TEST_ff_i_tg): Likewise.
42205         (RUN_TEST_f_b): Likewise.
42206         (RUN_TEST_f_b_tg): Likewise.
42207         (RUN_TEST_f_l): Likewise.
42208         (RUN_TEST_f_L): Likewise.
42209         (RUN_TEST_fFF_11): Likewise.
42210         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
42211         conditionals.
42212         (cosh_test_data): Likewise.
42213         (exp_test_data): Likewise.
42214         (expm1_test_data): Likewise.
42215         (hypot_test_data): Likewise.
42216         (pow_test_data): Likewise.
42217         (sinh_test_data): Likewise.
42218         (tanh_test_data): Likewise.
42219         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
42220         flags argument.
42221
42222         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
42223         tests with quiet NaN input and output.
42224         (acosh_test_data): Likewise.
42225         (asin_test_data): Likewise.
42226         (asinh_test_data): Likewise.
42227         (atan_test_data): Likewise.
42228         (atanh_test_data): Likewise.
42229         (atan2_test_data): Likewise.
42230         (cbrt_test_data): Likewise.
42231         (cos_test_data): Likewise.
42232         (cosh_test_data): Likewise.
42233         (erf_test_data): Likewise.
42234         (erfc_test_data): Likewise.
42235         (exp_test_data): Likewise.
42236         (exp10_test_data): Likewise.
42237         (exp2_test_data): Likewise.
42238         (expm1_test_data): Likewise.
42239         (hypot_test_data): Likewise.
42240         (j0_test_data): Likewise.
42241         (j1_test_data): Likewise.
42242         (jn_test_data): Likewise.
42243         (lgamma_test_data): Likewise.
42244         (log_test_data): Likewise.
42245         (log10_test_data): Likewise.
42246         (log1p_test_data): Likewise.
42247         (log2_test_data): Likewise.
42248         (pow_test_data): Likewise.
42249         (scalb_test_data): Likewise.
42250         (sin_test_data): Likewise.
42251         (sincos_test_data): Likewise.
42252         (sinh_test_data): Likewise.
42253         (tan_test_data): Likewise.
42254         (tanh_test_data): Likewise.
42255         (tgamma_test_data): Likewise.
42256         (y0_test_data): Likewise.
42257         (y1_test_data): Likewise.
42258         (yn_test_data): Likewise.
42259
42260         [BZ #16167]
42261         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
42262         argument being NaN and avoid computations with second argument in
42263         that case.
42264         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
42265         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
42266         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
42267
42268 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
42269
42270         * locale/iso-639.def: Add Chitwani Tharu (the).
42271
42272 2013-11-14  Andreas Schwab  <schwab@suse.de>
42273
42274         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
42275         word instead of empty string.
42276
42277 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42278
42279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
42280         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
42281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
42282         (__fe_nomask_env): Likewise.
42283
42284 2013-11-13  Steve Ellcey  <sellcey@mips.com>
42285
42286         * benchtests/bench-timing.h: Include time.h.
42287
42288 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
42289
42290         [BZ #15997]
42291         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
42292         to 3.4.0 for x32.
42293         * sysdeps/unix/sysv/linux/configure: Regenerated.
42294
42295 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
42296
42297         [BZ #16151]
42298         * stdlib/strtod_l.c (round_and_return): Do not consider
42299         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
42300         exponent one less than half the least subnormal exponent.
42301         * stdlib/test-strtod-round-data: Add more tests.
42302         * stdlib/tst-strtod-round.c (tests): Regenerated.
42303
42304 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42305
42306         [BZ #14143]
42307         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
42308         (__fe_mask_env): Likewise.
42309         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
42310         libm_hidden_proto and add function prototype.
42311         (__fe_mask_env): Add function prototype.
42312         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
42313         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
42314         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
42315         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
42316         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
42317         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
42318
42319 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
42320
42321         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
42322         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
42323
42324 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
42325
42326         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
42327         of htab_find_slot().
42328
42329 2013-11-11  David S. Miller  <davem@davemloft.net>
42330
42331         [BZ #16150]
42332         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
42333         symbol in the non-vis3 case in static builds.
42334         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
42335         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
42336         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
42337         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
42338
42339 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
42340
42341         [BZ #387]
42342         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
42343         it is empty.
42344
42345 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42346
42347         * benchtests/Makefile: Add bench-strtod.
42348         * benchtests/bench-strtod.c: New file: strtod benchtest
42349
42350 2013-11-11  Andreas Schwab  <schwab@suse.de>
42351
42352         [BZ #16153]
42353         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
42354         terminating NUL in key length.
42355
42356 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42357
42358         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
42359         Add artificial ODP entry for vDSO symbol for PPC64.
42360         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
42361         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
42362
42363 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
42364
42365         [BZ #15374]
42366         * nss/getent.c (services_keys): Recognize services starting with digit.
42367
42368 2013-11-06  David S. Miller  <davem@davemloft.net>
42369
42370         [BZ #15985]
42371         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
42372         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
42373
42374 2013-11-06  Will Newton  <will.newton@linaro.org>
42375
42376         * manual/memory.texi (Malloc Examples): Remove register
42377         keyword from examples.
42378
42379 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
42380
42381         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
42382
42383 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
42384
42385         [BZ #6981]
42386         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
42387         depending on [__GCC_IEC_559 > 0].
42388         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
42389         depending on [__GCC_IEC_559_COMPLEX > 0].
42390
42391 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
42392
42393         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
42394         to iso-639.def.
42395
42396 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
42397
42398         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
42399
42400 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
42401
42402         [BZ #16112]
42403         * malloc/malloc (malloc_info): Do not handle first bin as
42404         special case.
42405
42406 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
42407
42408         * locale/iso-639.def: Add Central Nahuatl (nhn).
42409
42410 2013-11-01  Bruno Haible  <bruno@clisp.org>
42411
42412         [BZ #7003]
42413         * manual/math.texi (BSD Random): Specify range upper bound as
42414         in POSIX.
42415
42416 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
42417
42418         * locale/iso-639.def: Add Meadow Mari (mhr).
42419
42420 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
42421
42422         [BZ #14752], [BZ #15763]
42423         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
42424         Validate name.
42425         * rt/tst_shm.c: Add test for escaping directory.
42426
42427 2013-10-31  Andreas Schwab  <schwab@suse.de>
42428
42429         [BZ #15917]
42430         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
42431         followed by 'x' as part of digit sequence.
42432         * stdio-common/tst-sscanf.c (double_tests2): New tests.
42433
42434 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
42435
42436         [BZ #16037]
42437         * configure.ac: allow GNU Make 4.0 and greater.
42438         * configure: Regenerated.
42439
42440 2013-10-30  Will Newton  <will.newton@linaro.org>
42441
42442         [BZ #16038]
42443         * malloc/hooks.c (memalign_check): Limit alignment to the
42444         maximum representable power of two.
42445         * malloc/malloc.c (__libc_memalign): Likewise.
42446         * malloc/tst-memalign.c (do_test): Add test for very
42447         large alignment values.
42448         * malloc/tst-posix_memalign.c (do_test): Likewise.
42449
42450 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
42451
42452         [BZ #11087]
42453         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
42454         (munmap_chunk): Likewise.
42455         (mremap_chunk): Likewise.
42456
42457 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
42458
42459         [BZ #15799]
42460         * stdlib/div.c (div): Remove obsolete code.
42461         * stdlib/ldiv.c (ldiv): Likewise.
42462         * stdlib/lldiv.c (lldiv): Likewise.
42463
42464 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
42465
42466         [BZ #16071]
42467         * nss/nss_files/files-XXX.c (get_contents_ret): New
42468         enumerator.
42469         (get_contents): New function.
42470         (internal_getent): Use it.  Expand size of LINEBUFLEN.
42471
42472 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
42473
42474         * configure.in: Moved to ...
42475         * configure.ac: ... here. Change reference to configure.in
42476         to configure.ac.
42477         * sysdeps/arm/preconfigure.ac: ... here.
42478         configure.in to configure.ac.
42479         * sysdeps/gnu/configure.in: Moved to ...
42480         * sysdeps/gnu/configure.ac: ... here.
42481         * sysdeps/i386/configure.in: Moved to ...
42482         * sysdeps/i386/configure.ac: ... here.
42483         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
42484         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
42485         * sysdeps/mach/configure.in: Moved to ...
42486         * sysdeps/mach/configure.ac: ... here.
42487         * sysdeps/mach/hurd/configure.in: Moved to ...
42488         * sysdeps/mach/hurd/configure.ac: ... here.
42489         * sysdeps/powerpc/configure.in: Moved to ...
42490         * sysdeps/powerpc/configure.ac: ... here.
42491         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
42492         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
42493         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
42494         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
42495         * sysdeps/s390/s390-32/configure.in: Moved to ...
42496         * sysdeps/s390/s390-32/configure.ac: ... here.
42497         * sysdeps/s390/s390-64/configure.in: Moved to ...
42498         * sysdeps/s390/s390-64/configure.ac: ... here.
42499         * sysdeps/sh/configure.in: Moved to ...
42500         * sysdeps/sh/configure.ac: ... here.
42501         * sysdeps/sparc/configure.in: Moved to ...
42502         * sysdeps/sparc/configure.ac: ... here.
42503         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
42504         * sysdeps/unix/sysv/linux/configure.ac: ... here.
42505         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
42506         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
42507         * sysdeps/x86_64/configure.in: Moved to ...
42508         * sysdeps/x86_64/configure.ac: ... here.
42509         * sysdeps/x86_64/preconfigure.in: Moved to ...
42510         * sysdeps/x86_64/preconfigure.ac: ... here.
42511         * aclocal.m4: Change reference to configure.in to configure.ac.
42512         * config.h.in: Likewise.
42513         * manual/install.texi: Likewise.
42514         * manual/maint.texi: Likewise.
42515         * Makefile: Likewise.
42516         * malloc/Makefile: Likewise.
42517         * nscd/Makefile: Likewise.
42518         * Makeconfig: Change reference to configure.in and
42519         preconfigure.in to configure.ac and preconfigure.ac
42520         respectively.
42521         * INSTALL: Regenerated.
42522         * configure: Likewise.
42523         * sysdeps/gnu/configure: Likewise.
42524         * sysdeps/i386/configure: Likewise.
42525         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
42526         * sysdeps/mach/configure: Likewise.
42527         * sysdeps/mach/hurd/configure: Likewise.
42528         * sysdeps/powerpc/configure: Likewise.
42529         * sysdeps/powerpc/powerpc32/configure: Likewise.
42530         * sysdeps/powerpc/powerpc64/configure: Likewise.
42531         * sysdeps/s390/s390-32/configure: Likewise.
42532         * sysdeps/s390/s390-64/configure: Likewise.
42533         * sysdeps/sh/configure: Likewise.
42534         * sysdeps/sparc/configure: Likewise.
42535         * sysdeps/unix/sysv/linux/configure: Likewise.
42536         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
42537         * sysdeps/x86_64/configure: Likewise.
42538         * sysdeps/x86_64/preconfigure: Likewise.
42539
42540 2013-10-29  Andreas Schwab  <schwab@suse.de>
42541
42542         * stdio-common/Makefile (tst-swscanf-ENV): Define.
42543
42544 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
42545
42546         * benchtests/pow-inputs: Add new inputs.
42547
42548         * benchtests/exp-inputs: Add new inputs.
42549
42550         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
42551         conditional check for return value.
42552         (__cos32): Likewise.
42553
42554 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42555
42556         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
42557         to provide a boost for large inputs with word alignment.
42558         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
42559         implementation based on optimized PPC64 strcpy.
42560         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
42561         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
42562         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
42563         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
42564
42565 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42566
42567         [BZ #2801]
42568         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
42569
42570 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42571
42572         [BZ #14876]
42573         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
42574         * time/tst-strptime.c (day_tests): Add testcase.
42575
42576 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
42577
42578         [BZ #14029]
42579         * manual/pattern.texi: Acknowledge that fnmatch can fail.
42580
42581 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
42582
42583         [BZ #16074]
42584         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
42585         MAP_FAILED on error.
42586
42587 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
42588
42589         [BZ #16072]
42590         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
42591         heap for large requests.
42592
42593 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
42594
42595         [BZ #9954]
42596         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
42597         result if the result has no associated interface.
42598         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
42599         interface for all 127.X.Y.Z addresses.
42600
42601 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
42602
42603         * locale/iso-639.def: Add Ligurian (lij)
42604
42605 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
42606
42607         [BZ #15825]
42608         * sunrpc/rpc_main.c: Document rpcgen -5.
42609
42610 2013-10-19  Michael Stahl  <mstahl@redhat.com>
42611
42612         * elf/rtld.c (do_preload): Print the reason why preloading failed.
42613
42614 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42615
42616         [BZ #10278]
42617         * posix/glob.c: Match only directories when trailing slash is present.
42618         * posix/tst-gnuglob.c (my_opendir): Do not open files.
42619         (main): Add testcase.
42620
42621 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
42622
42623         [BZ #15670]
42624         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
42625
42626 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
42627
42628         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
42629         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
42630         AUTH_DES and cindex for FIPS 140-2.
42631         (DES Encryption): Add cindex FIPS 46-3.
42632
42633         * locale/locarchive.h (struct locarhandle): Add fname.
42634         * locale/programs/localedef.c (main): Pass ARGV[remaining]
42635         if an optional argument was specified to --list-archive,
42636         otherwise NULL.
42637         * locale/programs/locarchive.c (show_archive_content): Take new
42638         argument fname and pass it via ah.fname to open_archive.
42639         * locale/programs/localedef.h: Update decl.
42640         (open_archive): If AH->fname is non-null, open that file
42641         rather than the default file name, and don't ignore ENOENT.
42642         (create_archive): Set AH.fname to NULL.
42643         (delete_locales_from_archive): Likewise.
42644         (add_locales_to_archive): Likewise.
42645         * locale/programs/locfile.c (write_all_categories): Likewise.
42646
42647 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
42648             Aldy Hernandez  <aldyh@redhat.com>
42649
42650         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
42651         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
42652         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
42653         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
42654         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
42655         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
42656         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
42657         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
42658         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
42659         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
42660         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
42661         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
42662         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
42663         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
42664         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
42665         Likewise.
42666         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
42667         Likewise.
42668         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
42669         Likewise.
42670         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
42671         Likewise.
42672         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
42673         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
42674         Likewise.
42675         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
42676         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
42677         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
42678         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
42679         Likewise.
42680         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
42681         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
42682         * sysdeps/powerpc/preconfigure: Likewise.
42683         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
42684         Likewise.
42685         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
42686         Replace contents of file by #include of <fenv_libc.h>.
42687         * sysdeps/powerpc/soft-fp/sfp-machine.h
42688         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
42689         and <sys/prctl.h>.
42690         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
42691         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
42692         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
42693         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
42694         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
42695         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
42696         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
42697         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
42698         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
42699         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
42700         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
42701         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
42702         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
42703         Allow copysignl PLT reference to be missing.
42704
42705 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
42706             Joseph Myers  <joseph@codesourcery.com
42707
42708         [BZ #15948]
42709         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
42710         single character.
42711         (add_to_tablewc): Assert sequence of wide characters is nonempty.
42712
42713 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
42714
42715         * elf/tst-tls-dlinfo.c: Don't include tls.h.
42716         * elf/tst-tls1.c: Likewise.
42717         * elf/tst-tls10.h: Likewise.
42718         * elf/tst-tls14.c: Likewise.
42719         * elf/tst-tls2.c: Likewise.
42720         * elf/tst-tls3.c: Likewise.
42721         * elf/tst-tls4.c: Likewise.
42722         * elf/tst-tls5.c: Likewise.
42723         * elf/tst-tls6.c: Likewise.
42724         * elf/tst-tls7.c: Likewise.
42725         * elf/tst-tls8.c: Likewise.
42726         * elf/tst-tls9.c: Likewise.
42727         * elf/tst-tlsmod1.c: Likewise.
42728         * elf/tst-tlsmod13.c: Likewise.
42729         * elf/tst-tlsmod13a.c: Likewise.
42730         * elf/tst-tlsmod14a.c: Likewise.
42731         * elf/tst-tlsmod16a.c: Likewise.
42732         * elf/tst-tlsmod16b.c: Likewise.
42733         * elf/tst-tlsmod2.c: Likewise.
42734         * elf/tst-tlsmod3.c: Likewise.
42735         * elf/tst-tlsmod4.c: Likewise.
42736         * elf/tst-tlsmod5.c: Likewise.
42737         * elf/tst-tlsmod6.c: Likewise.
42738
42739 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
42740
42741         [BZ #12486]
42742         * malloc/malloc.c: remove checks for statistics.
42743
42744 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42745
42746         [BZ #15277]
42747         * inet/inet_net.c (inet_network): Detect additional invalid strings.
42748         * inet/tst-network.c: Add testcase.
42749
42750 2013-10-17  Andreas Schwab  <schwab@suse.de>
42751
42752         [BZ #15218]
42753         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
42754         to determine canonical name.
42755
42756 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
42757
42758         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
42759         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
42760         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42761         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
42762         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42763         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
42764         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
42765         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
42766         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
42767         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
42768         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
42769         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42770         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
42771         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
42772         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
42773         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
42774         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42775         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
42776         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
42777         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
42778         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42779         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42780         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
42781         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
42782         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
42783         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
42784         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
42785         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
42786         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
42787         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
42788         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
42789         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
42790         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
42791         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
42792         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
42793         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
42794         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
42795         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
42796         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
42797         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
42798         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
42799         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
42800         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
42801         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
42802         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
42803         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
42804         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
42805         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
42806         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
42807         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
42808         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
42809         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
42810         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
42811         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
42812         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42813         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
42814         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42815         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
42816
42817 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
42818
42819         [BZ #16041]
42820         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
42821         make result into a quiet NaN.
42822
42823 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
42824
42825         * soft-fp/adddf3.c: Fix horizontal whitespace.
42826         * soft-fp/addsf3.c: Likewise.
42827         * soft-fp/addtf3.c: Likewise.
42828         * soft-fp/divdf3.c: Likewise.
42829         * soft-fp/divsf3.c: Likewise.
42830         * soft-fp/divtf3.c: Likewise.
42831         * soft-fp/double.h: Likewise.
42832         * soft-fp/eqdf2.c: Likewise.
42833         * soft-fp/eqsf2.c: Likewise.
42834         * soft-fp/eqtf2.c: Likewise.
42835         * soft-fp/extenddftf2.c: Likewise.
42836         * soft-fp/extended.h: Likewise.
42837         * soft-fp/extendsfdf2.c: Likewise.
42838         * soft-fp/extendsftf2.c: Likewise.
42839         * soft-fp/extendxftf2.c: Likewise.
42840         * soft-fp/fixdfdi.c: Likewise.
42841         * soft-fp/fixdfsi.c: Likewise.
42842         * soft-fp/fixdfti.c: Likewise.
42843         * soft-fp/fixsfdi.c: Likewise.
42844         * soft-fp/fixsfsi.c: Likewise.
42845         * soft-fp/fixsfti.c: Likewise.
42846         * soft-fp/fixtfdi.c: Likewise.
42847         * soft-fp/fixtfsi.c: Likewise.
42848         * soft-fp/fixtfti.c: Likewise.
42849         * soft-fp/fixunsdfdi.c: Likewise.
42850         * soft-fp/fixunsdfsi.c: Likewise.
42851         * soft-fp/fixunsdfti.c: Likewise.
42852         * soft-fp/fixunssfdi.c: Likewise.
42853         * soft-fp/fixunssfsi.c: Likewise.
42854         * soft-fp/fixunssfti.c: Likewise.
42855         * soft-fp/fixunstfdi.c: Likewise.
42856         * soft-fp/fixunstfsi.c: Likewise.
42857         * soft-fp/fixunstfti.c: Likewise.
42858         * soft-fp/floatdidf.c: Likewise.
42859         * soft-fp/floatdisf.c: Likewise.
42860         * soft-fp/floatditf.c: Likewise.
42861         * soft-fp/floatsidf.c: Likewise.
42862         * soft-fp/floatsisf.c: Likewise.
42863         * soft-fp/floatsitf.c: Likewise.
42864         * soft-fp/floattidf.c: Likewise.
42865         * soft-fp/floattisf.c: Likewise.
42866         * soft-fp/floattitf.c: Likewise.
42867         * soft-fp/floatundidf.c: Likewise.
42868         * soft-fp/floatundisf.c: Likewise.
42869         * soft-fp/floatunditf.c: Likewise.
42870         * soft-fp/floatunsidf.c: Likewise.
42871         * soft-fp/floatunsisf.c: Likewise.
42872         * soft-fp/floatunsitf.c: Likewise.
42873         * soft-fp/floatuntidf.c: Likewise.
42874         * soft-fp/floatuntisf.c: Likewise.
42875         * soft-fp/floatuntitf.c: Likewise.
42876         * soft-fp/fmadf4.c: Likewise.
42877         * soft-fp/fmasf4.c: Likewise.
42878         * soft-fp/fmatf4.c: Likewise.
42879         * soft-fp/gedf2.c: Likewise.
42880         * soft-fp/gesf2.c: Likewise.
42881         * soft-fp/getf2.c: Likewise.
42882         * soft-fp/ledf2.c: Likewise.
42883         * soft-fp/lesf2.c: Likewise.
42884         * soft-fp/letf2.c: Likewise.
42885         * soft-fp/muldf3.c: Likewise.
42886         * soft-fp/mulsf3.c: Likewise.
42887         * soft-fp/multf3.c: Likewise.
42888         * soft-fp/negdf2.c: Likewise.
42889         * soft-fp/negsf2.c: Likewise.
42890         * soft-fp/negtf2.c: Likewise.
42891         * soft-fp/op-1.h: Likewise.
42892         * soft-fp/op-2.h: Likewise.
42893         * soft-fp/op-4.h: Likewise.
42894         * soft-fp/op-8.h: Likewise.
42895         * soft-fp/op-common.h: Likewise.
42896         * soft-fp/quad.h: Likewise.
42897         * soft-fp/single.h: Likewise.
42898         * soft-fp/soft-fp.h: Likewise.
42899         * soft-fp/sqrtdf2.c: Likewise.
42900         * soft-fp/sqrtsf2.c: Likewise.
42901         * soft-fp/sqrttf2.c: Likewise.
42902         * soft-fp/subdf3.c: Likewise.
42903         * soft-fp/subsf3.c: Likewise.
42904         * soft-fp/subtf3.c: Likewise.
42905         * soft-fp/truncdfsf2.c: Likewise.
42906         * soft-fp/trunctfdf2.c: Likewise.
42907         * soft-fp/trunctfsf2.c: Likewise.
42908         * soft-fp/trunctfxf2.c: Likewise.
42909         * soft-fp/unorddf2.c: Likewise.
42910         * soft-fp/unordsf2.c: Likewise.
42911         * soft-fp/unordtf2.c: Likewise.
42912
42913 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
42914
42915         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
42916         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
42917
42918 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
42919
42920         * elf/dl-libc.c: Clear initfini list after freeing.
42921
42922 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
42923
42924         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
42925         * soft-fp/addsf3.c: Likewise.
42926         * soft-fp/addtf3.c: Likewise.
42927         * soft-fp/divdf3.c: Likewise.
42928         * soft-fp/divsf3.c: Likewise.
42929         * soft-fp/divtf3.c: Likewise.
42930         * soft-fp/double.h: Likewise.
42931         * soft-fp/eqdf2.c: Likewise.
42932         * soft-fp/eqsf2.c: Likewise.
42933         * soft-fp/eqtf2.c: Likewise.
42934         * soft-fp/extenddftf2.c: Likewise.
42935         * soft-fp/extended.h: Likewise.
42936         * soft-fp/extendsfdf2.c: Likewise.
42937         * soft-fp/extendsftf2.c: Likewise.
42938         * soft-fp/extendxftf2.c: Likewise.
42939         * soft-fp/fixdfdi.c: Likewise.
42940         * soft-fp/fixdfsi.c: Likewise.
42941         * soft-fp/fixdfti.c: Likewise.
42942         * soft-fp/fixsfdi.c: Likewise.
42943         * soft-fp/fixsfsi.c: Likewise.
42944         * soft-fp/fixsfti.c: Likewise.
42945         * soft-fp/fixtfdi.c: Likewise.
42946         * soft-fp/fixtfsi.c: Likewise.
42947         * soft-fp/fixtfti.c: Likewise.
42948         * soft-fp/fixunsdfdi.c: Likewise.
42949         * soft-fp/fixunsdfsi.c: Likewise.
42950         * soft-fp/fixunsdfti.c: Likewise.
42951         * soft-fp/fixunssfdi.c: Likewise.
42952         * soft-fp/fixunssfsi.c: Likewise.
42953         * soft-fp/fixunssfti.c: Likewise.
42954         * soft-fp/fixunstfdi.c: Likewise.
42955         * soft-fp/fixunstfsi.c: Likewise.
42956         * soft-fp/fixunstfti.c: Likewise.
42957         * soft-fp/floatdidf.c: Likewise.
42958         * soft-fp/floatdisf.c: Likewise.
42959         * soft-fp/floatditf.c: Likewise.
42960         * soft-fp/floatsidf.c: Likewise.
42961         * soft-fp/floatsisf.c: Likewise.
42962         * soft-fp/floatsitf.c: Likewise.
42963         * soft-fp/floattidf.c: Likewise.
42964         * soft-fp/floattisf.c: Likewise.
42965         * soft-fp/floattitf.c: Likewise.
42966         * soft-fp/floatundidf.c: Likewise.
42967         * soft-fp/floatundisf.c: Likewise.
42968         * soft-fp/floatunsidf.c: Likewise.
42969         * soft-fp/floatunsisf.c: Likewise.
42970         * soft-fp/floatuntidf.c: Likewise.
42971         * soft-fp/floatuntisf.c: Likewise.
42972         * soft-fp/floatuntitf.c: Likewise.
42973         * soft-fp/fmadf4.c: Likewise.
42974         * soft-fp/fmasf4.c: Likewise.
42975         * soft-fp/fmatf4.c: Likewise.
42976         * soft-fp/gedf2.c: Likewise.
42977         * soft-fp/gesf2.c: Likewise.
42978         * soft-fp/getf2.c: Likewise.
42979         * soft-fp/ledf2.c: Likewise.
42980         * soft-fp/lesf2.c: Likewise.
42981         * soft-fp/letf2.c: Likewise.
42982         * soft-fp/muldf3.c: Likewise.
42983         * soft-fp/mulsf3.c: Likewise.
42984         * soft-fp/multf3.c: Likewise.
42985         * soft-fp/negdf2.c: Likewise.
42986         * soft-fp/negsf2.c: Likewise.
42987         * soft-fp/negtf2.c: Likewise.
42988         * soft-fp/op-1.h: Likewise.
42989         * soft-fp/op-2.h: Likewise.
42990         * soft-fp/op-4.h: Likewise.
42991         * soft-fp/op-8.h: Likewise.
42992         * soft-fp/op-common.h: Likewise.
42993         * soft-fp/quad.h: Likewise.
42994         * soft-fp/single.h: Likewise.
42995         * soft-fp/soft-fp.h: Likewise.
42996         * soft-fp/sqrtdf2.c: Likewise.
42997         * soft-fp/sqrtsf2.c: Likewise.
42998         * soft-fp/sqrttf2.c: Likewise.
42999         * soft-fp/subdf3.c: Likewise.
43000         * soft-fp/subsf3.c: Likewise.
43001         * soft-fp/subtf3.c: Likewise.
43002         * soft-fp/truncdfsf2.c: Likewise.
43003         * soft-fp/trunctfdf2.c: Likewise.
43004         * soft-fp/trunctfsf2.c: Likewise.
43005         * soft-fp/trunctfxf2.c: Likewise.
43006         * soft-fp/unorddf2.c: Likewise.
43007         * soft-fp/unordsf2.c: Likewise.
43008         * soft-fp/unordtf2.c: Likewise.
43009
43010 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
43011
43012         [BZ #15672]
43013         * misc/error.c (error_tail): Fix possible buffer overflow.
43014
43015 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
43016
43017         [BZ #13028]
43018         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
43019         address.
43020
43021 2013-10-14  P. J. McDermott  <pj@pehjota.net>
43022
43023         [BZ #832]
43024         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
43025         testing pipefail option.
43026
43027 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
43028
43029         * soft-fp/double.h: Indent preprocessor directives inside #if.
43030         * soft-fp/extended.h: Likewise.
43031         * soft-fp/op-2.h: Likewise.
43032         * soft-fp/op-4.h: Likewise.
43033         * soft-fp/op-common.h: Likewise.
43034         * soft-fp/quad.h: Likewise.
43035         * soft-fp/single.h: Likewise.
43036         * soft-fp/soft-fp.h: Likewise.
43037
43038 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
43039
43040         * iconv/iconv_prog.c: Fix typos.
43041         * stdio-common/psiginfo-data.h: Likewise.
43042
43043 2013-10-12   Reuben Thomas <rrt@sc3d.org>
43044
43045         [BZ #15764]
43046         * locale/setlocale.c: Fix typo.
43047
43048 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
43049
43050         [BZ #16036]
43051         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
43052         signaling NaN arguments.
43053         * soft-fp/unordsf2.c (__unordsf2): Likewise.
43054         * soft-fp/unordtf2.c (__unordtf2): Likewise.
43055
43056         [BZ #14910]
43057         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
43058         unordered operands.
43059         * soft-fp/gesf2.c (__gesf2): Likewise.
43060         * soft-fp/getf2.c (__getf2): Likewise.
43061         * soft-fp/ledf2.c (__ledf2): Likewise.
43062         * soft-fp/lesf2.c (__lesf2): Likewise.
43063         * soft-fp/letf2.c (__letf2): Likewise.
43064
43065         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
43066         * soft-fp/eqsf2.c (__eqsf2): Likewise.
43067         * soft-fp/eqtf2.c (__eqtf2): Likewise.
43068         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
43069         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
43070         * soft-fp/fixdfti.c (__fixdfti): Likewise.
43071         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
43072         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
43073         * soft-fp/fixsfti.c (__fixsfti): Likewise.
43074         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
43075         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
43076         * soft-fp/fixtfti.c (__fixtfti): Likewise.
43077         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
43078         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
43079         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
43080         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
43081         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
43082         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
43083         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
43084         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
43085         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
43086         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
43087         * soft-fp/floatdisf.c (__floatdisf): Likewise.
43088         * soft-fp/floatsisf.c (__floatsisf): Likewise.
43089         * soft-fp/floattidf.c (__floattidf): Likewise.
43090         * soft-fp/floattisf.c (__floattisf): Likewise.
43091         * soft-fp/floattitf.c (__floattitf): Likewise.
43092         * soft-fp/floatundidf.c (__floatundidf): Likewise.
43093         * soft-fp/floatundisf.c (__floatundisf): Likewise.
43094         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
43095         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
43096         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
43097         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
43098         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
43099         * soft-fp/gesf2.c (__gesf2): Likewise.
43100         * soft-fp/getf2.c (__getf2): Likewise.
43101         * soft-fp/ledf2.c (__ledf2): Likewise.
43102         * soft-fp/lesf2.c (__lesf2): Likewise.
43103         * soft-fp/letf2.c (__letf2): Likewise.
43104
43105         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
43106         Undefine and redefine.
43107         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
43108         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
43109         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
43110         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
43111         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43112         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
43113         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43114         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
43115         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43116         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
43117         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43118         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
43119         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43120         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
43121         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
43122
43123         [BZ #16032]
43124         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
43125         without decrementing exponent if mantissa >= that for the
43126         denominator, not >.
43127         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
43128         denominator, not >.  Decrement exponent in < case instead of
43129         incrementing in >= case.
43130         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
43131         without decrementing exponent if mantissa >= that for the
43132         denominator, not >.
43133
43134         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
43135         computing saturated result for unsigned overflow.
43136
43137 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
43138             Jeff Law  <law@redhat.com>
43139
43140         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
43141         (atan2Mp): Add systemtap probe marker.
43142         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
43143         (__ieee754_log): Add systemtap probe marker.
43144         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
43145         (atanMp): Add systemtap probe marker.
43146         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
43147         (tanMp): Add systemtap probe marker.
43148         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
43149         (__slowexp): Add systemtap probe marker.
43150         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
43151         (__slowpow): Add systemtap probe marker.
43152         * manual/probes.texi: Document probes.
43153
43154 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
43155
43156         [BZ #15362]
43157         * libio/fileops.c (_IO_new_file_write): Return count of bytes
43158         written.
43159         (_IO_new_file_xsputn): Don't return EOF if nothing has been
43160         written.
43161         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
43162         written to buffer but not flushed.
43163         * libio/iofwrite_u.c:  Likewise.
43164         * libio/iopadn.c:  Return bytes returned even if EOF was
43165         encountered.
43166         * libio/iowpadn.c:  Likewise.
43167         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
43168         if _IO_padn does not write the whole buffer.
43169         [!COMPILE_WPRINTF] (PAD): Likewise.
43170
43171 2013-10-10  David S. Miller  <davem@davemloft.net>
43172
43173         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
43174         directory block.
43175
43176 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
43177
43178         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
43179         instead of FSF address.
43180         * soft-fp/fixdfti.c: Likewise.
43181         * soft-fp/fixsfti.c: Likewise.
43182         * soft-fp/fixtfti.c: Likewise.
43183         * soft-fp/fixunsdfti.c: Likewise.
43184         * soft-fp/fixunssfti.c: Likewise.
43185         * soft-fp/fixunstfti.c: Likewise.
43186         * soft-fp/floattidf.c: Likewise.
43187         * soft-fp/floattisf.c: Likewise.
43188         * soft-fp/floattitf.c: Likewise.
43189         * soft-fp/floatuntidf.c: Likewise.
43190         * soft-fp/floatuntisf.c: Likewise.
43191         * soft-fp/floatuntitf.c: Likewise.
43192         * soft-fp/trunctfxf2.c: Likewise.
43193
43194         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
43195         * soft-fp/fixdfti.c: Likewise.
43196         * soft-fp/fixsfti.c: Likewise.
43197         * soft-fp/fixtfti.c: Likewise.
43198         * soft-fp/fixunsdfti.c: Likewise.
43199         * soft-fp/fixunssfti.c: Likewise.
43200         * soft-fp/fixunstfti.c: Likewise.
43201         * soft-fp/floattidf.c: Likewise.
43202         * soft-fp/floattisf.c: Likewise.
43203         * soft-fp/floattitf.c: Likewise.
43204         * soft-fp/floatuntidf.c: Likewise.
43205         * soft-fp/floatuntisf.c: Likewise.
43206         * soft-fp/floatuntitf.c: Likewise.
43207         * soft-fp/trunctfxf2.c: Likewise.
43208
43209 2013-10-10  David S. Miller  <davem@davemloft.net>
43210
43211         * sysdeps/sparc/fpu/libm-test-ulps: Update.
43212
43213 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
43214
43215         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
43216         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
43217         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
43218         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
43219         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
43220         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
43221         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
43222
43223         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
43224         for NaNs before doing comparisons on argument.
43225         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
43226         Likewise.
43227
43228 2013-10-10  Will Newton  <will.newton@linaro.org>
43229
43230         * malloc/hooks.c (memalign_check): Ensure the value of bytes
43231         passed to _int_memalign does not overflow.
43232
43233 2013-10-10  Torvald Riegel  <triegel@redhat.com>
43234
43235         * scripts/bench.pl: Add include-sources directive.
43236         * benchtests/README: Update documentation.
43237
43238 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
43239
43240         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
43241         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
43242         instead of FP_INIT_ROUNDMODE.
43243         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
43244         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
43245
43246         [BZ #16034]
43247         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
43248         copy class of input value.
43249         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
43250         not handle exceptions.
43251         * soft-fp/negsf2.c (__negsf2): Likewise.
43252         * soft-fp/negtf2.c (__negtf2): Likewise.
43253         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
43254
43255 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
43256
43257         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
43258         semicolon.  From Linux kernel.
43259
43260 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
43261
43262         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
43263
43264 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
43265
43266         [BZ #156]
43267         * manual/socket.texi: Added statement about buffer
43268         for gethostbyname2_r.
43269
43270 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
43271
43272         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
43273         Use .p2align directive instead, throughout.
43274         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
43275         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
43276         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
43277         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
43278         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
43279         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
43280         * sysdeps/x86_64/strchr.S: Likewise.
43281         * sysdeps/x86_64/strrchr.S: Likewise.
43282
43283 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
43284
43285         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
43286
43287         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
43288
43289         * sysdeps/generic/math_private.h (__mpsin1): Remove
43290         declaration.
43291         (__mpcos1): Likewise.
43292         (__mpsin): New argument __range_reduce.
43293         (__mpcos): Likewise.
43294         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
43295         (slow): Use __mpsin and __mpcos.
43296         (slow1): Likewise.
43297         (slow2): Likewise.
43298         (sloww): Likewise.
43299         (sloww1): Likewise.
43300         (sloww2): Likewise.
43301         (bsloww): Likewise.
43302         (bsloww1): Likewise.
43303         (bsloww2): Likewise.
43304         (cslow2): Likewise.
43305         (csloww): Likewise.
43306         (csloww1): Likewise.
43307         (csloww2): Likewise.
43308         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
43309         range_reduce.  Merge in __mpsin1.
43310         (__mpcos): Likewise.
43311         (__mpsin1): Remove.
43312         (__mpcos1): Likewise.
43313
43314 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
43315
43316         * locale/loadlocale.c (_nl_intern_locale_data): Use
43317         LOCFILE_ALIGNED_P.
43318         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
43319         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
43320         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
43321         obstack data is appropriately aligned.
43322         (obstack_int32_grow_fast): Likewise.
43323         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
43324         * locale/programs/locfile.c (add_locale_uint32): Likewise.
43325         (add_locale_uint32_array): Likewise.
43326
43327 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
43328
43329         * benchtests/Makefile: Remove ARGLIST and RET variables.
43330         ($(objpfx)bench-%.c): Pass only function name to the script.
43331         * benchtests/README: Update documentation.
43332         * benchtests/acos-inputs: Add new directives.
43333         * benchtests/acosh-inputs: Likewise.
43334         * benchtests/asin-inputs: Likewise.
43335         * benchtests/asinh-inputs: Likewise.
43336         * benchtests/atan-inputs: Likewise.
43337         * benchtests/atanh-inputs: Likewise.
43338         * benchtests/cos-inputs: Likewise.
43339         * benchtests/cosh-inputs: Likewise.
43340         * benchtests/exp-inputs: Likewise.
43341         * benchtests/log-inputs: Likewise.
43342         * benchtests/pow-inputs: Likewise.
43343         * benchtests/rint-inputs: Likewise.
43344         * benchtests/sin-inputs: Likewise.
43345         * benchtests/sinh-inputs: Likewise.
43346         * benchtests/tan-inputs: Likewise.
43347         * benchtests/tanh-inputs: Likewise.
43348         * scripts/bench.pl: Add support for new directives.
43349
43350 2013-10-07  Alan Modra  <amodra@gmail.com>
43351
43352         * README: Fix careless merge.
43353
43354 2013-10-05  Alan Modra  <amodra@gmail.com>
43355
43356         * NEWS: Mention powerpc64le support and bugs fixed.
43357         * README: Both big-endian and little-endian powerpc64 supported.
43358
43359 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
43360
43361         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
43362         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
43363         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
43364         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
43365
43366 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
43367
43368         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
43369         match prototype.
43370
43371 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
43372
43373         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
43374         Move -mhard-float appending from
43375         ports/sysdeps/powerpc/powerpc32/Makefile.
43376         [$(with-fp) = yes] (ASFLAGS): Likewise.
43377         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
43378         * sysdeps/powerpc/nofpu: Move directory from
43379         ports/sysdeps/powerpc/nofpu.
43380         * sysdeps/powerpc/soft-fp: Move directory from
43381         ports/sysdeps/powerpc/soft-fp.
43382         * sysdeps/powerpc/powerpc32/405: Move directory from
43383         ports/sysdeps/powerpc/powerpc32/405.
43384         * sysdeps/powerpc/powerpc32/440: Move directory from
43385         ports/sysdeps/powerpc/powerpc32/440.
43386         * sysdeps/powerpc/powerpc32/464: Move directory from
43387         ports/sysdeps/powerpc/powerpc32/464.
43388         * sysdeps/powerpc/powerpc32/476: Move directory from
43389         ports/sysdeps/powerpc/powerpc32/476.
43390         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
43391         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
43392         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
43393         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
43394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
43395         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
43396         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
43397         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
43398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
43399         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
43400         * README: Update for powerpc-*-linux-gnu software floating point
43401         support in libc.
43402
43403         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
43404         case to powerpc/powerpc32*.
43405         * sysdeps/unix/sysv/linux/configure: Regenerated.
43406
43407         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
43408         (_FPU_MASK_OM): Define as 0x04.
43409         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
43410         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
43411         0x00c10080.
43412         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
43413         0x0000003c.
43414         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
43415
43416         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
43417         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
43418         getcontext_e500.
43419         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
43420         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
43421         setcontext_e500.
43422         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
43423         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
43424         and setcontext_e500.
43425
43426 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
43427
43428         * locale/iso-3166.def: Update iso-1366.def and related occurrences
43429
43430 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
43431
43432         * manual/threads.texi (Default Thread Attributes): Fix typo.
43433
43434 2013-10-04  Will Newton  <will.newton@linaro.org>
43435
43436         * malloc/Makefile: Add tst-memalign.
43437         * malloc/tst-memalign.c: New file.
43438
43439         * malloc/tst-posix_memalign.c: Add comments.
43440         (do_test): Add comments and call free on all potentially
43441         allocated pointers. Add space after cast.
43442
43443         * malloc/tst-pvalloc.c: Add comments.
43444         (do_test): Add comments and call free on all potentially
43445         allocated pointers. Remove duplicate check for NULL pointer.
43446         Add space after cast.
43447
43448         * malloc/tst-valloc.c: Add comments.
43449         (do_test): Add comments and call free on all potentially
43450         allocated pointers. Remove duplicate check for NULL pointer.
43451         Add space after cast.
43452
43453 2013-10-04  Alan Modra  <amodra@gmail.com>
43454
43455         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
43456         Use stdint types in rather than __attribute__((mode())).
43457         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43458
43459 2013-10-04  Alan Modra  <amodra@gmail.com>
43460
43461         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
43462         Correct handling of unaligned relocs for little-endian.
43463         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
43464
43465 2013-10-04  Alan Modra  <amodra@gmail.com>
43466
43467         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
43468         * configure: Regenerate.
43469         * nptl/shlib-versions: Powerpc*le starts at 2.18.
43470         * shlib-versions: Likewise.
43471
43472 2013-10-04  Alan Modra  <amodra@gmail.com>
43473
43474         * string/tester.c (test_memrchr): Increment reported test cycle.
43475
43476 2013-10-04  Alan Modra  <amodra@gmail.com>
43477
43478         * string/test-memcpy.c (do_one_test): When reporting errors, print
43479         string address and don't overrun end of string.
43480
43481 2013-10-04  Alan Modra  <amodra@gmail.com>
43482
43483         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
43484         insrdi.  Make better use of reg selection to speed exit slightly.
43485         Schedule entry path a little better.  Remove useless "are we done"
43486         checks on entry to main loop.  Handle wrapping around zero address.
43487         Correct main loop count.  Handle single left-over word from main
43488         loop inline rather than by using loop_small.  Remove extra word
43489         case in loop_small caused by wrong loop count.  Add little-endian
43490         support.
43491         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
43492         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
43493         cache hint.
43494         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
43495         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
43496         support.  Avoid rlwimi.
43497         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
43498
43499 2013-10-04  Alan Modra  <amodra@gmail.com>
43500
43501         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
43502         insrdi.  Formatting.
43503         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
43504         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
43505         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
43506         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
43507         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
43508         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
43509
43510 2013-10-04  Alan Modra  <amodra@gmail.com>
43511
43512         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
43513         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
43514         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
43515         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
43516         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
43517         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
43518         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
43519         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
43520         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
43521         use of regs.  Use power7 mtocrf.  Tidy function tails.
43522
43523 2013-10-04  Alan Modra  <amodra@gmail.com>
43524
43525         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
43526         Formatting.  Consistently use rXXX register defines or rN defines.
43527         Use early exit labels that avoid restoring unused non-volatile regs.
43528         Make cr field use more consistent with rWORDn compares.  Rename
43529         regs used as shift registers for unaligned loop, using rN defines
43530         for short lifetime/multiple use regs.
43531         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
43532         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
43533         addi 1,1,64 to pop stack frame.  Simplify return value code.
43534         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
43535
43536 2013-10-04  Alan Modra  <amodra@gmail.com>
43537
43538         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
43539         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
43540         rather than rlwimi.
43541         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
43542         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
43543         little-endian support.  Correct typos.
43544         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
43545         rather than rlwimi.
43546         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
43547         in loop and entry code to keep "and." results.
43548         (strchr): Add little-endian support.  Comment.  Move cntlzd
43549         earlier in tail.
43550         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
43551
43552 2013-10-04  Alan Modra  <amodra@gmail.com>
43553
43554         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
43555         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
43556         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
43557         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
43558
43559 2013-10-04  Alan Modra  <amodra@gmail.com>
43560
43561         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
43562         (rTMP): Define as r11.
43563         (strcmp): Add little-endian support.  Optimise tail.
43564         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
43565         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
43566         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
43567         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
43568         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
43569         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
43570         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
43571
43572 2013-10-04  Alan Modra  <amodra@gmail.com>
43573
43574         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
43575         little-endian support.  Remove unnecessary "are we done" tests.
43576         Handle "s" wrapping around zero and extremely large "size".
43577         Correct main loop count.  Handle single left-over word from main
43578         loop inline rather than by using small_loop.  Correct comments.
43579         Delete "zero" tail, use "end_max" instead.
43580         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
43581
43582 2013-10-04  Alan Modra  <amodra@gmail.com>
43583
43584         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
43585         support.  Don't branch over align.
43586         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
43587         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
43588         support.  Rearrange tmp reg use to suit.  Comment.
43589         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
43590
43591 2013-10-04  Alan Modra  <amodra@gmail.com>
43592
43593         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
43594
43595 2013-10-04  Alan Modra  <amodra@gmail.com>
43596
43597         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
43598         conditional form of branch and link when obtaining pc.
43599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
43600
43601 2013-10-04  Alan Modra  <amodra@gmail.com>
43602
43603         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
43604         HIWORD/LOWORD.
43605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
43606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
43607
43608 2013-10-04  Alan Modra  <amodra@gmail.com>
43609
43610         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
43611         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
43612         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
43613         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
43614         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
43615         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
43616         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
43617         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
43618         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
43619         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
43620
43621 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43622             Alistair Popple <alistair@ozlabs.au.ibm.com>
43623             Alan Modra <amodra@gmail.com>
43624
43625         [BZ #15723]
43626         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
43627         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
43628         _dl_hwcap access for little-endian.
43629         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
43630         destroy vmx regs when saving unaligned.
43631         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
43632         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
43633         destroy vmx regs when saving unaligned.
43634
43635 2013-10-04  Alan Modra  <amodra@gmail.com>
43636
43637         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
43638         Don't use a union to pack hi/low value.
43639
43640 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43641
43642         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
43643         for little-endian.
43644         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
43645         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
43646         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
43647         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
43648         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
43649
43650 2013-10-04  Alan Modra  <amodra@gmail.com>
43651
43652         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
43653         constants to usual value for .cst8 section, and remove redundant
43654         high address load.
43655         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
43656         constant for 0x1p52.  Load little-endian words of double from
43657         correct stack offsets.
43658
43659 2013-10-04  Alan Modra  <amodra@gmail.com>
43660
43661         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
43662         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
43663         words of double from correct stack offsets.
43664         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
43665         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
43666         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
43667         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
43668         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
43669         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
43670         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
43671         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
43672         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
43673         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
43674         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
43675         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
43676         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
43677         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
43678         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
43679         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
43680         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
43681
43682 2013-10-04  Alan Modra  <amodra@gmail.com>
43683
43684         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
43685         64-bit int/double union.
43686         (_FPU_SETCW): Likewise.
43687         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
43688         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
43689
43690 2013-10-04  Alan Modra  <amodra@gmail.com>
43691
43692         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
43693         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
43694
43695 2013-10-04  Alan Modra  <amodra@gmail.com>
43696
43697         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
43698         use vector int constants.
43699         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
43700
43701 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43702
43703         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
43704         array with long long.
43705         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
43706         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
43707         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
43708         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
43709         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
43710         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
43711         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
43712         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
43713         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
43714         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
43715         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
43716         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
43717         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
43718
43719 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
43720
43721         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
43722         (__signbit): Likewise.  Correct for little-endian.
43723         (__signbitl): Call __signbit.
43724         (lrint): Correct for little-endian.
43725         (lrintf): Call lrint.
43726
43727 2013-10-04  Alan Modra  <amodra@gmail.com>
43728
43729         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
43730         union 32-bit int array member with 64-bit int array.
43731         (t515, tm256): Double rather than long double.
43732         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
43733
43734 2013-10-04  Alan Modra  <amodra@gmail.com>
43735
43736         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
43737         Delete.
43738         (IEEE854_LONG_DOUBLE_BIAS): Delete.
43739         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
43740         version of math_ldbl.h.
43741
43742 2013-10-04  Alan Modra  <amodra@gmail.com>
43743
43744         [BZ #15734], [BZ #15735]
43745         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
43746         all uses of ieee875 long double macros and unions.  Simplify test
43747         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
43748         ldbl_extract_mantissa value for ix,iy exponents.  Properly
43749         normalize after ldbl_extract_mantissa, and don't add hidden bit
43750         already handled.  Don't treat low word of ieee854 mantissa like
43751         low word of IBM long double and mask off bit when testing for
43752         zero.
43753         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
43754         all uses of ieee875 long double macros and unions.  Simplify tests
43755         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
43756         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
43757         two1022, instead use their values.  Recognise that tests for large
43758         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
43759         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
43760         Rewrite all uses of ieee875 long double macros and unions.  Simplify
43761         test for 0.0L and nan.  Correct negation.
43762         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
43763         ieee875 long double macros and unions.  Correct output for large
43764         magnitude x.  Correct absolute value calculation.
43765         (__erfcl): Likewise.
43766         * math/libm-test.inc: Add tests for errors discovered in IBM long
43767         double versions of fmodl, remainderl, erfl and erfcl.
43768
43769 2013-10-04  Alan Modra  <amodra@gmail.com>
43770
43771         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
43772         all uses of ieee854 long double macros and unions.  Simplify tests
43773         for long doubles that are fully specified by the high double.
43774         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
43775         Likewise.
43776         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
43777         Remove dead code too.
43778         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
43779         (__ieee754_ynl): Likewise.
43780         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
43781         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
43782         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
43783         Remove dead code too.
43784         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
43785         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
43786         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
43787         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
43788         Simplify.
43789         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
43790         Simplify.
43791         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
43792         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
43793         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
43794         Comment on variable precision.
43795         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
43796         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
43797         Likewise.
43798         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
43799         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
43800         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
43801         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
43802         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
43803
43804 2013-10-04  Alan Modra  <amodra@gmail.com>
43805
43806         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
43807         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
43808         all uses of ieee854 long double macros and unions.
43809         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
43810         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
43811         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
43812         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
43813         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
43814         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
43815         Likewise.
43816         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
43817         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
43818         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
43819         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
43820         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
43821         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
43822         Simplify sign and nan test too.
43823         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
43824         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
43825         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
43826         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
43827         Likewise.
43828         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
43829         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
43830         Likewise.
43831         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
43832         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
43833         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
43834         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
43835         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
43836         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
43837
43838 2013-10-04  Alan Modra  <amodra@gmail.com>
43839
43840         * stdio-common/printf_size.c (__printf_size): Don't use
43841         union ieee854_long_double in fpnum union.
43842         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
43843         signbit macro to retrieve sign from long double.
43844         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
43845         retrieve sign from long double.
43846         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
43847         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
43848         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
43849         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
43850         * math/test-misc.c (main): Don't use union ieee854_long_double.
43851
43852 2013-10-04  Alan Modra  <amodra@gmail.com>
43853
43854         [BZ #15680]
43855         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
43856         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
43857         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
43858         calculation.  Remove unnecessary test for denormal exponent.
43859         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
43860         Correct handling of denormals.  Avoid undefined shift behaviour.
43861         Correct normalisation of low mantissa when low double is denormal.
43862         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
43863         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
43864         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
43865         Correct normalisation of low mantissa.  Test for overflow of high
43866         mantissa and normalise.
43867         (ldbl_nearbyint): Use more readable constant for two52.
43868         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
43869         (__mpn_construct_long_double): Fix test for overflow of high
43870         mantissa and correct normalisation.  Avoid undefined shift.
43871
43872 2013-10-04  Alan Modra  <amodra@gmail.com>
43873
43874         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
43875         (union ibm_extended_long_double): Define as an array of ieee754_double.
43876         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
43877         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
43878         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
43879         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
43880         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
43881         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
43882         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
43883         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
43884         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
43885         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
43886         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
43887
43888 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
43889
43890         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
43891         page size instead of calling getpagesize.
43892
43893         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
43894         (LOCFILE_ALIGN_MASK): Likewise.
43895         (LOCFILE_ALIGN_UP): Likewise.
43896         (LOCFILE_ALIGNED_P): Likewise.
43897         * locale/programs/ld-collate.c (collate_output): Use the new
43898         macros instead of __alignof__ (int32_t).
43899         * locale/weight.h (findidx): Likewise.
43900
43901 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
43902
43903         [BZ #431]
43904         * manual/string.texi: Fix strncat and wcsncat.
43905
43906 2013-10-03  Brooks Moses  <bmoses@google.com>
43907
43908         [BZ #15915]
43909         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
43910         * Makerules: ...here, and adjust associated comments.
43911
43912 2013-10-02  Will Newton  <will.newton@linaro.org>
43913
43914         * malloc/Makefile: Add tst-pvalloc.
43915         * malloc/tst-pvalloc.c: New file.
43916
43917 2013-10-02  Will Newton  <will.newton@linaro.org>
43918
43919         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
43920         improve test coverage.
43921
43922 2013-10-02  Will Newton  <will.newton@linaro.org>
43923
43924         * malloc/Makefile: Add tst-posix_memalign.
43925         * malloc/tst-posix_memalign.c: New file.
43926
43927 2013-10-01  Eric Blake  <eblake@redhat.com>
43928
43929         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
43930         Use __THROWNL rather than __THROW on static functions.
43931
43932 2013-09-30  Petr Machata  <pmachata@redhat.com>
43933
43934         * elf/elf.h (R_AARCH64_ABS16): New macro.
43935         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
43936         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
43937         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
43938         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
43939         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
43940         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
43941         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
43942         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
43943         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
43944         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
43945         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
43946         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
43947         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
43948         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
43949         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
43950         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
43951         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
43952         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
43953         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
43954         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
43955         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
43956         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
43957         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
43958         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
43959         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
43960         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
43961         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
43962         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
43963         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
43964         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
43965         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
43966         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
43967         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
43968         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
43969         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
43970         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
43971         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
43972         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
43973         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
43974         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
43975         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
43976         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
43977         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
43978         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
43979         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
43980         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
43981         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
43982         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
43983         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
43984         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
43985         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
43986         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
43987         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
43988         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
43989         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
43990         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
43991         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
43992         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
43993         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
43994         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
43995         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
43996         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
43997         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
43998         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
43999         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
44000         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
44001         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
44002         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
44003         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
44004         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
44005         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
44006         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
44007         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
44008         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
44009         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
44010         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
44011         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
44012         (R_AARCH64_TLSDESC_LDR): Likewise.
44013         (R_AARCH64_TLSDESC_ADD): Likewise.
44014         (R_AARCH64_TLSDESC_CALL): Likewise.
44015
44016 2013-09-30  Andreas Schwab  <schwab@suse.de>
44017
44018         [BZ #15048]
44019         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
44020         the nss database lookup.
44021         * nscd/initgrcache.c (addinitgroupsX): Likewise.
44022         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
44023
44024 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
44025
44026         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
44027
44028 2013-09-28  P. J. McDermott  <pj@pehjota.net>
44029
44030         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
44031         ${Bash-specific parameter/pattern/string} parameter expansion.
44032         * sysdeps/unix/make-syscalls.sh: Likewise.
44033
44034 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
44035
44036         * sysdeps/sh/stackguard-macros.h: New file.
44037
44038 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
44039
44040         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
44041         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
44042         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
44043         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
44044         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
44045         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
44046
44047 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44048
44049         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
44050         Fix thread ID register.
44051
44052 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
44053
44054         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
44055         [POSIX || UNIX98]: Require rather than permitting all symbols from
44056         <time.h>.
44057         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
44058         element of struct sched_param.
44059         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
44060         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
44061         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
44062         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
44063         constant.
44064
44065 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
44066
44067         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
44068         argument calculation.
44069
44070 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
44071
44072         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
44073         Expect macro.
44074         [POSIX] (pthread_attr_t): Do not require type.
44075         [POSIX] (pthread_cond_t): Likewise.
44076         [POSIX] (pthread_condattr_t): Likewise.
44077         [POSIX] (pthread_key_t): Likewise.
44078         [POSIX] (pthread_mutex_t): Likewise.
44079         [POSIX] (pthread_mutexattr_t): Likewise.
44080         [POSIX] (pthread_once_t): Likewise.
44081         [POSIX] (pthread_t): Likewise.
44082         [POSIX-based standards] (pthread_atfork): Expect function.
44083
44084 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
44085             Richard Sandiford  <richard@codesourcery.com>
44086
44087         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
44088         (swap_endianness_p): New extern variable.
44089         (set_big_endian): New inline function.
44090         (maybe_swap_uint32): Likewise.
44091         (maybe_swap_uint32_array): Likewise.
44092         (maybe_swap_uint32_obstack): Likewise.
44093         * locale/programs/locfile.c: Include <stdbool.h>.
44094         (swap_endianness_p): New variable.
44095         (add_locale_uint32): Call maybe_swap_uint32.
44096         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
44097         (write_locale_data): Call maybe_swap_uint32_array.
44098         * locale/programs/ld-collate.c (obstack_int32_grow): Call
44099         maybe_swap_uint32.
44100         (obstack_int32_grow_fast): Likewise.
44101         (output_weightwc): Call maybe_swap_uint32_obstack.
44102         (collate_output): Likewise.
44103         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
44104         (OPT_LITTLE_ENDIAN): Likewise.
44105         (options): Add --little-endian and --big-endian options.
44106         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
44107         * locale/programs/locarchive.c: Include "locfile.h".
44108         (GET): New macro.
44109         (SET): Likewise.
44110         (INC): Likewise.
44111         (create_archive): Use the new macros to access fields of
44112         structures directly mapped from or written to locale archives.
44113         (oldlocrecentcmp): Likewise.
44114         (enlarge_archive): Likewise.
44115         (insert_name): Likewise.
44116         (add_alias): Likewise.
44117         (add_locale): Likewise.
44118         (delete_locales_from_archive): Likewise.
44119         (show_archive_content): Likewise.
44120         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
44121         locale data.
44122
44123 2013-09-24  Roland McGrath  <roland@hack.frob.com>
44124
44125         * manual/freemanuals.texi: Updated from (newly) canonical copy at
44126         http://www.gnu.org/doc/freemanuals.texi.
44127         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
44128
44129 2013-09-24  Will Newton  <will.newton@linaro.org>
44130
44131         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
44132         macro.
44133
44134 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
44135
44136         * locale/hashval.h (compute_hashval): Interpret bytes of key as
44137         unsigned char.
44138
44139 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
44140
44141         * manual/threads.texi (POSIX Threads): Fix a typo.
44142
44143 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
44144
44145         [BZ #14547]
44146         * string/tst-strcoll-overflow.c: New test case.
44147         * string/Makefile (xtests): Add tst-strcoll-overflow.
44148         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
44149         cache if string sizes may cause integer overflow.
44150
44151         [BZ #14547]
44152         * string/strcoll_l.c (coll_seq): New members rule, idx,
44153         save_idx and back_us.
44154         (get_next_seq_nocache): New function.
44155         (do_compare_nocache): New function.
44156         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
44157         when malloc fails.
44158
44159 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
44160
44161         [BZ #15754]
44162         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
44163         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
44164         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
44165
44166         [BZ #15754]
44167         * elf/Makefile (tests): Add tst-ptrguard1.
44168         (tests-static): Add tst-ptrguard1-static.
44169         (tst-ptrguard1-ARGS): Define.
44170         (tst-ptrguard1-static-ARGS): Define.
44171         * elf/tst-ptrguard1.c: New file.
44172         * elf/tst-ptrguard1-static.c: New file.
44173         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
44174         * sysdeps/i386/stackguard-macros.h: Likewise.
44175         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
44176         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
44177         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
44178         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
44179         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
44180         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
44181
44182 2013-09-23  Hector Marco  <hecmargi@upv.es>
44183             Ismael Ripoll  <iripoll@disca.upv.es>
44184             Carlos O'Donell  <carlos@redhat.com>
44185
44186         [BZ #15754]
44187         * sysdeps/generic/stackguard-macros.h: Define
44188         __pointer_chk_guard_local and POINTER_CHK_GUARD.
44189         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
44190         Define __pointer_chk_guard_local.
44191         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
44192         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
44193
44194 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
44195
44196         [BZ #15859]
44197         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
44198
44199 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
44200
44201         * include/string.h (__ffs): Declare as hidden.
44202         * string/ffs.c (__ffs): Define as hidden.
44203         * sysdeps/i386/ffs.c (__ffs): Likewise.
44204         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
44205         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
44206         * sysdeps/s390/ffs.c (__ffs): Likewise.
44207         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
44208
44209 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
44210
44211         * NEWS: Mention malloc probes.
44212
44213         * malloc/arena.c (new_heap): New memory_heap_new probe.
44214         (grow_heap): New memory_heap_more probe.
44215         (shrink_heap): New memory_heap_less probe.
44216         (heap_trim): New memory_heap_free probe.
44217         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
44218         (systrim): New memory_sbrk_less probe.
44219         * manual/probes.texi: Document them.
44220
44221         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
44222         * manual/probes.texi: Document it.
44223
44224         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
44225         (__libc_realloc): Add memory_realloc_retry probe.
44226         (__libc_memalign): Add memory_memalign_retry probe.
44227         (__libc_valloc): Add memory_valloc_retry probe.
44228         (__libc_pvalloc): Add memory_pvalloc_retry probe.
44229         (__libc_calloc): Add memory_calloc_retry probe.
44230         * manual/probes.texi: Document them.
44231
44232         * malloc/arena.c (get_free_list): Add probe
44233         memory_arena_reuse_free_list.
44234         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
44235         and memory_arena_reuse.
44236         (arena_get2) [!PER_THREAD]: Likewise.
44237         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
44238         memory_arena_reuse_realloc.
44239         * manual/probes.texi: Document them.
44240
44241         * malloc/malloc.c (__libc_free): Add
44242         memory_mallopt_free_dyn_thresholds probe.
44243         (__libc_mallopt): Add multiple memory_mallopt probes.
44244         * manual/probes.texi: Document them.
44245
44246         * malloc/malloc.c: Include stap-probe.h.
44247         (__libc_mallopt): Add memory_mallopt probe.
44248         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
44249         * manual/probes.texi: New.
44250         * manual/Makefile (chapters): Add probes.
44251         * manual/threads.texi: Set next node.
44252
44253 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
44254
44255         [BZ #15963, #13985]
44256         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
44257         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
44258         Add `Chinese' to `nan' entry name.
44259
44260 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
44261
44262         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
44263         (POLYNOMIAL): Likewise.
44264         (TAYLOR_SINCOS): Likewise.
44265         (TAYLOR_SLOW): Likewise.
44266         (__sin): Use TAYLOR_SINCOS.
44267         (__cos): Likewise.
44268         (slow): Use TAYLOR_SLOW.
44269         (sloww): Likewise.
44270         (bsloww): Likewise.
44271         (csloww): Likewise.
44272
44273 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44274
44275         * stdlib/strtod_l.c: Fix buffer overrun.
44276
44277 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
44278
44279         * benchtests/Makefile (bench): Add sincos.
44280         * benchtests/bench-sincos.c: New file.
44281
44282         * math/libm-test.inc (cos_test_data): New test inputs.
44283         (sin_test_data): Likewise.
44284
44285         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
44286         macro.
44287         (__sin): Use it.
44288         (__cos): Likewise.
44289         (slow1): Likewise.
44290         (slow2): Likewise.
44291         (sloww1): Likewise.
44292         (sloww2): Likewise.
44293         (bsloww1): Likewise.
44294         (bsloww2): Likewise.
44295         (cslow2): Likewise.
44296         (csloww1): Likewise.
44297         (csloww2): Likewise.
44298
44299         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
44300         function.
44301         (__sin): Use it.
44302         (__cos): Likewise.
44303
44304         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
44305         gotos.
44306         (__cos): Likewise.
44307
44308 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
44309
44310         * config.h.in (HAVE_MIPS_NAN2008): New macro.
44311         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
44312         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
44313         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
44314         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
44315         * elf/cache.c (print_entry): Handle the new cache flags.
44316
44317 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
44318             Aldy Hernandez  <aldyh@redhat.com>
44319
44320         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
44321         Change condition to [_SOFT_FLOAT].
44322         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
44323         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
44324         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
44325         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
44326         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
44327         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
44328         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
44329         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
44330         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
44331         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
44332         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
44333         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
44334         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
44335         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
44336         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
44337         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
44338         declaration.
44339
44340 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
44341
44342         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
44343         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
44344         (__longjmp): Use LOAD_GP to load saved GPRs.
44345         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
44346         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
44347         (__sigsetjmp): Use SAVE_GP to save GPRs.
44348
44349         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
44350         Do not append -msoft-float.
44351         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
44352
44353 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
44354
44355         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
44356
44357 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
44358
44359         [BZ #15966]
44360         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
44361         (_FPU_GETCW): Use initial "__" on variable and field names but not
44362         on macro parameter name.
44363         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
44364         parentheses around reference to macro parameter.
44365
44366 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
44367
44368         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
44369         prototype.
44370         (ctype_startup): Use uint32_t in cast and sizeof for
44371         ctype->charnames.
44372
44373 2013-09-11  Jia Liu  <proljc@gmail.com>
44374
44375         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
44376         __daddr_t_defined.
44377         [__FreeBSD__]: Likewise.
44378
44379 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
44380
44381         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
44382         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
44383         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
44384         (strchr): Remove __strchr_sse42 ifunc selection.
44385         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
44386         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
44387
44388 2013-09-11  Will Newton  <will.newton@linaro.org>
44389
44390         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
44391         parameter to RES. Remove hardcoded 1000 value.
44392         * benchtests/bench-skeleton.c (main): Pass RES parameter
44393         to TIMING_INIT and multiply result by 1000.
44394
44395 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44396
44397         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44398
44399 2013-09-11  Andreas Schwab  <schwab@suse.de>
44400
44401         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
44402         if not defined.
44403         (O_TMPFILE) [__USE_GNU]: Define.
44404         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
44405         Define.
44406
44407 2013-09-11  Will Newton  <will.newton@linaro.org>
44408
44409         [BZ #15857]
44410         * malloc/malloc.c (__libc_memalign): Check the value of bytes
44411         does not overflow.
44412
44413 2013-09-11  Will Newton  <will.newton@linaro.org>
44414
44415         [BZ #15856]
44416         * malloc/malloc.c (__libc_valloc): Check the value of bytes
44417         does not overflow.
44418
44419 2013-09-11  Will Newton  <will.newton@linaro.org>
44420
44421         [BZ #15855]
44422         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
44423         does not overflow.
44424
44425 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
44426
44427         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
44428         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
44429         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
44430         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
44431         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
44432
44433 2013-09-10  Allan McRae  <allan@archlinux.org>
44434
44435         [BZ #15748]
44436         * manual/arith.texi (Parsing of Floats): Clarify
44437         cross-reference.
44438
44439         [BZ #15849]
44440         * manual/install.texi (Running make install): Mention
44441         --enable-pt-chown.
44442         * INSTALL: Regenerated.
44443
44444 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
44445
44446         * csu/init-first.c (_init): Remove the !SHARED condition around
44447         FPU control word initialization.
44448         * elf/dl-support.c (_dl_fpu_control): New variable.
44449         (_dl_aux_init) <AT_FPUCW>: Initialize it.
44450         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
44451         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
44452         * math/test-fpucw-static.c: New file.
44453         * math/test-fpucw-ieee.c: New file.
44454         * math/test-fpucw-ieee-static.c: New file.
44455         * math/Makefile (tests): Add `test-fpucw-ieee' and
44456         `$(tests-static)'.
44457         (tests-static): New variable.
44458         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
44459         dependency to...
44460         [($(build-shared),yes)]
44461         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
44462         ... this.
44463         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
44464         New dependency.
44465
44466 2013-09-09  Allan McRae  <allan@archlinux.org>
44467
44468         [BZ #15939]
44469         * manual/string.texi (Collation Functions): Fix typo in
44470         strcoll example.
44471         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
44472
44473         [BZ #15893]
44474         * stdlib/isomac.c (get_null_defines): Fix memory leak.
44475
44476         [BZ #15892]
44477         * libio/memstream.c (open_memstream): Fix memory leak.
44478         * libio/wmemstream.c (open_wmemstream): Likewise.
44479
44480         [BZ #15895]
44481         * nscd/netgroupcache.c: Fix nesting of ifdefs.
44482
44483 2013-09-09  Will Newton  <will.newton@linaro.org>
44484
44485         * malloc/Makefile: Add tst-realloc to tests.
44486         * malloc/tst-realloc.c: New file.
44487
44488 2013-09-09  Allan McRae  <allan@archlinux.org>
44489
44490         [BZ #15844]
44491         * COPYING: Update from GNU website to fix FSF address.
44492         * COPYING.LIB: Likewise.
44493
44494 2013-09-06  David S. Miller  <davem@davemloft.net>
44495
44496         * po/zh_TW.po: Update Chinese (traditional) translation from
44497         translation project.
44498
44499 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
44500             Joseph Myers  <joseph@codesourcery.com>
44501
44502         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
44503         "localeinfo.h".
44504         (obstack_chunk_alloc): New macro.
44505         (obstack_chunk_free): Likewise.
44506         (record_offset): New function.
44507         (init_locale_data): Likewise.
44508         (align_locale_data): Likewise.
44509         (add_locale_empty): Likewise.
44510         (add_locale_raw_data): Likewise.
44511         (add_locale_raw_obstack): Likewise.
44512         (add_locale_string): Likewise.
44513         (add_locale_wstring): Likewise.
44514         (add_locale_uint32): Likewise.
44515         (add_locale_uint32_array): Likewise.
44516         (add_locale_char): Likewise.
44517         (start_locale_structure): Likewise.
44518         (end_locale_structure): Likewise.
44519         (start_locale_prelude): Likewise.
44520         (end_locale_prelude): Likewise.
44521         (write_locale_data): Take locale_file structure rather than an
44522         iovec.
44523         * locale/programs/locfile.h: Include "obstack.h".
44524         (struct locale_file): Change to store locale file contents instead
44525         of header.
44526         (init_locale_data): New prototype.
44527         (align_locale_data): Likewise.
44528         (add_locale_empty): Likewise.
44529         (add_locale_raw_data): Likewise.
44530         (add_locale_raw_obstack): Likewise.
44531         (add_locale_string): Likewise.
44532         (add_locale_wstring): Likewise.
44533         (add_locale_uint32): Likewise.
44534         (add_locale_uint32_array): Likewise.
44535         (add_locale_char): Likewise.
44536         (start_locale_structure): Likewise.
44537         (end_locale_structure): Likewise.
44538         (start_locale_prelude): Likewise.
44539         (end_locale_prelude): Likewise.
44540         (write_locale_data): Update prototype.
44541         * locale/programs/3level.h (struct TABLE): Remove result field.
44542         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
44543         Use new locale_file interface.
44544         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
44545         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
44546         * locale/programs/ld-address.c (address_output): Use new
44547         locale_file interface.
44548         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
44549         NO_ADD_LOCALE.
44550         (collate_finish): Don't call collseq_table_finalize.
44551         (collate_output): Use new locale_file interface.
44552         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
44553         in file.
44554         (NO_FINALIZE): Change to NO_ADD_LOCALE.
44555         (TABLE): Move defines earlier in file.
44556         (ELEMENT): Likewise.
44557         (DEFAULT): Likewise.
44558         (wctrans_table_add): Move macro and inline function earlier in
44559         file.
44560         (struct wctype_table): Move type earlier in file.
44561         (add_locale_wctype_table): New static prototype.
44562         (struct locale_ctype_t): Use logical types instead of struct iovec
44563         pointers for members.
44564         (ctype_output): Use new locale_file interface.
44565         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
44566         new locale_file interface.
44567         (allocate_arrays): Update for use of new locale_file interface.
44568         * locale/programs/ld-identification.c (identification_output): Use
44569         new locale_file interface.
44570         * locale/programs/ld-measurement.c (measurement_output): Likewise.
44571         * locale/programs/ld-messages.c (messages_output): Likewise.
44572         * locale/programs/ld-monetary.c (monetary_output): Likewise.
44573         * locale/programs/ld-name.c (name_output): Likewise.
44574         * locale/programs/ld-numeric.c (numeric_output): Likewise.
44575         * locale/programs/ld-paper.c (paper_output): Likewise.
44576         * locale/programs/ld-telephone.c (telephone_output): Likewise.
44577         * locale/programs/ld-time.c (time_output): Likewise.
44578
44579 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44580
44581         * benchtests/Makefile: Add memrchr benchmark.
44582         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
44583         benchmark as memrchr.
44584         * benchtests/bench-memrchr-ifunc.c: New file.
44585         * benchtests/bench-memrchr.c: New file.
44586
44587 2013-09-06   Will Newton  <will.newton@linaro.org>
44588
44589         * benchtests/Makefile (string-bench): Add memcpy.
44590
44591 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
44592             Cong Wang  <amwang@redhat.com>
44593
44594         [BZ #15850]
44595         * sysdeps/unix/sysv/linux/bits/in.h
44596         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
44597         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
44598         before __USE_KERNEL_IPV6_DEFS uses.
44599         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
44600         IPPROTO_BEETPH.
44601         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
44602         sockaddr_in6, or ipv6_mreq.
44603
44604 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44605
44606         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
44607         memory access for final bytes in some large inputs.
44608         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
44609
44610 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44611
44612         * string/test-memrchr.c: New file.
44613         * string/test-memrchr-ifunc.c: New file.
44614         * string/Makefile: Add new memrchr testcase.
44615
44616 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
44617
44618         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
44619         fanotify_init returns EPERM.
44620
44621 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44622
44623         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
44624         errors.
44625         (top level): Treat second token from macro or constant entries for
44626         allowed headers as allowed.
44627         * include/complex.h: Condition internal declarations on
44628         [!_ISOMAC].
44629         * include/fenv.h: Condition include of <stdbool.h> and internal
44630         declarations on [!_ISOMAC].
44631
44632 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
44633
44634         [BZ #15923]
44635         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
44636
44637 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
44638
44639         * configure.in (--enable-versioning): Remove configure option.
44640         (libc_cv_asm_symver_directive): Remove configure test.
44641         (libc_cv_ld_version_script_option): Likewise.
44642         (VERSIONING): Remove variable and AC_SUBST.
44643         (DO_VERSIONING): Remove AC_DEFINE.
44644         * configure: Regenerated.
44645         * config.h.in (DO_VERSIONING): Remove macro.
44646         * Makerules [$(versioning) = yes]: Change conditionals to
44647         [$(build-shared) = yes].
44648         * config.make.in (versioning): Remove variable.
44649         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
44650         [$(build-shared) = yes].
44651         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
44652         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
44653         * elf/Makefile [$(versioning) = yes]: Change conditionals to
44654         [$(build-shared) = yes].
44655         * extra-lib.mk [$(versioning) = yes]: Likewise.
44656         * hurd/Makefile [$(versioning) = yes]: Likewise.
44657         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
44658         [SHARED].
44659         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
44660         [SHARED].
44661         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44662         [SHARED && !NO_HIDDEN].
44663         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
44664         [SHARED].
44665         [SHARED && DO_VERSIONING]: Likewise..
44666         * libio/Makefile [$(versioning) = yes]: Change conditionals to
44667         [$(build-shared) = yes].
44668         * manual/install.texi (--disable-versioning): Remove
44669         documentation.
44670         * INSTALL: Regenerated.
44671         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
44672         to [SHARED].
44673         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
44674         [$(build-shared) = yes].
44675         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
44676         * sysdeps/i386/i686/multiarch/strstr-c.c
44677         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
44678         [SHARED && !NO_HIDDEN].
44679         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
44680         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
44681         * sysdeps/powerpc/powerpc32/dl-machine.c
44682         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
44683         * sysdeps/powerpc/powerpc32/sysdep.h
44684         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
44685         to [SHARED && PIC && !NO_HIDDEN].
44686         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
44687         conditional to [SHARED].
44688
44689 2013-09-04   Will Newton  <will.newton@linaro.org>
44690
44691         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
44692         * benchtests/bench-string.h: Include bench-timing.h instead
44693         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
44694         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
44695         call to HP_TIMING_DIFF_INIT.
44696         * benchtests/bench-memccpy.c: Use bench-timing.h macros
44697         instead of hp-timing.h macros.
44698         * benchtests/bench-memchr.c: Likewise.
44699         * benchtests/bench-memcmp.c: Likewise.
44700         * benchtests/bench-memcpy.c: Likewise.
44701         * benchtests/bench-memmem.c: Likewise.
44702         * benchtests/bench-memmove.c: Likewise.
44703         * benchtests/bench-memset.c: Likewise.
44704         * benchtests/bench-rawmemchr.c: Likewise.
44705         * benchtests/bench-strcasecmp.c: Likewise.
44706         * benchtests/bench-strcasestr.c: Likewise.
44707         * benchtests/bench-strcat.c: Likewise.
44708         * benchtests/bench-strchr.c: Likewise.
44709         * benchtests/bench-strcmp.c: Likewise.
44710         * benchtests/bench-strcpy.c: Likewise.
44711         * benchtests/bench-strcpy_chk.c: Likewise.
44712         * benchtests/bench-strlen.c: Likewise.
44713         * benchtests/bench-strncasecmp.c: Likewise.
44714         * benchtests/bench-strncat.c: Likewise.
44715         * benchtests/bench-strncmp.c: Likewise.
44716         * benchtests/bench-strncpy.c: Likewise.
44717         * benchtests/bench-strnlen.c: Likewise.
44718         * benchtests/bench-strpbrk.c: Likewise.
44719         * benchtests/bench-strrchr.c: Likewise.
44720         * benchtests/bench-strspn.c: Likewise.
44721         * benchtests/bench-strstr.c: Likewise.
44722
44723 2013-09-04  Will Newton  <will.newton@linaro.org>
44724
44725         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
44726
44727 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
44728
44729         [BZ #15427]
44730         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
44731         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
44732         * math/libm-test.inc (lgamma_test_data): Add more tests.
44733         * sysdeps/i386/fpu/libm-test-ulps: Update.
44734         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44735
44736 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
44737
44738         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
44739         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
44740         Add ifunc.
44741         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
44742         Add strcmp-sse2-unaligned
44743         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
44744
44745 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44746
44747         * Versions.def (libc): Add GLIBC_2.19.
44748
44749 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
44750
44751         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
44752         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
44753
44754 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
44755
44756         [BZ #14155]
44757         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
44758         intermediate calculations in recurrence.
44759         (__ieee754_ynf): Likewise.
44760         * math/libm-test.inc (jn_test_data): Do not allow spurious
44761         underflow exception.  Add more tests.
44762         (yn_test_data): Add more tests.
44763         * sysdeps/i386/fpu/libm-test-ulps: Update.
44764         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44765
44766 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
44767
44768         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
44769
44770 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44771
44772         * csu/init-first.c: Fix then/than typos.
44773         * locale/programs/ld-collate.c: Likewise.
44774         * locale/programs/linereader.h: Likewise.
44775         * manual/charset.texi: Likewise.
44776         * manual/filesys.texi: Likewise.
44777         * manual/stdio.texi: Likewise.
44778         * manual/string.texi: Likewise.
44779         * stdlib/fmtmsg.c: Likewise.
44780         * sysdeps/i386/stpncpy.S: Likewise.
44781         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
44782         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
44783         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
44784         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
44785
44786 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
44787
44788         * elf/dl-open.c: Fix typos.
44789         * iconvdata/gbbig5.c: Likewise.
44790         * iconvdata/iso-2022-jp.c: Likewise.
44791         * iconv/gconv_int.h: Likewise.
44792         * iconv/loop.c: Likewise.
44793         * nis/rpcsvc/nis.h: Likewise.
44794         * resolv/ns_name.c: Likewise.
44795         * stdio-common/vfscanf.c: Likewise.
44796         * streams/stropts.h: Likewise.
44797         * sunrpc/rpc_thread.c: Likewise.
44798         * sysdeps/i386/strpbrk.S: Likewise.
44799         * sysdeps/ieee754/k_standard.c: Likewise.
44800         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
44801         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
44802         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
44803         * sysdeps/mach/hurd/profil.c: Likewise.
44804         * sysdeps/s390/dl-procinfo.h: Likewise.
44805         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
44806         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
44807         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
44808         * sysdeps/x86_64/dl-trampoline.S: Likewise.
44809         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
44810
44811 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
44812
44813         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
44814         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
44815
44816 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
44817
44818         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
44819         aix specific files.
44820         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
44821         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
44822         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
44823         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
44824         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
44825         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
44826         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
44827         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
44828
44829 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44830             Roland McGrath  <roland@hack.frob.com>
44831
44832         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
44833         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
44834
44835 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44836
44837         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
44838         __executable_start symbol instead of _start.
44839
44840 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
44841
44842         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
44843         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
44844         Move macros to...
44845         * sysdeps/gnu/ldsodefs.h: ... this new file.
44846
44847         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
44848         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
44849         instead of ELFOSABI_LINUX.
44850
44851         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
44852         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
44853         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
44854         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
44855         Likewise.
44856         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
44857         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
44858         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
44859         Likewise.
44860         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
44861         (ibm_extended_long_double): Add ieee_nan member.
44862         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
44863         (do_test): New function.
44864
44865         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
44866         TEST_TRUNC.
44867         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
44868         functions, renamed from truncdfsf_test, trunctfsf_test,
44869         trunctfdf_test.
44870         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
44871         functions.
44872         (do_test): Run all these.
44873
44874 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
44875
44876         * argp/argp-help.c: Fix typos.
44877         * argp/argp-parse.c: Likewise.
44878         * debug/backtracesyms.c: Likewise.
44879         * elf/elf.h: Likewise.
44880         * malloc/malloc.c: Likewise.
44881         * nis/nis_print.c: Likewise.
44882         * resolv/res_comp.c: Likewise.
44883         * stdlib/stdlib.h: Likewise.
44884         * sunrpc/clnt_tcp.c: Likewise.
44885         * sunrpc/clnt_udp.c: Likewise.
44886         * sunrpc/clnt_unix.c: Likewise.
44887         * sysdeps/unix/bsd/ptsname.c: Likewise.
44888         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
44889         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
44890         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
44891         Likewise.
44892         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
44893         Likewise.
44894         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
44895         Likewise.
44896         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
44897
44898 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
44899
44900         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
44901         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
44902
44903 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
44904
44905         [BZ #15897]
44906         * dlfcn/Makefile (tests): Add bug-dl-leaf.
44907         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
44908         ($(objpfx)bug-dl-leaf): New rule.
44909         ($(objpfx)bug-dl-leaf.so): Likewise.
44910         ($(objpfx)bug-dl-leaf.out): Likewise.
44911         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
44912         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
44913         * dlfcn/bug-dl-leaf.c: New test.
44914         * dlfcn/bug-dl-leaf-lib.c: Likewise.
44915         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
44916         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
44917         (dlclose): Likewise.
44918         (dlmopen): Likewise.
44919
44920 2013-08-27  Roland McGrath  <roland@hack.frob.com>
44921
44922         * include/netdb.h [!_ISOMAC]:
44923         Don't include <tls.h>.
44924         (h_errno, __libc_h_errno): Move declaration and macros out of
44925         [_LIBC_REENTRANT].
44926
44927         * include/resolv.h [_RESOLV_H_]:
44928         Don't include <tls.h>.
44929         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
44930         * resolv/res_libc.c: Don't include <tls.h>.
44931         (_res): Use __attribute__ ((nocommon)) in place of
44932         __attribute__ ((section (".bss"))).
44933
44934         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
44935         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
44936
44937         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
44938
44939         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
44940         only under [SIOCGIFCONF && SIOCGIFNETMASK].
44941
44942         * resolv/res_mkquery.c: Include <sys/time.h>.
44943
44944         * inet/ifreq.c: Moved to ...
44945         * sysdeps/unix/ifreq.c: ... here.
44946         * inet/ifreq.c: New file, true stub version.
44947
44948         * socket/sa_len.c: New file.
44949         * socket/Makefile (aux): Add it.
44950         * sysdeps/unix/sysv/linux/Makefile
44951         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
44952         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
44953         and #include <socket/sa_len.c>.
44954         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
44955         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
44956
44957         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
44958         * bits/socket.h: ... here.
44959
44960         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
44961         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
44962         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
44963
44964 2013-08-27  Andreas Schwab  <schwab@suse.de>
44965
44966         [BZ #15736]
44967         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
44968         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
44969         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
44970         * string/test-strcasecmp.c (test_main): Run tests in several
44971         locales.
44972         * string/test-strncasecmp.c (test_main): Likewise.
44973
44974         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
44975         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
44976         to __strcasecmp_nonascii and __strncasecmp_nonascii.
44977         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
44978         (__strncasecmp_ssse3) [PIC]: Likewise.
44979
44980 2013-08-26  Roland McGrath  <roland@hack.frob.com>
44981
44982         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
44983
44984         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
44985         instead of explicitly declaring xdecrypt.
44986         * nis/nss_nis/nis-publickey.c: Likewise.
44987
44988 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
44989
44990         [BZ #15890]
44991         * nscd/aicache.c: Include res_hconf.h.
44992         (addhstaiX): Initialize res_hconf.
44993
44994 2013-08-26  Andreas Schwab  <schwab@suse.de>
44995
44996         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
44997         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
44998
44999 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
45000
45001         * nscd/aicache.c (addhstaiX): Fix indentation.
45002
45003 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
45004
45005         * configure.ac: Quote $build_pt_chown test.
45006         * configure: Regenerated.
45007
45008 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
45009
45010         [BZ #15532]
45011         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
45012         * math/s_cexpf.c (__cexpf): Likewise.
45013         * math/s_cexpl.c (__cexpl): Likewise.
45014         * math/libm-test.inc (cexp_test_data): Correct expected return
45015         value for NaN + i0.  Add another test.
45016
45017 2013-08-22  David S. Miller  <davem@davemloft.net>
45018
45019         * po/ca.po: Update Catalan translation from translation project.
45020         * po/uk.po: Add Ukrainian translations from translation project.
45021
45022 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
45023
45024         [BZ #15797]
45025         * math/s_fdim.c (__fdim): Check for infinite arguments if result
45026         is infinite, not alongside NaN test.
45027         * math/s_fdimf.c (__fdimf): Likewise.
45028         * math/s_fdiml.c (__fdiml): Likewise.
45029         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
45030         errno is unchanged.
45031
45032 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
45033
45034         * argp/argp-help.c: Fix typos.
45035         * crypt/speeds.c: Likewise.
45036         * csu/check_fds.c: Likewise.
45037         * elf/dl-load.c: Likewise.
45038         * elf/dl-open.c: Likewise.
45039         * elf/reldep3.c: Likewise.
45040         * elf/reldep.c: Likewise.
45041         * elf/sprof.c: Likewise.
45042         * iconv/iconv_charmap.c: Likewise.
45043         * iconv/skeleton.c: Likewise.
45044         * iconv/strtab.c: Likewise.
45045         * io/lockf64.c: Likewise.
45046         * libio/libioP.h: Likewise.
45047         * resolv/gai_notify.c: Likewise.
45048         * resolv/ns_name.c: Likewise.
45049         * resolv/ns_samedomain.c: Likewise.
45050         * resolv/res_send.c: Likewise.
45051         * stdlib/random.c: Likewise.
45052         * sunrpc/rpc/xdr.h: Likewise.
45053         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
45054         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
45055         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
45056         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
45057         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
45058         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
45059         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
45060         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
45061         * sysdeps/mach/hurd/check_fds.c: Likewise.
45062         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
45063         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
45064         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
45065         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
45066         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
45067         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
45068         * sysdeps/pthread/aio_notify.c: Likewise.
45069         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
45070         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
45071         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
45072         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
45073         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
45074
45075 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45076
45077         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
45078         version if bit_Slow_SSE4_2 is set.
45079         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
45080         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
45081
45082 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45083
45084         [BZ #15867]
45085         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
45086         trampoline stack frame information.
45087         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
45088         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
45089         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
45090         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
45091         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
45092         * sysdeps/unix/sysv/linux/powerpc/init-first.c
45093         (_libc_vdso_platform_setup): Initialize the signal trampolines.
45094         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
45095         sa_flags value.
45096         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
45097         interrupting a syscall and set with option SA_SIGINFO.
45098
45099 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
45100
45101         [BZ #15531]
45102         * math/s_cproj.c (__cproj): Only return an infinity if one part of
45103         argument is infinite.
45104         * math/s_cprojf.c (__cprojf): Likewise.
45105         * math/s_cprojl.c (__cprojl): Likewise.
45106         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
45107         * math/libm-test.inc (cproj_test_data): Add more tests.
45108
45109         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
45110
45111         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
45112         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
45113         size.  Use __ffs to determine corresponding shift.
45114
45115 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
45116             Roland McGrath  <roland@hack.frob.com>
45117
45118         * Makefile (INSTALL): Remove trailing blank lines from output of
45119         makeinfo.
45120
45121 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45122
45123         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
45124         Align 32 bit compat elf_greg to 8 bytes.
45125
45126 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
45127
45128         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
45129
45130 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
45131
45132         * string/strcoll_l.c (coll_seq): New structure.
45133         (get_next_seq_cached): New function.
45134         (get_next_seq): New function.
45135         (do_compare): New function.
45136         (STRCOLL): Use GNU style definition.  Simplify implementation
45137         by using get_next_seq, get_next_seq_cached and do_compare.
45138
45139 2013-08-16  Florian Weimer  <fweimer@redhat.com>
45140
45141         [BZ #14699]
45142         CVE-2013-4237
45143         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
45144         member.
45145         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
45146         member.
45147         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
45148         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
45149         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
45150         conditional.
45151         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
45152         GETDENTS_64BIT_ALIGNED.
45153         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
45154         * manual/filesys.texi (Reading/Closing Directory): Document
45155         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
45156         strongly.
45157         * manual/conf.texi (Limits for Files): Add portability note to
45158         NAME_MAX, PATH_MAX.
45159         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
45160
45161 2013-08-13  Andreas Schwab  <schwab@suse.de>
45162
45163         [BZ #15749]
45164         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
45165         of fabs.
45166         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
45167         LDBL_MAX_EXP >= 16384]: Add tests for it.
45168
45169 2013-08-12  David S. Miller  <davem@davemloft.net>
45170
45171         * version.h (RELEASE): Set to "development".
45172         (VERSION): Set to "2.18.90".
45173         * NEWS: Add 2.19 section.
45174
45175 2013-08-03  David S. Miller  <davem@davemloft.net>
45176
45177         * po/ko.po: Update Korean translation from translation project.
45178
45179 2013-08-01  David S. Miller  <davem@davemloft.net>
45180
45181         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
45182         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
45183         Bilka.
45184
45185 2013-07-30  David S. Miller  <davem@davemloft.net>
45186
45187         * po/fr.po: Update French translation from translation project.
45188
45189 2013-07-28  David S. Miller  <davem@davemloft.net>
45190
45191         * po/cs.po: Update Czech translation from translation project.
45192
45193         * po/sv.po: Update Swedish translation from translation project.
45194
45195 2013-07-27  David S. Miller  <davem@davemloft.net>
45196
45197         * po/eo.po: Update Esperanto translation from translation project.
45198
45199         * po/vi.po: Update Vietnamese translation from translation project.
45200
45201         * po/de.po: Update German translation from translation project.
45202
45203 2013-07-26  David S. Miller  <davem@davemloft.net>
45204
45205         * po/bg.po: Update Bulgarian translation from translation project.
45206
45207         * po/nl.po: Update Dutch translation from translation project.
45208         * po/pl.po: Update Polish translation from translation project.
45209         * po/ru.po: Update Russian translation from translation project.
45210
45211 2013-07-24  David S. Miller  <davem@davemloft.net>
45212
45213         * po/libc.pot: Update.
45214
45215 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45216
45217         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
45218         variable page size.
45219         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
45220         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
45221         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
45222
45223 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45224
45225         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
45226
45227 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
45228             Andreas Schwab  <schwab@suse.de>
45229             Roland McGrath  <roland@hack.frob.com>
45230             Joseph Myers  <joseph@codesourcery.com>
45231             Carlos O'Donell  <carlos@redhat.com>
45232
45233         [BZ #15755]
45234         * config.h.in: Define HAVE_PT_CHOWN.
45235         * config.make.in (build-pt-chown): New variable.
45236         * configure.in (--enable-pt_chown): New configure option.
45237         * configure: Regenerate.
45238         * login/Makefile: Include Makeconfig.  Build pt_chown only if
45239         build-pt-chown is enabled.
45240         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
45241         pt_chown to fix pty ownership.
45242         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
45243         CLOSE_ALL_FDS.
45244         * manual/install.texi (Configuring and compiling): Mention
45245         --enable-pt_chown. Add @findex for grantpt.
45246         * INSTALL: Regenerate.
45247
45248 2013-07-20  David S. Miller  <davem@davemloft.net>
45249
45250         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
45251         difference between 32-bit and 64-bit.
45252
45253 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
45254
45255         [BZ #15711]
45256         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
45257         Avoid system header dependency with -ffreestanding.
45258         ($(objpfx)bits/syscall%d): Likewise.
45259
45260 2013-07-13  David S. Miller  <davem@davemloft.net>
45261
45262         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
45263         underflows from atanl/atan2l due to bug 15319.
45264         (casinh_test_data): Likewise.
45265
45266 2013-07-07  David S. Miller  <davem@davemloft.net>
45267
45268         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
45269
45270 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
45271
45272         * sysdeps/i386/fpu/libm-test-ulps: Update.
45273         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45274
45275 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
45276
45277         * configure.in (--enable-lock-elision): Fix message text.
45278         * INSTALL: Regenerate.
45279         * configure: Regenerate.
45280
45281 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45282
45283         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45284
45285 2013-07-03  Andreas Jaeger  <aj@suse.de>
45286
45287         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
45288         define.
45289         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
45290         (ptrace_peeksiginfo_args): Add.
45291         (__ptrace_peeksiginfo_flags): Add.
45292         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
45293         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
45294         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
45295
45296 2013-07-03  Allan McRae  <allan@archlinux.org>
45297
45298         * sysdeps/i386/fpu/libm-test-ulps: Update.
45299
45300 2013-07-02  David S. Miller  <davem@davemloft.net>
45301
45302         * sysdeps/sparc/fpu/libm-test-ulps: Update.
45303
45304 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
45305
45306         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
45307
45308 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
45309
45310         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
45311         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45312
45313 2013-07-02  Andi Kleen <ak@linux.intel.com>
45314
45315         * config.h.in (ENABLE_LOCK_ELISION): Add.
45316         * configure.in (--enable-lock-elision): Add option.
45317         * manual/install.texi: Document --enable lock elision.
45318         * configure: Regenerate
45319         * INSTALL: Regenerate.
45320
45321 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
45322
45323         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
45324         SSE4.2 strcasecmp for libc.a.
45325         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
45326
45327 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
45328
45329         [BZ #13304]
45330         * soft-fp/op-common.h (_FP_FMA): New macro.
45331         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
45332         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
45333         (_FP_MUL_MEAT_1_imm): ... here.
45334         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
45335         (_FP_MUL_MEAT_1_wide): ... here.
45336         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
45337         (_FP_MUL_MEAT_1_hard): ... here.
45338         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
45339         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
45340         (_FP_MUL_MEAT_2_wide): ... here.
45341         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
45342         (_FP_MUL_MEAT_2_wide_3mul): ... here.
45343         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
45344         (_FP_MUL_MEAT_2_gmp): ... here.
45345         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
45346         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
45347         (_FP_MUL_MEAT_4_wide): ... here.
45348         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
45349         (_FP_MUL_MEAT_4_gmp): ... here.
45350         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
45351         (_FP_WFRACBITS_DW_S): Likewise.
45352         (_FP_WFRACXBITS_DW_S): Likewise.
45353         (_FP_HIGHBIT_DW_S): Likewise.
45354         (FP_FMA_S): Likewise.
45355         (_FP_FRAC_HIGH_DW_S): Likewise.
45356         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
45357         (_FP_WFRACBITS_DW_D): Likewise.
45358         (_FP_WFRACXBITS_DW_D): Likewise.
45359         (_FP_HIGHBIT_DW_D): Likewise.
45360         (FP_FMA_D): Likewise.
45361         (_FP_FRAC_HIGH_DW_D): Likewise.
45362         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
45363         (_FP_WFRACBITS_DW_E): Likewise.
45364         (_FP_WFRACXBITS_DW_E): Likewise.
45365         (_FP_HIGHBIT_DW_E): Likewise.
45366         (FP_FMA_E): Likewise.
45367         (_FP_FRAC_HIGH_DW_E): Likewise.
45368         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
45369         (_FP_WFRACBITS_DW_Q): Likewise.
45370         (_FP_WFRACXBITS_DW_Q): Likewise.
45371         (_FP_HIGHBIT_DW_Q): Likewise.
45372         (FP_FMA_Q): Likewise.
45373         (_FP_FRAC_HIGH_DW_Q): Likewise.
45374         * soft-fp/fmasf4.c: New file.
45375         * soft-fp/fmadf4.c: Likewise.
45376         * soft-fp/fmatf4.c: Likewise.
45377
45378 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45379
45380         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
45381         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
45382         Silvermont.
45383         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
45384         macro.
45385         (index_Slow_SSE4_2): Likewise.
45386         (index_Prefer_PMINUB_for_stringop): Likewise.
45387         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
45388         bit_Slow_SSE4_2 is set.
45389         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
45390         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
45391
45392 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45393
45394         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
45395         rtld_global._dl_hwcap2.
45396         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
45397         POWER8.
45398         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
45399         POWER8 feature descriptions defined in _dl_hwcap2.
45400         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
45401         string handling for POWER8 feature bits.
45402         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
45403         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
45404         _dl_powerpc_cap_flags.
45405         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
45406         * sysdeps/powerpc/rtld-global-offsets.sym
45407         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
45408         _dl_hwcap2 in the rtld_global_ro structure.
45409
45410 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45411
45412         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
45413         hardware capabilities in support of AT_HWCAP2.
45414         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
45415         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
45416         GLRO(dl_hwcap2).
45417         (_dl_show_auxv): Add support for calling _dl_procinfo to display
45418         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
45419         explicitly the unknown a_type display mechanism is used.
45420         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
45421         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
45422         struct member.
45423         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
45424         to macro prototype for AT_HWCAP2 support.
45425         * sysdeps/i386/dl-procinfo.h: Likewise.
45426         * sysdeps/s390/dl-procinfo.h: Likewise.
45427         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
45428         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
45429         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
45430         return -1 for unknown a_type display fallback.
45431         * sysdeps/sparc/dl-procinfo.h: Likewise.
45432         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
45433         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
45434
45435 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
45436
45437         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
45438         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
45439
45440 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
45441
45442         [BZ #12492]
45443         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
45444         mprotect making __stack_prot writable.
45445
45446 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
45447             Joseph Myers  <joseph@codesourcery.com>
45448
45449         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
45450         as being properly aligned.
45451
45452 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
45453
45454         * dlfcn/modstatic5.c: New file.
45455         * dlfcn/tststatic5.c: New file.
45456         * dlfcn/Makefile (tests): Add tststatic5.
45457         (tests-static): Likewise.
45458         (modules-names): Add modstatic5.
45459         (tststatic5-ENV): New variable.
45460         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
45461
45462         [BZ #15022]
45463         * elf/dl-support.c (_dl_main_map): New variable.
45464         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
45465         (_dl_nns, _dl_load_adds): Set to 1.
45466         (_dl_initial_searchlist): Refer to _dl_main_map.
45467         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
45468         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
45469         call to _dl_get_origin.
45470         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
45471         around call_map.
45472         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
45473         * dlfcn/modstatic3.c: New file.
45474         * dlfcn/tststatic3.c: New file.
45475         * dlfcn/tststatic4.c: New file.
45476         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
45477         (tests-static): Likewise.
45478         (modules-names): Add modstatic3.
45479         (tststatic3-ENV, tststatic4-ENV): New variables.
45480         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
45481         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
45482
45483 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
45484
45485         * configure.in (CC): Require GCC version 4.4 or later.
45486         * configure: Regenerated.
45487         * manual/install.texi (Tools for Compilation): Update GCC version
45488         requirement.
45489         * INSTALL: Regenerated.
45490
45491 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45492
45493         [BZ #15674]
45494         * string/test-memcmp.c (check2): New.
45495         (main): Call check2.
45496
45497         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
45498
45499 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
45500
45501         [BZ #15022]
45502         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
45503         over to...
45504         (dl_open_worker) [!SHARED]: ... here.
45505
45506 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45507
45508         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
45509
45510 2013-06-25  Richard Henderson  <rth@redhat.com>
45511
45512         * locale/programs/locarchive.c: Include <libc-internal.h>
45513
45514 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
45515
45516         * manual/texinfo.tex: Update to version 2013-06-21.17, with
45517         trailing whitespace removed.
45518
45519 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45520
45521         [BZ #10283]
45522         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
45523         * locale/programs/locarchive.c: Include libc-mmap.h.
45524         (prepare_address_space): Take two new outputs (the mmap base and len).
45525         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
45526         values.
45527         (create_archive): Declare new mmap base and len values for
45528         prepare_address_space, and store the result in ah.
45529         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
45530         (enlarge_archive): If ah->mmap_base is not NULL, use that and
45531         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45532         Declare new mmap base and len values for
45533         prepare_address_space, and store the result in new_ah.
45534         (open_archive): Declare new mmap base and len values for
45535         prepare_address_space, and store the result in ah.
45536         (close_archive): If ah->mmap_base is not NULL, use that and
45537         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
45538         * sysdeps/generic/libc-mmap.h: New file.
45539
45540 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
45541
45542         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
45543         (ALIGN_UP): Likewise.
45544         (PTR_ALIGN_DOWN): Likewise.
45545         (PTR_ALIGN_UP): Likewise.
45546
45547 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45548
45549         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
45550         entry mapped to PPC_PLATFORM_POWER8.
45551         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
45552         POWER8.
45553         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
45554         (_dl_string_platform): Add case for exporting platform position for
45555         POWER8.
45556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
45557         search path to sysdeps/powerpc/powerpc32/power8 directory.
45558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
45559         search path to sysdeps/powerpc/powerpc64/power8 directory.
45560         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
45561         power7 directories.
45562         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
45563         power7 directories.
45564
45565 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
45566
45567         * INSTALL: Regenerate.
45568
45569         * nscd/connections.c (nscd_init): Fix comment.
45570
45571 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
45572
45573         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
45574
45575         [BZ #15667]
45576         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
45577         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
45578
45579 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45580
45581         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
45582         DL_DST_REQ_STATIC.
45583         (DL_DST_REQ_STATIC): Remove macro.
45584
45585 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
45586
45587         [BZ #7006]
45588         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
45589         with a shift of 0 bits.
45590
45591 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
45592
45593         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
45594         $(tststatic-ENV).
45595
45596 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
45597
45598         [BZ #15655]
45599         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
45600
45601 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45602
45603         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
45604         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
45605         accepts -fno-tree-loop-distribute-patterns.
45606         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
45607         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
45608         recursive call.
45609         * string/memset.c (memset): Likewise.
45610         * string/test-memmove.c (simple_memmove): Disable loop transformation
45611         to library calls.
45612         * string/test-memset.c (simple_memset): Likewise.
45613         * benchtests/bench-memmove.c (simple_memmove): Likewise.
45614         * benchtests/bench-memset.c (simple_memset): Likewise.
45615         * configure: Regenerated.
45616
45617 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
45618
45619         * math/test-misc.c (main): Ignore fesetround failure when failures
45620         of subsequent rounding tests would be ignored.
45621
45622         [BZ #15654]
45623         * math/fedisblxcpt.c (fedisableexcept): Return 0.
45624         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
45625         * math/fegetenv.c (__fegetenv): Return 0.
45626         * math/fegetexcept.c (fegetexcept): Return 0.
45627         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
45628         FE_TONEAREST.
45629         * math/feholdexcpt.c (feholdexcept): Return 0.
45630         * math/fesetenv.c (__fesetenv): Return 0.
45631         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
45632         argument FE_TONEAREST.
45633         * math/feupdateenv.c (__feupdateenv): Return 0.
45634         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
45635
45636 2013-06-18  Roland McGrath  <roland@hack.frob.com>
45637
45638         * elf/rtld-Rules (rtld-compile-command.S): New variable.
45639         (rtld-compile-command.s, rtld-compile-command.c): New variables.
45640         ($(objpfx)rtld-%.os rules): Use them.
45641
45642 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45643
45644         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
45645         fields.
45646
45647 2013-06-17  Roland McGrath  <roland@hack.frob.com>
45648
45649         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
45650         length of target pattern, then descending length of dependency pattern.
45651         * configure.in (AWK): Require gawk 3.1.2 or newer.
45652         * manual/install.texi (Tools for Compilation): Say that we do.
45653         * configure: Regenerated.
45654
45655         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
45656         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
45657         * scripts/sysd-rules.awk: ... this new script.
45658         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
45659         than a glob-style pattern.
45660
45661 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
45662
45663         * math/test-misc.c (main): Do not treat incorrectly rounded
45664         conversions as failure unless ROUNDING_TESTS passes.
45665
45666 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
45667
45668         [BZ #15631]
45669         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
45670         restore exception state around main square root computation, then
45671         check for inexactness explicitly.
45672
45673         * math/libm-test.inc (fma_test_data): Add another test.
45674
45675 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
45676
45677         * manual/threads.texi (Non-POSIX Extensions): New document
45678         node.  Document pthread_getattr_default_np and
45679         pthread_setattr_default_np.
45680
45681         * Versions.def (libpthread): Add GLIBC_2.18.
45682         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
45683         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
45684         Likewise.
45685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
45686         Likewise.
45687         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
45688         Likewise.
45689         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
45690         Likewise.
45691         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
45692         Likewise.
45693         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
45694         Likewise.
45695         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
45696         Likewise.
45697         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
45698         Likewise.
45699         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
45700         Likewise.
45701
45702 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45703
45704         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45705         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
45706
45707 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
45708             H.J. Lu  <hjl.tools@gmail.com>
45709
45710         [BZ #15627]
45711         * sysdeps/x86_64/rtld-memset.c: Remove file.
45712         * sysdeps/x86_64/rtld-memset.S: New file.
45713
45714 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
45715
45716         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
45717         (test_in_one_mode): Take arguments for whether the rounding mode
45718         is supported for each floating-point type.
45719         (do_test): Pass new arguments to test_in_one_mode using
45720         ROUNDING_TESTS.
45721
45722 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45723
45724         * posix/tst-waitid.c (do_test): Distinguish different instances of
45725         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
45726         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
45727         before entering the kernel for waitpid.
45728
45729 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45730
45731         * NEWS: Fix note on clock function precision.  Text by Roland
45732         McGrath.
45733
45734 2013-06-13  Roland McGrath  <roland@hack.frob.com>
45735
45736         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
45737         it into place only when and if the sanity check passes.
45738
45739 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
45740
45741         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
45742         output for whether conversion result is exact.  Take argument
45743         indicating whether type is IBM long double.
45744         (round_for_all): Change need_exact field to ibm_ld.
45745         * stdlib/tst-strtod-round.c (struct exactness): New type.
45746         (struct test): Change bool ld_ok field to struct exactness exact.
45747         (TEST): Update all definitions for change to field.
45748         (tests): Regenerate array contents.
45749         (test_in_one_mode): Take pointer to new field instead of old ld_ok
45750         field value.  Check for IBM long double here.
45751         (do_test): Update calls to test_in_one_mode.
45752
45753 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
45754
45755         [BZ #12515]
45756         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
45757         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
45758
45759 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45760
45761         [BZ #15605]
45762         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
45763         generated by the compiler on loop optimizations.
45764         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
45765         general definitions.
45766
45767 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
45768
45769         * math/bug-nextafter.c: Include <math-tests.h>.
45770         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45771         the relevant type.
45772         * math/bug-nexttoward.c: Include <math-tests.h>.
45773         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45774         the relevant type.
45775         * math/test-misc.c: Include <math-tests.h>.
45776         (main): Only test for exceptions if EXCEPTION_TESTS is true for
45777         the relevant type.
45778
45779 2013-06-12  Andreas Jaeger  <aj@suse.de>
45780
45781         * po/ia.po: Update Interlingua translation from translation
45782         project.
45783
45784 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
45785
45786         * include/fenv.h: Include stdbool.h.
45787         (struct rm_ctx): New structure.
45788         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
45789         Define macro.
45790         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
45791         (SET_RESTORE_ROUNDF): Likewise.
45792         (SET_RESTORE_ROUNDL): Likewise.
45793         (SET_RESTORE_ROUND_NOEX): Likewise.
45794         (SET_RESTORE_ROUND_NOEXF): Likewise.
45795         (SET_RESTORE_ROUND_NOEXL): Likewise.
45796         (SET_RESTORE_ROUND_53BIT): Likewise.
45797         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
45798         (libc_feresetround_noexf_ctx): Likewise.
45799         (libc_feresetround_noexl_ctx): Likewise.
45800         (libc_feholdsetround_53bit_ctx): Likewise.
45801         (libc_feresetround_53bit_ctx): Likewise.
45802         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
45803         (libc_feholdexcept_setround_sse_ctx): New function.
45804         (libc_fesetenv_sse_ctx): Likewise.
45805         (libc_feupdateenv_sse_ctx): Likewise.
45806         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
45807         (libc_feholdexcept_setround_387_ctx): Likewise.
45808         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
45809         (libc_feholdsetround_387_prec_ctx): Likewise.
45810         (libc_feholdsetround_387_ctx): Likewise.
45811         (libc_feholdsetround_387_53bit_ctx): Likewise.
45812         (libc_feholdsetround_sse_ctx): Likewise.
45813         (libc_feresetround_sse_ctx): Likewise.
45814         (libc_feresetround_387_ctx): Likewise.
45815         (libc_feupdateenv_387_ctx): Likewise.
45816         (libc_feholdexcept_setroundf_ctx): Define macro.
45817         (libc_fesetenvf_ctx): Likewise.
45818         (libc_feupdateenvf_ctx): Likewise.
45819         (libc_feholdsetroundf_ctx): Likewise.
45820         (libc_feresetroundf_ctx): Likewise.
45821         (libc_feholdexcept_setround_ctx): Likewise.
45822         (libc_fesetenv_ctx): Likewise.
45823         (libc_feupdateenv_ctx): Likewise.
45824         (libc_feholdsetround_ctx): Likewise.
45825         (libc_feresetround_ctx): Likewise.
45826         (libc_feholdexcept_setroundl_ctx): Likewise.
45827         (libc_feupdateenvl_ctx): Likewise.
45828         (libc_feholdsetroundl_ctx): Likewise.
45829         (libc_feresetroundl_ctx): Likewise.
45830         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
45831         (libc_feresetround_53bit_ctx): Likewise.
45832
45833 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45834
45835         * locale/iso-639.def: Convert to UTF-8.
45836
45837 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
45838
45839         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
45840         (EXCEPTION_TESTS_double): Likewise.
45841         (EXCEPTION_TESTS_long_double): Likewise.
45842         (EXCEPTION_TESTS): Likewise.
45843         * math/libm-test.inc (test_exceptions): Only test exceptions if
45844         EXCEPTION_TESTS (FLOAT).
45845
45846 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45847
45848         * benchtests/Makefile (string-bench): Add strcpy_chk and
45849         stpcpy_chk.
45850         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
45851         * benchtests/bench-stpcpy_chk.c: New file.
45852         * benchtests/bench-strcpy_chk-ifunc.c: New file.
45853         * benchtests/bench-strcpy_chk.c: New file.
45854         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
45855         code.
45856         (do_test): Likewise.
45857
45858 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
45859
45860         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
45861         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
45862         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
45863         with tabs where appropriate.
45864         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
45865         dl-procinfo.h.
45866         [PPC_PLATFORM_PPC440]: Likewise.
45867         [PPC_PLATFORM_PPC464]: Likewise.
45868         [PPC_PLATFORM_PPC476]: Likewise.
45869         (_dl_string_platform): Add support for detecting ppc405, ppc440,
45870         ppc464, and ppc476 platform strings merging from ports/
45871         dl-procinfo.h.
45872
45873 2013-06-11  Andreas Schwab  <schwab@suse.de>
45874
45875         [BZ #14991]
45876         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
45877         (from_ucs4_idx): Regenerate.
45878         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
45879         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
45880         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
45881         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
45882         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
45883         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
45884         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
45885         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
45886         from FROM_LOOP and TO_LOOP specific macros.
45887         (BODY): Handle combining characters.
45888         * iconvdata/BIG5HKSCS.irreversible: Update.
45889         * iconvdata/BIG5HKSCS.precomposed: New file.
45890         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
45891         characters.
45892         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
45893
45894 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
45895
45896         * include/sys/time.h: Fix indentation and add copyright header.
45897
45898         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
45899         (do_test): Likewise.
45900         * string/test-memchr.c (do_one_test): Likewise.
45901         (do_test): Likewise.
45902         * string/test-memcmp.c (do_one_test): Likewise.
45903         (do_test): Likewise.
45904         * string/test-memcpy.c (do_one_test): Likewise.
45905         (do_test): Likewise.
45906         * string/test-memmem.c (do_one_test): Likewise.
45907         (do_test): Likewise.
45908         (do_random_tests): Likewise.
45909         * string/test-memmove.c (do_one_test): Likewise.
45910         (do_test): Likewise.
45911         * string/test-memset.c (do_one_test): Likewise.
45912         (do_test): Likewise.
45913         * string/test-rawmemchr.c (do_one_test): Likewise.
45914         (do_test): Likewise.
45915         * string/test-strcasecmp.c (do_one_test): Likewise.
45916         (do_test): Likewise.
45917         * string/test-strcasestr.c (do_one_test): Likewise.
45918         (do_test): Likewise.
45919         * string/test-strcat.c (do_one_test): Likewise.
45920         (do_test): Likewise.
45921         * string/test-strchr.c (do_one_test): Likewise.
45922         (do_test): Likewise.
45923         * string/test-strcmp.c (do_one_test): Likewise.
45924         (do_test): Likewise.
45925         * string/test-strcpy.c (do_one_test): Likewise.
45926         (do_test): Likewise.
45927         * string/test-string.h: Likewise.
45928         (test_init): Likewise.
45929         * string/test-strlen.c (do_one_test): Likewise.
45930         (do_test): Likewise.
45931         * string/test-strncasecmp.c (do_one_test): Likewise.
45932         (do_test): Likewise.
45933         * string/test-strncat.c (do_one_test): Likewise.
45934         (do_test): Likewise.
45935         * string/test-strncmp.c (do_one_test): Likewise.
45936         (do_test_limit): Likewise.
45937         (do_test): Likewise.
45938         * string/test-strncpy.c (do_one_test): Likewise.
45939         (do_test): Likewise.
45940         * string/test-strnlen.c (do_one_test): Likewise.
45941         (do_test): Likewise.
45942         * string/test-strpbrk.c (do_one_test): Likewise.
45943         (do_test): Likewise.
45944         * string/test-strrchr.c (do_one_test): Likewise.
45945         (do_test): Likewise.
45946         * string/test-strspn.c (do_one_test): Likewise.
45947         (do_test): Likewise.
45948         * string/test-strstr.c (do_one_test): Likewise.
45949         (do_test): Likewise.
45950
45951         * benchtests/Makefile (string-bench): Add string benchmarks.
45952         * benchtests/bench-bcopy-ifunc.c: New file.
45953         * benchtests/bench-bcopy.c: New file.
45954         * benchtests/bench-bzero-ifunc.c: New file.
45955         * benchtests/bench-bzero.c: New file.
45956         * benchtests/bench-memccpy-ifunc.c: New file.
45957         * benchtests/bench-memccpy.c: New file.
45958         * benchtests/bench-memchr-ifunc.c: New file.
45959         * benchtests/bench-memchr.c: New file.
45960         * benchtests/bench-memcmp-ifunc.c: New file.
45961         * benchtests/bench-memcmp.c: New file.
45962         * benchtests/bench-memmem-ifunc.c: New file.
45963         * benchtests/bench-memmem.c: New file.
45964         * benchtests/bench-memmove-ifunc.c: New file.
45965         * benchtests/bench-memmove.c: New file.
45966         * benchtests/bench-mempcpy-ifunc.c: New file.
45967         * benchtests/bench-mempcpy.c: New file.
45968         * benchtests/bench-memset-ifunc.c: New file.
45969         * benchtests/bench-memset.c: New file.
45970         * benchtests/bench-rawmemchr-ifunc.c: New file.
45971         * benchtests/bench-rawmemchr.c: New file.
45972         * benchtests/bench-stpcpy-ifunc.c: New file.
45973         * benchtests/bench-stpcpy.c: New file.
45974         * benchtests/bench-stpncpy-ifunc.c: New file.
45975         * benchtests/bench-stpncpy.c: New file.
45976         * benchtests/bench-strcasecmp-ifunc.c: New file.
45977         * benchtests/bench-strcasecmp.c: New file.
45978         * benchtests/bench-strcasestr-ifunc.c: New file.
45979         * benchtests/bench-strcasestr.c: New file.
45980         * benchtests/bench-strcat-ifunc.c: New file.
45981         * benchtests/bench-strcat.c: New file.
45982         * benchtests/bench-strchr-ifunc.c: New file.
45983         * benchtests/bench-strchr.c: New file.
45984         * benchtests/bench-strchrnul-ifunc.c: New file.
45985         * benchtests/bench-strchrnul.c: New file.
45986         * benchtests/bench-strcmp-ifunc.c: New file.
45987         * benchtests/bench-strcmp.c: New file.
45988         * benchtests/bench-strcpy-ifunc.c: New file.
45989         * benchtests/bench-strcpy.c: New file.
45990         * benchtests/bench-strcspn-ifunc.c: New file.
45991         * benchtests/bench-strcspn.c: New file.
45992         * benchtests/bench-strlen-ifunc.c: New file.
45993         * benchtests/bench-strlen.c: New file.
45994         * benchtests/bench-strncasecmp-ifunc.c: New file.
45995         * benchtests/bench-strncasecmp.c: New file.
45996         * benchtests/bench-strncat-ifunc.c: New file.
45997         * benchtests/bench-strncat.c: New file.
45998         * benchtests/bench-strncmp-ifunc.c: New file.
45999         * benchtests/bench-strncmp.c: New file.
46000         * benchtests/bench-strncpy-ifunc.c: New file.
46001         * benchtests/bench-strncpy.c: New file.
46002         * benchtests/bench-strnlen-ifunc.c: New file.
46003         * benchtests/bench-strnlen.c: New file.
46004         * benchtests/bench-strpbrk-ifunc.c: New file.
46005         * benchtests/bench-strpbrk.c: New file.
46006         * benchtests/bench-strrchr-ifunc.c: New file.
46007         * benchtests/bench-strrchr.c: New file.
46008         * benchtests/bench-strspn-ifunc.c: New file.
46009         * benchtests/bench-strspn.c: New file.
46010         * benchtests/bench-strstr-ifunc.c: New file.
46011         * benchtests/bench-strstr.c: New file.
46012
46013         * benchtests/Makefile: Disable parallel execution of targets.
46014         (string-bench): Add memcpy.
46015         (benchset): New variable to store a list of benchmark sets.
46016         (bench-func): Renamed from bench.
46017         (bench-set): New target.
46018         (bench): Depend on bench-func and bench-set.
46019         * benchtests/README: Add section on benchmark sets.
46020         * benchtests/bench-memcpy-ifunc.c: New file.
46021         * benchtests/bench-memcpy.c: New file.
46022         * benchtests/bench-string.h: New file.
46023
46024 2013-06-11  Andreas Schwab  <schwab@suse.de>
46025
46026         [BZ #15577]
46027         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
46028         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
46029         values in the triple.
46030         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
46031         terminator in the group key.
46032
46033 2013-06-11  Andreas Jaeger  <aj@suse.de>
46034
46035         * po/zh_TW.po: Update Chinese (traditional) translation from
46036         translation project.
46037
46038 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
46039
46040         * include/time.h (__clock_gettime): Add libc_hidden_proto.
46041         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
46042         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
46043         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
46044         (clock_getcpuclockid): Likewise.
46045         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
46046         Add weak_alias and libc_hidden_def.
46047         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
46048         * rt/clock_gettime.c (clock_gettime): Rename to
46049         __clock_gettime.  Add weak_alias and libc_hidden_def.
46050         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
46051         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
46052         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
46053         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
46054         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
46055         Likewise.
46056         * rt/clock_settime.c (clock_settime): Rename to
46057         __clock_settime.  Add weak_alias and libc_hidden_def.
46058         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
46059
46060 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
46061
46062         * mach/err_boot.sub: Remove trailing whitespace.
46063         * mach/err_ipc.sub: Likewise.
46064         * mach/err_mach.sub: Likewise.
46065
46066         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
46067         (ROUNDING_TESTS_double): Likewise.
46068         (ROUNDING_TESTS_long_double): Likewise.
46069         (ROUNDING_TESTS): Likewise.
46070         * math/libm-test.inc: Include <math-tests.h>.
46071         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
46072         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
46073         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
46074         (IF_ROUND_INIT_FE_UPWARD): Likewise.
46075
46076 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
46077
46078         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
46079         of assigning.
46080
46081 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
46082
46083         * sysdeps/gnu/errlist.awk: Do not generate space at end of
46084         otherwise empty TRANS lines.
46085         * sysdeps/gnu/errlist.c: Regenerated.
46086
46087         * catgets/gencat.c (error_print): Use (void) in function
46088         definition.
46089         * crypt/crypt_util.c (__init_des): Likewise.
46090         * crypt/speeds.c (Stop): Likewise.
46091         (main): Likewise.
46092         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
46093         * inet/ruserpass.c (token): Likewise.
46094         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
46095         * intl/localealias.c (extend_alias_table): Likewise.
46096         * intl/plural-exp.c (init_germanic_plural): Likewise.
46097         * libio/fcloseall.c (__fcloseall): Likewise.
46098         * libio/genops.c (_IO_flush_all): Likewise.
46099         (_IO_flush_all_linebuffered): Likewise.
46100         (_IO_cleanup): Likewise.
46101         (_IO_iter_begin): Likewise.
46102         (_IO_iter_end): Likewise.
46103         (_IO_list_lock): Likewise.
46104         (_IO_list_unlock): Likewise.
46105         (_IO_list_resetlock): Likewise.
46106         * libio/getchar.c (getchar): Likewise.
46107         * libio/getchar_u.c (getchar_unlocked): Likewise.
46108         * libio/getwchar.c (getwchar): Likewise.
46109         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
46110         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
46111         * login/getpt.c (__getpt): Likewise.
46112         * login/tst-utmp.c (main): Likewise.
46113         * malloc/hooks.c (__malloc_check_init): Likewise.
46114         * malloc/malloc.c (__malloc_stats): Likewise.
46115         * malloc/mtrace.c (tr_break): Likewise.
46116         (mtrace): Likewise.
46117         (muntrace): Likewise.
46118         * misc/fstab.c (endfsent): Likewise.
46119         * misc/getclktck.c (__getclktck): Likewise.
46120         * misc/getdtsz.c (__getdtablesize): Likewise.
46121         * misc/gethostid.c (gethostid): Likewise.
46122         * misc/getpagesize.c (__getpagesize): Likewise.
46123         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
46124         (__get_nprocs): Likewise.
46125         (__get_phys_pages): Likewise.
46126         (__get_avphys_pages): Likewise.
46127         * misc/getttyent.c (getttyent): Likewise.
46128         (setttyent): Likewise.
46129         (endttyent): Likewise.
46130         * misc/getusershell.c (getusershell): Likewise.
46131         (endusershell): Likewise.
46132         (setusershell): Likewise.
46133         (initshells): Likewise.
46134         * misc/hsearch.c (__hdestroy): Likewise.
46135         * misc/sync.c (sync): Likewise.
46136         * misc/syslog.c (closelog_internal): Likewise.
46137         (closelog): Likewise.
46138         * misc/ttyslot.c (ttyslot): Likewise.
46139         * misc/vhangup.c (vhangup): Likewise.
46140         * posix/fork.c (__fork): Likewise.
46141         * posix/getegid.c (__getegid): Likewise.
46142         * posix/geteuid.c (__geteuid): Likewise.
46143         * posix/getgid.c (__getgid): Likewise.
46144         * posix/getpid.c (__getpid): Likewise.
46145         * posix/getppid.c (__getppid): Likewise.
46146         * posix/getuid.c (__getuid): Likewise.
46147         * posix/pause.c (pause): Likewise.
46148         * posix/setpgrp.c (setpgrp): Likewise.
46149         * posix/setsid.c (__setsid): Likewise.
46150         * posix/test-vfork.c (noop): Likewise.
46151         * resolv/gethnamaddr.c (_endhtent): Likewise.
46152         (_gethtent): Likewise.
46153         (ht_endhostent): Likewise.
46154         (gethostent): Likewise.
46155         (dns_service): Likewise.
46156         * stdlib/drand48.c (drand48): Likewise.
46157         * stdlib/lrand48.c (lrand48): Likewise.
46158         * stdlib/mrand48.c (mrand48): Likewise.
46159         * stdlib/rand.c (rand): Likewise.
46160         * stdlib/random.c (__random): Likewise.
46161         * stdlib/setenv.c (clearenv): Likewise.
46162         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
46163         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
46164         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
46165         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
46166         (__get_nprocs): Likewise.
46167         (__get_phys_pages): Likewise.
46168         (__get_avphys_pages): Likewise.
46169         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
46170         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
46171         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
46172         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
46173         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
46174         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
46175         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
46176         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
46177         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
46178         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
46179         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
46180         * sysdeps/mach/hurd/sync.c (sync): Likewise.
46181         * sysdeps/posix/clock.c (clock): Likewise.
46182         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
46183         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
46184         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
46185         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
46186         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
46187         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
46188         (__get_nprocs_conf): Likewise.
46189         (__get_phys_pages): Likewise.
46190         (__get_avphys_pages): Likewise.
46191         * time/clock.c (clock): Likewise.
46192         * time/tzset.c (__tzname_max): Likewise.
46193
46194 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
46195
46196         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
46197         (__bswap_32): Do not use "register".
46198         * crypt/crypt.c (_ufc_doit_r): Likewise.
46199         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
46200         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
46201         * gmon/gmon.c (__monstartup): Likewise.
46202         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
46203         * hurd/hurdmalloc.c (more_memory): Likewise.
46204         (malloc): Likewise.
46205         (free): Likewise.
46206         (realloc): Likewise.
46207         (malloc_fork_prepare): Likewise.
46208         (malloc_fork_parent): Likewise.
46209         (malloc_fork_child): Likewise.
46210         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
46211         (_svcauth_des): Likewise.
46212         * inet/inet_lnaof.c (inet_lnaof): Likewise.
46213         * inet/inet_net.c (inet_network): Likewise.
46214         * inet/inet_netof.c (inet_netof): Likewise.
46215         * inet/rcmd.c (__validuser2_sa): Likewise.
46216         * io/fts.c (fts_open): Likewise.
46217         (fts_load): Likewise.
46218         (fts_close): Likewise.
46219         (fts_read): Likewise.
46220         (fts_children): Likewise.
46221         (fts_build): Likewise.
46222         (fts_stat): Likewise.
46223         (fts_sort): Likewise.
46224         (fts_alloc): Likewise.
46225         (fts_lfree): Likewise.
46226         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
46227         (_IO_file_xsgetn): Likewise.
46228         (_IO_file_xsgetn_mmap): Likewise.
46229         * libio/iofopncook.c (_IO_cookie_read): Likewise.
46230         (_IO_cookie_write): Likewise.
46231         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
46232         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
46233         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
46234         * malloc/obstack.c (_obstack_begin): Likewise.
46235         (_obstack_begin_1): Likewise.
46236         (_obstack_newchunk): Likewise.
46237         (_obstack_allocated_p): Likewise.
46238         (obstack_free): Likewise.
46239         (_obstack_memory_used): Likewise.
46240         * misc/getttyent.c (getttynam): Likewise.
46241         (getttyent): Likewise.
46242         (skip): Likewise.
46243         (value): Likewise.
46244         * misc/getusershell.c (initshells): Likewise.
46245         * misc/syslog.c (__vsyslog_chk): Likewise.
46246         * misc/ttyslot.c (ttyslot): Likewise.
46247         * nis/nis_hash.c (__nis_hash): Likewise.
46248         * posix/fnmatch_loop.c (FCT): Likewise.
46249         * posix/getconf.c (print_all): Likewise.
46250         (main): Likewise.
46251         * posix/getopt.c (exchange): Likewise.
46252         * posix/glob.c (globfree): Likewise.
46253         (prefix_array): Likewise.
46254         (__glob_pattern_type): Likewise.
46255         * resolv/arpa/nameser.h (NS_GET16): Likewise.
46256         (NS_GET32): Likewise.
46257         (NS_PUT16): Likewise.
46258         (NS_PUT32): Likewise.
46259         * resolv/gethnamaddr.c (getanswer): Likewise.
46260         (gethostbyname2): Likewise.
46261         (gethostbyaddr): Likewise.
46262         (_gethtent): Likewise.
46263         (_gethtbyname2): Likewise.
46264         (_gethtbyaddr): Likewise.
46265         * resolv/ns_print.c (dst_s_get_int16): Likewise.
46266         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
46267         * resolv/res_init.c (__res_vinit): Likewise.
46268         (net_mask): Likewise.
46269         * resolv/res_mkquery.c (outchar): Likewise.
46270         (PRINT): Likewise.
46271         * stdio-common/printf_fp.c (outchar): Likewise.
46272         (PRINT): Likewise.
46273         * stdio-common/printf_fphex.c (outchar): Likewise.
46274         (PRINT): Likewise.
46275         * stdio-common/printf_size.c (outchar): Likewise.
46276         (PRINT): Likewise.
46277         * stdio-common/test_rdwr.c (main): Likewise.
46278         * stdio-common/tfformat.c (matches): Likewise.
46279         * stdio-common/vfprintf.c (outchar): Likewise.
46280         (printf_unknown): Likewise.
46281         (buffered_vfprintf): Likewise.
46282         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
46283         * stdio-common/xbug.c (AppendToBuffer): Likewise.
46284         (ReadFile): Likewise.
46285         * stdlib/qsort.c (SWAP): Likewise.
46286         (_quicksort): Likewise.
46287         * stdlib/setenv.c (__add_to_environ): Likewise.
46288         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
46289         * stdlib/strtol_l.c (__strtol_l): Likewise.
46290         * stdlib/tst-strtod.c (main): Likewise.
46291         * stdlib/tst-strtol.c (main): Likewise.
46292         * stdlib/tst-strtoll.c (main): Likewise.
46293         * string/bits/string2.h (__strcmp_cc): Likewise.
46294         (__strcmp_cg): Likewise.
46295         (__strcspn_c1): Likewise.
46296         (__strcspn_c2): Likewise.
46297         (__strcspn_c3): Likewise.
46298         (__strspn_c1): Likewise.
46299         (__strspn_c2): Likewise.
46300         (__strspn_c3): Likewise.
46301         (__strsep_1c): Likewise.
46302         (__strsep_2c): Likewise.
46303         (__strsep_3c): Likewise.
46304         * string/memccpy.c (__memccpy): Likewise.
46305         * string/stpcpy.c (__stpcpy): Likewise.
46306         * string/strcmp.c (strcmp): Likewise.
46307         * string/strrchr.c (strrchr): Likewise.
46308         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
46309         Likewise.
46310         * sysdeps/mach/hurd/getcwd.c
46311         (_hurd_canonicalize_directory_name_internal): Likewise.
46312         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
46313         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
46314         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
46315         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
46316         Likewise, in both definitions.
46317         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
46318         definitions.
46319         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
46320         64] (__bswap_64): Likewise.
46321         * time/test_time.c (main): Likewise.
46322         * time/tzfile.c (__tzfile_read): Likewise.
46323         (__tzfile_compute): Likewise.
46324         * time/tzset.c (__tzset_parse_tz): Likewise.
46325         (tzset_internal): Likewise.
46326         (compute_change): Likewise.
46327         * wcsmbs/wcscat.c (__wcscat): Likewise.
46328         * wcsmbs/wcschr.c (wcschr): Likewise.
46329         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
46330         * wcsmbs/wcscspn.c (wcscspn): Likewise.
46331         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
46332         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
46333         * wcsmbs/wcsspn.c (wcsspn): Likewise.
46334         * wcsmbs/wcsstr.c (wcsstr): Likewise.
46335         * wcsmbs/wmemchr.c (wmemchr): Likewise.
46336         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
46337         * wcsmbs/wmemset.c (wmemset): Likewise.
46338
46339 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
46340
46341         * scripts/config.guess: Update to version 2013-05-16.
46342         * scripts/config.sub: Update to version 2013-04-24.
46343         * scripts/install-sh: Update to version 2011-11-20.07.
46344         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
46345         * scripts/move-if-change: Update to version 2012-01-06 07:23.
46346
46347 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
46348
46349         * debug/fgetws_u_chk.c: Fix leading whitespaces.
46350         * elf/sln.c: Likewise.
46351         * hurd/hurd/ioctl.h: Likewise.
46352         * hurd/hurdmalloc.c: Likewise.
46353         * hurd/xattr.c: Likewise.
46354         * include/shlib-compat.h: Likewise.
46355         * inet/ruserpass.c: Likewise.
46356         * libio/iofgets_u.c: Likewise.
46357         * libio/iofgetws_u.c: Likewise.
46358         * locale/programs/ld-identification.c: Likewise.
46359         * locale/programs/ld-time.c: Likewise.
46360         * mach/msg-destroy.c: Likewise.
46361         * nss/nss_files/files-netgrp.c: Likewise.
46362         * resolv/res_data.c: Likewise.
46363         * soft-fp/op-1.h: Likewise.
46364         * soft-fp/op-2.h: Likewise.
46365         * soft-fp/op-4.h: Likewise.
46366         * soft-fp/op-common.h: Likewise.
46367         * stdio-common/printf_fphex.c: Likewise.
46368         * stdlib/strtod_l.c: Likewise.
46369         * sunrpc/rpc/clnt.h: Likewise.
46370         * sysdeps/generic/framestate.c: Likewise.
46371         * sysdeps/i386/bsd-_setjmp.S: Likewise.
46372         * sysdeps/i386/bsd-setjmp.S: Likewise.
46373         * sysdeps/i386/__longjmp.S: Likewise.
46374         * sysdeps/i386/setjmp.S: Likewise.
46375         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
46376         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
46377         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46378         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
46379         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
46380         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
46381         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
46382         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
46383         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
46384         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
46385         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
46386         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
46387         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
46388         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
46389         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
46390         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
46391         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
46392         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
46393         * sysdeps/ieee754/support.c: Likewise.
46394         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
46395         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
46396         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
46397         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
46398         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
46399         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
46400         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
46401         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
46402         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
46403         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
46404         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
46405         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
46406         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
46407         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
46408         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
46409         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
46410         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
46411         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
46412
46413 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
46414
46415         * posix/transbug.c: Remove executable mode.
46416
46417 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
46418
46419         * crypt/speeds.c: Remove trailing whitespace.
46420         * dlfcn/default.c: Likewise.
46421         * elf/ifuncdep2.c: Likewise.
46422         * elf/ifuncmain1.c: Likewise.
46423         * elf/ifuncmain1vis.c: Likewise.
46424         * elf/testobj.h: Likewise.
46425         * elf/tst-stackguard1.c: Likewise.
46426         * gmon/sys/gmon.h: Likewise.
46427         * hurd/hurdmsg.c: Likewise.
46428         * hurd/new-fd.c: Likewise.
46429         * hurd/ports-get.c: Likewise.
46430         * iconvdata/ibm1008_420.c: Likewise.
46431         * inet/tst-getni1.c: Likewise.
46432         * inet/tst-getni2.c: Likewise.
46433         * libio/ioungetc.c: Likewise.
46434         * libio/wfiledoalloc.c: Likewise.
46435         * manual/libm-err-tab.pl: Likewise.
46436         * math/w_dremf.c: Likewise.
46437         * misc/ftruncate.c: Likewise.
46438         * posix/bug-glob2.c: Likewise.
46439         * posix/tst-pcre.c: Likewise.
46440         * posix/wait4.c: Likewise.
46441         * resolv/README: Likewise.
46442         * resolv/res_debug.h: Likewise.
46443         * resolv/tst-inet_ntop.c: Likewise.
46444         * setjmp/bug269-setjmp.c: Likewise.
46445         * soft-fp/extended.h: Likewise.
46446         * soft-fp/op-1.h: Likewise.
46447         * soft-fp/op-2.h: Likewise.
46448         * soft-fp/op-4.h: Likewise.
46449         * soft-fp/op-8.h: Likewise.
46450         * soft-fp/testit.c: Likewise.
46451         * stdio-common/bug16.c: Likewise.
46452         * stdlib/random.c: Likewise.
46453         * sunrpc/rpcsvc/rquota.x: Likewise.
46454         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
46455         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
46456         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46457         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
46458         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
46459         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
46460         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
46461         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
46462         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
46463         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
46464         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
46465         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
46466         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
46467         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
46468         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
46469         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
46470         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
46471         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
46472         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
46473         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
46474         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
46475         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
46476         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
46477         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
46478         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
46479         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
46480         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
46481         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
46482         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
46483         * sysdeps/ieee754/s_lib_version.c: Likewise.
46484         * sysdeps/mach/hurd/check_fds.c: Likewise.
46485         * sysdeps/mach/hurd/getsockname.c: Likewise.
46486         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
46487         * sysdeps/mach/hurd/recvfrom.c: Likewise.
46488         * sysdeps/powerpc/bits/link.h: Likewise.
46489         * sysdeps/powerpc/dl-procinfo.c: Likewise.
46490         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
46491         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
46492         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
46493         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
46494         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
46495         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
46496         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
46497         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
46498         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
46499         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
46500         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
46501         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
46502         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
46503         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
46504         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
46505         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
46506         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
46507         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
46508         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
46509         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
46510         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
46511         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
46512         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
46513         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
46514         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
46515         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
46516         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
46517         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
46518         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
46519         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
46520         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
46521         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
46522         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
46523         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
46524         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
46525         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
46526         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
46527         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
46528         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
46529         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
46530         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
46531         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
46532         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
46533         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
46534         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
46535         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
46536         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
46537         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
46538         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
46539         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
46540         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
46541         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
46542         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
46543         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
46544         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
46545         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
46546         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
46547         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
46548         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
46549         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
46550         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
46551         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
46552         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
46553         * sysdeps/powerpc/sysdep.h: Likewise.
46554         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
46555         * sysdeps/s390/s390-64/sub_n.S: Likewise.
46556         * sysdeps/sh/dl-trampoline.S: Likewise.
46557         * sysdeps/sh/memset.S: Likewise.
46558         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
46559         * sysdeps/sh/strlen.S: Likewise.
46560         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
46561         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
46562         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
46563         * sysdeps/sparc/sparc32/rem.S: Likewise.
46564         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
46565         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
46566         * sysdeps/sparc/sparc32/strchr.S: Likewise.
46567         * sysdeps/sparc/sparc32/udiv.S: Likewise.
46568         * sysdeps/sparc/sparc32/urem.S: Likewise.
46569         * sysdeps/sparc/sparc64/add_n.S: Likewise.
46570         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
46571         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
46572         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
46573         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
46574         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
46575         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
46576         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
46577         * sysdeps/unix/bsd/times.c: Likewise.
46578         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
46579         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
46580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
46581         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
46582         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
46583         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
46584         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
46585         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
46586         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
46587         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
46588         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
46589         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
46590         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
46591         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
46592         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
46593         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
46594         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
46595         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
46596         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
46597         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
46598         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
46599         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
46600         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
46601         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
46602         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
46603         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
46604         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
46605         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
46606         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
46607         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
46608         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
46609         * sysdeps/x86_64/strcspn.S: Likewise.
46610
46611 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
46612
46613         * locale/C-translit.h: Revert #include <stdint.h> because this is a
46614         generated file.  Regenerate properly from gen-translit.pl.
46615         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
46616         locale/C-translit.h.
46617
46618 2013-06-05  Andreas Schwab  <schwab@suse.de>
46619
46620         [BZ #15100]
46621         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
46622         week as 6 instead of -1.
46623         * time/tst-strptime.c (day_tests): Add test case.
46624
46625 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
46626
46627         * sysdeps/generic/math_private.h
46628         (libc_feholdexcept_setround_53bit): Replace with
46629         libc_feholdsetround_53bit.
46630         (libc_feupdateenv_53bit): Replace with
46631         libc_feresetround_53bit.
46632         (SET_RESTORE_ROUND_53BIT): Adjust.
46633
46634 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
46635
46636         * string/test-strchrnul.c: Add copyright header.
46637
46638         * posix/tst-getaddrinfo4.c: Increase test timeout.
46639
46640 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
46641
46642         [BZ #15536]
46643         * math/libm-test.inc (MAX_EXP): Remove
46644         (MIN_EXP): Define.
46645         (ulp): Use MIN_EXP - MANT_DIG.
46646         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
46647
46648 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
46649
46650         * po/be.po: Revert last change.
46651         * po/zh_CN.po: Likewise.
46652         * po/header.pot: Likewise.
46653
46654 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
46655
46656         * Makefile ($(common-objpfx)linkobj/libc.so): Define
46657         link-libc-deps to empty as target-specific variable.
46658         * Makerules (link-libc-args): New variable.
46659         (libc-for-link): Likewise.
46660         (link-libc-deps): Likewise.
46661         (lib%.so): Depend on $(link-libc-deps).  Link with
46662         $(link-libc-args).
46663         (build-module): Link with $(link-libc-args).
46664         (build-module-asneeded): Likewise.
46665         (build-module-helper-objlist): Filter out $(link-libc-deps) from
46666         list of objects.
46667         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
46668         target-specific variable.
46669         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
46670         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
46671         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
46672         libc.
46673         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
46674         libc and ld.so.
46675         ($(objpfx)libpcprofile.so): Likewise.
46676         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
46677         libc_nonshared.a.
46678         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
46679         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
46680         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
46681         $(link-libc-deps).
46682         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
46683         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
46684         * login/Makefile ($(objpfx)libutil.so): Likewise.
46685         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
46686         * math/Makefile ($(objpfx)libm.so): Likewise.
46687         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
46688         $(objpfx)libnsl.so): Define libc-for-link as target-specific
46689         variable instead of depending directly on libc.
46690         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
46691         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
46692         $(link-libc-deps).
46693         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
46694         libc.
46695         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
46696         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
46697         ($(objpfx)libanl.so): Likewise.
46698         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
46699         ld.so.
46700         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
46701         $(link-libc-deps).
46702         * sysdeps/i386/fpu/Makefile: Remove file.
46703         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
46704         ($(objpfx)libm.so): Remove dependency on ld.so.
46705
46706 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
46707
46708         [BZ # 15553]
46709         * nis/yp_xdr.c (XDRMAXNAME): Define.
46710         (XDRMAXRECORD): Define.
46711         (xdr_domainname): Use XDRMAXNAME.
46712         (xdr_mapname): Likewise.
46713         (xdr_peername): Likewise.
46714         (xdr_keydat): Use XDRMAXRECORD.
46715         (xdr_valdat): Likewise.
46716
46717 2013-05-30  Jeff Law  <law@redhat.com>
46718
46719         [BZ #14256]
46720         * manual/errno.texi (ESTALE): Update to account for more than
46721         just NFS file systems.
46722         * sysdeps/gnu/errlist.c: Regenerated.
46723
46724 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
46725
46726         [BZ #15465]
46727         * elf/Makefile (tests): Add tst-null-argv.
46728         (modules-names):  Add tst-null-argv-lib.
46729         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
46730         (tst-null-argv-ENV): Set environment for tst-null-argv.
46731         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
46732         (RTLD_PROGNAME): New macro.
46733         * elf/tst-null-argv.c: New test case.
46734         * elf/tst-null-argv-lib.c: Library for test case.
46735         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
46736         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
46737         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
46738         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
46739         * elf/dl-init.c (call_init): Likewise.
46740         (_dl_init): Likewise.
46741         * elf/dl-load.c (print_search_path): Likewise.
46742         (_dl_map_object): Likewise.
46743         * elf/dl-lookup.c (do_lookup_x): Likewise.
46744         (add_dependency): Likewise.
46745         (_dl_lookup_symbol_x): Likewise.
46746         (_dl_debug_bindings): Likewise.
46747         * elf/dl-open.c (_dl_show_scope): Likewise.
46748         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
46749         * elf/dl-version.c (match_symbol): Likewise.
46750         (_dl_check_map_versions): Likewise.
46751         * elf/rtld.c (dl_main): Likewise.
46752         (print_unresolved): Use RTLD_PROGNAME.
46753         (print_missing_version): Likewise.
46754         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
46755         (elf_machine_rela): Likewise.
46756         * sysdeps/powerpc/powerpc32/dl-machine.c
46757         (__process_machine_rela): Likewise.
46758         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
46759         Likewise.
46760         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
46761         Likewise.
46762         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
46763         Likewise.
46764         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
46765         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
46766         Likewise.
46767         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
46768         Likewise.
46769         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
46770
46771 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
46772
46773         * po/be.po: Add descriptive title.
46774         * po/zh_CN.po: Likewise.
46775         * po/header.pot: Likewise.
46776
46777 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
46778
46779         * locale/programs/locarchive.c (create_archive): Inlucde fname in
46780         error message.
46781         (enlarge_archive): Likewise.
46782
46783 2013-05-28  Ben North  <ben@redfrontdoor.org>
46784
46785         * manual/arith.texi (frexp): It is the magnitude of the return
46786         value which lies in [0.5, 1), not the return value itself.
46787
46788 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46789
46790         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
46791
46792 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
46793
46794         * stdio-common/bug26.c (main): Correct fscanf template.
46795
46796         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
46797         declare _dl_skip_args.
46798
46799         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
46800         Don't declare.
46801
46802         * manual/platform.texi: Add missing @end deftypefun.
46803
46804 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46805
46806         [BZ #15529]
46807         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
46808         bit of mantissa of 2^16382.
46809         * math/libm-test.inc (hypot_test_data): Add more tests.
46810
46811         * math/libm-test.inc: Add drem and pow10 to list of tested
46812         functions.
46813         (pow10_test): New function.
46814         (drem_test): Likewise.
46815         (drem_test_tonearest): Likewise.
46816         (drem_test_towardzero): Likewise.
46817         (drem_test_downward): Likewise.
46818         (drem_test_upward): Likewise.
46819         (main): Call the new functions.
46820
46821         * math/libm-test.inc (finite_test_data): Remove.
46822         (finite_test): Run tests from isfinite_test_data.
46823         (gamma_test_data): Remove.
46824         (gamma_test): Run tests from lgamma_test_data.
46825         * sysdeps/i386/fpu/libm-test-ulps: Update.
46826         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46827
46828 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46829
46830         * manual/platform.texi: Add PowerPC PPR function set documentation.
46831         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
46832         implementation.
46833
46834 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
46835
46836         * math/libm-test.inc (MAX_EXP): Define.
46837         (ULPDIFF): Define.
46838         (ulp): New function.
46839         (check_float_internal): Use ULPDIFF.
46840         (cpow_test): Disable failing test.
46841         (check_ulp): Test ulp() implemetnation.
46842         (main): Call check_ulp before starting tests.
46843
46844 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
46845
46846         * math/gen-libm-test.pl (generate_testfile): Do not handle
46847         START_DATA and END_DATA.
46848         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
46849         END_DATA.
46850         (acos_tonearest_test_data): Likewise.
46851         (acos_towardzero_test_data): Likewise.
46852         (acos_downward_test_data): Likewise.
46853         (acos_upward_test_data): Likewise.
46854         (acosh_test_data): Likewise.
46855         (asin_test_data): Likewise.
46856         (asin_tonearest_test_data): Likewise.
46857         (asin_towardzero_test_data): Likewise.
46858         (asin_downward_test_data): Likewise.
46859         (asin_upward_test_data): Likewise.
46860         (asinh_test_data): Likewise.
46861         (atan_test_data): Likewise.
46862         (atanh_test_data): Likewise.
46863         (atan2_test_data): Likewise.
46864         (cabs_test_data): Likewise.
46865         (cacos_test_data): Likewise.
46866         (cacosh_test_data): Likewise.
46867         (carg_test_data): Likewise.
46868         (casin_test_data): Likewise.
46869         (casinh_test_data): Likewise.
46870         (catan_test_data): Likewise.
46871         (catanh_test_data): Likewise.
46872         (cbrt_test_data): Likewise.
46873         (ccos_test_data): Likewise.
46874         (ccosh_test_data): Likewise.
46875         (ceil_test_data): Likewise.
46876         (cexp_test_data): Likewise.
46877         (cimag_test_data): Likewise.
46878         (clog_test_data): Likewise.
46879         (clog10_test_data): Likewise.
46880         (conj_test_data): Likewise.
46881         (copysign_test_data): Likewise.
46882         (cos_test_data): Likewise.
46883         (cos_tonearest_test_data): Likewise.
46884         (cos_towardzero_test_data): Likewise.
46885         (cos_downward_test_data): Likewise.
46886         (cos_upward_test_data): Likewise.
46887         (cosh_test_data): Likewise.
46888         (cosh_tonearest_test_data): Likewise.
46889         (cosh_towardzero_test_data): Likewise.
46890         (cosh_downward_test_data): Likewise.
46891         (cosh_upward_test_data): Likewise.
46892         (cpow_test_data): Likewise.
46893         (cproj_test_data): Likewise.
46894         (creal_test_data): Likewise.
46895         (csin_test_data): Likewise.
46896         (csinh_test_data): Likewise.
46897         (csqrt_test_data): Likewise.
46898         (ctan_test_data): Likewise.
46899         (ctan_tonearest_test_data): Likewise.
46900         (ctan_towardzero_test_data): Likewise.
46901         (ctan_downward_test_data): Likewise.
46902         (ctan_upward_test_data): Likewise.
46903         (ctanh_test_data): Likewise.
46904         (ctanh_tonearest_test_data): Likewise.
46905         (ctanh_towardzero_test_data): Likewise.
46906         (ctanh_downward_test_data): Likewise.
46907         (ctanh_upward_test_data): Likewise.
46908         (erf_test_data): Likewise.
46909         (erfc_test_data): Likewise.
46910         (exp_test_data): Likewise.
46911         (exp_tonearest_test_data): Likewise.
46912         (exp_towardzero_test_data): Likewise.
46913         (exp_downward_test_data): Likewise.
46914         (exp_upward_test_data): Likewise.
46915         (exp10_test_data): Likewise.
46916         (exp2_test_data): Likewise.
46917         (expm1_test_data): Likewise.
46918         (fabs_test_data): Likewise.
46919         (fdim_test_data): Likewise.
46920         (finite_test_data): Likewise.
46921         (floor_test_data): Likewise.
46922         (fma_test_data): Likewise.
46923         (fma_towardzero_test_data): Likewise.
46924         (fma_downward_test_data): Likewise.
46925         (fma_upward_test_data): Likewise.
46926         (fmax_test_data): Likewise.
46927         (fmin_test_data): Likewise.
46928         (fmod_test_data): Likewise.
46929         (fpclassify_test_data): Likewise.
46930         (frexp_test_data): Likewise.
46931         (gamma_test_data): Likewise.
46932         (hypot_test_data): Likewise.
46933         (ilogb_test_data): Likewise.
46934         (isfinite_test_data): Likewise.
46935         (isgreater_test_data): Likewise.
46936         (isgreaterequal_test_data): Likewise.
46937         (isinf_test_data): Likewise.
46938         (isless_test_data): Likewise.
46939         (islessequal_test_data): Likewise.
46940         (islessgreater_test_data): Likewise.
46941         (isnan_test_data): Likewise.
46942         (isnormal_test_data): Likewise.
46943         (issignaling_test_data): Likewise.
46944         (isunordered_test_data): Likewise.
46945         (j0_test_data): Likewise.
46946         (j1_test_data): Likewise.
46947         (jn_test_data): Likewise.
46948         (ldexp_test_data): Likewise.
46949         (lgamma_test_data): Likewise.
46950         (lrint_test_data): Likewise.
46951         (lrint_tonearest_test_data): Likewise.
46952         (lrint_towardzero_test_data): Likewise.
46953         (lrint_downward_test_data): Likewise.
46954         (lrint_upward_test_data): Likewise.
46955         (llrint_test_data): Likewise.
46956         (llrint_tonearest_test_data): Likewise.
46957         (llrint_towardzero_test_data): Likewise.
46958         (llrint_downward_test_data): Likewise.
46959         (llrint_upward_test_data): Likewise.
46960         (log_test_data): Likewise.
46961         (log10_test_data): Likewise.
46962         (log1p_test_data): Likewise.
46963         (log2_test_data): Likewise.
46964         (logb_test_data): Likewise.
46965         (logb_downward_test_data): Likewise.
46966         (lround_test_data): Likewise.
46967         (llround_test_data): Likewise.
46968         (modf_test_data): Likewise.
46969         (nearbyint_test_data): Likewise.
46970         (nextafter_test_data): Likewise.
46971         (nexttoward_test_data): Likewise.
46972         (pow_test_data): Likewise.
46973         (pow_tonearest_test_data): Likewise.
46974         (pow_towardzero_test_data): Likewise.
46975         (pow_downward_test_data): Likewise.
46976         (pow_upward_test_data): Likewise.
46977         (remainder_test_data): Likewise.
46978         (remainder_tonearest_test_data): Likewise.
46979         (remainder_towardzero_test_data): Likewise.
46980         (remainder_downward_test_data): Likewise.
46981         (remainder_upward_test_data): Likewise.
46982         (remquo_test_data): Likewise.
46983         (rint_test_data): Likewise.
46984         (rint_tonearest_test_data): Likewise.
46985         (rint_towardzero_test_data): Likewise.
46986         (rint_downward_test_data): Likewise.
46987         (rint_upward_test_data): Likewise.
46988         (round_test_data): Likewise.
46989         (scalb_test_data): Likewise.
46990         (scalbn_test_data): Likewise.
46991         (scalbln_test_data): Likewise.
46992         (signbit_test_data): Likewise.
46993         (sin_test_data): Likewise.
46994         (sin_tonearest_test_data): Likewise.
46995         (sin_towardzero_test_data): Likewise.
46996         (sin_downward_test_data): Likewise.
46997         (sin_upward_test_data): Likewise.
46998         (sincos_test_data): Likewise.
46999         (sinh_test_data): Likewise.
47000         (sinh_tonearest_test_data): Likewise.
47001         (sinh_towardzero_test_data): Likewise.
47002         (sinh_downward_test_data): Likewise.
47003         (sinh_upward_test_data): Likewise.
47004         (sqrt_test_data): Likewise.
47005         (tan_test_data): Likewise.
47006         (tan_tonearest_test_data): Likewise.
47007         (tan_towardzero_test_data): Likewise.
47008         (tan_downward_test_data): Likewise.
47009         (tan_upward_test_data): Likewise.
47010         (tanh_test_data): Likewise.
47011         (tgamma_test_data): Likewise.
47012         (trunc_test_data): Likewise.
47013         (y0_test_data): Likewise.
47014         (y1_test_data): Likewise.
47015         (yn_test_data): Likewise.
47016         (significand_test_data): Likewise.
47017
47018         * math/gen-libm-test.pl (@functions): Remove variable.
47019         (generate_testfile): Don't handle START and END lines.
47020         * math/libm-test.inc (START): New macro.
47021         (END): Likewise.
47022         (END_COMPLEX): Likewise.
47023         (acos_test): Use END macro without arguments.
47024         (acos_test_tonearest): Likewise.
47025         (acos_test_towardzero): Likewise.
47026         (acos_test_downward): Likewise.
47027         (acos_test_upward): Likewise.
47028         (acosh_test): Likewise.
47029         (asin_test): Likewise.
47030         (asin_test_tonearest): Likewise.
47031         (asin_test_towardzero): Likewise.
47032         (asin_test_downward): Likewise.
47033         (asin_test_upward): Likewise.
47034         (asinh_test): Likewise.
47035         (atan_test): Likewise.
47036         (atanh_test): Likewise.
47037         (atan2_test): Likewise.
47038         (cabs_test): Likewise.
47039         (cacos_test): Use END_COMPLEX macro without arguments.
47040         (cacosh_test): Likewise.
47041         (carg_test): Use END macro without arguments.
47042         (casin_test): Use END_COMPLEX macro without arguments.
47043         (casinh_test): Likewise.
47044         (catan_test): Likewise.
47045         (catanh_test): Likewise.
47046         (cbrt_test): Use END macro without arguments.
47047         (ccos_test): Use END_COMPLEX macro without arguments.
47048         (ccosh_test): Likewise.
47049         (ceil_test): Use END macro without arguments.
47050         (cexp_test): Use END_COMPLEX macro without arguments.
47051         (cimag_test): Use END macro without arguments.
47052         (clog_test): Use END_COMPLEX macro without arguments.
47053         (clog10_test): Likewise.
47054         (conj_test): Likewise.
47055         (copysign_test): Use END macro without arguments.
47056         (cos_test): Likewise.
47057         (cos_test_tonearest): Likewise.
47058         (cos_test_towardzero): Likewise.
47059         (cos_test_downward): Likewise.
47060         (cos_test_upward): Likewise.
47061         (cosh_test): Likewise.
47062         (cosh_test_tonearest): Likewise.
47063         (cosh_test_towardzero): Likewise.
47064         (cosh_test_downward): Likewise.
47065         (cosh_test_upward): Likewise.
47066         (cpow_test): Use END_COMPLEX macro without arguments.
47067         (cproj_test): Likewise.
47068         (creal_test): Use END macro without arguments.
47069         (csin_test): Use END_COMPLEX macro without arguments.
47070         (csinh_test): Likewise.
47071         (csqrt_test): Likewise.
47072         (ctan_test): Likewise.
47073         (ctan_test_tonearest): Likewise.
47074         (ctan_test_towardzero): Likewise.
47075         (ctan_test_downward): Likewise.
47076         (ctan_test_upward): Likewise.
47077         (ctanh_test): Likewise.
47078         (ctanh_test_tonearest): Likewise.
47079         (ctanh_test_towardzero): Likewise.
47080         (ctanh_test_downward): Likewise.
47081         (ctanh_test_upward): Likewise.
47082         (erf_test): Use END macro without arguments.
47083         (erfc_test): Likewise.
47084         (exp_test): Likewise.
47085         (exp_test_tonearest): Likewise.
47086         (exp_test_towardzero): Likewise.
47087         (exp_test_downward): Likewise.
47088         (exp_test_upward): Likewise.
47089         (exp10_test): Likewise.
47090         (exp2_test): Likewise.
47091         (expm1_test): Likewise.
47092         (fabs_test): Likewise.
47093         (fdim_test): Likewise.
47094         (finite_test): Likewise.
47095         (floor_test): Likewise.
47096         (fma_test): Likewise.
47097         (fma_test_towardzero): Likewise.
47098         (fma_test_downward): Likewise.
47099         (fma_test_upward): Likewise.
47100         (fmax_test): Likewise.
47101         (fmin_test): Likewise.
47102         (fmod_test): Likewise.
47103         (fpclassify_test): Likewise.
47104         (frexp_test): Likewise.
47105         (gamma_test): Likewise.
47106         (hypot_test): Likewise.
47107         (ilogb_test): Likewise.
47108         (isfinite_test): Likewise.
47109         (isgreater_test): Likewise.
47110         (isgreaterequal_test): Likewise.
47111         (isinf_test): Likewise.
47112         (isless_test): Likewise.
47113         (islessequal_test): Likewise.
47114         (islessgreater_test): Likewise.
47115         (isnan_test): Likewise.
47116         (isnormal_test): Likewise.
47117         (issignaling_test): Likewise.
47118         (isunordered_test): Likewise.
47119         (j0_test): Likewise.
47120         (j1_test): Likewise.
47121         (jn_test): Likewise.
47122         (ldexp_test): Likewise.
47123         (lgamma_test): Likewise.
47124         (lrint_test): Likewise.
47125         (lrint_test_tonearest): Likewise.
47126         (lrint_test_towardzero): Likewise.
47127         (lrint_test_downward): Likewise.
47128         (lrint_test_upward): Likewise.
47129         (llrint_test): Likewise.
47130         (llrint_test_tonearest): Likewise.
47131         (llrint_test_towardzero): Likewise.
47132         (llrint_test_downward): Likewise.
47133         (llrint_test_upward): Likewise.
47134         (log_test): Likewise.
47135         (log10_test): Likewise.
47136         (log1p_test): Likewise.
47137         (log2_test): Likewise.
47138         (logb_test): Likewise.
47139         (logb_test_downward): Likewise.
47140         (lround_test): Likewise.
47141         (llround_test): Likewise.
47142         (modf_test): Likewise.
47143         (nearbyint_test): Likewise.
47144         (nextafter_test): Likewise.
47145         (nexttoward_test): Likewise.
47146         (pow_test): Likewise.
47147         (pow_test_tonearest): Likewise.
47148         (pow_test_towardzero): Likewise.
47149         (pow_test_downward): Likewise.
47150         (pow_test_upward): Likewise.
47151         (remainder_test): Likewise.
47152         (remainder_test_tonearest): Likewise.
47153         (remainder_test_towardzero): Likewise.
47154         (remainder_test_downward): Likewise.
47155         (remainder_test_upward): Likewise.
47156         (remquo_test): Likewise.
47157         (rint_test): Likewise.
47158         (rint_test_tonearest): Likewise.
47159         (rint_test_towardzero): Likewise.
47160         (rint_test_downward): Likewise.
47161         (rint_test_upward): Likewise.
47162         (round_test): Likewise.
47163         (scalb_test): Likewise.
47164         (scalbn_test): Likewise.
47165         (scalbln_test): Likewise.
47166         (signbit_test): Likewise.
47167         (sin_test): Likewise.
47168         (sin_test_tonearest): Likewise.
47169         (sin_test_towardzero): Likewise.
47170         (sin_test_downward): Likewise.
47171         (sin_test_upward): Likewise.
47172         (sincos_test): Likewise.
47173         (sinh_test): Likewise.
47174         (sinh_test_tonearest): Likewise.
47175         (sinh_test_towardzero): Likewise.
47176         (sinh_test_downward): Likewise.
47177         (sinh_test_upward): Likewise.
47178         (sqrt_test): Likewise.
47179         (tan_test): Likewise.
47180         (tan_test_tonearest): Likewise.
47181         (tan_test_towardzero): Likewise.
47182         (tan_test_downward): Likewise.
47183         (tan_test_upward): Likewise.
47184         (tanh_test): Likewise.
47185         (tgamma_test): Likewise.
47186         (trunc_test): Likewise.
47187         (y0_test): Likewise.
47188         (y1_test): Likewise.
47189         (yn_test): Likewise.
47190         (significand_test): Likewise.
47191
47192 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
47193
47194         [BZ #15381]
47195         * libio/genops.c (_IO_no_init): Initialize wide struct info.
47196
47197 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
47198
47199         [BZ #14894]
47200         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
47201         __ppc_mdoio and __ppc_mdoom.
47202         * manual/platform.texi: Document new functions __ppc_yield,
47203         __ppc_mdoio and __ppc_mdoom.
47204
47205 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
47206
47207         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
47208         (main): Mention "tls" pseudo-hwcap is legacy.
47209         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
47210
47211 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
47212
47213         * math/gen-libm-test.pl (parse_args): Output only string of
47214         arguments as text for test name, not full call or descriptions of
47215         tests for extra outputs.
47216         (generate_testfile): Do not pass function name to parse_args.
47217         Generate this_func variable from START.
47218         * math/libm-test.inc (struct test_f_f_data): Rename test_name
47219         field to arg_str.
47220         (struct test_ff_f_data): Likewise.
47221         (test_ff_f_data_nexttoward): Likewise.
47222         (struct test_fi_f_data): Likewise.
47223         (struct test_fl_f_data): Likewise.
47224         (struct test_if_f_data): Likewise.
47225         (struct test_fff_f_data): Likewise.
47226         (struct test_c_f_data): Likewise.
47227         (struct test_f_f1_data): Likewise.  Remove field extra_name.
47228         (struct test_fF_f1_data): Likewise.
47229         (struct test_ffI_f1_data): Likewise.
47230         (struct test_c_c_data): Rename test_name field to arg_str.
47231         (struct test_cc_c_data): Likewise.
47232         (struct test_f_i_data): Likewise.
47233         (struct test_ff_i_data): Likewise.
47234         (struct test_f_l_data): Likewise.
47235         (struct test_f_L_data): Likewise.
47236         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
47237         and extra2_name.
47238         (COMMON_TEST_SETUP): New macro.
47239         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
47240         (COMMON_TEST_CLEANUP): Likewise.
47241         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
47242         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
47243         macros.
47244         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
47245         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
47246         macros.
47247         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
47248         (RUN_TEST_fff_f): Take argument string.  Call new setup and
47249         cleanup macros.
47250         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
47251         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
47252         macros.
47253         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
47254         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
47255         macros.
47256         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
47257         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
47258         cleanup macros.
47259         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
47260         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
47261         cleanup macros.
47262         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
47263         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
47264         cleanup macros.
47265         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
47266         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
47267         macros.
47268         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
47269         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
47270         macros.
47271         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
47272         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
47273         macros.
47274         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
47275         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
47276         cleanup macros.
47277         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
47278         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
47279         cleanup macros.
47280         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
47281         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
47282         macros.
47283         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
47284         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
47285         cleanup macros.
47286         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
47287         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
47288         macros.
47289         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
47290         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
47291         macros.
47292         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
47293         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
47294         cleanup macros.
47295         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
47296
47297 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
47298
47299         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
47300         to _sifields.sigfault.
47301         (si_addr_lsb): Define new macro.
47302         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
47303         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
47304         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
47305
47306 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
47307
47308         [BZ #15441]
47309         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
47310         returns -1.
47311         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
47312         null return -1.
47313         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
47314         loading the domain.
47315
47316 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
47317
47318         * math/gen-libm-test.pl (parse_args): Do not include expected
47319         result in test name.
47320         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
47321         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
47322         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
47323         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
47324         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
47325         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47326
47327 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
47328
47329         * benchtests/Makefile: Sort function entries.
47330
47331         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
47332         tanh, asinh, acosh, atanh.
47333         * benchtests/acos-inputs: New file.
47334         * benchtests/acosh-inputs: New file.
47335         * benchtests/asin-inputs: New file.
47336         * benchtests/asinh-inputs: New file.
47337         * benchtests/atanh-inputs: New file.
47338         * benchtests/cosh-inputs: New file.
47339         * benchtests/log-inputs: New file.
47340         * benchtests/sinh-inputs: New file.
47341         * benchtests/tanh-inputs: New file.
47342
47343 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
47344
47345         [BZ #15339]
47346         * posix/tst-getaddrinfo4.c: New test.
47347         * posix/Makefile (tests): Add it.
47348
47349 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47350
47351         [BZ #15339]
47352         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
47353         when no services were used.
47354         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
47355         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
47356
47357 2013-05-21  Andreas Schwab  <schwab@suse.de>
47358
47359         [BZ #15014]
47360         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
47361         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
47362         successful.
47363         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
47364         redundant variable declarations and reallocation of buffer when
47365         parsing as IPv6 address.  Always set NSS status when called from
47366         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
47367         buffer too small.  Correct computation of needed size.
47368         * nss/Makefile (tests): Add test-digits-dots.
47369         * nss/test-digits-dots.c: New test.
47370
47371 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
47372
47373         * benchtests/Makefile: Remove instructions for adding
47374         benchmark tests.
47375         * benchtests/README: New file to explain how to execute and
47376         enhance the benchmark tests.
47377
47378 2013-05-21  Andreas Schwab  <schwab@suse.de>
47379
47380         [BZ #15493]
47381         * setjmp/Makefile (tests): Add tst-sigsetjmp.
47382         * setjmp/tst-sigsetjmp.c: New test.
47383
47384 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
47385
47386         * sysdeps/x86_64/memset.S (memset): New implementation.
47387         (__bzero): Likewise.
47388         (__memset_tail): New function.
47389
47390 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
47391
47392         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
47393         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
47394         __memcpy_sse2_unaligned ifunc selection.
47395         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
47396         Add memcpy-sse2-unaligned.S.
47397         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
47398         Add: __memcpy_sse2_unaligned.
47399
47400 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
47401
47402         [BZ #15490]
47403         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
47404         math_force_eval before restoring floating-point envrionment.
47405         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
47406         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
47407         Likewise.
47408         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
47409         <math_private.h>.
47410         (__nearbyintl): Use math_force_eval before restoring
47411         floating-point environment.
47412         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
47413
47414         * math/gen-libm-test.pl (special_functions): Remove.
47415         (parse_args): Don't handle TEST_extra.  Handle functions with no
47416         return value.
47417         * math/libm-test.inc (struct test_sincos_data): Replace with
47418         struct test_fFF_11_data.
47419         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
47420         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
47421         (sincos_test_data): Change element type to struct
47422         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
47423         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
47424         RUN_TEST_LOOP_sincos.
47425         * math/README.libm-test: Don't mention special handling of
47426         individual functions.
47427         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
47428         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
47429         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
47430         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
47431         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
47432         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
47433
47434         * math/gen-libm-test.pl (get_variable): Remove function.
47435         (parse_args): Don't show pointer parameters to call in test
47436         names.  Use "extra output N" in test names for extra outputs
47437         rather than naming variables.
47438
47439 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
47440
47441         [BZ #15488]
47442         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
47443         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
47444         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
47445         double tests.
47446         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
47447         disable.
47448         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
47449         check_long_double.
47450
47451         * math/gen-libm-test.pl (@tests): Remove variable.
47452         ($count): Likewise.
47453         (new_test): Remove function.
47454         (show_exceptions): New function.
47455         (special_functions): Use show_exceptions instead of new_test.
47456         (parse_args): Likewise.
47457         (generate_testfile): Pass only function name in generated call to
47458         print_max_error or print_complex_max_error.
47459         (get_ulps): Do not handle complex tests specially.
47460         (output_test): Rename to ...
47461         (get_all_ulps_for_test): ... this.  Return a string rather than
47462         printing to a file.  Require ulps to be present.
47463         (output_ulps): Generate arrays rather than #defines.
47464         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
47465         (struct ulp_data): New type.
47466         (BUILD_COMPLEX_ULP): Remove macro.
47467         (compare_ulp_data): New function.
47468         (find_ulps): Likewise.
47469         (find_test_ulps): Likewise.
47470         (find_function_ulps): Likewise.
47471         (find_complex_function_ulps): Likewise.
47472         (print_max_error): Determine allowed ulps using
47473         find_function_ulps.
47474         (print_complex_max_error): Determine allowed ulps using
47475         find_complex_function_ulps.
47476         (check_float_internal): Determine max ulps using find_test_ulps.
47477         (check_float): Do not take max_ulp parameter.  Update call to
47478         check_float_internal.
47479         (check_complex): Likewise.
47480         (check_int): Do not take max_ulp parameter.
47481         (check_long): Likewise.
47482         (check_bool): Likewise.
47483         (check_longlong): Likewise.
47484         (struct test_f_f_data): Remove max_ulp field.
47485         (struct test_ff_f_data): Likewise.
47486         (struct test_ff_f_data_nexttoward): Likewise.
47487         (struct test_fi_f_data): Likewise.
47488         (struct test_fl_f_data): Likewise.
47489         (struct test_if_f_data): Likewise.
47490         (struct test_fff_f_data): Likewise.
47491         (struct test_c_f_data): Likewise.
47492         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
47493         (struct test_fF_f1_data): Likewise.
47494         (struct test_ffI_f1_data): Likewise.
47495         (struct test_c_c_data): Remove max_ulp field.
47496         (struct test_cc_c_data): Likewise.
47497         (struct test_f_i_data): Likewise.
47498         (struct test_ff_i_data): Likewise.
47499         (struct test_f_l_data): Likewise.
47500         (struct test_f_L_data): Likewise.
47501         (struct test_sincos_data): Likewise.
47502         (RUN_TEST_f_f): Do not handle ulps.
47503         (RUN_TEST_LOOP_f_f): Likewise.
47504         (RUN_TEST_2_f): Likewise.
47505         (RUN_TEST_LOOP_2_f): Likewise.
47506         (RUN_TEST_fff_f): Likewise.
47507         (RUN_TEST_LOOP_fff_f): Likewise.
47508         (RUN_TEST_c_f): Likewise.
47509         (RUN_TEST_LOOP_c_f): Likewise.
47510         (RUN_TEST_f_f1): Likewise.
47511         (RUN_TEST_LOOP_f_f1): Likewise.
47512         (RUN_TEST_fF_f1): Likewise.
47513         (RUN_TEST_LOOP_fF_f1): Likewise.
47514         (RUN_TEST_fI_f1): Likewise.
47515         (RUN_TEST_LOOP_fI_f1): Likewise.
47516         (RUN_TEST_ffI_f1): Likewise.
47517         (RUN_TEST_LOOP_ffI_f1): Likewise.
47518         (RUN_TEST_c_c): Likewise.
47519         (RUN_TEST_LOOP_c_c): Likewise.
47520         (RUN_TEST_cc_c): Likewise.
47521         (RUN_TEST_LOOP_cc_c): Likewise.
47522         (RUN_TEST_f_i): Likewise.
47523         (RUN_TEST_LOOP_f_i): Likewise.
47524         (RUN_TEST_f_i_tg): Likewise.
47525         (RUN_TEST_LOOP_f_i_tg): Likewise.
47526         (RUN_TEST_ff_i_tg): Likewise.
47527         (RUN_TEST_LOOP_ff_i_tg): Likewise.
47528         (RUN_TEST_f_b): Likewise.
47529         (RUN_TEST_LOOP_f_b): Likewise.
47530         (RUN_TEST_f_b_tg): Likewise.
47531         (RUN_TEST_LOOP_f_b_tg): Likewise.
47532         (RUN_TEST_f_l): Likewise.
47533         (RUN_TEST_LOOP_f_l): Likewise.
47534         (RUN_TEST_f_L): Likewise.
47535         (RUN_TEST_LOOP_f_L): Likewise.
47536         (RUN_TEST_sincos): Likewise.
47537         (RUN_TEST_LOOP_sincos): Likewise.
47538
47539 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
47540
47541         [BZ #15480]
47542         [BZ #15485]
47543         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
47544         main case of finite arguments, set rounding mode to FE_TONEAREST
47545         and discard exceptions.
47546         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
47547         exceptions.
47548         (remainder_tonearest_test_data): New variable.
47549         (remainder_test_tonearest): New function.
47550         (remainder_towardzero_test_data): New variable.
47551         (remainder_test_towardzero): New function.
47552         (remainder_downward_test_data): New variable.
47553         (remainder_test_downward): New function.
47554         (remainder_upward_test_data): New variable.
47555         (remainder_test_upward): New function.
47556         (main): Call the new test functions.
47557
47558         * math/libm-test.inc (struct test_f_f1_data): Remove field
47559         extra_init.
47560         (struct test_fF_f1_data): Likewise.
47561         (struct test_ffI_f1_data): Likewise.
47562         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
47563         based on value of EXTRA_EXPECTED.
47564         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
47565         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
47566         EXTRA_VAR based on value of EXTRA_EXPECTED.
47567         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
47568         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
47569         EXTRA_VAR based on value of EXTRA_EXPECTED.
47570         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
47571         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
47572         EXTRA_VAR based on value of EXTRA_EXPECTED.
47573         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
47574         * math/gen-libm-test.pl (parse_args): Don't output initializers
47575         for extra output values.
47576
47577         * math/libm-test.inc (check_int): Expect result to be exactly
47578         equal to expected value and do not handle ulps.
47579         (check_long): Likewise.
47580         (check_longlong): Likewise.
47581
47582         * math/libm-test.inc (ceil_test_data): Test for "inexact"
47583         exceptions.
47584         (cimag_test_data): Likewise.
47585         (conj_test_data): Likewise.
47586         (copysign_test_data): Likewise.
47587         (cproj_test_data): Likewise.
47588         (creal_test_data): Likewise.
47589         (fabs_test_data): Likewise.
47590         (fdim_test_data): Likewise.
47591         (finite_test_data): Likewise.
47592         (floor_test_data): Likewise.
47593         (fmax_test_data): Likewise.
47594         (fmin_test_data): Likewise.
47595         (fmod_test_data): Likewise.
47596         (fpclassify_test_data): Likewise.
47597         (frexp_test_data): Likewise.
47598         (ilogb_test_data): Likewise.
47599         (isfinite_test_data): Likewise.
47600         (isgreater_test_data): Likewise.
47601         (isgreaterequal_test_data): Likewise.
47602         (isinf_test_data): Likewise.
47603         (isless_test_data): Likewise.
47604         (islessequal_test_data): Likewise.
47605         (islessgreater_test_data): Likewise.
47606         (isnan_test_data): Likewise.
47607         (isnormal_test_data): Likewise.
47608         (issignaling_test_data): Likewise.
47609         (isunordered_test_data): Likewise.
47610         (ldexp_test_data): Likewise.
47611         (lrint_test_data): Likewise.
47612         (lrint_test_data) [TEST_FLOAT]: Disable one test.
47613         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
47614         (lrint_tonearest_test_data): Test for "inexact" exceptions.
47615         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47616         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
47617         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47618         test input.
47619         (lrint_towardzero_test_data): Test for "inexact" exceptions.
47620         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47621         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
47622         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
47623         that test input.
47624         (lrint_downward_test_data): Test for "inexact" exceptions.
47625         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47626         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
47627         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
47628         test input.
47629         (lrint_upward_test_data): Test for "inexact" exceptions.
47630         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
47631         test input.
47632         (llrint_test_data): Test for "inexact" exceptions.
47633         (llrint_test_data) [TEST_FLOAT]: Disable one test.
47634         (llrint_tonearest_test_data): Test for "inexact" exceptions.
47635         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
47636         (llrint_towardzero_test_data): Test for "inexact" exceptions.
47637         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
47638         (llrint_downward_test_data): Test for "inexact" exceptions.
47639         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
47640         (llrint_upward_test_data): Test for "inexact" exceptions.
47641         (logb_test_data): Likewise.
47642         (logb_downward_test_data): Likewise.
47643         (nextafter_test_data): Likewise.
47644         (nexttoward_test_data): Likewise.
47645         (remainder_test_data): Likewise.
47646         (remquo_test_data): Likewise.
47647         (scalbn_test_data): Likewise.
47648         (scalbln_test_data): Likewise.
47649         (signbit_test_data): Likewise.
47650         (sqrt_test_data): Likewise.
47651         (significand_test_data): Likewise.
47652
47653 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
47654
47655         [BZ #15424]
47656         * benchtests/bench-modf.c (struct args): Mark arg0 as
47657         volatile.
47658         * scripts/bench.pl: Mark members of struct args as volatile.
47659
47660 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47661
47662         [BZ # 15497]
47663         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
47664         negative infinity on POWER6 or lower.
47665         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
47666
47667 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
47668
47669         [BZ #15442]
47670         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
47671         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
47672         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
47673         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
47674         (_FP_SETQNAN): New macro.
47675         (_FP_SETQNAN_SEMIRAW): Likewise.
47676         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
47677         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
47678         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
47679         (FP_EXTEND): Use _FP_FRAC_SNANP.
47680         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
47681         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
47682         into account.
47683         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47684         New macro.
47685         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
47686         Likewise.
47687
47688 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
47689
47690         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
47691         with DIVIDE_BY_ZERO_EXCEPTION.
47692         (gamma_test_data): Likewise.
47693         (lgamma_test_data): Likewise.
47694         (log_test_data): Likewise.
47695         (log10_test_data): Likewise.
47696         (log2_test_data): Likewise.
47697         (tgamma_test_data): Likewise.
47698
47699         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
47700         (acos_test_tonearest): Likewise.
47701         (acos_test_towardzero): Likewise.
47702         (acos_test_downward): Likewise.
47703         (acos_test_upward): Likewise.
47704         (acosh_test): Likewise.
47705         (asin_test): Likewise.
47706         (asin_test_tonearest): Likewise.
47707         (asin_test_towardzero): Likewise.
47708         (asin_test_downward): Likewise.
47709         (asin_test_upward): Likewise.
47710         (asinh_test): Likewise.
47711         (atan_test): Likewise.
47712         (atanh_test): Likewise.
47713         (atan2_test): Likewise.
47714         (cabs_test): Likewise.
47715         (cacos_test): Likewise.
47716         (cacosh_test): Likewise.
47717         (casin_test): Likewise.
47718         (casinh_test): Likewise.
47719         (catan_test): Likewise.
47720         (catanh_test): Likewise.
47721         (cbrt_test): Likewise.
47722         (ccos_test): Likewise.
47723         (ccosh_test): Likewise.
47724         (cexp_test): Likewise.
47725         (clog_test): Likewise.
47726         (clog10_test): Likewise.
47727         (cos_test): Likewise.
47728         (cos_test_tonearest): Likewise.
47729         (cos_test_towardzero): Likewise.
47730         (cos_test_downward): Likewise.
47731         (cos_test_upward): Likewise.
47732         (cosh_test): Likewise.
47733         (cosh_test_tonearest): Likewise.
47734         (cosh_test_towardzero): Likewise.
47735         (cosh_test_downward): Likewise.
47736         (cosh_test_upward): Likewise.
47737         (cpow_test): Likewise.
47738         (csin_test): Likewise.
47739         (csinh_test): Likewise.
47740         (csqrt_test): Likewise.
47741         (ctan_test): Likewise.
47742         (ctan_test_tonearest): Likewise.
47743         (ctan_test_towardzero): Likewise.
47744         (ctan_test_downward): Likewise.
47745         (ctan_test_upward): Likewise.
47746         (ctanh_test): Likewise.
47747         (ctanh_test_tonearest): Likewise.
47748         (ctanh_test_towardzero): Likewise.
47749         (ctanh_test_downward): Likewise.
47750         (ctanh_test_upward): Likewise.
47751         (erf_test): Likewise.
47752         (erfc_test): Likewise.
47753         (exp_test): Likewise.
47754         (exp_test_tonearest): Likewise.
47755         (exp_test_towardzero): Likewise.
47756         (exp_test_downward): Likewise.
47757         (exp_test_upward): Likewise.
47758         (exp10_test): Likewise.
47759         (exp2_test): Likewise.
47760         (expm1_test): Likewise.
47761         (fmod_test): Likewise.
47762         (gamma_test): Likewise.
47763         (hypot_test): Likewise.
47764         (j0_test): Likewise.
47765         (j1_test): Likewise.
47766         (jn_test): Likewise.
47767         (lgamma_test): Likewise.
47768         (log_test): Likewise.
47769         (log10_test): Likewise.
47770         (log1p_test): Likewise.
47771         (log2_test): Likewise.
47772         (logb_test_downward): Likewise.
47773         (pow_test): Likewise.
47774         (pow_test_tonearest): Likewise.
47775         (pow_test_towardzero): Likewise.
47776         (pow_test_downward): Likewise.
47777         (pow_test_upward): Likewise.
47778         (remainder_test): Likewise.
47779         (remquo_test): Likewise.
47780         (sin_test): Likewise.
47781         (sin_test_tonearest): Likewise.
47782         (sin_test_towardzero): Likewise.
47783         (sin_test_downward): Likewise.
47784         (sin_test_upward): Likewise.
47785         (sincos_test): Likewise.
47786         (sinh_test): Likewise.
47787         (sinh_test_tonearest): Likewise.
47788         (sinh_test_towardzero): Likewise.
47789         (sinh_test_downward): Likewise.
47790         (sinh_test_upward): Likewise.
47791         (sqrt_test): Likewise.
47792         (tan_test): Likewise.
47793         (tan_test_tonearest): Likewise.
47794         (tan_test_towardzero): Likewise.
47795         (tan_test_downward): Likewise.
47796         (tan_test_upward): Likewise.
47797         (tanh_test): Likewise.
47798         (tgamma_test): Likewise.
47799         (y0_test): Likewise.
47800         (y1_test): Likewise.
47801         (yn_test): Likewise.
47802
47803         * math/gen-libm-test.pl (adjust_arg): Remove function.
47804         (special_function): Remove argument $in_func.  Only handle
47805         generating output for tables of tests, not inside functions.
47806         (parse_args): Likewise.
47807         (generate_testfile): Remove variable $in_func.  Update call to
47808         parse_args.
47809         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
47810         (MINUS_ZERO_INIT): Rename macro to minus_zero.
47811         (PLUS_INFTY_INIT): Rename macro to plus_infty.
47812         (MINUS_INFTY_INIT): Rename macro to minus_infty.
47813         (QNAN_VALUE_INIT): Rename macro to qnan_value.
47814         (MAX_VALUE_INIT): Rename macro to max_value.
47815         (MIN_VALUE_INIT): Rename macro to min_value.
47816         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
47817         (plus_zero): Remove variable.
47818         (minus_zero): Likewise.
47819         (plus_infty): Likewise.
47820         (minus_infty): Likewise.
47821         (qnan_value): Likewise.
47822         (max_value): Likewise.
47823         (min_value): Likewise.
47824         (min_subnorm_value): Likewise.
47825
47826 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
47827
47828         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
47829         uint64_t or uint32_t usage.
47830         * crypt/sha256-block.c: Likewise.
47831         * crypt/sha256-crypt.c: Likewise.
47832         * crypt/sha256.c: Likewise.
47833         * crypt/sha512-block.c: Likewise.
47834         * crypt/sha512-crypt.c: Likewise.
47835         * crypt/sha512.c: Likewise.
47836         * debug/backtrace-tst.c: Likewise.
47837         * debug/pcprofiledump.c: Likewise.
47838         * elf/cache.c: Likewise.
47839         * elf/dl-cache.c: Likewise.
47840         * elf/dl-misc.c: Likewise.
47841         * elf/dl-profile.c: Likewise.
47842         * elf/dl-support.c: Likewise.
47843         * elf/ldconfig.c: Likewise.
47844         * elf/sprof.c: Likewise.
47845         * iconv/dummy-repertoire.c: Likewise.
47846         * iconv/iconv_charmap.c: Likewise.
47847         * iconv/skeleton.c: Likewise.
47848         * iconvdata/8bit-generic.c: Likewise.
47849         * iconvdata/cp737.h: Likewise.
47850         * iconvdata/cp775.h: Likewise.
47851         * iconvdata/ibm1008.h: Likewise.
47852         * iconvdata/ibm1025.h: Likewise.
47853         * iconvdata/ibm1046.h: Likewise.
47854         * iconvdata/ibm1097.h: Likewise.
47855         * iconvdata/ibm1112.h: Likewise.
47856         * iconvdata/ibm1122.h: Likewise.
47857         * iconvdata/ibm1123.h: Likewise.
47858         * iconvdata/ibm1124.h: Likewise.
47859         * iconvdata/ibm1129.h: Likewise.
47860         * iconvdata/ibm1130.h: Likewise.
47861         * iconvdata/ibm1132.h: Likewise.
47862         * iconvdata/ibm1133.h: Likewise.
47863         * iconvdata/ibm1137.h: Likewise.
47864         * iconvdata/ibm1140.h: Likewise.
47865         * iconvdata/ibm1141.h: Likewise.
47866         * iconvdata/ibm1142.h: Likewise.
47867         * iconvdata/ibm1143.h: Likewise.
47868         * iconvdata/ibm1144.h: Likewise.
47869         * iconvdata/ibm1145.h: Likewise.
47870         * iconvdata/ibm1146.h: Likewise.
47871         * iconvdata/ibm1147.h: Likewise.
47872         * iconvdata/ibm1148.h: Likewise.
47873         * iconvdata/ibm1149.h: Likewise.
47874         * iconvdata/ibm1153.h: Likewise.
47875         * iconvdata/ibm1154.h: Likewise.
47876         * iconvdata/ibm1155.h: Likewise.
47877         * iconvdata/ibm1156.h: Likewise.
47878         * iconvdata/ibm1157.h: Likewise.
47879         * iconvdata/ibm1158.h: Likewise.
47880         * iconvdata/ibm1160.h: Likewise.
47881         * iconvdata/ibm1161.h: Likewise.
47882         * iconvdata/ibm1162.h: Likewise.
47883         * iconvdata/ibm1163.h: Likewise.
47884         * iconvdata/ibm1164.h: Likewise.
47885         * iconvdata/ibm1166.h: Likewise.
47886         * iconvdata/ibm1167.h: Likewise.
47887         * iconvdata/ibm12712.h: Likewise.
47888         * iconvdata/ibm1390.h: Likewise.
47889         * iconvdata/ibm1399.h: Likewise.
47890         * iconvdata/ibm16804.h: Likewise.
47891         * iconvdata/ibm4517.h: Likewise.
47892         * iconvdata/ibm4899.h: Likewise.
47893         * iconvdata/ibm4909.h: Likewise.
47894         * iconvdata/ibm4971.h: Likewise.
47895         * iconvdata/ibm5347.h: Likewise.
47896         * iconvdata/ibm803.h: Likewise.
47897         * iconvdata/ibm856.h: Likewise.
47898         * iconvdata/ibm901.h: Likewise.
47899         * iconvdata/ibm902.h: Likewise.
47900         * iconvdata/ibm9030.h: Likewise.
47901         * iconvdata/ibm9066.h: Likewise.
47902         * iconvdata/ibm921.h: Likewise.
47903         * iconvdata/ibm922.h: Likewise.
47904         * iconvdata/ibm9448.h: Likewise.
47905         * iconvdata/isiri-3342.h: Likewise.
47906         * iconvdata/jis0201.h: Likewise.
47907         * include/link.h: Likewise.
47908         * include/netdb.h: Likewise.
47909         * inet/check_native.c: Likewise.
47910         * inet/check_pf.c: Likewise.
47911         * inet/getipv4sourcefilter.c: Likewise.
47912         * inet/getnameinfo.c: Likewise.
47913         * inet/getsourcefilter.c: Likewise.
47914         * inet/htonl.c: Likewise.
47915         * inet/setipv4sourcefilter.c: Likewise.
47916         * inet/setsourcefilter.c: Likewise.
47917         * inet/test-inet6_opt.c: Likewise.
47918         * inet/tst-network.c: Likewise.
47919         * locale/C-collate.c: Likewise.
47920         * locale/C-ctype.c: Likewise.
47921         * locale/C-time.c: Likewise.
47922         * locale/C-translit.h: Likewise.
47923         * locale/loadarchive.c: Likewise.
47924         * locale/programs/3level.h: Likewise.
47925         * locale/programs/charmap.c: Likewise.
47926         * locale/programs/charmap.h: Likewise.
47927         * locale/programs/ld-address.c: Likewise.
47928         * locale/programs/ld-collate.c: Likewise.
47929         * locale/programs/ld-ctype.c: Likewise.
47930         * locale/programs/ld-identification.c: Likewise.
47931         * locale/programs/ld-measurement.c: Likewise.
47932         * locale/programs/ld-messages.c: Likewise.
47933         * locale/programs/ld-monetary.c: Likewise.
47934         * locale/programs/ld-name.c: Likewise.
47935         * locale/programs/ld-numeric.c: Likewise.
47936         * locale/programs/ld-paper.c: Likewise.
47937         * locale/programs/ld-telephone.c: Likewise.
47938         * locale/programs/ld-time.c: Likewise.
47939         * locale/programs/linereader.c: Likewise.
47940         * locale/programs/locale.c: Likewise.
47941         * locale/programs/locarchive.c: Likewise.
47942         * locale/programs/locfile.h: Likewise.
47943         * locale/programs/repertoire.c: Likewise.
47944         * locale/programs/simple-hash.c: Likewise.
47945         * locale/programs/simple-hash.h: Likewise.
47946         * malloc/memusage.c: Likewise.
47947         * malloc/memusagestat.c: Likewise.
47948         * nis/nis_defaults.c: Likewise.
47949         * nis/nis_hash.c: Likewise.
47950         * nis/nis_print.c: Likewise.
47951         * nis/nis_xdr.c: Likewise.
47952         * nscd/connections.c: Likewise.
47953         * nscd/hstcache.c: Likewise.
47954         * nscd/nscd_gethst_r.c: Likewise.
47955         * nscd/nscd_getserv_r.c: Likewise.
47956         * nscd/nscd_helper.c: Likewise.
47957         * nscd/servicescache.c: Likewise.
47958         * nss/makedb.c: Likewise.
47959         * nss/nss_db/db-XXX.c: Likewise.
47960         * nss/nss_db/db-initgroups.c: Likewise.
47961         * nss/nss_db/db-netgrp.c: Likewise.
47962         * nss/nss_files/files-network.c: Likewise.
47963         * nss/nss_files/files-parse.c: Likewise.
47964         * posix/bug-regex5.c: Likewise.
47965         * posix/fnmatch_loop.c: Likewise.
47966         * posix/regcomp.c: Likewise.
47967         * posix/regexec.c: Likewise.
47968         * posix/tst-rfc3484-2.c: Likewise.
47969         * posix/tst-rfc3484-3.c: Likewise.
47970         * posix/tst-rfc3484.c: Likewise.
47971         * resolv/nss_dns/dns-canon.c: Likewise.
47972         * resolv/nss_dns/dns-network.c: Likewise.
47973         * resolv/res_init.c: Likewise.
47974         * resolv/res_mkquery.c: Likewise.
47975         * resolv/tst-aton.c: Likewise.
47976         * stdlib/cxa_atexit.c: Likewise.
47977         * stdlib/cxa_finalize.c: Likewise.
47978         * stdlib/gen-fpioconst.c: Likewise.
47979         * stdlib/strtol_l.c: Likewise.
47980         * string/tst-endian.c: Likewise.
47981         * sunrpc/auth_des.c: Likewise.
47982         * sunrpc/clnt_udp.c: Likewise.
47983         * sunrpc/rtime.c: Likewise.
47984         * sunrpc/svcauth_des.c: Likewise.
47985         * sunrpc/xdr.c: Likewise.
47986         * sunrpc/xdr_intXX_t.c: Likewise.
47987         * sunrpc/xdr_rec.c: Likewise.
47988         * sysdeps/generic/ldconfig.h: Likewise.
47989         * sysdeps/generic/ldsodefs.h: Likewise.
47990         * sysdeps/generic/memusage.h: Likewise.
47991         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
47992         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
47993         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
47994         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
47995         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
47996         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
47997         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
47998         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
47999         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
48000         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
48001         * sysdeps/posix/getaddrinfo.c: Likewise.
48002         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
48003         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
48004         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
48005         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
48006         * sysdeps/powerpc/test-gettimebase.c: Likewise.
48007         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
48008         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
48009         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
48010         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
48011         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
48012         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
48013         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
48014         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
48015         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
48016         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
48017         * sysdeps/x86_64/dl-tls.h: Likewise.
48018         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
48019         * time/alt_digit.c: Likewise.
48020         * time/era.c: Likewise.
48021         * wcsmbs/tst-c16c32-1.c: Likewise.
48022
48023 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
48024
48025         * math/libm-test.inc (struct test_sincos_data): New type.
48026         (RUN_TEST_LOOP_sincos): New macro.
48027         (sincos_test_data): New variable.
48028         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
48029
48030 2013-05-16  Richard Henderson  <rth@redhat.com>
48031
48032         * math/atest-exp2.c (LIMB64): New macro.
48033         (CONSTSZ): New macro.
48034         (mp_exp1, mp_exp_m1, mp_log2): New variables.
48035         (hexdig): Move ...
48036         (print_mpn_fp): ... to function scope.
48037         (read_mpn_hex): Remove.
48038         (get_log2): Remove.
48039         (exp2_mpn): Use mp_log2.
48040         (main): Use mp_exp1.
48041
48042 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
48043
48044         * math/libm-test.inc: Remove comment about not testing "inexact"
48045         exceptions.
48046         (INEXACT_EXCEPTION): New macro.
48047         (NO_INEXACT_EXCEPTION): Likewise.
48048         (INVALID_EXCEPTION_OK): Update value.
48049         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
48050         (OVERFLOW_EXCEPTION_OK): Likewise.
48051         (UNDERFLOW_EXCEPTION_OK): Likewise.
48052         (IGNORE_ZERO_INF_SIGN): Likewise.
48053         (ERRNO_UNCHANGED): Likewise.
48054         (ERRNO_EDOM): Likewise.
48055         (ERRNO_ERANGE): Likewise.
48056         (test_exceptions): Handle testing "inexact" exceptions.
48057         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
48058         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
48059         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
48060         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
48061         INEXACT_EXCEPTION.
48062         (rint_towardzero_test_data): Likewise.
48063         (rint_downward_test_data): Likewise.
48064         (rint_upward_test_data): Likewise.
48065
48066         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
48067         with OVERFLOW_EXCEPTION.
48068         (exp10_test_data): Likewise.
48069         (exp2_test_data): Likewise.
48070         (expm1_test_data): Likewise.
48071         (lgamma_test_data): Likewise.
48072         (pow_test_data): Likewise.
48073         (tgamma_test_data): Likewise.
48074         (yn_test_data): Remove duplicate test of overflow.
48075
48076         * math/libm-test.inc (struct test_cc_c_data): New type.
48077         (RUN_TEST_LOOP_cc_c): New macro.
48078         (cpow_test_data): New variable.
48079         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
48080
48081         * math/libm-test.inc (struct test_f_L_data): New type.
48082         (RUN_TEST_LOOP_f_L): New macro.
48083         (llrint_test_data): New variable.
48084         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
48085         (llrint_tonearest_test_data): New variable.
48086         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
48087         (llrint_towardzero_test_data): New variable.
48088         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
48089         (llrint_downward_test_data): New variable.
48090         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
48091         (llrint_upward_test_data): New variable.
48092         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
48093         (llround_test_data): New variable.
48094         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
48095
48096 2013-05-13  Peter Collingbourne  <pcc@google.com>
48097
48098         * math/atest-exp2.c (get_log2): Remove const attribute.
48099
48100 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
48101
48102         * math/libm-test.inc (struct test_f_l_data): New type.
48103         (RUN_TEST_LOOP_f_l): New macro.
48104         (lrint_test_data): New variable.
48105         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
48106         (lrint_tonearest_test_data): New variable.
48107         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
48108         (lrint_towardzero_test_data): New variable.
48109         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
48110         (lrint_downward_test_data): New variable.
48111         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
48112         (lrint_upward_test_data): New variable.
48113         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
48114         (lround_test_data): New variable.
48115         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
48116
48117 2013-05-15  Peter Collingbourne  <pcc@google.com>
48118
48119         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
48120         (EXTRACT_WORDS64) Use where appropriate.
48121         (INSERT_WORDS64) Likewise.
48122
48123         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
48124         constraints with x constraints.
48125         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
48126
48127         * malloc/obstack.c (_obstack_compat): Add initializer.
48128
48129 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
48130
48131         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
48132         si_trapno and add si_addr_lsb to _sifields.sigfault.
48133         (si_trapno): Remove macro.
48134         (si_addr_lsb): Define new macro.
48135         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
48136
48137 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
48138
48139         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
48140         instead of TEST_f_l.
48141         (llrint_test_tonearest): Likewise.
48142         (llrint_test_towardzero): Likewise.
48143         (llrint_test_downward): Likewise.
48144         (llrint_test_upward): Likewise.
48145         (llround_test): Likewise.
48146
48147         * math/libm-test.inc (struct test_f_i_data): Add comment.
48148         (RUN_TEST_LOOP_f_b): New macro.
48149         (RUN_TEST_LOOP_f_b_tg): Likewise.
48150         (finite_test_data): New variable.
48151         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
48152         (isfinite_test_data): New variable.
48153         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48154         (isinf_test_data): New variable.
48155         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48156         (isnan_test_data): New variable.
48157         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48158         (isnormal_test_data): New variable.
48159         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48160         (issignaling_test_data): New variable.
48161         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48162         (signbit_test_data): New variable.
48163         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
48164
48165         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
48166         with INVALID_EXCEPTION.
48167         (acosh_test_data): Likewise.
48168         (asin_test_data): Likewise.
48169         (atanh_test_data): Likewise.
48170         (fmod_test_data): Likewise.
48171         (log_test_data): Likewise.
48172         (log10_test_data): Likewise.
48173         (log2_test_data): Likewise.
48174         (pow_test_data): Likewise.
48175         (sqrt_test_data): Likewise.
48176         (y0_test_data): Likewise.
48177         (y1_test_data): Likewise.
48178         (yn_test_data): Likewise.
48179
48180         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
48181         function contents.
48182
48183         * math/libm-test.inc (struct test_ff_i_data): New type.
48184         (RUN_TEST_LOOP_ff_i_tg): New macro.
48185         (isgreater_test_data): New variable.
48186         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48187         (isgreaterequal_test_data): New variable.
48188         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48189         (isless_test_data): New variable.
48190         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48191         (islessequal_test_data): New variable.
48192         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48193         (islessgreater_test_data): New variable.
48194         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48195         (isunordered_test_data): New variable.
48196         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
48197
48198 2013-05-14  David S. Miller  <davem@davemloft.net>
48199
48200         * sysdeps/sparc/fpu/libm-test-ulps: Update.
48201
48202 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
48203
48204         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
48205
48206         * math/libm-test.inc (struct test_fF_f1_data): Change type of
48207         extra_test to int.
48208         (struct test_f_i_data): Change type of max_ulp to int.
48209
48210         * math/libm-test.inc (test_ffI_f1_data): New type.
48211         (RUN_TEST_LOOP_ffI_f1): New macro.
48212         (remquo_test_data): New variable.
48213         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
48214
48215         * setjmp/tst-setjmp-fp.c: New file.
48216         * setjmp/Makefile (tests): Add tst-setjmp-fp.
48217         (link-libm): New variable.
48218         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
48219
48220         * math/libm-test.inc (struct test_f_i_data): New type.
48221         (RUN_TEST_LOOP_f_i): New macro.
48222         (RUN_TEST_LOOP_f_i_tg): Likewise.
48223         (fpclassify_test_data): New variable.
48224         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
48225         (ilogb_test_data): New variable.
48226         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
48227
48228         * math/libm-test.inc (scalbln_test): Correct function name in END
48229         call.
48230
48231         * math/libm-test.inc (struct test_f_f1_data): Add comment.
48232         (RUN_TEST_LOOP_fI_f1): New macro.
48233         (frexp_test_data): New variable.
48234         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
48235
48236         * math/libm-test.inc (struct test_fF_f1_data): New type.
48237         (RUN_TEST_LOOP_fF_f1): New macro.
48238         (modf_test_data): New variable.
48239         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
48240
48241         * math/libm-test.inc (struct test_f_f1_data): New type.
48242         (RUN_TEST_LOOP_f_f1): New macro.
48243         (gamma_test_data): New variable.
48244         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
48245         (lgamma_test_data): New variable.
48246         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
48247
48248 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
48249
48250         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
48251         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
48252         (main): Comment "tls" pseudo-hwcap.
48253
48254 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
48255
48256         * math/libm-test.inc (struct test_fl_f_data): New type.
48257         (RUN_TEST_LOOP_fl_f): New variable.
48258         (scalbln_test_data): New variable.
48259         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
48260
48261         * math/libm-test.inc (struct test_fi_f_data): New type.
48262         (RUN_TEST_LOOP_fi_f): New macro.
48263         (ldexp_test_data): New variable.
48264         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
48265         (scalbn_test_data): New variable.
48266         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
48267
48268         * math/libm-test.inc (struct test_c_f_data): New type.
48269         (RUN_TEST_LOOP_c_f): New macro.
48270         (cabs_test_data): New variable.
48271         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
48272         (carg_test_data): New variable.
48273         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
48274         (cimag_test_data): New variable.
48275         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
48276         (creal_test_data): New variable.
48277         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
48278
48279         * math/libm-test.inc (struct test_if_f_data): New type.
48280         (RUN_TEST_LOOP_if_f): New macro.
48281         (jn_test_data): New variable.
48282         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
48283         (yn_test_data): New variable.
48284         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
48285
48286         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
48287
48288 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48289
48290         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
48291         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
48292
48293 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
48294
48295         * benchtests/Makefile (CPPFLAGS-nonlib): Add
48296         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
48297         (bench-deps): Add bench-timing.h.
48298         * benchtests-bench-skeleton.c: Include bench-timing.h.
48299         (main): Use TIMING_* macros instead of clock_gettime.
48300         * benchtests/bench-timing.h: New file.
48301
48302         [BZ #14582]
48303         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
48304         Renamed from _LIB_VERSION.
48305         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
48306
48307 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
48308
48309         * math/libm-test.inc (struct test_fff_f_data): New type.
48310         (RUN_TEST_LOOP_fff_f): New macro.
48311         (fma_test_data): New variable.
48312         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
48313         (fma_towardzero_test_data): New variable.
48314         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
48315         (fma_downward_test_data): New variable.
48316         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
48317         (fma_upward_test_data): New variable.
48318         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
48319
48320         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
48321         (struct test_c_c_data): New type.
48322         (RUN_TEST_LOOP_c_c): New macro.
48323         (cacos_test_data): New variable.
48324         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
48325         (cacosh_test_data): New variable.
48326         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
48327         (casin_test_data): New variable.
48328         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
48329         (casinh_test_data): New variable.
48330         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
48331         (catan_test_data): New variable.
48332         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
48333         (catanh_test_data): New variable.
48334         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
48335         (ccos_test_data): New variable.
48336         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
48337         (ccosh_test_data): New variable.
48338         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
48339         (cexp_test_data): New variable.
48340         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
48341         (clog_test_data): New variable.
48342         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
48343         (clog10_test_data): New variable.
48344         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
48345         (conj_test_data): New variable.
48346         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
48347         (cproj_test_data): New variable.
48348         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
48349         (csin_test_data): New variable.
48350         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
48351         (csinh_test_data): New variable.
48352         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
48353         (csqrt_test_data): New variable.
48354         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
48355         (ctan_test_data): New variable.
48356         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
48357         (ctan_tonearest_test_data): New variable.
48358         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
48359         (ctan_towardzero_test_data): New variable.
48360         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
48361         (ctan_downward_test_data): New variable.
48362         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
48363         (ctan_upward_test_data): New variable.
48364         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
48365         (ctanh_test_data): New variable.
48366         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
48367         (ctanh_tonearest_test_data): New variable.
48368         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
48369         (ctanh_towardzero_test_data): New variable.
48370         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
48371         (ctanh_downward_test_data): New variable.
48372         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
48373         (ctanh_upward_test_data): New variable.
48374         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
48375         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
48376         of BUILD_COMPLEX.
48377
48378         * math/libm-test.inc (struct test_ff_f_data): New type.
48379         (struct test_ff_f_data_nexttoward): Likewise.
48380         (RUN_TEST_LOOP_2_f): New macro.
48381         (RUN_TEST_LOOP_ff_f): Likewise.
48382         (atan2_test_data): New variable.
48383         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
48384         (copysign_test_data): New variable.
48385         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
48386         (fdim_test_data): New variable.
48387         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
48388         (fmax_test_data): New variable.
48389         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
48390         (fmin_test_data): New variable.
48391         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
48392         (fmod_test_data): New variable.
48393         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
48394         (hypot_test_data): New variable.
48395         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
48396         (nextafter_test_data): New variable.
48397         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
48398         (nexttoward_test_data): New variable.
48399         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
48400         (pow_test_data): New variable.
48401         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
48402         (pow_tonearest_test_data): New variable.
48403         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
48404         (pow_towardzero_test_data): New variable.
48405         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
48406         (pow_downward_test_data): New variable.
48407         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
48408         (pow_upward_test_data): New variable.
48409         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
48410         (remainder_test_data): New variable.
48411         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
48412         (scalb_test_data): New variable.
48413         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
48414         * sysdeps/i386/fpu/libm-test-ulps: Update.
48415
48416 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
48417
48418         * math/libm-test.inc (fma_test): Use max_value instead of local
48419         variable fltmax.
48420         (nextafter_test): Likewise.
48421
48422         * math/libm-test.inc (acos_towardzero_test_data): New variable.
48423         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48424         (acos_downward_test_data): New variable.
48425         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48426         (acos_upward_test_data): New variable.
48427         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48428         (acosh_test_data): New variable.
48429         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
48430         (asin_test_data): New variable.
48431         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
48432         (asin_tonearest_test_data): New variable.
48433         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48434         (asin_towardzero_test_data): New variable.
48435         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48436         (asin_downward_test_data): New variable.
48437         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48438         (asin_upward_test_data): New variable.
48439         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48440         (asinh_test_data): New variable.
48441         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
48442         (atan_test_data): New variable.
48443         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
48444         (atanh_test_data): New variable.
48445         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
48446         (cbrt_test_data): New variable.
48447         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
48448         (ceil_test_data): New variable.
48449         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
48450         (cos_test_data): New variable.
48451         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
48452         (cos_tonearest_test_data): New variable.
48453         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48454         (cos_towardzero_test_data): New variable.
48455         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48456         (cos_downward_test_data): New variable.
48457         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48458         (cos_upward_test_data): New variable.
48459         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48460         (cosh_test_data): New variable.
48461         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
48462         (cosh_tonearest_test_data): New variable.
48463         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48464         (cosh_towardzero_test_data): New variable.
48465         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48466         (cosh_downward_test_data): New variable.
48467         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48468         (cosh_upward_test_data): New variable.
48469         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48470         (erf_test_data): New variable.
48471         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
48472         (erfc_test_data): New variable.
48473         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
48474         (exp_test_data): New variable.
48475         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
48476         (exp_tonearest_test_data): New variable.
48477         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48478         (exp_towardzero_test_data): New variable.
48479         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48480         (exp_downward_test_data): New variable.
48481         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48482         (exp_upward_test_data): New variable.
48483         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48484         (exp10_test_data): New variable.
48485         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
48486         (exp2_test_data): New variable.
48487         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
48488         (expm1_test_data): New variable.
48489         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
48490         (fabs_test_data): New variable.
48491         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
48492         (floor_test_data): New variable.
48493         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
48494         (j0_test_data): New variable.
48495         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
48496         (j1_test_data): New variable.
48497         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
48498         (log_test_data): New variable.
48499         (log_test): Run tests with RUN_TEST_LOOP_f_f.
48500         (log10_test_data): New variable.
48501         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
48502         (log1p_test_data): New variable.
48503         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
48504         (log2_test_data): New variable.
48505         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
48506         (logb_test_data): New variable.
48507         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
48508         (logb_downward_test_data): New variable.
48509         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48510         (nearbyint_test_data): New variable.
48511         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
48512         (rint_test_data): New variable.
48513         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
48514         (rint_tonearest_test_data): New variable.
48515         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48516         (rint_towardzero_test_data): New variable.
48517         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48518         (rint_downward_test_data): New variable.
48519         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48520         (rint_upward_test_data): New variable.
48521         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48522         (round_test_data): New variable.
48523         (round_test): Run tests with RUN_TEST_LOOP_f_f.
48524         (sin_test_data): New variable.
48525         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
48526         (sin_tonearest_test_data): New variable.
48527         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48528         (sin_towardzero_test_data): New variable.
48529         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48530         (sin_downward_test_data): New variable.
48531         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48532         (sin_upward_test_data): New variable.
48533         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48534         (sinh_test_data): New variable.
48535         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
48536         (sinh_tonearest_test_data): New variable.
48537         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48538         (sinh_towardzero_test_data): New variable.
48539         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48540         (sinh_downward_test_data): New variable.
48541         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48542         (sinh_upward_test_data): New variable.
48543         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48544         (sqrt_test_data): New variable.
48545         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
48546         (tan_test_data): New variable.
48547         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
48548         (tan_tonearest_test_data): New variable.
48549         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48550         (tan_towardzero_test_data): New variable.
48551         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
48552         (tan_downward_test_data): New variable.
48553         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
48554         (tan_upward_test_data): New variable.
48555         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
48556         (tanh_test_data): New variable.
48557         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
48558         (tgamma_test_data): New variable.
48559         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
48560         (trunc_test_data): New variable.
48561         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
48562         (y0_test_data): New variable.
48563         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
48564         (y1_test_data): New variable.
48565         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
48566         (significand_test_data): New variable.
48567         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
48568
48569 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
48570
48571         [BZ #12387]
48572         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
48573
48574 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
48575
48576         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
48577
48578 2013-05-10  Andreas Jaeger  <aj@suse.de>
48579
48580         [BZ #15448]
48581         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
48582         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
48583
48584 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48585
48586         * math/gen-libm-test.pl (adjust_arg): New function.
48587         (special_functions): Handle generating output in both functions
48588         and arrays.
48589         (parse_args): Likewise.
48590         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
48591         $in_func argument to parse_args.
48592         * math/libm-test.inc (struct test_f_f_data): New type.
48593         (IF_ROUND_INIT_): New macro.
48594         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
48595         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
48596         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
48597         (IF_ROUND_INIT_FE_UPWARD): Likewise.
48598         (ROUND_RESTORE_): Likewise.
48599         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
48600         (ROUND_RESTORE_FE_TONEAREST): Likewise.
48601         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
48602         (ROUND_RESTORE_FE_UPWARD): Likewise.
48603         (RUN_TEST_LOOP_f_f): New macro.
48604         (acos_test_data): New variable.
48605         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
48606         (acos_tonearest_test_data): New variable.
48607         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
48608
48609 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
48610
48611         * benchtests/bench-skeleton.c (startup): Fix coding style.
48612
48613 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
48614
48615         [BZ #6809]
48616         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
48617         negative infinity argument.
48618         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
48619         negative infinity argument.
48620         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
48621         negative infinity argument.
48622         * math/libm-test.inc (tgamma_test): Expect errno to be set for
48623         domain errors.
48624
48625 2013-05-10  Florian Weimer  <fweimer@redhat.com>
48626
48627         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
48628         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
48629         * iconv/iconv_prog.c (main): Likewise.
48630         * locale/programs/charmap-dir.c (charmap_readdir)
48631         (fopen_uncompressed): Likewise.
48632         * locale/programs/locfile.c (siblings_uncached)
48633         (write_locale_data): Use lstat64 instead of lstat.
48634         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
48635         stat.
48636
48637 2013-05-10  Andreas Jaeger  <aj@suse.de>
48638
48639         [BZ #15395]
48640         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
48641         localization.
48642         Include <locale.h>.
48643
48644 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
48645
48646         * elf/dl-close.c (_dl_close_worker): Add comments.
48647
48648 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
48649
48650         [BZ #15359]
48651         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
48652         high part of pi/2.
48653         (__ieee754_rem_pio2l): Update comments.
48654
48655         [BZ #15429]
48656         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
48657         high part of pi/2.
48658         (__ieee754_rem_pio2l): Update comments.
48659
48660         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
48661         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
48662
48663         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
48664         M_PI_4l.
48665
48666         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
48667         (M_PI_34_LOG10El): Likewise.
48668         (M_PI2_LOG10El): Likewise.
48669         (M_PI4_LOG10El): Likewise.
48670         (M_PI_LOG10El): Likewise.
48671
48672 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48673
48674         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48675
48676 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
48677
48678         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
48679         (MINUS_ZERO_INIT): Likewise.
48680         (PLUS_INFTY_INIT): Likewise.
48681         (MINUS_INFTY_INIT): Likewise.
48682         (QNAN_VALUE_INIT): Likewise.
48683         (MAX_VALUE_INIT): Likewise.
48684         (MIN_VALUE_INIT): Likewise.
48685         (MIN_SUBNORM_VALUE_INIT): Likewise.
48686         (plus_zero): Initialize with PLUS_ZERO_INIT.
48687         (minus_zero): Initialize with MINUS_ZERO_INIT.
48688         (plus_infty): Initialize with PLUS_INFTY_INIT.
48689         (minus_infty): Initialize with MINUS_INFTY_INIT.
48690         (qnan_value): Initialize with QNAN_VALUE_INIT.
48691         (max_value): Initialize with MAX_VALUE_INIT.
48692         (min_value): Initialize with MIN_VALUE_INIT.
48693         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
48694
48695         * math/libm-test.inc (RUN_TEST_if_f): New macro.
48696         (jn_test): Use TEST_if_f instead of TEST_ff_f.
48697         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
48698         (yn_test): Use TEST_if_f instead of TEST_ff_f.
48699
48700         * math/libm-test.inc (RUN_TEST_f_f): New macro.
48701         (RUN_TEST_2_f): Likewise.
48702         (RUN_TEST_ff_f): Likewise.
48703         (RUN_TEST_fi_f): Likewise.
48704         (RUN_TEST_fl_f): Likewise.
48705         (RUN_TEST_fff_f): Likewise.
48706         (RUN_TEST_c_f): Likewise.
48707         (RUN_TEST_f_f1): Likewise.
48708         (RUN_TEST_fF_f1): Likewise.
48709         (RUN_TEST_fI_f1): Likewise.
48710         (RUN_TEST_ffI_f1): Likewise.
48711         (RUN_TEST_c_c): Likewise.
48712         (RUN_TEST_cc_c): Likewise.
48713         (RUN_TEST_f_i): Likewise.
48714         (RUN_TEST_f_i_tg): Likewise.
48715         (RUN_TEST_ff_i_tg): Likewise.
48716         (RUN_TEST_f_b): Likewise.
48717         (RUN_TEST_f_b_tg): Likewise.
48718         (RUN_TEST_f_l): Likewise.
48719         (RUN_TEST_f_L): Likewise.
48720         (RUN_TEST_sincos): Likewise.
48721         * math/gen-libm-test.pl (new_test): Take new argument to indicate
48722         whether to show exceptions.  Do not include ");\n" in return
48723         value.
48724         (special_functions): Output call to RUN_TEST_sincos instead of
48725         check_float calls.  Update calls to new_test.
48726         (parse_args): Output call to single RUN_TEST_* macro instead of
48727         check_* calls and other assignments.  Update calls to new_test.
48728
48729         [BZ #2546]
48730         [BZ #2560]
48731         [BZ #5159]
48732         [BZ #15426]
48733         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
48734         input to result for tgamma overflow.
48735         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
48736         (gamma_coeff): New variable.
48737         (NCOEFF): New macro.
48738         (gamma_positive): New function.
48739         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
48740         underflow here.  Use gamma_positive instead of exp (lgamma) for
48741         other arguments.
48742         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
48743         (gamma_coeff): New variable.
48744         (NCOEFF): New macro.
48745         (gammaf_positive): New function.
48746         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
48747         underflow here.  Use gamma_positive instead of exp (lgamma) for
48748         other arguments.
48749         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
48750         (gamma_coeff): New variable.
48751         (NCOEFF): New macro.
48752         (gammal_positive): New function.
48753         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
48754         underflow here.  Use gamma_positive instead of exp (lgamma) for
48755         other arguments.
48756         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
48757         (gamma_coeff): New variable.
48758         (NCOEFF): New macro.
48759         (gammal_positive): New function.
48760         (__ieee754_gammal_r): Handle positive infinity, overflow and
48761         underflow here.  Handle NaN the same as positive infinity.  Remove
48762         check x < 0xffffffff for negative integers.  Use gamma_positive
48763         instead of exp (lgamma) for other arguments.
48764         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
48765         (gamma_coeff): New variable.
48766         (NCOEFF): New macro.
48767         (gammal_positive): New function.
48768         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
48769         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
48770         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
48771         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
48772         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
48773         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
48774         * sysdeps/generic/math_private.h (__gamma_productf): New
48775         prototype.
48776         (__gamma_product): Likewise.
48777         (__gamma_productl): Likewise.
48778         * math/Makefile (libm-calls): Add gamma_product.
48779         * math/libm-test.inc (tgamma_test): Add more tests.
48780         * sysdeps/i386/fpu/libm-test-ulps: Update.
48781         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
48782
48783 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
48784
48785         * benchtests/bench-skeleton.c (main): Preheat CPU.
48786
48787 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
48788
48789         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
48790
48791 2013-05-07  Roland McGrath  <roland@hack.frob.com>
48792
48793         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
48794         and _dl_skip_args_internal.
48795
48796 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
48797
48798         * manual/message.texi (Message Translation): Talk about users.
48799         Message to key mapping impacts design.
48800
48801 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48802
48803         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
48804
48805         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
48806
48807         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
48808         * sysdeps/wordsize-64/glob64.c: ... here.
48809
48810         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
48811         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
48812         New macros.
48813
48814         * debug/getlogin_r_chk.c: Moved to ...
48815         * login/getlogin_r_chk.c: ... here.
48816         * debug/Makefile (routines): Move getlogin_r_chk to ...
48817         * login/Makefile (routines): ... here.
48818         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
48819         * login/Versions (libc: GLIBC_2.4): ... here.
48820
48821         * io/poll.c (__poll): Renamed from poll.
48822         Add libc_hidden_def.
48823         (poll): Define as weak alias.
48824
48825         * debug/ptsname_r_chk.c: Moved to ...
48826         * login/ptsname_r_chk.c: ... here.
48827         * debug/Makefile (routines): Move ptsname_r_chk to ...
48828         * login/Makefile (routines): ... here.
48829         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
48830         * login/Versions (libc: GLIBC_2.4): ... here.
48831
48832         * posix/getlogin.c: Moved to ...
48833         * login/getlogin.c: ... here.
48834         * posix/getlogin_r.c: Moved to ...
48835         * login/getlogin_r.c: ... here.
48836         * posix/getlogin_r.c: Moved to ...
48837         * login/getlogin_r.c: ... here.
48838         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
48839         * login/Makefile (routines): ... here.
48840         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
48841         * login/Versions (libc: GLIBC_2.0): ... here.
48842
48843         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
48844         (setrlimit): Define as weak alias.
48845
48846         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
48847         Call __ names for open, ftruncate, and close.
48848         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
48849         (truncate): Define as weak alias.
48850
48851 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
48852
48853         * math/gen-libm-test.pl (parse_args): Initialize x before each
48854         test of frexp, modf and remquo.
48855
48856         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
48857         test signgam value.
48858
48859 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48860
48861         [BZ #15418]
48862         [BZ #15419]
48863         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
48864         internal tests.
48865         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
48866
48867 2013-05-06  Roland McGrath  <roland@hack.frob.com>
48868
48869         * elf/dl-writev.h: New file.
48870         * elf/dl-misc.c: Include it.
48871         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
48872         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
48873
48874 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
48875
48876         * math/libm-test.inc (noXFails): Remove variable.
48877         (noXPasses): Likewise.
48878         (BUILD_COMPLEX_INT): Remove macro.
48879         (print_screen): Remove xfail argument.
48880         (print_screen_max_error): Likewise.
48881         (update_stats): Likewise.
48882         (print_max_error): Likewise.  Update calls to other affected
48883         functions.
48884         (print_complex_max_error): Likewise.
48885         (test_single_exception): Update calls to print_screen.
48886         (test_single_errno): Likewise.
48887         (check_float_internal): Remove xfail argument.  Update calls to
48888         other affected functions.
48889         (check_float): Likewise.
48890         (check_complex): Likewise.
48891         (check_int): Likewise.
48892         (check_long): Likewise.
48893         (check_bool): Likewise.
48894         (check_longlong): Likewise.
48895         (main): Don't print noXFails and noXPasses.
48896         * math/gen-libm-test.pl (top level): Don't mention expected
48897         failure handling in comment.
48898         (new_test): Don't handle expected failures.
48899         (parse_args): Don't mention expected failure handling in comment.
48900         (generate_testfile): Don't handle expected failures.
48901         (parse_ulps): Likewise.
48902         (print_ulps_file): Likewise.
48903         (get_failure): Remove function.
48904         (output_test): Don't handle expected failures.
48905         * make/README.libm-test: Don't mention expected failure handling.
48906
48907         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
48908         (minus_zero): Likewise.
48909         (plus_infty): Likewise.
48910         (minus_infty): Likewise.
48911         (qnan_value): Likewise.
48912         (max_value): Likewise.
48913         (min_value): Likewise.
48914         (min_subnorm_value): Likewise.
48915         (initialize): Do not initialize those variables dynamically.
48916
48917 2013-05-03  Roland McGrath  <roland@hack.frob.com>
48918
48919         * io/open.c (__open_2): Moved to ...
48920         * io/open_2.c: ... this new file.
48921         * io/open64.c (__open64_2): Moved to ...
48922         * io/open64_2.c: ... this new file.
48923         * io/openat.c (__openat_2): Moved to ...
48924         * io/openat_2.c: ... this new file.
48925         * io/openat64.c (__openat64_2): Moved to ...
48926         * io/openat64_2.c: ... this new file.
48927         * io/Makefile (routines): Add them.
48928         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
48929         * sysdeps/unix/sysv/linux/open_2.c: File removed.
48930         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
48931         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
48932         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
48933         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
48934         (__openat64): Add hidden_ver.
48935         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
48936         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
48937
48938         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
48939         Separately conditionalize setting of GLRO(dl_sysinfo) so
48940         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
48941         as well, but the actual setting is only under [NEED_DL_SYSINFO].
48942
48943 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48944
48945         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
48946         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
48947         definition.
48948         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
48949         * sysdeps/unix/sysv/linux/powerpc/init-first.c
48950         (_libc_vdso_platform_setup): Add __vdso_time initialization.
48951         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
48952         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
48953
48954 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
48955
48956         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
48957         test signgam value.
48958
48959         * math/libm-test.inc (hypot_test): Do not use
48960         IGNORE_ZERO_INF_SIGN.
48961
48962 2013-05-03  Andreas Jaeger  <aj@suse.de>
48963
48964         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
48965         Linux 3.9.
48966         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
48967         (PF_MAX): Adjust for VSOCK change.
48968
48969 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
48970
48971         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
48972
48973 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
48974
48975         [BZ #15264]
48976         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
48977         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
48978         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
48979
48980 2013-05-02  David S. Miller  <davem@davemloft.net>
48981
48982         * sysdeps/sparc/fpu/libm-test-ulps: Update.
48983
48984 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
48985
48986         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
48987
48988 2013-05-01  Roland McGrath  <roland@hack.frob.com>
48989
48990         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
48991
48992 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
48993
48994         [BZ #14952]
48995         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
48996         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
48997         Use __attribute__ ((__gnu_inline__)).
48998         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
48999         Don't use __attribute__ ((__gnu_inline__)).
49000
49001 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
49002
49003         [BZ #15423]
49004         * math/s_catan.c (__catan): Handle small real or imaginary part of
49005         input specially to avoid spurious underflow.
49006         * math/s_catanf.c (__catanf): Likewise.
49007         * math/s_catanh.c (__catanh): Likewise.
49008         * math/s_catanhf.c (__catanhf): Likewise.
49009         * math/s_catanhl.c (__catanhl): Likewise.
49010         * math/s_catanl.c (__catanl): Likewise.
49011         * math/libm-test.inc (catan_test): Add more tests.
49012         (catanh_test): Likewise.
49013         * sysdeps/i386/fpu/libm-test-ulps: Update.
49014         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49015
49016 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49017
49018         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49019
49020 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
49021
49022         [BZ #15416]
49023         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
49024         accurately for denominator in atan2.
49025         * math/s_catanf.c (__catanf): Likewise.
49026         * math/s_catanh.c (__catanh): Likewise.
49027         * math/s_catanhf.c (__catanhf): Likewise.
49028         * math/s_catanhl.c (__catanhl): Likewise.
49029         * math/s_catanl.c (__catanl): Likewise.
49030         * math/libm-test.inc (catan_test): Add more tests.
49031         (catanh_test): Likewise.
49032         * sysdeps/i386/fpu/libm-test-ulps: Update.
49033         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49034
49035 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
49036
49037         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
49038
49039         * benchtests/Makefile (bench): Remove slow benchmarks.
49040         * benchtests/atan-inputs: Add slow benchmark inputs.
49041         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
49042         (BENCH_FUNC): Accept variant offset.
49043         (VARIANT): Define.
49044         * benchtests/bench-skeleton.c (main): Run benchmark for each
49045         variant.
49046         * benchtests/cos-inputs: Add slow benchmark inputs.
49047         * benchtests/exp-inputs: Likewise.
49048         * benchtests/pow-inputs: Likewise.
49049         * benchtests/sin-inputs: Likewise.
49050         * benchtests/slowatan-inputs: Remove.
49051         * benchtests/slowatan.c: Remove.
49052         * benchtests/slowcos-inputs: Remove.
49053         * benchtests/slowcos.c: Remove.
49054         * benchtests/slowexp-inputs: Remove.
49055         * benchtests/slowexp.c: Remove.
49056         * benchtests/slowpow-inputs: Remove.
49057         * benchtests/slowpow.c: Remove.
49058         * benchtests/slowsin-inputs: Remove.
49059         * benchtests/slowsin.c: Remove.
49060         * benchtests/slowtan-inputs: Remove.
49061         * benchtests/slowtan.c: Remove.
49062         * benchtests/tan-inputs: Add slow benchmark inputs.
49063         * scripts/bench.pl: Parse comments and directives.
49064
49065         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
49066         in CPPFLAGS.
49067         ($(objpfx)bench-%.c): Remove *-ITER.
49068         * benchtests/bench-modf.c: Remove definition of ITER.
49069         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
49070         (main): Loop for DURATION seconds instead of fixed number of
49071         iterations.
49072         * scripts/bench.pl: Don't expect iterations in parameters.
49073
49074 2013-04-29  Roland McGrath  <roland@hack.frob.com>
49075
49076         * io/fchdir.c (__fchdir): Renamed from fchdir.
49077         (fchdir): Define as weak alias.
49078
49079 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
49080
49081         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
49082         (ERRNO_EDOM): Likewise.
49083         (ERRNO_ERANGE): Likewise.
49084         (noErrnoTests): New variable.
49085         (init_max_error): Set errno to 0.
49086         (test_single_errno): New function.
49087         (test_errno): Likewise.
49088         (check_float_internal): Call test_errno.  Set errno to 0.
49089         (check_complex): Refer to errno tests in comment.
49090         (check_int): Call test_errno.  Set errno to 0.
49091         (check_long): Likewise.
49092         (check_bool): Likewise.
49093         (check_longlong): Likewise.
49094         (cos_test): Use ERRNO_* flags for errno tests instead of
49095         check_int.
49096         (expm1_test): Likewise.
49097         (fmod_test): Likewise.
49098         (ilogb_test): Likewise.
49099         (lgamma_test): Likewise.
49100         (pow_test): Likewise.
49101         (remainder_test): Likewise.
49102         (sin_test): Likewise.
49103         (tan_test): Likewise.
49104         (yn_test): Likewise.
49105         (initialize): Set errno to 0.
49106         (main): Print number of errno tests.
49107         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
49108
49109 2013-04-29  Andreas Jaeger  <aj@suse.de>
49110
49111         [BZ #15084]
49112         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
49113         and RES_USEVC.
49114
49115         [BZ #15085]
49116         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
49117         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
49118         unimplemented.
49119
49120         [BZ #15380]
49121         * stdlib/random.c (__initstate): Return NULL if
49122         __initstate fails.
49123
49124         [BZ #15086]
49125         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
49126         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
49127         RES_SNGLKUPREOP.
49128
49129 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49130
49131         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49132
49133 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
49134
49135         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
49136         of individual tests.
49137         (casin_test): Likewise.
49138         (casinh_test): Likewise.
49139
49140 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
49141
49142         [BZ #15409]
49143         * math/s_catan.c (__catan): Handle arguments with large real or
49144         imaginary part separately without squaring.
49145         * math/s_catanf.c (__catanf): Likewise.
49146         * math/s_catanh.c (__catanh): Likewise.
49147         * math/s_catanhf.c (__catanhf): Likewise.
49148         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
49149         and redefine.
49150         (__catanhl): Handle arguments with large real or imaginary part
49151         separately without squaring.
49152         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
49153         and redefine.
49154         (__catanl): Handle arguments with large real or imaginary part
49155         separately without squaring.
49156         * math/libm-test.inc (catan_test): Add more tests.
49157         (catanh_test): Likewise.
49158         * sysdeps/i386/fpu/libm-test-ulps: Update.
49159         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49160
49161 2013-04-27  Andreas Jaeger  <aj@suse.de>
49162
49163         [BZ #15007]
49164         * stdlib/stdlib.h: Update guards for qecvt.
49165         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
49166         <stdlib.h>.
49167
49168 2013-04-27  Allan McRae  <allan@archlinux.org>
49169
49170         * sysdeps/i386/fpu/libm-test-ulps: Update.
49171
49172 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
49173
49174         [BZ #15406]
49175         * math/s_catan.c: Include <float.h>.
49176         (__catan): Ensure underflow exception occurs for underflowed
49177         result.
49178         * math/s_catanf.c: Include <float.h>.
49179         (__catanf): Ensure underflow exception occurs for underflowed
49180         result.
49181         * math/s_catanh.c: Include <float.h>.
49182         (__catanh): Ensure underflow exception occurs for underflowed
49183         result.
49184         * math/s_catanhf.c: Include <float.h>.
49185         (__catanhf): Ensure underflow exception occurs for underflowed
49186         result.
49187         * math/s_catanhl.c: Include <float.h>.
49188         (__catanhl): Ensure underflow exception occurs for underflowed
49189         result.
49190         * math/s_catanl.c: Include <float.h>.
49191         (__catanl): Ensure underflow exception occurs for underflowed
49192         result.
49193         * math/libm-test.inc (catan_test): Add more tests.
49194         (catanh_test): Likewise.
49195
49196         [BZ #15405]
49197         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
49198         underflowed result.
49199         * math/s_ccoshf.c (__ccoshf): Likewise.
49200         * math/s_ccoshl.c (__ccoshl): Likewise.
49201         * math/s_csin.c (__csin): Likewise.
49202         * math/s_csinf.c (__csinf): Likewise.
49203         * math/s_csinh.c (__csinh): Likewise.
49204         * math/s_csinhf.c (__csinhf): Likewise.
49205         * math/s_csinhl.c (__csinhl): Likewise.
49206         * math/s_csinl.c (__csinl): Likewise.
49207         * math/libm-test.inc (ccos_test): Add more tests.
49208         (ccosh_test): Likewise.
49209         (csin_test): Likewise.
49210         (csinh_test): Likewise.
49211
49212 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49213
49214         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
49215         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
49216         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
49217         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
49218         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
49219         powerpc/power5+/fpu folders.
49220         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
49221
49222
49223 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
49224
49225         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
49226
49227 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
49228
49229         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
49230         additions to variable.
49231         [$(config-machine) = x86_64] (modules-names): Likewise.
49232         ($(objpfx)tst-audit3): Remove dependency.
49233         ($(objpfx)tst-audit3.out): Likewise.
49234         ($(objpfx)tst-audit4): Likewise.
49235         ($(objpfx)tst-audit4.out): Likewise.
49236         ($(objpfx)tst-audit5): Likewise.
49237         ($(objpfx)tst-audit5.out): Likewise.
49238         ($(objpfx)tst-audit6): Likewise.
49239         ($(objpfx)tst-audit6.out): Likewise.
49240         ($(objpfx)tst-audit7): Likewise.
49241         ($(objpfx)tst-audit7.out): Likewise.
49242         (tst-audit3-ENV): Remove variable.
49243         (tst-audit4-ENV): Likewise.
49244         (tst-audit5-ENV): Likewise.
49245         (tst-audit6-ENV): Likewise.
49246         (tst-audit7-ENV): Likewise.
49247         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
49248         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
49249         addition to variable.
49250         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
49251         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
49252         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
49253         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
49254         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
49255         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
49256         tst-audit3, tst-audit4 and tst-audit5.
49257         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
49258         tst-audit6 and tst-audit7.
49259         [$(subdir) = elf] (modules-names): Add audit modules for those
49260         tests.
49261         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
49262         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
49263         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
49264         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
49265         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
49266         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
49267         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
49268         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
49269         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
49270         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
49271         [$(subdir) = elf] (tst-audit3-ENV): New variable.
49272         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
49273         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
49274         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
49275         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
49276         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
49277         Likewise.
49278         [$(subdir) = elf && $(config-cflags-avx) = yes]
49279         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
49280         [$(subdir) = elf && $(config-cflags-avx) = yes]
49281         (CFLAGS-tst-auditmod4a.c): Likewise.
49282         [$(subdir) = elf && $(config-cflags-avx) = yes]
49283         (CFLAGS-tst-auditmod4b.c): Likewise.
49284         [$(subdir) = elf && $(config-cflags-avx) = yes]
49285         (CFLAGS-tst-auditmod6b.c): Likewise.
49286         [$(subdir) = elf && $(config-cflags-avx) = yes]
49287         (CFLAGS-tst-auditmod6c.c): Likewise.
49288         [$(subdir) = elf && $(config-cflags-avx) = yes]
49289         (CFLAGS-tst-auditmod7b.c): Likewise.
49290         * elf/tst-audit3.c: Move to ...
49291         * sysdeps/x86_64/tst-audit3.c: ... here.
49292         * elf/tst-audit4.c: Move to ...
49293         * sysdeps/x86_64/tst-audit4.c: ... here.
49294         * elf/tst-audit5.c: Move to ...
49295         * sysdeps/x86_64/tst-audit5.c: ... here.
49296         * elf/tst-audit6.c: Move to ...
49297         * sysdeps/x86_64/tst-audit6.c: ... here.
49298         * elf/tst-audit7.c: Move to ...
49299         * sysdeps/x86_64/tst-audit7.c: ... here.
49300         * elf/tst-auditmod3a.c: Move to ...
49301         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
49302         * elf/tst-auditmod3b.c: Move to ...
49303         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
49304         * elf/tst-auditmod4a.c: Move to ...
49305         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
49306         * elf/tst-auditmod4b.c: Move to ...
49307         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
49308         * elf/tst-auditmod5a.c: Move to ...
49309         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
49310         * elf/tst-auditmod5b.c: Move to ...
49311         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
49312         * elf/tst-auditmod6a.c: Move to ...
49313         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
49314         * elf/tst-auditmod6b.c: Move to ...
49315         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
49316         * elf/tst-auditmod6c.c: Move to ...
49317         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
49318         * elf/tst-auditmod7a.c: Move to ...
49319         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
49320         * elf/tst-auditmod7b.c: Move to ...
49321         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
49322
49323 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
49324
49325         [BZ #15366]
49326         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
49327         define unconditionally.
49328         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
49329         define unconditionally.
49330         (INT8_C, INT16_C, etc.): Likewise.
49331
49332 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
49333
49334         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
49335         __ehdr_start with hidden visibility.
49336
49337         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
49338
49339 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
49340
49341         * math/libm-test.inc (cos_test): Use accurate hex constants.
49342         (sincost_test): Likewise.
49343
49344 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
49345
49346         * math/libm-test.inc (catan_test): Add more tests.
49347         (catanh_test): Likewise.
49348
49349         * math/s_catanf.c (__catanf): Use suffixed floating-point
49350         constants.
49351         * math/s_catanhf.c (__catanhf): Likewise.
49352         * math/s_catanhl.c (__catanhl): Likewise.
49353         * math/s_catanl.c (__catanl): Likewise.
49354
49355         [BZ #15394]
49356         * math/s_catan.c (__catan): Calculate imaginary part of result
49357         with log1p not log unless computing log of number close to 0.
49358         * math/s_catanf.c (__catanf): Likewise.
49359         * math/s_catanl.c (__catanl): Likewise.
49360         * math/s_catanh.c (__catanh): Calculate real part of result with
49361         log1p not log unless computing log of number close to 0.
49362         * math/s_catanhf.c (__catanhf): Likewise.
49363         * math/s_catanhl.c (__catanhl): Likewise.
49364         * math/libm-test.inc (catan_test): Add more tests.
49365         (catanh_test): Likewise.
49366         * sysdeps/i386/fpu/libm-test-ulps: Update.
49367         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49368
49369 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
49370
49371         * benchtests/Makefile: Mention files in which fast and slow
49372         paths of math functions are implemented.
49373
49374 2013-04-23  Roland McGrath  <roland@hack.frob.com>
49375
49376         * sysdeps/posix/timespec_get.c: New file.
49377
49378 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49379
49380         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
49381         POWER.
49382         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
49383         for POWER.
49384         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
49385         powerpc/power5/fpu folders.
49386         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
49387         * benchtests/Makefile: Add modf testcase.
49388         * benchtests/bench-modf.c: New file: Benchmark test for mo
49389
49390 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
49391
49392         [BZ #14888]
49393         * time/Makefile (tests): Add tst-strptime-whitespace.
49394         * time/strptime_l.c (get_number): Use ISSPACE.
49395         (__strptime_internal): Likewise.
49396         * time/tst-strptime-whitespace.c: New test case.
49397
49398 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
49399
49400         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
49401         member.
49402         (_nss_files_init): Set it here.
49403
49404 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
49405
49406         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
49407         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
49408         unsigned.
49409
49410 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
49411
49412         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
49413
49414 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
49415
49416         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
49417         size just once.
49418
49419 2013-04-21  David S. Miller  <davem@davemloft.net>
49420
49421         * po/ru.po: Update Russion translation from translation project.
49422
49423 2013-04-17  Adam Conrad  <adconrad@0c3.net>
49424
49425         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
49426         and setfsgid.
49427
49428 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
49429
49430         * configure.in: Remove i386 configure warning. Remove i386 case.
49431         * configure: Regenerate.
49432         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
49433         Add example to error message.
49434         * sysdeps/i386/configure: Regenerate.
49435
49436 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
49437
49438         * benchtests/Makefile (bench): Add cos, tan, slowcos and
49439         slowtan.
49440         * benchtests/cos-inputs: New file.
49441         * benchtests/slowcos-inputs: New file.
49442         * benchtests/slowcos.c: New file.
49443         * benchtests/slowtan-inputs: New file.
49444         * benchtests/slowtan.c: New file.
49445         * benchtests/tan-inputs: New file.
49446
49447 2013-04-16  Roland McGrath  <roland@hack.frob.com>
49448
49449         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
49450         considered kosher.
49451
49452 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
49453
49454         * benchtests/Makefile: Include cppflags-iterator.mk to add
49455         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
49456
49457         * Makefile.in (bench-clean): New target.
49458         * benchtests/Makefile (bench-clean): Likewise.
49459
49460 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
49461
49462         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
49463
49464 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
49465
49466         * stdio-common/tstdiomisc.c: Fix coding-style violation.
49467
49468 2013-04-15  Andreas Schwab  <schwab@suse.de>
49469
49470         * nscd/grpcache.c (cache_addgr): Properly check for short write.
49471         * nscd/initgrcache.c (addinitgroupsX): Likewise.
49472         * nscd/pwdcache.c (cache_addpw): Likewise.
49473         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
49474         more than recsize.
49475
49476 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49477
49478         * benchtests/Makefile (bench): Write all output to
49479         bench-out.tmp together.
49480
49481 2013-04-15  Andreas Schwab  <schwab@suse.de>
49482
49483         * nscd/nscd.c (main): Don't fork again after closing files.
49484
49485 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
49486
49487         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
49488
49489         * benchtests/Rules (bench-deps): Collect dependencies into a
49490         single variable.  Add Makefile to dependencies.
49491         ($(objpfx)bench-%.c): Depend on bench-deps.
49492
49493 2013-04-12  Roland McGrath  <roland@hack.frob.com>
49494             Xavier Roche  <roche+kml2@exalead.com>
49495
49496         [BZ #15361]
49497         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
49498         just that it's a file descriptor.
49499         * manual/llio.texi (Synchronizing AIO Operations): Update description
49500         for EBADF error from aio_fsync.
49501
49502 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
49503
49504         * Rules (bench): Move target definition...
49505         * benchtests/Makefile: ... here.
49506
49507 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
49508
49509         * math/libm-test.inc (cos_test): Fix PI/2 test.
49510         (sincos_test): Likewise.
49511         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
49512         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
49513
49514 2013-04-11  Andreas Schwab  <schwab@suse.de>
49515
49516         [BZ #13988]
49517         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
49518         accept exponent character only when digits were seen.
49519         * stdio-common/Makefile (tests): Add bug26.
49520         * stdio-common/bug26.c: New file.
49521
49522         [BZ #14293]
49523         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
49524         non-freeable.
49525
49526 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
49527
49528         * Makeconfig (rtld-prefix): Define built linker prefix.
49529         * Rules (run-bench): Use it.
49530         * math/Makefile (run-regen-ulps): Likewise.
49531
49532         * Rules (bench): Remove eval.
49533
49534 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
49535             Roland McGrath  <roland@hack.frob.com>
49536             Ondrej Bilka  <neleai@seznam.cz>
49537
49538         [BZ #15346]
49539         * time/getdate.c: Include ctype.h and alloca.h.
49540         (__getdate_r): Trim leading and trailing spaces of input.
49541         * time/tst-getdate.c (tests): Add tests with leading and
49542         trailing spaces.
49543
49544 2013-04-08  Roland McGrath  <roland@hack.frob.com>
49545
49546         [BZ #14280]
49547         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
49548         when computing value.
49549
49550 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49551
49552         * math/README.libm-test (How can I generate "libm-test-ulps"?):
49553         Use testrun.sh to run libm tests.
49554
49555         [BZ #15309]
49556         * elf/dl-open.c (dl_open_worker): memset all of seen array.
49557
49558 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
49559
49560         [BZ #15264]
49561         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
49562
49563 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49564
49565         * Makefile.in (regen-ulps): New target.
49566         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
49567         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
49568         [ifneq (no,$(PERL)] (regen-ulps): New target.
49569         [ifeq (no,$(PERL)] (regen-ulps): New target.
49570         * math/libm-test.inc (ulps_file_name): Define.
49571         (output_dir): New variable.
49572         (options): Add "output-dir" option.
49573         (parse_opt): Handle 'o' case.
49574         (main): If output_dir is non-NULL use it as a prefix
49575         otherwise use "".
49576         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
49577
49578 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49579
49580         [BZ #10060, #10062]
49581         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
49582         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
49583         fail configure if __sync_val_compare_and_swap is not inlined.
49584         * sysdeps/i386/configure: Regenerate.
49585         * configure.in: Build for i686 when configured for i386.
49586         * configure: Regenerate.
49587         * README: Remove i386 reference.
49588
49589 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
49590
49591         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
49592         * sysdeps/s390/s390-64/sysdep.h: Likewise.
49593
49594 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
49595
49596         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
49597         (lmsnanval): New variables.
49598         (F): Add conversion tests.
49599         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
49600         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
49601
49602         * stdio-common/tstdiomisc.c (F): Properly collect individual
49603         tests' results.
49604
49605         [BZ #14686, #15336]
49606         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
49607         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
49608         Instead, use input NaN values or generate a qNaN by arithmetic
49609         operation.  Also fix bugs to comply with the standard.
49610         * math/libm-test.inc (remainder_test): Add more tests.
49611
49612         [BZ #15335, #15342]
49613         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
49614         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
49615         input NaN values or generate a qNaN by arithmetic operation.
49616
49617         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
49618         unreachable code.
49619
49620         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
49621         definitions.
49622
49623 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
49624
49625         [BZ #14478]
49626         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
49627         underflowed result.
49628         * math/s_cexpf.c (__cexpf): Likewise.
49629         * math/s_cexpl.c (__cexpl): Likewise.
49630         * math/libm-test.inc (cexp_test): Add more tests.
49631
49632 2013-04-03  Andreas Schwab  <schwab@suse.de>
49633
49634         [BZ #15330]
49635         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
49636         order arrays from heap if bigger than alloca cutoff.
49637
49638 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
49639
49640         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
49641         (SNAN_TESTS_double): Refer to GCC PR56831.
49642         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
49643         GCC PR56828.
49644
49645 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
49646
49647         * Rules (bench): Move bench.out after the run is complete.
49648
49649         * Rules (bench): Echo currently running benchmark.
49650
49651         * benchtests/Makefile (bench): Add atan and slowatan.
49652         * benchtests/atan-inputs: New file.
49653         * benchtests/slowatan-inputs: New file.
49654         * benchtests/slowatan.c: New file.
49655
49656         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
49657         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
49658         its value.
49659
49660         [BZ #15305]
49661         * sysdeps/unix/sysv/linux/kernel-features.h
49662         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
49663         __ASSUME_XFS_RESTRICTED_CHOWN.
49664         * sysdeps/unix/sysv/linux/pathconf.c
49665         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
49666         Save and restore errno.
49667
49668 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
49669
49670         [BZ #15327]
49671         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
49672         arguments using __kernel_casinh.
49673         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
49674         arguments using __kernel_casinhf.
49675         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
49676         arguments using __kernel_casinhl.
49677         * math/libm-test.inc (cacosh_test): Add more tests.
49678         * sysdeps/i386/fpu/libm-test-ulps: Update.
49679         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49680
49681 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
49682
49683         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
49684         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
49685
49686         * bench/Makefile (bench): Add sin and slowsin.
49687         * benchtests/sin-inputs: New file.
49688         * benchtests/slowsin-inputs: New file.
49689         * benchtests/slowsin.c: New file.
49690
49691         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
49692         (bench): Add slowexp and slowpow.
49693         (exp-ITER): Increase iterations.
49694         (pow-ITER): Likewise.
49695         * benchtests/exp-inputs: Change input.
49696         * benchtests/pow-inputs: Likewise.
49697         * benchtests/slowexp-inputs: New file.
49698         * benchtests/slowexp.c: New file.
49699         * benchtests/slowpow-inputs: New file.
49700         * benchtests/slowpow.c: New file.
49701
49702 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49703
49704         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
49705         instructions.
49706         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
49707         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
49708         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
49709         * benchtests/Makefile: Add rint benchtest.
49710         * benchtests/rint-inputs: Input for rint benchtest.
49711
49712 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
49713
49714         * Versions.def (libm): Add GLIBC_2.18.
49715         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
49716         hidden libm prototypes.
49717         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
49718         * math/Makefile (libm-calls): Add s_issignaling.
49719         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
49720         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
49721         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
49722         declaration.
49723         * math/math.h [__USE_GNU] (issignaling): New macro.
49724         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
49725         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
49726         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
49727         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
49728         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
49729         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
49730         * manual/arith.texi (issignaling): New section.
49731         * manual/libm-err-tab.pl (@all_functions): Update comment.
49732         * math/gen-libm-test.pl (parse_args): Apply special handling for
49733         issignaling.
49734         * math/libm-test.inc (print_float, issignaling_test): New
49735         functions.
49736         (check_float_internal): Add issignaling checks.
49737         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
49738         default definition.
49739         * sysdeps/powerpc/math-tests.h: New file.
49740         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
49741         tests.
49742         * math/test-snan.c (TEST_FUNC): Likewise.
49743
49744 2013-03-30  David S. Miller  <davem@davemloft.net>
49745
49746         * po/de.po: Update from translation team.
49747
49748 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
49749
49750         [BZ #10357]
49751         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49752         imaginary part less than 1.0 and real part less than 0.5
49753         specially.
49754         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49755         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49756         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
49757         (cacos_test): Add more tests.
49758         (casin_test): Likewise.
49759         (casinh_test): Likewise.
49760         * sysdeps/i386/fpu/libm-test-ulps: Update.
49761         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49762
49763 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
49764
49765         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
49766         ONE with its value.
49767
49768         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
49769         (__pow_mp): Replace ONE and MONE with their values.
49770         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49771         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
49772         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49773         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
49774         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49775         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49776
49777         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
49778
49779         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
49780         (__pow_mp): Replace ZERO and MZERO with their values.
49781         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49782         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49783         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
49784         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
49785         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49786         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
49787         (__sqr): Likewise.
49788
49789         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
49790
49791         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
49792
49793 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49794
49795         * include/stdlib.h [!SHARED] (__call_tls_dtors):
49796         Declare with __attribute__ ((weak)).
49797         * stdlib/exit.c (__libc_atexit) [!SHARED]:
49798         Call __call_tls_dtors only if it's not NULL.
49799
49800 2013-03-28  Roland McGrath  <roland@hack.frob.com>
49801
49802         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
49803         didn't do it already, then set _dl_phdr and _dl_phnum based on the
49804         magic __ehdr_start linker symbol if it's defined.
49805         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
49806         them up here if it was already done.
49807
49808         * elf/dl-support.c (_dl_phdr): Make pointer to const.
49809         (_dl_aux_init): Use const in cast when setting it.
49810         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
49811         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
49812         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
49813
49814         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
49815         Declare them here.
49816         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
49817         * csu/libc-tls.c: Nor here.
49818         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
49819
49820         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
49821         (__libc_message): Never call vsyslog.
49822
49823 2013-03-28  Alan Modra  <amodra@gmail.com>
49824
49825         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
49826         Define as empty.
49827         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
49828         Likewise.
49829
49830 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49831
49832         [BZ #15214]
49833         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
49834         underflow.
49835         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
49836
49837 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
49838
49839         [BZ #15304]
49840         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
49841         Don't add gid passed as argument.
49842
49843         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
49844
49845 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
49846
49847         [BZ #15307]
49848         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49849         imaginary part between 1.0 and 1.5 and real part less than 0.5
49850         specially.
49851         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49852         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49853         * math/libm-test.inc (cacos_test): Add more tests.
49854         (casin_test): Likewise.
49855         (casinh_test): Likewise.
49856         * sysdeps/i386/fpu/libm-test-ulps: Update.
49857         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49858
49859 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
49860
49861         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
49862         constants.
49863         (norm): Likewise.
49864         (denorm): Likewise.
49865         (__dbl_mp): Likewise.
49866         (add_magnitudes): Likewise.
49867         (sub_magnitudes): Likewise.
49868         (__add): Likewise.
49869         (__sub): Likewise.
49870         (__mul): Likewise.
49871         (__sqr): Likewise.
49872         (__inv): Likewise.
49873         (__dvd): Likewise.
49874
49875         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
49876         commented code.
49877         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
49878         (__dubcos): Likewise.
49879         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
49880         (__ieee754_acos): Likewise.
49881         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
49882         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
49883         (__exp1): Likewise.
49884         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
49885         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
49886         (log1): Likewise.
49887         (my_log2): Likewise.
49888         (checkint): Likewise.
49889         * sysdeps/ieee754/dbl-64/e_remainder.c
49890         (__ieee754_remainder): Likewise.
49891         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
49892         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
49893         (bsloww): Likewise.
49894         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
49895
49896         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
49897         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
49898         MANTISSA_STORE_T to store computations on mantissa.  Use
49899         macros for rounding and division.
49900         (denorm): Likewise.
49901         (__dbl_mp): Likewise.
49902         (add_magnitudes): Likewise.
49903         (sub_magnitudes): Likewise.
49904         (__mul): Likewise.
49905         (__sqr): Likewise.
49906         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
49907         powers of two in terms of TWOPOW macro.
49908         (mp_no): Make type of mantissa as MANTISSA_T.
49909         [!RADIXI]: Define RADIXI.
49910         [!TWO52]: Define TWO52.
49911         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
49912
49913 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49914
49915         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
49916         llroundl symbol when building for PPC32.
49917
49918 2013-03-24  Mark H Weaver  <mhw@netris.org>
49919
49920         * manual/arith.texi (Normalization Functions): Fix prototypes for
49921         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
49922
49923 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49924
49925         [BZ #13889]
49926         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
49927         high value to check if expl overflow.
49928         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
49929         to check for underflow and overflow.
49930         * math/libm-test.inc: Add exp test.
49931
49932 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
49933
49934         [BZ #11120]
49935         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
49936         with NOT_IN_libc.
49937
49938 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49939
49940         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
49941         symbol.
49942
49943 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
49944
49945         * math/gen-libm-test.pl (parse_args, special_functions): Properly
49946         wrap blocks consisting of several statements.
49947
49948         * sysdeps/generic/math-tests.h: New file.
49949         * sysdeps/i386/fpu/math-tests.h: Likewise.
49950         * math/test-snan.c: Include it.
49951         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
49952
49953 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
49954
49955         [BZ #15285]
49956         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
49957         (__ieee754_j0l): Do not improve calculations using cos of twice
49958         input for inputs above LDBL_MAX / 2.0L.
49959         (__ieee754_y0l): Likewise.
49960         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
49961         (__ieee754_j1l): Do not improve calculations using cos of twice
49962         input for inputs above LDBL_MAX / 2.0L.
49963         (__ieee754_y1l): Likewise.
49964         * math/libm-test.inc (j0_test): Add another test.
49965         (j1_test): Likewise.
49966         (y0_test): Likewise.
49967         (y1_test): Likewise.
49968         * sysdeps/i386/fpu/libm-test-ulps: Update.
49969
49970 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
49971
49972         * Rules ($(objpfx)bench-%.c): Include code from a C source
49973         file.
49974
49975 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
49976
49977         [BZ #15287]
49978         * math/k_casinh.c (__kernel_casinh): Handle arguments with
49979         imaginary part 1.0 and real part less than 0.5 specially.
49980         * math/k_casinhf.c (__kernel_casinhf): Likewise.
49981         * math/k_casinhl.c (__kernel_casinhl): Likewise.
49982         * math/libm-test.inc (cacos_test): Add more tests.
49983         (casin_test): Likewise.
49984         (casinh_test): Likewise.
49985         * sysdeps/i386/fpu/libm-test-ulps: Update.
49986         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
49987
49988 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
49989
49990         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
49991         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
49992
49993 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
49994
49995         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
49996         * config.make.in (config-cflags-sse4): Remove variable.
49997         (config-cflags-avx): Likewise.
49998         (config-cflags-sse2avx): Likewise.
49999         (config-cflags-novzeroupper): Likewise.
50000         (config-asflags-i686): Likewise.
50001         (have-mfma4): Likewise.
50002         (have-as-vis3): Likewise.
50003         (MIG): Likewise.
50004         * configure.in (MIG): Do not AC_SUBST.
50005         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
50006         (libc_cv_cc_sse4): Do not AC_SUBST.
50007         (libc_cv_cc_avx): Likewise.
50008         (libc_cv_cc_sse2avx): Likewise.
50009         (libc_cv_cc_novzeroupper): Likewise.
50010         (libc_cv_cc_fma4): Likewise.
50011         (libc_cv_as_i686): Likewise.
50012         (libc_cv_sparc_as_vis3): Likewise.
50013         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
50014         LIBC_CONFIG_VAR.
50015         (config-asflags-i686): Likewise.
50016         (config-cflags-avx): Likewise.
50017         (config-cflags-sse2avx): Likewise.
50018         (have-mfma4): Likewise.
50019         (config-cflags-novzeroupper): Likewise.
50020         * sysdeps/mach/configure.in (MIG): Likewise.
50021         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
50022         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
50023         LIBC_CONFIG_VAR.
50024         (config-cflags-avx): Likewise.
50025         (config-cflags-sse2avx): Likewise.
50026         (have-mfma4): Likewise.
50027         (config-cflags-novzeroupper): Likewise.
50028         * configure: Regenerated.
50029         * sysdeps/i386/configure: Likewise.
50030         * sysdeps/mach/configure: Likewise.
50031         * sysdeps/sparc/configure: Likewise.
50032         * sysdeps/x86_64/configure: Likewise.
50033
50034 2013-03-20  Roland McGrath  <roland@hack.frob.com>
50035
50036         [BZ #14812]
50037         * locale/programs/localedef.c (options): Put N_ translation marker
50038         on argument names, not just descriptions.
50039
50040 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
50041
50042         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
50043
50044 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
50045
50046         [BZ #14176]
50047         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
50048
50049 2013-03-19  Roland McGrath  <roland@hack.frob.com>
50050
50051         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
50052         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
50053         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
50054         [!BEFORE_ABORT] (before_abort): New function.
50055         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
50056         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
50057         (writev_for_fatal): New function.
50058         (WRITEV_FOR_FATAL): New macro; call that.
50059         (backtrace_and_maps): New function.
50060         (BEFORE_ABORT): New macro; call that.
50061         (struct str_list): Type removed.
50062         (__libc_message, __libc_fatal): Functions removed.
50063         Include <sysdeps/posix/libc_fatal.c> instead.
50064
50065 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
50066
50067         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
50068         constants.
50069         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
50070         double constants.
50071
50072 2013-03-19  Andreas Schwab  <schwab@suse.de>
50073
50074         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
50075         * sysdeps/gnu/configure: Regenerate.
50076
50077         * configure.in: Substitute libc_cv_rtlddir.
50078         * configure: Regenerate.
50079         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
50080         * Makeconfig (rtlddir, inst_rtlddir): New variables.
50081         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
50082         * elf/Makefile (install-others, CFLAGS-interp.c)
50083         (ldso_install, common-ldd-rewrite): Likewise.
50084         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
50085         $(inst_slibdir)/$(rtld-installed-name).
50086         * scripts/rellns-sh: Add -p option.
50087         * Makerules (make-shlib-link): Use rellns-sh to get relative name
50088         for source.
50089
50090 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
50091
50092         * manual/nptl.texi: Renamed to ...
50093         * manual/threads.texi: ... this.
50094         * manual/Makefile (chapters): Update.
50095
50096 2013-03-18  Roland McGrath  <roland@hack.frob.com>
50097
50098         [BZ #14812]
50099         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
50100         on argument names, not just descriptions.
50101         * malloc/memusagestat.c (options): Likewise.
50102         * nss/getent.c (options): Likewise.
50103
50104 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
50105
50106         [BZ #14812]
50107         * iconv/iconv_prog.c (options): Put N_ translation marker
50108         on argument names, not just descriptions.
50109         * iconv/iconvconfig.c (options): Likewise.
50110
50111 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
50112
50113         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
50114         implementation which is faster on all x86_64 architectures.
50115         Tested on AMD, Intel Nehalem, SNB, IVB.
50116         * sysdeps/x86_64/strnlen.S: Likewise.
50117
50118         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
50119         Remove all multiarch strlen and strnlen versions.
50120         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
50121         Remove strlen and strnlen related parts.
50122
50123         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
50124         Inline strlen part.
50125         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
50126
50127         * sysdeps/x86_64/multiarch/strlen.S: Remove.
50128         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
50129         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
50130         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
50131         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
50132         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
50133
50134 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
50135
50136         * manual/memory.texi (Malloc Tunable Parameters):
50137         Sort parameters alphabetically. Add comments for missing entries.
50138
50139 2013-03-17  David S. Miller  <davem@davemloft.net>
50140
50141         * sysdeps/sparc/fpu/libm-test-ulps: Update.
50142
50143 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
50144
50145         [BZ #15283]
50146         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
50147         for arguments at most half maximum finite value.
50148         * math/libm-test.inc (j0_test): Add more tests.
50149         (j1_test): Likewise.
50150         (y0_test): Likewise.
50151         (y1_test): Likewise.
50152         * sysdeps/i386/fpu/libm-test-ulps: Update.
50153         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
50154
50155         [BZ #14155]
50156         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
50157         1 / x and functions P and Q for arguments above 0x1p256L.
50158         (__ieee754_y0l): Likewise.
50159         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
50160         (__ieee754_y1l): Likewise.
50161         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
50162         (j1_test): Likewise.
50163         (y0_test): Likewise.
50164         (y1_test): Likewise.
50165
50166 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
50167
50168         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
50169         variable.
50170
50171 2013-03-15  Roland McGrath  <roland@hack.frob.com>
50172
50173         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
50174         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
50175         zero since it's initialized to EXEC_PAGESIZE.
50176
50177         * sysdeps/unix/sysv/linux/ldsodefs.h
50178         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
50179         * sysdeps/generic/ldsodefs.h: ... here.
50180
50181 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
50182
50183         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
50184
50185         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
50186         math/test-snan.c.
50187         * math/test-snan.c: Renamed from
50188         sysdeps/powerpc/fpu/test-powerpc-snan.c.
50189         * math/Makefile (tests): Add test-snan.
50190         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
50191         test-powerpc-snan.
50192
50193         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
50194         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
50195         functions.
50196         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
50197         __builtin_nan family of functions.
50198         * math/libm-test.inc (initialize): Initialize qnan_value with
50199         __builtin_nan family of functions.
50200         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
50201         Remove variables.
50202         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
50203         Remove functions.
50204         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
50205         storage class.  Initialize qNaN_var and sNaN_var with
50206         __builtin_nan and __builtin_nans families of functions,
50207         respectively.
50208
50209         * math/libm-test.inc (acosh_test): Also test with qNaN input.
50210         (sqrt_test): Remove duplicate test with qNaN input.
50211         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
50212         (round_test, signbit_test, significand_test): Note missing +/-Inf
50213         as well as qNaN tests.
50214
50215         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
50216         qNaN_var.  Fix a few strings, too.
50217         * math/libm-test.inc (nan_value): Rename to qnan_value.
50218         * math/gen-libm-test.pl (%beautify): Adjust to that.
50219         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
50220         * math/test-misc.c (main): Likewise.
50221         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
50222         to __qnan_bytes, and __qnan_union, respectively.
50223         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
50224         Likewise.
50225         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
50226         and lqnanval, respectively.
50227         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
50228         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
50229         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
50230         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
50231
50232         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
50233         * math/test-misc.c (main) [__x86_64__]: Enable test for long
50234         doubles.
50235
50236         * math/test-misc.c (main): Fix copy'n'pastos.
50237         * misc/tst-efgcvt.c (special): Likewise.
50238
50239         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
50240         Remove declarations.
50241
50242 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50243
50244         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
50245         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
50246         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
50247         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
50248
50249 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50250
50251         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
50252         macro to return vdso values correctly in IFUNC implementations.
50253         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
50254         Optimization by using IFUNC.
50255
50256 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50257             Richard Henderson  <rth@redhat.com>
50258             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
50259
50260         * Makefile.in (bench): New target.
50261         * NEWS: Mention the benchmark framework.
50262         * Rules (bench): Likewise.
50263         (binaries-bench): Generate binaries for functions to
50264         benchmark.
50265         * benchtests/Makefile: New makefile for benchmark tests.
50266         * benchtests/bench-skeleton.c: New skeleton file for benchmark
50267         programs.
50268         * benchtests/exp-inputs: New input file for EXP function.
50269         * benchtests/pow-inputs: New input file for POW function.
50270         * scripts/bench.pl: New script to generate source files for
50271         benchmark programs.
50272
50273 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
50274
50275         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
50276         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
50277         computations on mantissa.  Use macros for rounding and
50278         division.
50279         (denorm): Likewise.
50280         (__dbl_mp): Likewise.
50281         (add_magnitudes): Likewise.
50282         (sub_magnitudes): Likewise.
50283         (__mul): Likewise.
50284         (__sqr): Likewise.
50285         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
50286         powers of two in terms of TWOPOW macro.
50287         (mp_no): Make type of mantissa as MANTISSA_T.
50288         [!RADIXI]: Define RADIXI.
50289         [!TWO52]: Define TWO52.
50290         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
50291
50292         * manual/nptl.texi (cindex): Modify threads to pthreads.
50293
50294 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
50295
50296         * sysdeps/x86_64/preconfigure: Regenerated.
50297
50298 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
50299
50300         [BZ #14155]
50301         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
50302         0x1p28 and above.
50303         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
50304         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
50305         0x1p28 and above.
50306         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
50307         * math/libm-test.inc (j0_test): Do not allow one spurious
50308         underflow exception.
50309         (y1_test): Likewise.
50310
50311 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
50312
50313         * manual/Makefile (chapters): Add nptl.
50314         * manual/debug.texi (Debugging Support): Add link to Threads
50315         chapter.
50316         * manual/nptl.texi: New file.
50317
50318         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
50319
50320 2013-03-14  Petr Baudis  <pasky@ucw.cz>
50321
50322         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
50323         for non-NULL pointer before the memory validity test. Pointed
50324         out by Holger Brunck <holger.brunck@keymile.com>.
50325
50326 2013-03-13  Andreas Schwab  <schwab@suse.de>
50327
50328         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
50329         instead of .os.
50330
50331 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
50332
50333         * timezone/zic.c: Update from tzcode 2013b.
50334
50335 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
50336
50337         * manual/install.texi (Configuring and compiling):
50338         Mention i686 and i586.
50339         * INSTALL: Regenerate.
50340
50341 2013-03-12  Roland McGrath  <roland@hack.frob.com>
50342
50343         * sysdeps/init_array/elf-init.c: New file.
50344         * csu/elf-init.c
50345         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
50346         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
50347
50348         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
50349         __gmon_start__ as global, but as static with a .preinit_array pointer.
50350         * sysdeps/init_array/gmon-start.c: New file.  Use that.
50351         * sysdeps/init_array/crti.S: New file, empty except for comments.
50352         * sysdeps/init_array/crtn.S: Likewise.
50353
50354 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
50355
50356         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
50357         definining bcopy.
50358         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
50359         Remove Prefer_SSE_for_memop.
50360         * sysdeps/x86_64/multiarch/init-arch.h: Remove
50361         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
50362         HAS_PREFER_SSE_FOR_MEMOP.
50363         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
50364         memset-x86-64.
50365         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
50366         Remove bzero, memset ifunc support.
50367         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
50368         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
50369         * sysdeps/x86_64/multiarch/memset.S: Likewise.
50370         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
50371
50372 2013-03-11  Andreas Schwab  <schwab@suse.de>
50373
50374         [BZ #15234]
50375         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
50376         by SHLIB_COMPAT.
50377         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
50378         (GLIBC_2.16): Remove pthread_atfork.
50379
50380 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
50381
50382         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
50383         (ptestcases.h): Likewise.
50384
50385 2013-03-08  Roland McGrath  <roland@hack.frob.com>
50386
50387         * Makeconfig ($(common-objpfx)config.status): Depend on
50388         sysdeps/*/preconfigure{,.in} too.
50389
50390 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
50391
50392         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
50393         (__free_hook): Use void * instead of __malloc_ptr_t.
50394         (__malloc_hook): Likewise.
50395         (__realloc_hook): Likewise.
50396         (__memalign_hook): Likewise.
50397         (__after_morecore_hook): Likewise.
50398         * malloc/arena.c (save_malloc_hook): Likewise.
50399         (save_free_hook): Likewise.
50400         * malloc/hooks.c (malloc_hook_ini): Likewise.
50401         (realloc_hook_ini): Likewise.
50402         (memalign_hook_ini): Likewise.
50403         * malloc/malloc.c (malloc_hook_ini): Likewise.
50404         (realloc_hook_ini): Likewise.
50405         (memalign_hook_ini): Likewise.
50406         (__free_hook): Likewise.
50407         (__malloc_hook): Likewise.
50408         (__realloc_hook): Likewise.
50409         (__memalign_hook): Likewise.
50410         (__libc_malloc): Likewise.
50411         (__libc_free): Likewise.
50412         (__libc_realloc): Likewise.
50413         (__libc_memalign): Likewise.
50414         (__libc_valloc): Likewise.
50415         (__libc_pvalloc): Likewise.
50416         (__libc_calloc): Likewise.
50417         (__posix_memalign): Likewise.
50418         * malloc/morecore.c (__sbrk): Likewise.
50419         (__default_morecore): Likewise.
50420
50421         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
50422
50423         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
50424         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
50425         __malloc_ptrdiff_t.
50426
50427         * malloc/malloc.h (__malloc_size_t): Remove macro.
50428         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
50429         __malloc_size_t.
50430         (old_memalign_hook): Likewise.
50431         (old_realloc_hook): Likewise.
50432         (struct hdr): Likewise.
50433         (flood): Likewise.
50434         (mallochook): Likewise.
50435         (memalignhook): Likewise.
50436         (reallochook): Likewise.
50437         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
50438         (tr_old_realloc_hook): Likewise.
50439         (tr_old_memalign_hook): Likewise.
50440         (tr_mallochook): Likewise.
50441         (tr_reallochook): Likewise.
50442         (tr_memalignhook): Likewise.
50443
50444 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50445
50446         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
50447         default_ldbl_pack and using as default implementation.
50448         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
50449         implementation.
50450         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
50451         redundant definition.
50452         (ldbl_insert_mantissa): Likewise.
50453         (ldbl_canonicalize): Likewise.
50454         (ldbl_nearbyint): Likewise.
50455         (ldbl_pack): Rename to ldbl_pack_ppc.
50456         (ldbl_unpack): Rename to ldbl_unpack_ppc.
50457         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
50458         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
50459
50460 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
50461
50462         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
50463         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
50464         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
50465         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
50466         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
50467         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
50468         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
50469         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
50470
50471 2013-03-07  Andreas Jaeger  <aj@suse.de>
50472
50473         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
50474         bits/mman-linux.h.
50475
50476 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
50477
50478         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
50479         Include mpa.h and declare __MPEXP.
50480         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
50481         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50482         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50483         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
50484         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50485         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
50486         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
50487
50488         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
50489         (__slowpow): Use long double EXPL and LOGL functions to
50490         compute POW.
50491         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
50492         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50493         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
50494         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
50495         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
50496         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
50497
50498         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
50499         intermediate variable to calculate exponent.
50500         (__sqr): Likewise.
50501         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
50502         Likewise.
50503         (__sqr): Likewise.
50504
50505         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
50506         [!NO__SQR]: Define __sqr.
50507         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
50508         and NO__SQR.  Remove all code except __mul and __sqr.  Include
50509         sysdeps/ieee754/dbl-64/mpa.c.
50510         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
50511
50512         [BZ #12723]
50513         * posix/Makefile (tests): Add tst-pathconf.
50514         * posix/tst-pathconf.c: New test case.
50515         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
50516         _PC_PIPE_BUF.
50517         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
50518
50519 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
50520
50521         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
50522
50523 2013-03-06  Andreas Jaeger  <aj@suse.de>
50524
50525         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
50526         definition via __MAP_ANONYMOUS.
50527
50528         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
50529         it's not part of Linux headers.
50530
50531         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
50532         (MAP_HUGE_MASK): Define.
50533
50534         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50535         Define.
50536         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50537         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50538         Define.
50539         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50540         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
50541         Define.
50542         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50543         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
50544         Define.
50545         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
50546
50547         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
50548         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
50549         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
50550         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
50551         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
50552         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
50553
50554         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
50555         Handle f2fs.
50556
50557         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
50558         Handle f2fs and efivarfs.
50559
50560         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
50561         f2fs.
50562
50563         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
50564         (EFIVARFS_MAGIC): Add.
50565         (F2FS_LINK_MAX): Add.
50566
50567 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
50568
50569         * stdio-common/vfprintf.c: Replace __builtin_expect with
50570         __glibc_unlikely.
50571
50572 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
50573
50574         [BZ #13550]
50575         * sysdeps/generic/bp-sym.h: Remove file.
50576         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
50577         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
50578         <bp-sym.h> and <bp-asm.h>.
50579         (__longjmp): Don't use BP_SYM.
50580         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
50581         and <bp-asm.h>.
50582         (memcpy): Don't use BP_SYM.
50583         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
50584         <bp-sym.h> and <bp-asm.h>.
50585         (memcpy): Don't use BP_SYM.
50586         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
50587         <bp-asm.h>.
50588         (memcpy): Don't use BP_SYM.
50589         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
50590         <bp-asm.h>.
50591         (memset): Don't use BP_SYM.
50592         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50593         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50594         (__bzero): Don't use BP_SYM.
50595         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50596         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50597         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
50598         <bp-sym.h> and <bp-asm.h>.
50599         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50600         pointers.
50601         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
50602         <bp-sym.h> and <bp-asm.h>.
50603         (memcpy): Don't use BP_SYM.
50604         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
50605         <bp-sym.h> and <bp-asm.h>.
50606         (memset): Don't use BP_SYM.
50607         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50608         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50609         (__bzero): Don't use BP_SYM.
50610         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50611         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50612         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
50613         <bp-sym.h> and <bp-asm.h>.
50614         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50615         pointers.
50616         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
50617         <bp-sym.h> and <bp-asm.h>.
50618         (memcpy): Don't use BP_SYM.
50619         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
50620         <bp-sym.h> and <bp-asm.h>.
50621         (memset): Don't use BP_SYM.
50622         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50623         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50624         (__bzero): Don't use BP_SYM.
50625         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50626         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50627         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
50628         <bp-sym.h> and <bp-asm.h>.
50629         (__memchr): Don't use BP_SYM.
50630         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
50631         <bp-sym.h> and <bp-asm.h>.
50632         (memcmp): Don't use BP_SYM.  Remove comment about bounded
50633         pointers.
50634         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
50635         <bp-sym.h> and <bp-asm.h>.
50636         (memcpy): Don't use BP_SYM.
50637         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
50638         <bp-sym.h> and <bp-asm.h>.
50639         (__mempcpy): Don't use BP_SYM.
50640         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
50641         <bp-sym.h> and <bp-asm.h>.
50642         (__memrchr): Don't use BP_SYM.
50643         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
50644         <bp-sym.h> and <bp-asm.h>.
50645         (memset): Don't use BP_SYM.
50646         (__bzero): Likewise.
50647         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
50648         <bp-sym.h> and <bp-asm.h>.
50649         (__rawmemchr): Don't use BP_SYM.
50650         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
50651         <bp-sym.h> and <bp-asm.h>.
50652         (__STRCMP): Don't use BP_SYM.
50653         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
50654         <bp-sym.h> and <bp-asm.h>.
50655         (strchr): Don't use BP_SYM.
50656         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
50657         <bp-sym.h> and <bp-asm.h>.
50658         (__strchrnul): Don't use BP_SYM.
50659         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
50660         <bp-sym.h> and <bp-asm.h>.
50661         (strlen): Don't use BP_SYM.
50662         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
50663         <bp-sym.h> and <bp-asm.h>.
50664         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50665         pointers.
50666         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
50667         <bp-sym.h> and <bp-asm.h>.
50668         (__strnlen): Don't use BP_SYM.
50669         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
50670         <bp-sym.h> and <bp-asm.h>.
50671         (__GI__setjmp): Don't use BP_SYM.
50672         (_setjmp): Likewise.
50673         (__sigsetjmp): Likewise.
50674         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
50675         (L(start_addresses)): Don't use BP_SYM.
50676         (_start): Likewise.
50677         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
50678         <bp-asm.h>.
50679         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
50680         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
50681         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50682         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50683         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
50684         <bp-asm.h>.
50685         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
50686         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
50687         about bounded pointers.
50688         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50689         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50690         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
50691         <bp-asm.h>.
50692         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50693         about bounded pointers.  Remove GKM FIXME comments.
50694         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50695         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
50696         <bp-asm.h>.
50697         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
50698         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
50699         Remove GKM FIXME comments.
50700         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50701         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50702         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
50703         <bp-asm.h>.
50704         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
50705         about bounded pointers.  Remove GKM FIXME comment.
50706         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
50707         and <bp-asm.h>.
50708         (strncmp): Don't use BP_SYM.  Remove comment about bounded
50709         pointers.
50710         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
50711         <bp-sym.h> and <bp-asm.h>.
50712         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
50714         <bp-sym.h> and <bp-asm.h>.
50715         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50716         comment.
50717
50718 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
50719
50720         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
50721         call free(NULL).
50722
50723 2013-03-05  David S. Miller  <davem@davemloft.net>
50724
50725         * po/es.po: Update from translation team.
50726
50727 2013-03-05  Andreas Jaeger  <aj@suse.de>
50728
50729         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
50730         <bits/mman-linux.h>.
50731         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50732         is fine.
50733         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
50734         <bits/mman-linux.h> to end of file.
50735         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50736         is fine.
50737         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
50738         <bits/mman-linux.h> to end of file.
50739         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
50740         is fine.
50741         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
50742         <bits/mman-linux.h> to end of file.
50743
50744         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
50745         (MCL_CURRENT, MCL_FUTURE): Define here.
50746
50747 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50748
50749         [BZ #15232]
50750         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
50751         attribute_hidden.
50752         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
50753
50754 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50755
50756         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
50757         fourth parameter needed for rt_sigprocmask syscall.
50758         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
50759         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
50760         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
50761         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
50762         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
50763         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
50764
50765 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
50766
50767         [BZ #13550]
50768         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
50769         comment about bounded pointers.
50770         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
50771         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
50772
50773 2013-03-04  Andreas Jaeger  <aj@suse.de>
50774
50775         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
50776         common definitions.
50777
50778         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
50779         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
50780         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
50781         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
50782         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
50783         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
50784
50785 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50786
50787         [BZ #15055]
50788         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
50789         __ieee754_sqrl instead of __sqrl.
50790
50791 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
50792
50793         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
50794         * sysdeps/powerpc/fpu_control.h: ... here.
50795         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
50796         * sysdeps/powerpc/bits/fenvinline.h: ... here.
50797         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
50798         * sysdeps/powerpc/bits/mathinline.h: ... here.
50799
50800 2013-03-01  Roland McGrath  <roland@hack.frob.com>
50801
50802         * elf/dl-hwcaps.c (_dl_important_hwcaps):
50803         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
50804         to just [NEED_DL_SYSINFO_DSO].
50805         * elf/dl-support.c: Likewise.
50806         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
50807         * elf/rtld.c (dl_main): Likewise.
50808         * elf/setup-vdso.h (setup_vdso): Likewise.
50809         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
50810         * sysdeps/unix/sysv/linux/dl-sysdep.c
50811         (_dl_discover_osversion): Likewise.
50812
50813 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
50814
50815         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
50816         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50817
50818 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
50819
50820         * NEWS: Mention libm performance improvements and non-x86 PI
50821         futex support.
50822
50823         * csu/libc-start.c (__pthread_initialize_minimal): Change
50824         function arguments.
50825         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
50826
50827 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
50828
50829         [BZ #13550]
50830         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
50831         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
50832         <bp-sym.h> and <bp-asm.h>.
50833         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50834         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
50835         and <bp-asm.h>.
50836         (memcpy): Don't use BP_SYM.
50837         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
50838         <bp-asm.h>.
50839         (__mpn_add_n): Don't use BP_SYM.
50840         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
50841         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
50842         and <bp-asm.h>.
50843         (__mpn_addmul_1): Don't use BP_SYM.
50844         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50845         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
50846         <bp-sym.h>.
50847         (_setjmp): Don't use BP_SYM.
50848         (__novmx_setjmp): Likewise.
50849         (__GI__setjmp): Likewise.
50850         (__vmx_setjmp): Likewise.
50851         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
50852         <bp-sym.h>.
50853         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
50854         (__bzero): Don't use BP_SYM.
50855         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
50856         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
50857         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
50858         <bp-sym.h> and <bp-asm.h>.
50859         (memcpy): Don't use BP_SYM.
50860         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
50861         <bp-sym.h> and <bp-asm.h>.
50862         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50863         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
50864         <bp-sym.h> and <bp-asm.h>.
50865         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
50866         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
50867         <bp-asm.h>.
50868         (__mpn_lshift): Don't use BP_SYM.
50869         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50870         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
50871         <bp-asm.h>.
50872         (memset): Don't use BP_SYM.
50873         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
50874         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
50875         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
50876         <bp-asm.h>.
50877         (__mpn_mul_1): Don't use BP_SYM.
50878         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50879         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
50880         <bp-sym.h> and <bp-asm.h>.
50881         (memcmp): Don't use BP_SYM.
50882         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
50883         <bp-sym.h> and <bp-asm.h>.
50884         (memcpy): Don't use BP_SYM.
50885         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
50886         <bp-sym.h> and <bp-asm.h>.
50887         (memset): Don't use BP_SYM.
50888         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
50889         <bp-sym.h> and <bp-asm.h>.
50890         (strncmp): Don't use BP_SYM.
50891         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
50892         <bp-sym.h> and <bp-asm.h>.
50893         (memcpy): Don't use BP_SYM.
50894         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
50895         <bp-sym.h> and <bp-asm.h>.
50896         (memset): Don't use BP_SYM.
50897         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
50898         <bp-sym.h> and <bp-asm.h>.
50899         (__memchr): Don't use BP_SYM.
50900         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
50901         <bp-sym.h> and <bp-asm.h>.
50902         (memcmp): Don't use BP_SYM.
50903         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
50904         <bp-sym.h> and <bp-asm.h>.
50905         (memcpy): Don't use BP_SYM.
50906         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
50907         <bp-sym.h> and <bp-asm.h>.
50908         (__mempcpy): Don't use BP_SYM.
50909         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
50910         <bp-sym.h> and <bp-asm.h>.
50911         (__memrchr): Don't use BP_SYM.
50912         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
50913         <bp-sym.h> and <bp-asm.h>.
50914         (memset): Don't use BP_SYM.
50915         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
50916         <bp-sym.h> and <bp-asm.h>.
50917         (__rawmemchr): Don't use BP_SYM.
50918         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
50919         <bp-sym.h> and <bp-asm.h>.
50920         (__STRCMP): Don't use BP_SYM.
50921         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
50922         <bp-sym.h> and <bp-asm.h>.
50923         (strchr): Don't use BP_SYM.
50924         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
50925         <bp-sym.h> and <bp-asm.h>.
50926         (__strchrnul): Don't use BP_SYM.
50927         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
50928         <bp-sym.h> and <bp-asm.h>.
50929         (strlen): Don't use BP_SYM.
50930         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
50931         <bp-sym.h> and <bp-asm.h>.
50932         (strncmp): Don't use BP_SYM.
50933         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
50934         <bp-sym.h> and <bp-asm.h>.
50935         (__strnlen): Don't use BP_SYM.
50936         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
50937         <bp-asm.h>.
50938         (__mpn_rshift): Don't use BP_SYM.
50939         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
50940         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
50941         <bp-sym.h> and <bp-asm.h>.
50942         (__sigsetjmp): Don't use BP_SYM.
50943         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
50944         (L(start_addresses)): Don't use BP_SYM.
50945         (_start): Likewise.
50946         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
50947         <bp-asm.h>.
50948         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
50949         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50950         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50951         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
50952         <bp-asm.h>.
50953         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
50954         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
50955         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
50956         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
50957         <bp-asm.h>.
50958         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
50959         comments.
50960         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
50961         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
50962         <bp-asm.h>.
50963         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
50964         FIXME comments.
50965         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
50966         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
50967         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
50968         <bp-asm.h>.
50969         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
50970         comment.
50971         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
50972         and <bp-asm.h>.
50973         (strncmp): Don't use BP_SYM,
50974         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
50975         <bp-asm.h>.
50976         (__mpn_sub_n): Don't use BP_SYM.
50977         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
50978         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
50979         and <bp-asm.h>.
50980         (__mpn_submul_1): Don't use BP_SYM.
50981         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
50982         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
50983         <bp-sym.h> and <bp-asm.h>.
50984         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
50985         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
50986         <bp-sym.h> and <bp-asm.h>.
50987         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
50988         comment.
50989
50990 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
50991
50992         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
50993         Use ZK to minimize writes to Z.
50994         (sub_magnitudes): Simplify code a bit.
50995         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
50996         Use ZK to minimize writes to Z.
50997         (sub_magnitudes): Simplify code a bit.
50998
50999 2013-02-27  Roland McGrath  <roland@hack.frob.com>
51000
51001         * csu/gmon-start.c: Add special exception to license text.
51002
51003 2013-02-27  Richard Henderson  <rth@redhat.com>
51004
51005         * scripts/config.guess: Update from config.git.
51006         * scripts/config.sub: Likewise.
51007
51008 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
51009
51010         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
51011
51012         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
51013
51014         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
51015
51016         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
51017
51018         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
51019
51020 2013-02-26  Roland McGrath  <roland@hack.frob.com>
51021
51022         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
51023         [$(build-shared = yes].
51024
51025 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51026
51027         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
51028         (__mul): Reduce iterations for calculating mantissa.
51029
51030         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
51031         MPTWO.
51032         (__mpranred): Likewise.
51033
51034         [BZ #15160]
51035         * malloc/memusagestat.c (main): Draw graphs for heap and stack
51036         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
51037
51038 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
51039
51040         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
51041         Define __attribute__.
51042
51043 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
51044
51045         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
51046         unused.
51047         * posix/regex_internal.h (__attribute): Remove.
51048         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
51049         (re_string_context_at): Likewise.
51050         (bitset_not): Use __attribute__ and mark function as possibly
51051         unused.
51052         (bitset_merge): Likewise.
51053         (bitset_mask): Likewise.
51054         (re_string_char_size_at): Likewise.
51055         (re_string_wchar_at): Likewise.
51056         (re_string_elem_size_at): Likewise.
51057
51058 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
51059
51060         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
51061         code.
51062         (cc32): Likewise.
51063
51064         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
51065         (__acr): Likewise.
51066         (__cpy): Likewise.
51067         (norm): Likewise.
51068         (denorm): Likewise.
51069         (__dbl_mp): Likewise.
51070         (add_magnitudes): Likewise.
51071         (sub_magnitudes): Likewise.
51072         (__mul): Likewise.
51073         (__inv): Likewise.
51074
51075         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
51076         style.
51077
51078         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
51079         style.
51080
51081         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
51082         code.
51083
51084         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
51085         up changes with default code.
51086         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
51087         Likewise.
51088
51089 2013-02-24  Allan McRae  <allan@archlinux.org>
51090
51091         * manual/socket.texi (The Internet Namespace): Order menu items
51092         to match that in the file.
51093
51094         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
51095         node listing of the info page menu.
51096
51097 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
51098
51099         [BZ #13550]
51100         * sysdeps/i386/bp-asm.h: Remove file.
51101         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
51102         (PARMS): Do not use macros from bp-asm.h.
51103         (S1): Likewise.
51104         (S2): Likewise.
51105         (SIZE): Likewise.
51106         (__mpn_add_n): Do not use BP_SYM
51107         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
51108         "bp-asm.h".
51109         (PARMS): Do not use macros from bp-asm.h.
51110         (S1): Likewise.
51111         (SIZE): Likewise.
51112         (__mpn_addmul_1): Do not use BP_SYM
51113         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
51114         "bp-asm.h".
51115         (PARMS): Do not use macros from bp-asm.h.
51116         (SIGMSK): Likewise.
51117         (_setjmp): Likewise.  Do not use BP_SYM.
51118         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
51119         "bp-asm.h".
51120         (PARMS): Do not use macros from bp-asm.h.
51121         (SIGMSK): Likewise.
51122         (setjmp): Likewise.  Do not use BP_SYM.
51123         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
51124         "bp-asm.h".
51125         (PARMS): Do not use macros from bp-asm.h.
51126         (__frexp): Do not use BP_SYM.
51127         (frexp): Likewise.
51128         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
51129         "bp-asm.h".
51130         (PARMS): Do not use macros from bp-asm.h.
51131         (__frexpf): Do not use BP_SYM.
51132         (frexpf): Likewise.
51133         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
51134         "bp-asm.h".
51135         (PARMS): Do not use macros from bp-asm.h.
51136         (__frexpl): Do not use BP_SYM.
51137         (frexpl): Likewise.
51138         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
51139         "bp-asm.h".
51140         (PARMS): Do not use macros from bp-asm.h.
51141         (__remquo): Do not use BP_SYM.
51142         (remquo): Likewise.
51143         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
51144         "bp-asm.h".
51145         (PARMS): Do not use macros from bp-asm.h.
51146         (__remquof): Do not use BP_SYM.
51147         (remquof): Likewise.
51148         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
51149         "bp-asm.h".
51150         (PARMS): Do not use macros from bp-asm.h.
51151         (__remquol): Do not use BP_SYM.
51152         (remquol): Likewise.
51153         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
51154         "bp-asm.h".
51155         (PARMS): Do not use macros from bp-asm.h.
51156         (DEST): Likewise.
51157         (SRC): Likewise.
51158         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
51159         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
51160         "bp-asm.h".
51161         (PARMS): Do not use macros from bp-asm.h.
51162         (strlen): Do not use BP_SYM.
51163         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
51164         "bp-asm.h".
51165         (PARMS): Do not use macros from bp-asm.h.
51166         (S1): Likewise.
51167         (S2): Likewise.
51168         (SIZE): Likewise.
51169         (__mpn_add_n): Do not use BP_SYM.
51170         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
51171         "bp-asm.h".
51172         (PARMS): Do not use macros from bp-asm.h.
51173         (S1): Likewise.
51174         (SIZE): Likewise.
51175         (__mpn_addmul_1): Do not use BP_SYM.
51176         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
51177         weak_alias.
51178         (bzero): Likewise.
51179         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
51180         "bp-asm.h".
51181         (PARMS): Do not use macros from bp-asm.h.
51182         (S): Likewise.
51183         (SIZE): Likewise.
51184         (__mpn_lshift): Do not use BP_SYM.
51185         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
51186         "bp-asm.h".
51187         (PARMS): Do not use macros from bp-asm.h.
51188         (DEST): Likewise.
51189         (SRC): Likewise.
51190         (LEN): Likewise.
51191         (memcpy): Likewise.  Do not use BP_SYM.
51192         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
51193         libc_hidden_def and weak_alias.
51194         (mempcpy): Do not use BP_SYM in weak_alias.
51195         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
51196         "bp-asm.h".
51197         (PARMS): Do not use macros from bp-asm.h.
51198         (DEST): Likewise.
51199         (LEN): Likewise.
51200         [!BZERO_P] (CHR): Likewise.
51201         (memset): Likewise.  Do not use BP_SYM.
51202         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
51203         "bp-asm.h".
51204         (PARMS): Do not use macros from bp-asm.h.
51205         (S1): Likewise.
51206         (SIZE): Likewise.
51207         (__mpn_mul_1): Do not use BP_SYM.
51208         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
51209         "bp-asm.h".
51210         (PARMS): Do not use macros from bp-asm.h.
51211         (S): Likewise.
51212         (SIZE): Likewise.
51213         (__mpn_rshift): Do not use BP_SYM.
51214         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
51215         "bp-asm.h".
51216         (PARMS): Do not use macros from bp-asm.h.
51217         (STR): Likewise.
51218         (CHR): Likewise.
51219         (strchr): Likewise.  Do not use BP_SYM.
51220         (index): Do not use BP_SYM in weak_alias.
51221         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
51222         "bp-asm.h".
51223         (PARMS): Do not use macros from bp-asm.h.
51224         (DEST): Likewise.
51225         (SRC): Likewise.
51226         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
51227         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
51228         "bp-asm.h".
51229         (PARMS): Do not use macros from bp-asm.h.
51230         (strlen): Do not use BP_SYM.
51231         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
51232         "bp-asm.h".
51233         (PARMS): Do not use macros from bp-asm.h.
51234         (S1): Likewise.
51235         (S2): Likewise.
51236         (SIZE): Likewise.
51237         (__mpn_sub_n): Do not use BP_SYM.
51238         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
51239         "bp-asm.h".
51240         (PARMS): Do not use macros from bp-asm.h.
51241         (S1): Likewise.
51242         (SIZE): Likewise.
51243         (__mpn_submul_1): Do not use BP_SYM.
51244         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
51245         "bp-asm.h".
51246         (PARMS): Do not use macros from bp-asm.h.
51247         (S1): Likewise.
51248         (S2): Likewise.
51249         (SIZE): Likewise.
51250         (__mpn_add_n): Do not use BP_SYM.
51251         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
51252         weak_alias.
51253         (bzero): Likewise.
51254         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
51255         "bp-asm.h".
51256         (PARMS): Do not use macros from bp-asm.h.
51257         (BLK2): Likewise.
51258         (LEN): Likewise.
51259         (memcmp): Do not use BP_SYM.
51260         (bcmp): Do not use BP_SYM in weak_alias.
51261         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
51262         "bp-asm.h".
51263         (PARMS): Do not use macros from bp-asm.h.
51264         (DEST): Likewise.
51265         (SRC): Likewise.
51266         (LEN): Likewise.
51267         (memcpy): Likewise.  Do not use BP_SYM.
51268         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
51269         "bp-asm.h".
51270         (PARMS): Do not use macros from bp-asm.h.
51271         (DEST): Likewise.
51272         (SRC): Likewise.
51273         (LEN): Likewise.
51274         (memmove): Likewise.  Do not use BP_SYM.
51275         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
51276         "bp-asm.h".
51277         (PARMS): Do not use macros from bp-asm.h.
51278         (DEST): Likewise.
51279         (SRC): Likewise.
51280         (LEN): Likewise.
51281         (__mempcpy): Likewise.  Do not use BP_SYM.
51282         (mempcpy): Do not use BP_SYM in weak_alias.
51283         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
51284         "bp-asm.h".
51285         (PARMS): Do not use macros from bp-asm.h.
51286         (DEST): Likewise.
51287         (LEN): Likewise.
51288         [!BZERO_P] (CHR): Likewise.
51289         (memset): Likewise.  Do not use BP_SYM.
51290         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
51291         "bp-asm.h".
51292         (PARMS): Do not use macros from bp-asm.h.
51293         (STR2): Likewise.
51294         (strcmp): Do not use BP_SYM.
51295         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
51296         "bp-asm.h".
51297         (PARMS): Do not use macros from bp-asm.h.
51298         (STR): Likewise.
51299         (DELIM): Likewise.
51300         [USE_AS_STRTOK_R] (SAVE): Likewise.
51301         (FUNCTION): Likewise.  Do not use BP_SYM.
51302         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
51303         aliases.
51304         (strtok_r): Likewise.
51305         (__GI___strtok_r): Likewise.
51306         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
51307         (PARMS): Do not use macros from bp-asm.h.
51308         (S): Likewise.
51309         (SIZE): Likewise.
51310         (__mpn_lshift): Do not use BP_SYM.
51311         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
51312         (PARMS): Do not use macros from bp-asm.h.
51313         (STR): Likewise.
51314         (CHR): Likewise.
51315         (__memchr): Do not use BP_SYM.
51316         (memchr): Do not use BP_SYM in weak_alias.
51317         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
51318         (PARMS): Do not use macros from bp-asm.h.
51319         (BLK2): Likewise.
51320         (LEN): Likewise.
51321         (memcmp): Do not use BP_SYM.
51322         (bcmp): Do not use BP_SYM in weak_alias.
51323         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
51324         (PARMS): Do not use macros from bp-asm.h.
51325         (S1): Likewise.
51326         (SIZE): Likewise.
51327         (__mpn_mul_1): Do not use BP_SYM.
51328         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
51329         "bp-asm.h".
51330         (PARMS): Do not use macros from bp-asm.h.
51331         (STR): Likewise.
51332         (CHR): Likewise.
51333         (__rawmemchr): Do not use BP_SYM.
51334         (rawmemchr): Do not use BP_SYM in weak_alias.
51335         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
51336         (PARMS): Do not use macros from bp-asm.h.
51337         (S): Likewise.
51338         (SIZE): Likewise.
51339         (__mpn_rshift): Do not use BP_SYM.
51340         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
51341         (PARMS): Do not use macros from bp-asm.h.
51342         (SIGMSK): Likewise.
51343         (__sigsetjmp): Likewise.  Do not use BP_SYM.
51344         * sysdeps/i386/start.S: Do not include "bp-sym.h".
51345         (_start): Do not use BP_SYM.
51346         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
51347         (PARMS): Do not use macros from bp-asm.h.
51348         (DEST): Likewise.
51349         (SRC): Likewise.
51350         (__stpcpy): Likewise.  Do not use BP_SYM.
51351         (stpcpy): Do not use BP_SYM in weak_alias.
51352         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
51353         "bp-asm.h".
51354         (PARMS): Do not use macros from bp-asm.h.
51355         (DEST): Likewise.
51356         (SRC): Likewise.
51357         (LEN): Likewise.
51358         (__stpncpy): Likewise.  Do not use BP_SYM.
51359         (stpncpy): Do not use BP_SYM in weak_alias.
51360         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
51361         (PARMS): Do not use macros from bp-asm.h.
51362         (STR): Likewise.
51363         (CHR): Likewise.
51364         (strchr): Likewise.  Do not use BP_SYM.
51365         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
51366         "bp-asm.h".
51367         (PARMS): Do not use macros from bp-asm.h.
51368         (STR): Likewise.
51369         (CHR): Likewise.
51370         (__strchrnul): Likewise.  Do not use BP_SYM.
51371         (strchrnul): Do not use BP_SYM in weak_alias.
51372         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
51373         "bp-asm.h".
51374         (PARMS): Do not use macros from bp-asm.h.
51375         (STOP): Likewise.
51376         (strcspn): Do not use BP_SYM.
51377         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
51378         "bp-asm.h".
51379         (PARMS): Do not use macros from bp-asm.h.
51380         (STR): Likewise.
51381         (STOP): Likewise.
51382         (strpbrk): Likewise.  Do not use BP_SYM.
51383         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
51384         "bp-asm.h".
51385         (PARMS): Do not use macros from bp-asm.h.
51386         (STR): Likewise.
51387         (CHR): Likewise.
51388         (strrchr): Likewise.  Do not use BP_SYM.
51389         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
51390         (PARMS): Do not use macros from bp-asm.h.
51391         (SKIP): Likewise.
51392         (strspn): Do not use BP_SYM.
51393         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
51394         (PARMS): Do not use macros from bp-asm.h.
51395         (STR): Likewise.
51396         (DELIM): Likewise.
51397         (SAVE): Likewise.
51398         (FUNCTION): Likewise.  Do not use BP_SYM.
51399         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
51400         aliases.
51401         (strtok_r): Likewise.
51402         (__GI___strtok_r): Likewise.
51403         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
51404         (PARMS): Do not use macros from bp-asm.h.
51405         (S1): Likewise.
51406         (S2): Likewise.
51407         (SIZE): Likewise.
51408         (__mpn_sub_n): Do not use BP_SYM.
51409         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
51410         "bp-asm.h".
51411         (PARMS): Do not use macros from bp-asm.h.
51412         (S1): Likewise.
51413         (SIZE): Likewise.
51414         (__mpn_submul_1): Do not use BP_SYM.
51415         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
51416         <bp-sym.h>.
51417         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
51418         and <bp-asm.h>.
51419         (PARMS): Do not use macros from bp-asm.h.
51420         (FLAGS): Likewise.
51421         (PTID): Likewise.
51422         (TLS): Likewise.
51423         (CTID): Likewise.
51424         (__clone): Do not use BP_SYM.
51425         (clone): Do not use BP_SYM in weak_alias.
51426         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
51427         and <bp-asm.h>.
51428         (PARMS): Do not use macros from bp-asm.h.
51429         (LEN): Likewise.
51430         (__mmap64): Do not use BP_SYM.
51431         (mmap64): Do not use BP_SYM in weak_alias.
51432         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
51433         <bp-sym.h> and <bp-asm.h>.
51434         (PARMS): Do not use macros from bp-asm.h.
51435         (__posix_fadvise64_l64): Do not use BP_SYM.
51436         * sysdeps/unix/sysv/linux/i386/semtimedop.S
51437         (PARMS): Do not use macros from bp-asm.h.
51438         (NSOPS): Likewise.
51439         (semtimedop): Do not use BP_SYM.
51440         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
51441         and <bp-asm.h>.
51442
51443 2013-02-21  Allan McRae  <allan@archlinux.org>
51444
51445         * manual/message.texi (Charset conversion in gettext):
51446         Move @end statement to beginning of line.
51447
51448 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51449
51450         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
51451         static.
51452         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
51453         Likewise.
51454
51455         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
51456         (denorm): Likewise.
51457         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
51458         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
51459
51460 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51461
51462         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
51463         tail-call to the resolved function if pltexit isn't needed.
51464
51465 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
51466
51467         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
51468         or Y being zero as being unlikely.
51469         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
51470         Likewise.
51471
51472 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
51473
51474         * manual/nss.texi (System Databases and Name Service Switch):
51475         Remove frobnicate @pxref.
51476
51477 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51478
51479         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51480         __attribute__ ((unused)) to __attribute__ ((__unused__)).
51481
51482 2013-02-20  Petr Machata  <pmachata@redhat.com>
51483
51484         * elf/elf.h (R_ARM_TARGET1): New macro.
51485         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
51486         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
51487         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
51488         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
51489         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
51490         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
51491         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
51492         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
51493         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
51494         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
51495         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
51496         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
51497         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
51498         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
51499         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
51500         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
51501         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
51502         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
51503         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
51504         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
51505         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
51506         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
51507         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
51508         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
51509         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
51510         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
51511         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
51512         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
51513         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
51514         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
51515         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
51516         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
51517         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
51518         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
51519         (R_ARM_THM_GOT_BREL12): Likewise.
51520         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
51521         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
51522         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
51523         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
51524         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
51525         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
51526         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
51527         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
51528         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
51529
51530 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
51531
51532         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
51533         __attribute_used__ to __attribute__ ((unused)).
51534
51535 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
51536
51537         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
51538         powerpc mpa.c.
51539         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
51540         comment formatting.
51541         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
51542
51543 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
51544
51545         [BZ #13550]
51546         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
51547         Remove macro.
51548         (ENTER): Remove both macro definitions.
51549         (LEAVE): Likewise.
51550         (CHECK_BOUNDS_LOW): Likewise.
51551         (CHECK_BOUNDS_HIGH): Likewise.
51552         (CHECK_BOUNDS_BOTH): Likewise.
51553         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
51554         (RETURN_BOUNDED_POINTER): Likewise.
51555         (RETURN_NULL_BOUNDED_POINTER): Likewise.
51556         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
51557         (POP_ERRNO_LOCATION_RETURN): Likewise.
51558         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
51559         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51560         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
51561         macros.
51562         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51563         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
51564         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
51565         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
51566         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
51567         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
51568         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
51569         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
51570         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
51571         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
51572         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
51573         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
51574         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51575         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
51576         removed macros.
51577         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51578         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
51579         macros.
51580         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51581         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
51582         * sysdeps/i386/i586/memset.S (memset): Likewise.
51583         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
51584         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51585         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
51586         macros.
51587         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51588         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
51589         Change uses of L(2) to L(out).
51590         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
51591         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
51592         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
51593         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51594         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
51595         removed macros.
51596         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51597         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
51598         macros.
51599         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51600         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
51601         (RETURN): Do not use macro LEAVE.
51602         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
51603         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
51604         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
51605         * sysdeps/i386/i686/memset.S (memset): Likewise.
51606         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
51607         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
51608         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
51609         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
51610         Likewise.
51611         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51612         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
51613         L(1_2) and L(1_3) into L(1).
51614         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51615         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
51616         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51617         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
51618         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
51619         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
51620         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
51621         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51622         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
51623         macros.
51624         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
51625         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
51626         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
51627         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
51628         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
51629         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
51630         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
51631         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
51632         * sysdeps/i386/strcspn.S (strcspn): Likewise.
51633         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
51634         * sysdeps/i386/strrchr.S (strrchr): Likewise.
51635         * sysdeps/i386/strspn.S (strspn): Likewise.
51636         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
51637         conditional code.
51638         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
51639         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
51640         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
51641         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
51642         L(1_3) into L(1_1).
51643         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
51644         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
51645         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
51646         macros.
51647         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
51648
51649 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
51650
51651         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
51652         macro.
51653
51654 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
51655
51656         * math/atest-exp.c (exp_mpn): Remove ROUND.
51657         * math/atest-exp2.c (exp_mpn): Likewise.
51658         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
51659
51660         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
51661         * stdlib/tst-tls-atexit-lib.c: Likewise.
51662         * stdlib/tst-tls-atexit.c: Likewise.
51663
51664 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51665
51666         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
51667         and __attribute_alloc_size__.
51668
51669 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51670
51671         * include/programs/xmalloc.h: Change __attribute_alloc_size to
51672         __attribute_alloc_size__.
51673         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
51674         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
51675
51676 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
51677
51678         * include/programs/xmalloc.h: New file.
51679         * catgets/gencat.c: Include it.
51680         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
51681         * elf/pldd.c: Likewise.
51682         * iconv/iconv_charmap.c: Likewise.
51683         * iconv/iconvconfig.c: Likewise.
51684         * iconv/strtab.c: Likewise.
51685         * locale/programs/locale.c: Likewise.
51686         * locale/programs/localedef.h: Likewise.
51687         * locale/programs/simple-hash.c: Likewise.
51688         * nscd/nscd.h: Likewise.
51689         * nss/makedb.c: Likewise.
51690         * sysdeps/generic/ldconfig.h: Likewise.
51691
51692 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
51693
51694         * Versions.def: Add GLIBC_2.18.
51695         * include/link.h (struct link_map): New member l_tls_dtor_count.
51696         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
51697         (__call_tls_dtors): Likewise.
51698         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
51699         __cxa_thread_atexit_impl.
51700         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
51701         Likewise.
51702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
51703         Likewise.
51704         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
51705         Likewise.
51706         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
51707         Likewise.
51708         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
51709         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
51710         Likewise.
51711         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
51712         Likewise.
51713         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
51714         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
51715         Likewise.
51716         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
51717         (tests): Add test case tst-tls-atexit.
51718         (modules-names): Add shared library for tst-tls-atexit.
51719         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
51720         (GLIBC_PRIVATE): Add __call_tls_dtors.
51721         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
51722         for libstdc++.
51723         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
51724         * stdlib/tst-tls-atexit.c: New test case.
51725         * stdlib/tst-tls-atexit-lib.c: New test case.
51726
51727         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
51728
51729         * elf/Versions (ld): Add _dl_find_dso_for_object.
51730         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
51731         * elf/dl-open.c (_dl_find_dso_for_object): New function.
51732         (dl_open_worker): Use _dl_find_dso_for_object.
51733         * elf/dl-sym.c (do_sym): Likewise.
51734         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
51735
51736 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51737
51738         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
51739         Syntactic changes only.
51740         (_dl_runtime_profile): Do a tail-call to the resolved function.
51741
51742 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
51743
51744         [BZ #13550]
51745         * sysdeps/x86_64/bp-asm.h: Remove file.
51746         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
51747         <bp-sym.h> and <bp-asm.h>.
51748         (__clone): Do not use BP_SYM.
51749         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
51750         <bp-sym.h> and <bp-asm.h>.
51751         * sysdeps/unix/x86_64/sysdep.S: Likewise.
51752         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
51753         "bp-asm.h".
51754         (_setjmp): Do not use BP_SYM.
51755         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
51756         "bp-asm.h".
51757         (setjmp): Do not use BP_SYM.
51758         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
51759         libc_hidden_def.
51760         (mempcpy): Do not use BP_SYM in weak_alias.
51761         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
51762         "bp-asm.h".
51763         (strchr): Do not use BP_SYM.
51764         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
51765         "bp-asm.h".
51766         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
51767         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
51768         (_start): Do not use BP_SYM.
51769         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
51770         "bp-asm.h".
51771         (strcat): Do not use BP_SYM.
51772         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
51773         "bp-asm.h".
51774         (STRCMP): Do not use BP_SYM.
51775         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
51776         "bp-asm.h".
51777         (STRCPY): Do not use BP_SYM.
51778         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
51779         "bp-asm.h".
51780         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
51781         "bp-asm.h".
51782         (FUNCTION): Do not use BP_SYM.
51783         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
51784         weak_alias.
51785         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
51786
51787 2013-02-17  Andreas Jaeger  <aj@suse.de>
51788
51789         * time/Versions: Sort entries.
51790         * string/Versions: Likewise.
51791         * resolv/Versions: Likewise.
51792         * posix/Versions: Likewise.
51793         * iconv/Versions: Likewise.
51794         * elf/Versions: Likewise.
51795         * wcsmbs/Versions: Likewise.
51796
51797 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
51798
51799         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
51800         loop termination condition.
51801
51802         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
51803         variable to calculate EZ.
51804         (__sqr): Likewise.
51805
51806         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
51807         the lower precision input.
51808
51809 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
51810
51811         [BZ #13550]
51812         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
51813         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
51814         (run-via-rtld-prefix): Do not handle %-bp tests.
51815         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
51816         (all-object-suffixes): Remove .ob.
51817         (bppfx): Remove variable.
51818         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
51819         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
51820         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
51821         [$(build-bounded) = yes] (libtype.ob): Likewise.
51822         * Makerules (elide-routines.ob): Remove variable.
51823         (do-tests-clean): Do not handle *-bp.out.
51824         (common-mostlyclean): Do not handle *-bp and *-bp.out.
51825         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
51826         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
51827         (tests): Do not include $(tests-bp.out).
51828         (xtests): Do not include $(xtests-bp.out).
51829         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
51830         [$(build-bounded) = yes] ($(addprefix
51831         $(objpfx),$(binaries-bounded))): Remove rule.
51832         ($(objpfx)%-bp.out): Remove rule.
51833         * config.make.in (build-bounded): Remove variable.
51834         * crypt/Makefile [$(build-bounded) = yes]
51835         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
51836         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
51837         append to variable.
51838         [$(build-bounded) = yes] (install-lib): Likewise.
51839         [$(build-bounded) = yes] (generated): Likewise.
51840         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
51841         Remove rule.
51842         * intl/Makefile [$(build-bounded) = yes]
51843         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
51844         * math/Makefile [$(build-bounded) = yes]
51845         ($(tests:%=$(objpfx)%-bp): Likewise.
51846         * misc/Makefile [$(build-bounded) = yes]
51847         ($(objpfx)tst-tsearch-bp): Likewise.
51848         * nptl/Makeconfig (bounded-thread-library): Remove variable.
51849         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
51850         Remove dependency.
51851         * string/Makefile (o-objects.ob): Remove variable.
51852         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
51853         (CFLAGS-.ob): Remove variable.
51854         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
51855         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
51856         both definitions of variable.
51857         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
51858         (ASFLAGS-.ob): Remove variable.
51859
51860 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
51861
51862         [BZ #13550]
51863         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
51864         Remove __BOUNDED_POINTERS__ from condition.
51865         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
51866         * string/bits/string2.h [!__NO_STRING_INLINES &&
51867         !__BOUNDED_POINTERS__]: Likewise.
51868         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
51869         Likewise.
51870         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
51871         Remove conditional code.
51872         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
51873         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
51874         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
51875         condition.
51876
51877         [BZ #13550]
51878         * csu/libc-start.c: Do not include <bp-sym.h>.
51879         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
51880         * elf/dl-open.c: Do not include <bp-sym.h>.
51881         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
51882         * math/fegetenv.c: Do not include <bp-sym.h>.
51883         (fegetenv): Do not use BP_SYM in versioned symbols.
51884         * nptl/sysdeps/pthread/bits/libc-lockP.h
51885         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
51886         <bp-sym.h>.
51887         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51888         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
51889         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51890         (__pthread_mutex_destroy): Likewise.
51891         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51892         (__pthread_mutex_lock): Likewise.
51893         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51894         (__pthread_mutex_trylock): Likewise.
51895         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51896         (__pthread_mutex_unlock): Likewise.
51897         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51898         (__pthread_mutexattr_init): Likewise.
51899         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51900         (__pthread_mutexattr_destroy): Likewise.
51901         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51902         (__pthread_mutexattr_settype): Likewise.
51903         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51904         (__pthread_rwlock_init): Likewise.
51905         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51906         (__pthread_rwlock_destroy): Likewise.
51907         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51908         (__pthread_rwlock_rdlock): Likewise.
51909         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51910         (__pthread_rwlock_tryrdlock): Likewise.
51911         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51912         (__pthread_rwlock_wrlock): Likewise.
51913         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51914         (__pthread_rwlock_trywrlock): Likewise.
51915         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51916         (__pthread_rwlock_unlock): Likewise.
51917         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51918         (__pthread_key_create): Likewise.
51919         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51920         (__pthread_setspecific): Likewise.
51921         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51922         (__pthread_getspecific): Likewise.
51923         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
51924         Likewise.
51925         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51926         (_pthread_cleanup_push_defer): Likewise.
51927         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51928         (_pthread_cleanup_pop_restore): Likewise.
51929         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
51930         (pthread_setcancelstate): Likewise.
51931         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
51932         <bp-sym.h>.
51933         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
51934         (memchr): Do not use BP_SYM in weak_alias.
51935         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
51936         (fegetenv): Do not use BP_SYM in versioned symbols.
51937         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
51938         (fesetenv): Do not use BP_SYM in versioned symbols.
51939         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
51940         (feupdateenv): Do not use BP_SYM in versioned symbols.
51941         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
51942         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
51943         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
51944         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
51945         (open64): Do not use BP_SYM in weak_alias.
51946         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
51947         (fegetenv): Do not use BP_SYM in versioned symbols.
51948         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
51949         (fesetenv): Do not use BP_SYM in versioned symbols.
51950         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
51951         (feupdateenv): Do not use BP_SYM in versioned symbols.
51952         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
51953         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
51954         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
51955         (feraiseexcept): Do not use BP_SYM in versioned symbols.
51956         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
51957         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
51958         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
51959         <bp-sym.h>.
51960         (__libc_start_main): Do not use BP_SYM.
51961
51962 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
51963
51964         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
51965         redundant return line.
51966         (norm): Likewise.
51967         (denorm): Likewise.
51968         (dbl_mp): Likewise.
51969         (sub_magnitudes): Likewise.
51970         (__add): Likewise.
51971         (__sub): Likewise.
51972         (__mul): Likewise.
51973         (__inv): Likewise.
51974         (__dvd): Likewise.
51975         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
51976         (norm): Likewise.
51977         (denorm): Likewise.
51978         (dbl_mp): Likewise.
51979         (sub_magnitudes): Likewise.
51980         (__add): Likewise.
51981         (__sub): Likewise.
51982         (__mul): Likewise.
51983         (__inv): Likewise.
51984         (__dvd): Likewise.
51985
51986         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
51987         instead of __mul.
51988         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
51989         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
51990         (cc32): Likewise.
51991
51992         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
51993         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
51994         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
51995         of __mul for squares.
51996         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
51997         function
51998         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
51999         Likewise.
52000         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
52001         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
52002
52003 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
52004
52005         [BZ #13550]
52006         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
52007         code.
52008         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
52009         prototype or function definition.  Rename ubp_* variables and
52010         parameters.  Remove argv definitions conditional on
52011         [__BOUNDED_POINTERS__].
52012         * debug/backtrace.c (__backtrace): Do not use __unbounded.
52013         * elf/dl-runtime.c (_dl_fixup): Likewise.
52014         * include/set-hooks.h (RUN_HOOK): Likewise.
52015         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
52016         definition.
52017         * string/strcpy.c (strcpy): Do not use __unbounded.
52018         * sysdeps/generic/frame.h (struct layout): Likewise.
52019         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
52020         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
52021         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
52022         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
52023         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
52024         (__backtrace): Likewise.
52025         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
52026         use __ptrvalue.
52027         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
52028         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
52029         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
52030         Likewise.
52031         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
52032         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
52033         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
52034         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
52035         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
52036         Do not use __unbounded.
52037         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
52038         Rename __unboundedrlimits parameter to rlimits in prototype.
52039         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
52040         Do not use __unbounded.
52041         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
52042         not use __ptrvalue.
52043         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
52044         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
52045         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
52046         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
52047         __ptrvalue or __unbounded.
52048         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
52049         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
52050         use __unbounded.
52051         (__new_msgctl): Do not use __ptrvalue.
52052         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
52053         __unbounded.
52054         (__libc_msgrcv): Do not use __ptrvalue.
52055         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
52056         startup_info): Do not use __unbounded.
52057         (__libc_start_main): Likewise.  Rename ubp_* variables and
52058         parameters.  Remove argv definitions conditional on
52059         [__BOUNDED_POINTERS__].
52060         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
52061         __ptrvalue.
52062         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
52063         use __unbounded.
52064         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
52065         or __ptrvalue.
52066         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
52067         use __unbounded.
52068         (__new_shmctl): Do not use __ptrvalue.
52069         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
52070         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
52071         Likewise.
52072         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
52073         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
52074         (__libc_sigaction): Likewise.
52075         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
52076         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
52077         Likewise.
52078         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
52079
52080 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
52081
52082         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
52083
52084         * string/mempcpy.c: Implement by calling memcpy.
52085
52086 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
52087
52088         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
52089
52090         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
52091         evaluation.
52092
52093         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
52094         values in the mantissa.
52095
52096         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
52097         minimize writes to Z.
52098         (sub_magnitudes): Simplify code a bit.
52099
52100 2013-02-12  Roland McGrath  <roland@hack.frob.com>
52101
52102         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
52103         from the message.  The linker prefixes all warnings with that already.
52104
52105 2013-02-12  Andreas Schwab  <schwab@suse.de>
52106
52107         [BZ #15078]
52108         * posix/regexec.c (extend_buffers): Add parameter min_len.
52109         (check_matching): Pass minimum needed length.
52110         (clean_state_log_if_needed): Likewise.
52111         (get_subexp): Likewise.
52112         * posix/Makefile (tests): Add bug-regex34.
52113         (bug-regex34-ENV): Define.
52114         * posix/bug-regex34.c: New file.
52115
52116         [BZ #11561]
52117         * posix/regcomp.c (parse_bracket_exp): When looking up collating
52118         elements compare against the byte sequence of it, not its name.
52119         * posix/Makefile (tests): Add bug-regex35.
52120         (bug-regex35-ENV): Define.
52121         * posix/bug-regex35.c: New file.
52122
52123 2013-02-11  Tom de Vries  <tom@codesourcery.com>
52124
52125         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
52126         comment.
52127         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
52128         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
52129         (CHECK_EOL): Add undef.
52130
52131 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
52132
52133         * bits/stdlib-bsearch.h: New file.
52134         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
52135         * stdlib/stdlib.h: Likewise.
52136
52137 2013-02-11  Roland McGrath  <roland@hack.frob.com>
52138
52139         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
52140         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
52141         declaration.
52142         * manual/search.texi (Array Search Function): Add missing const in
52143         lfind prototype.
52144         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
52145         declaration to use rlim_t.
52146         (Basic Scheduling Functions): Remove erroneous const from
52147         sched_getparam prototype.  Remove erroneous * from
52148         sched_get_priority_max and sched_get_priority_min prototypes.
52149         (Resource Usage): Fix summary @comment on vtimes to refer to
52150         sys/vtimes.h rather than vtimes.h.
52151         Add missing *s in vtimes prototype.
52152         (Limits on Resources): Fix ulimit prototype to return long int.
52153         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
52154         prototypes to use long int rather than double.
52155         (BSD Random): Fix initstate and setstate to use char *, not void *.
52156         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
52157         prototype to make second argument 'struct aiocb64 *const[]'.
52158         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
52159         (Status of AIO Operations): Remove erroneous const in aio_return and
52160         aio_return64 prototypes.
52161         (Synchronizing I/O): Fix sync prototype to return void.
52162         * manual/startup.texi (Suboptions): Remove an erroneous const in
52163         getsubopt prototype.
52164         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
52165         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
52166         use size_t rather than int.
52167         (Scanning All Users): Likewise for getpwent_r.
52168         (Setting Groups): Add missing const to setgroups prototype.
52169         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
52170         * manual/socket.texi (Host Names): Fix gethostbyaddr and
52171         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
52172         'const void *' rather than 'const char *'.
52173         (Host Address Functions): Likewise for inet_ntop.
52174         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
52175         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
52176         ssize_t for return value.
52177         (Sending Data): Likewise for send, sendto, sendmsg.
52178         (Socket Option Functions): Add a missing const in setsockopt prototype.
52179         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
52180         use wchar_t for the argument.
52181         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
52182         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
52183         take no arguments.
52184         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
52185         double/float/long double for second argument.
52186         Fix return types of significand, significandf, significandl.
52187         * manual/filesys.texi (Setting Permissions): Use mode_t for second
52188         argument in fchmod prototype.
52189         (File Owner): Use uid_t and gid_t in fchown prototype.
52190         (File Times): Add const to utimes, futimes, and lutimes prototypes.
52191         (Making Special Files): Use mode_t and dev_t in mknod prototype.
52192         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
52193         use 'const struct dirent **' as argument types to CMP function pointer
52194         argument.
52195         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
52196         (File Times): Fix summary magic @comment for struct utimbuf and utime
52197         to refer to utime.h, not time.h.
52198         * manual/string.texi (Argz Functions): Add missing const in
52199         argz_extract and argz_next prototypes.
52200         (Finding Tokens in a String): Likewise for basename.
52201         (String/Array Comparison): Fix typo in wcscasecmp prototype.
52202         (Copying and Concatenation): Fix typo in wmemmove prototype.
52203         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
52204         (Signal Stack): Remove erroneous const in sigstack prototype.
52205         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
52206         prototype.
52207         (Simple Calendar Time): Likewise for stime.
52208         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
52209         prototype.
52210         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
52211         say sys/sysctl.h instead.
52212         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
52213         and vsyslog prototypes.
52214
52215 2013-02-11  Tom de Vries  <tom@codesourcery.com>
52216
52217         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
52218         Remove.
52219
52220 2013-02-11  Roland McGrath  <roland@hack.frob.com>
52221
52222         * misc/sys/mman.h: Fix typo in mremap comment.
52223
52224 2013-02-08  Roland McGrath  <roland@hack.frob.com>
52225
52226         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
52227         the '\0' terminator.
52228
52229 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
52230
52231         [BZ #13550]
52232         * debug/segfault.c: Don't include <bp-checks.h>.
52233         * sysdeps/generic/bp-checks.h: Remove file.
52234         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
52235         (__GETDENTS): Don't use CHECK_N.
52236         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
52237         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
52238         (__getgroups): Don't use CHECK_N.
52239         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
52240         (setgroups): Don't use CHECK_N.
52241         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
52242         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
52243         (__libc_msgrcv): Don't use CHECK_N.
52244         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
52245         (__libc_msgsnd): Don't use CHECK_N.
52246         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
52247         <bp-checks.h>.
52248         (__libc_pread): Don't use CHECK_N.
52249         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
52250         include <bp-checks.h>.
52251         (__libc_pread64): Don't use CHECK_N.
52252         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
52253         include <bp-checks.h>.
52254         (__libc_pwrite): Don't use CHECK_N.
52255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
52256         include <bp-checks.h>.
52257         (__libc_pwrite64): Don't use CHECK_N.
52258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
52259         <bp-checks.h>.
52260         (__libc_pread): Don't use CHECK_N.
52261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
52262         include <bp-checks.h>.
52263         (__libc_pread64): Don't use CHECK_N.
52264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
52265         include <bp-checks.h>.
52266         (__libc_pwrite): Don't use CHECK_N.
52267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
52268         include <bp-checks.h>.
52269         (__libc_pwrite64): Don't use CHECK_N.
52270         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
52271         (do_pread): Don't use CHECK_N.
52272         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
52273         (do_pread64): Don't use CHECK_N.
52274         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
52275         (do_pwrite): Don't use CHECK_N.
52276         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
52277         (do_pwrite64): Don't use CHECK_N.
52278         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
52279         (__libc_readv): Don't use CHECK_N.
52280         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
52281         (semop): Don't use CHECK_N.
52282         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
52283         <bp-checks.h>.
52284         (semtimedop): Don't use CHECK_N.
52285         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
52286         (__libc_pread): Don't use CHECK_N.
52287         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
52288         <bp-checks.h>.
52289         (__libc_pread64): Don't use CHECK_N.
52290         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
52291         <bp-checks.h>.
52292         (__libc_pwrite): Don't use CHECK_N.
52293         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
52294         <bp-checks.h>.
52295         (__libc_pwrite64): Don't use CHECK_N.
52296         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
52297         <bp-checks.h>.
52298         (__libc_msgrcv): Don't use CHECK_N.
52299         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
52300         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
52301         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
52302         (__libc_writev): Don't use CHECK_N.
52303
52304 2013-02-08  Roland McGrath  <roland@hack.frob.com>
52305
52306         * string/strcpy.c: Removed unused variable.
52307
52308         * Makeconfig (+sysdep-includes): Define with := rather than =.
52309         Use an existing include/ subdir of each sysdeps dir before it.
52310
52311 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52312
52313         * nscd/connection.c (register_traced_file): Comment function.
52314         [HAVE_INOTIFY] (union __inev): Define.
52315         [HAVE_INOTIFY] (inotify_check_files): New function.
52316         [HAVE_INOTIFY] (clear_db_cache): Likewise.
52317         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
52318         clear_db_cache.
52319         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
52320
52321 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52322
52323         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
52324         loaded if not already and that a failure is permanent.
52325
52326 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
52327
52328         [BZ #15006]
52329         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
52330         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
52331
52332 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
52333
52334         [BZ #13550]
52335         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
52336         (CHECK_1_NULL_OK): Likewise.
52337         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
52338         (__fxstat): Do not use CHECK_1.
52339         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
52340         <bp-checks.h>.
52341         (___fxstat64): Do not use CHECK_1.
52342         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
52343         <bp-checks.h>.
52344         (__fxstatat): Do not use CHECK_1.
52345         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
52346         <bp-checks.h>.
52347         (__fxstatat64): Do not use CHECK_1.
52348         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
52349         <bp-checks.h>.
52350         (__fxstat): Do not use CHECK_1.
52351         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
52352         <bp-checks.h>.
52353         (__fxstatat): Do not use CHECK_1.
52354         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
52355         <bp-checks.h>.
52356         (__getresgid): Do not use CHECK_1.
52357         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
52358         <bp-checks.h>.
52359         (__getresuid): Do not use CHECK_1.
52360         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
52361         <bp-checks.h>.
52362         (__lxstat): Do not use CHECK_1.
52363         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
52364         <bp-checks.h>.
52365         (__old_msgctl): Do not use CHECK_1.
52366         (__new_msgctl): Likewise.
52367         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
52368         <bp-checks.h>.
52369         (__new_setrlimit): Do not use CHECK_1.
52370         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
52371         <bp-checks.h>.
52372         (__old_shmctl): Do not use CHECK_1.
52373         (__new_shmctl): Likewise.
52374         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
52375         <bp-checks.h>.
52376         (__xstat): Do not use CHECK_1.
52377         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
52378         (__lxstat): Do not use CHECK_1.
52379         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
52380         <bp-checks.h>.
52381         (___lxstat64): Do not use CHECK_1.
52382         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
52383         (__old_msgctl): Do not use CHECK_1.
52384         (__new_msgctl): Likewise.
52385         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
52386         <bp-checks.h>.
52387         (__gettimeofday): Do not use CHECK_1.
52388         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
52389         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
52390         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
52391         <bp-checks.h>.
52392         (__gettimeofday): Do not use CHECK_1.
52393         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
52394         (__old_shmctl): Do not use CHECK_1_NULL_OK.
52395         (__new_shmctl): Do not use CHECK_1.
52396         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
52397         <bp-checks.h>.
52398         (do_sigtimedwait): Do not use CHECK_1.
52399         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
52400         <bp-checks.h>.
52401         (do_sigwaitinfo): Do not use CHECK_1.
52402         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
52403         <bp-checks.h>.
52404         (msgctl): Do not use CHECK_1.
52405         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
52406         <bp-checks.h>.
52407         (shmctl): Do not use CHECK_1.
52408         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
52409         (ustat): Do not use CHECK_1.
52410         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
52411         <bp-checks.h>.
52412         (__fxstat): Do not use CHECK_1.
52413         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
52414         <bp-checks.h>.
52415         (__fxstatat): Do not use CHECK_1.
52416         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
52417         <bp-checks.h>.
52418         (__lxstat): Do not use CHECK_1.
52419         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
52420         <bp-checks.h>.
52421         (__xstat): Do not use CHECK_1.
52422         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
52423         (__xstat): Do not use CHECK_1.
52424         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
52425         (___xstat64): Do not use CHECK_1.
52426
52427         [BZ #13550]
52428         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
52429         definitions.
52430         (CHECK_BOUNDS_HIGH): Likewise.
52431         * string/strcpy.c: Do not include <bp-checks.h>.
52432         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
52433
52434 2013-02-07  Roland McGrath  <roland@hack.frob.com>
52435
52436         * nscd/nscd-client.h (__nscd_drop_map_ref):
52437         Add __attribute__ ((unused)).
52438         * nis/nss-nisplus.h (niserr2nss): Likewise.
52439
52440         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
52441         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
52442
52443         * csu/libc-tls.c (init_static_tls, init_slotinfo):
52444         Remove inline keyword.
52445         * include/rounding-mode.h (round_away): Likewise.
52446         * libio/wfileops.c (adjust_wide_data): Likewise.
52447         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
52448         (__m128i_strloadu_tolower): Likewise.
52449         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
52450         (__m128i_strloadu_tolower): Likewise.
52451         * time/mktime.c (ydhms_diff): Likewise.
52452         * locale/elem-hash.h (elem_hash): Likewise.
52453         * locale/setlocale.c (setdata): Likewise.
52454         * posix/regex_internal.h (re_string_char_size_at): Likewise.
52455         (re_string_wchar_at): Likewise.
52456         (bitset_not, bitset_merge, bitset_mask): Likewise.
52457         [!(__GNUC__ > 3)] (inline): Remove macro.
52458         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
52459         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
52460         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
52461         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
52462         * string/memcmp.c (memcmp_bytes): Likewise.
52463         * locale/programs/locarchive.c (compute_hashval): Likewise.
52464         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
52465         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
52466         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
52467         * nss/getent.c (print_rpc, print_protocols): Likewise.
52468         (print_passwd, print_group, print_aliases): Likewise.
52469         * nis/nss-nisplus.h (niserr2nss): Likewise.
52470         * nscd/connections.c (restart_p): Likewise.
52471         Change return type to bool.
52472
52473 2013-02-05  Roland McGrath  <roland@hack.frob.com>
52474
52475         * Makeconfig (all-Depend-files): Add existing
52476         $(sorted-subdirs:=/Depend) files.
52477         (all-subdirs): Remove nss.
52478         * sysdeps/unix/inet/Subdirs: Add it here instead.
52479         * hesiod/Depend: New file.
52480
52481         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
52482         instead of calling alloca.
52483
52484         * io/lseek.c (__lseek): Rename to __libc_lseek.
52485         Define __lseek as an alias.
52486
52487         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
52488
52489 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
52490
52491         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
52492         else clause and remove check for non-standard endianness.
52493
52494 2013-02-04  David S. Miller  <davem@davemloft.net>
52495
52496         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52497
52498 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
52499
52500         [BZ #13550]
52501         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
52502         (__ubp_memchr): Remove prototype.
52503         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
52504         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52505         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
52506         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
52507         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
52508         Remove alias.
52509         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
52510         (__ubp_memchr): Likewise.
52511         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
52512         (__ubp_memchr): Likewise.
52513         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
52514         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
52515         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
52516         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
52517         CHECK_STRING.
52518         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
52519         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
52520         (__getcwd): Do not use CHECK_STRING.
52521         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
52522         <bp-checks.h>.
52523         (__real_chown): Do not use CHECK_STRING.
52524         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
52525         <bp-checks.h>.
52526         (fchownat): Do not use CHECK_STRING.
52527         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
52528         CHECK_STRING.
52529         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
52530         <bp-checks.h>.
52531         (__lchown): Do not use CHECK_STRING.
52532         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
52533         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
52534         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
52535         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
52536         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
52537         include <bp-checks.h>.
52538         (truncate64): Do not use CHECK_STRING.
52539         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
52540         <bp-checks.h>.
52541         (__real_chown): Do not use CHECK_STRING.
52542         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
52543         <bp-checks.h>.
52544         (__lchown): Do not use CHECK_STRING.
52545         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
52546         <bp-checks.h>.
52547         (__chown): Do not use CHECK_STRING.
52548         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
52549         <bp-checks.h>.
52550         (truncate64): Do not use CHECK_STRING.
52551         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
52552         Likewise.
52553         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
52554         (__xmknod): Do not use CHECK_STRING.
52555         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
52556         <bp-checks.h>.
52557         (__xmknodat): Do not use CHECK_STRING.
52558         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
52559         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
52560
52561 2013-02-04  Andreas Schwab  <schwab@suse.de>
52562
52563         [BZ #14142]
52564         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
52565         * include/netdb.h: Likewise for h_errno.
52566         * elf/tst-stackguard1.c: Include <tls.h>.
52567
52568 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
52569
52570         * elf/link.h (struct link_map): Extend the l_addr comment.
52571         * include/link.h (struct link_map): Likewise.
52572
52573 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
52574
52575         [BZ #13550]
52576         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
52577         (BOUNDED_1): Remove macro.
52578         * debug/backtrace.c: Don't include <bp-checks.h>.
52579         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
52580         (__backtrace): Likewise.
52581         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
52582         <bp-checks.h>.
52583         (__backtrace): Don't use BOUNDED_1.
52584         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
52585         <bp-checks.h>.
52586         (__backtrace): Don't use BOUNDED_1.
52587         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
52588         (__backtrace): Don't use BOUNDED_1.
52589         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
52590         (shmat): Don't use BOUNDED_N.
52591
52592 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
52593
52594         [BZ #13550]
52595         * sysdeps/generic/bp-start.h: Remove file.
52596         * csu/libc-start.c: Don't include <bp-start.h>.
52597         (LIBC_START_MAIN): Set up __environ directly instead of using
52598         INIT_ARGV_and_ENVIRON.
52599         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
52600         <bp-start.h>.
52601
52602         [BZ #13550]
52603         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
52604         definitions.
52605         (CHECK_FCNTL): Likewise.
52606         (CHECK_N_PAGES): Likewise.
52607
52608         [BZ #13550]
52609         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
52610         definitions.
52611         (CHECK_SIGSET_NULL_OK): Likewise.
52612         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
52613         <bp-checks.h>.
52614         (sigpending): Don't use CHECK_SIGSET.
52615         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
52616         <bp-checks.h>.
52617         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52618         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
52619         <bp-checks.h>.
52620         (do_sigsuspend): Don't use CHECK_SIGSET.
52621         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
52622         use CHECK_SIGSET.
52623         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
52624         (do_sigwait): Don't use CHECK_SIGSET.
52625         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
52626         use CHECK_SIGSET.
52627         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
52628         include <bp-checks.h>.
52629         (sigpending): Don't use CHECK_SIGSET.
52630         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
52631         include <bp-checks.h>.
52632         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52633         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
52634         <bp-checks.h>.
52635         (sigpending): Don't use CHECK_SIGSET.
52636         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
52637         <bp-checks.h>.
52638         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
52639
52640         [BZ #13550]
52641         * sysdeps/generic/bp-semctl.h: Remove file.
52642         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
52643         <bp-checks.h> and <bp-semctl.h>.
52644         (__old_semctl): Don't use CHECK_SEMCTL.
52645         (__new_semctl): Likewise.
52646         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
52647         and <bp-semctl.h>.
52648         (__old_semctl): Don't use CHECK_SEMCTL.
52649         (__new_semctl): Likewise.
52650         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
52651         <bp-checks.h> and <bp-semctl.h>.
52652         (__old_semctl): Don't use CHECK_SEMCTL.
52653         (__new_semctl): Likewise.
52654         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
52655         <bp-checks.h> and <bp-semctl.h>.
52656         (semctl): Don't use CHECK_SEMCTL.
52657
52658         [BZ #13550]
52659         * Makerules (elide-bp-thunks): Remove variable.
52660         (elide-routines.oS): Don't use $(elide-bp-thunks).
52661         (elide-routines.os): Likewise.
52662         (elide-routines.o): Likewise.
52663         (elide-routines.op): Likewise.
52664         (elide-routines.og): Likewise.
52665         (objects): Don't use $(bp-thunks).
52666         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
52667         include.
52668         (common-generated): Do not add s-proto-bp.d.
52669         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
52670         (int): Likewise.
52671         (typ): Likewise.
52672         Do not generate makefile rules for bounded-pointer thunks.
52673         * sysdeps/generic/bp-thunks.h: Remove file.
52674         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
52675         * sysdeps/unix/s-proto-bp.S: Likewise.
52676
52677         [BZ #15062]
52678         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
52679         parts of result separately when argument is not close to line from
52680         -i to i and one part of argument is small.
52681         * math/k_casinhf.c (__kernel_casinhf): Likewise.
52682         * math/k_casinhl.c (__kernel_casinhl): Likewise.
52683         * math/libm-test.inc (cacos_test): Add more tests.
52684         (casin_test): Likewise.
52685         (casinh_test): Likewise.
52686         * sysdeps/i386/fpu/libm-test-ulps: Update.
52687         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52688
52689 2013-01-31  David S. Miller  <davem@davemloft.net>
52690
52691         * po/de.po: Update from translation team.
52692
52693 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
52694
52695         * time/tzfile.c: Include stdint.h for SIZE_MAX.
52696
52697 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
52698
52699         * configure.in (_AC_PROG_CC_C89): New definition.
52700         * configure: Regenerate.
52701
52702         * configure.in (AC_PROG_CPP): New definition.
52703         * configure: Regenerate.
52704
52705 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52706
52707         * debug/tst-backtrace.h: New file.
52708         * debug/tst-backtrace2.c: Include tst-backtrace.h.
52709         (ret): Remove variable.
52710         (x): Likewise.
52711         (FAIL): Remove macro.
52712         (NO_INLINE): Likewise.
52713         (fn1): Use match function instead of strstr.
52714         * debug/tst-backtrace3.c: Include tst-backtrace.h.
52715         (ret): Remove variable.
52716         (x): Likewise.
52717         (FAIL): Remove macro.
52718         (NO_INLINE): Likewise.
52719         (fn): Use match function instead of strstr.
52720         * debug/tst-backtrace4.c: Include tst-backtrace.h.
52721         (ret): Remove variable.
52722         (x): Likewise.
52723         (FAIL): Remove macro.
52724         (NO_INLINE): Likewise.
52725         (handle_signal): Use match function instead of strstr.
52726         * debug/tst-backtrace5.c: Include tst-backtrace.h.
52727         (ret): Remove variable.
52728         (x): Likewise.
52729         (FAIL): Remove macro.
52730         (NO_INLINE): Likewise.
52731         (handle_signal): Use match function instead of strstr.
52732
52733 2013-01-23  Roland McGrath  <roland@hack.frob.com>
52734
52735         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
52736
52737 2013-01-23  David S. Miller  <davem@davemloft.net>
52738
52739         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
52740         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
52741         argument of CAS if possible.
52742         * sysdeps/sparc/sparc64/bits/atomic.h
52743         (__arch_compare_and_exchange_val_32_acq): Likewise.
52744         (__arch_compare_and_exchange_val_64_acq): Likewise.
52745
52746 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
52747
52748         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
52749         * sysdeps/posix/ulimit.c: ... this.
52750         Include <limits.h>.
52751         * sysdeps/unix/bsd/ulimit.c: Remove file.
52752
52753 2013-01-23  Adam Conrad  <adconrad@0c3.net>
52754
52755         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
52756         (LDFLAGS-tst-array5): Likewise.
52757
52758 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
52759
52760         [BZ #15036]
52761         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
52762         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
52763         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
52764         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
52765
52766 2013-01-21  David S. Miller  <davem@davemloft.net>
52767
52768         * sysdeps/sparc/backtrace.c: New file.
52769         * sysdeps/sparc/sparc32/backtrace.h: New file.
52770         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
52771         * sysdeps/sparc/sparc64/backtrace.h: New file.
52772         * sysdeps/sparc/sparc64/backtrace.c: Delete.
52773         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
52774         -funwind-tables.
52775
52776 2013-01-21  Andreas Schwab  <schwab@suse.de>
52777
52778         [BZ #15020]
52779         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
52780         closed its stdout.
52781
52782 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
52783
52784         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
52785         "mpa2.h".
52786         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
52787
52788 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
52789             Mark Mitchell  <mark@codesourcery.com>
52790             Tom de Vries  <tom@codesourcery.com>
52791             Paul Pluzhnikov  <ppluzhnikov@google.com>
52792
52793         * debug/tst-backtrace2.c: New file.
52794         * debug/tst-backtrace3.c: Likewise.
52795         * debug/tst-backtrace4.c: Likewise.
52796         * debug/tst-backtrace5.c: Likewise.
52797         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
52798         (CFLAGS-tst-backtrace3.c): Likewise.
52799         (CFLAGS-tst-backtrace4.c): Likewise.
52800         (CFLAGS-tst-backtrace5.c): Likewise.
52801         (LDFLAGS-tst-backtrace2): Likewise.
52802         (LDFLAGS-tst-backtrace3): Likewise.
52803         (LDFLAGS-tst-backtrace4): Likewise.
52804         (LDFLAGS-tst-backtrace5): Likewise.
52805         (tests): Add new tests tst-backtrace2, tst-backtrace3,
52806         tst-backtrace4 and tst-backtrace5.
52807
52808 2013-01-18  Anton Blanchard  <anton@samba.org>
52809             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
52810
52811         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
52812         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
52813         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
52814         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
52815         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
52816         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
52817         "+r" and remove output regs list as redundant.  Add explicit inline
52818         asm to specify register of return val to work around compiler codegen
52819         bug.  Remove (int) cast on return value.  Add return type parameter to
52820         use in macro so that this macro does not truncate return value for
52821         64-bit values.
52822         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
52823         pass to INTERNAL_VSYSCALL_NCS.
52824         (INLINE_VSYSCALL): Add 'long int' as return type to
52825         INTERNAL_VSYSCALL_NCS macro invocation.
52826         (INTERNAL_VSYSCALL): Add 'long int' as return type to
52827         INTERNAL_VSYSCALL_NCS macro invocation.
52828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
52829
52830 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
52831
52832         [BZ #14496]
52833         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
52834         Fix application of SIMD FP exception mask.
52835
52836         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
52837         mp_no from a power of two.
52838         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
52839         __mpexp_twomm1.  Use __pow_mp.
52840
52841         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
52842         multiplication.
52843
52844 2013-01-17  David S. Miller  <davem@davemloft.net>
52845
52846         * sysdeps/sparc/fpu/libm-test-ulps: Update.
52847
52848 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52849
52850         [BZ #15023]
52851         * include/complex.h: Condition contents on [!_COMPLEX_H].
52852         (__kernel_casinhf): New prototype.
52853         (__kernel_casinh): Likewise.
52854         (__kernel_casinhl): Likewise.
52855         * math/Makefile (libm_calls): Add k_casinh.
52856         * math/k_casinh.c: New file.
52857         * math/k_casinhf.c: Likewise.
52858         * math/k_casinhl.c: Likewise.
52859         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
52860         finite nonzero arguments.
52861         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
52862         finite nonzero arguments.
52863         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
52864         finite nonzero arguments.
52865         * math/s_casinh.c: Do not include <float.h>.
52866         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
52867         * math/s_casinhf.c: Do not include <float.h>.
52868         (__casinhf): Move code for finite nonzero arguments to
52869         k_casinhf.c.
52870         * math/s_casinhl.c: Do not include <float.h>.
52871         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
52872         redefine.
52873         (__casinhl): Move code for finite nonzero arguments to
52874         k_casinhl.c.
52875         * math/libm-test.inc (cacos_test): Add more tests.
52876         * sysdeps/i386/fpu/libm-test-ulps: Update.
52877         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
52878
52879 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
52880
52881         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
52882         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
52883         [!HAVE_MREMAP]: Remove [defined linux] case.
52884         * malloc/arena.c: Do not include <malloc-sysdep.h>.
52885
52886 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
52887
52888         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
52889
52890 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
52891
52892         * elf/elf.h (R_386_SIZE32): New relocation.
52893         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
52894         R_386_SIZE32.
52895         (elf_machine_rela): Likewise.
52896         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
52897         R_X86_64_SIZE64 and R_X86_64_SIZE32.
52898
52899 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
52900
52901         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
52902         (FP_FAST_FMA): Do not define.
52903         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
52904         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
52905         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
52906         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
52907         !_SOFT_FLOAT]: Likewise.
52908         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
52909         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
52910         value.
52911         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
52912         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
52913         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
52914         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
52915         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
52916         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
52917         file.
52918
52919 2013-01-16  Andreas Schwab  <schwab@suse.de>
52920
52921         [BZ #14327]
52922         * include/stdlib.h (__mktemp): Add declaration.
52923         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
52924         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
52925
52926 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
52927
52928         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
52929         definitions.
52930         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
52931         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
52932         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
52933         definitions here.
52934         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
52935         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
52936         definitions.
52937         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
52938         and ONE.
52939         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
52940         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
52941         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
52942         definitions.
52943         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
52944         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
52945         definitions.
52946         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
52947
52948         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
52949
52950 2013-01-15  David S. Miller  <davem@davemloft.net>
52951
52952         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52953         trunc{,f} to libm-sysdep_routes.
52954         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52955         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
52956         file.
52957         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
52958         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
52959         file.
52960         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
52961         file.
52962         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
52963         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
52964         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
52965         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
52966         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
52967         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
52968         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
52969         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
52970
52971         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
52972         nearbyint{,f} to libm-sysdep_routes.
52973         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
52974         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
52975         New file.
52976         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
52977         file.
52978         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
52979         New file.
52980         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
52981         file.
52982         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
52983         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
52984         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
52985         file.
52986         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
52987         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
52988         file.
52989         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
52990         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
52991         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
52992
52993         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
52994         libc_feholdexcept and libc_fesetenv.
52995
52996 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
52997
52998         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
52999
53000 2013-01-14  David S. Miller  <davem@davemloft.net>
53001
53002         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
53003         (SPARC_ASM_VIS2_IFUNC): Likewise.
53004         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
53005         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
53006         use of 'siam' instruction.
53007         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
53008         Likewise.
53009         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
53010         Likewise.
53011         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
53012         Likewise.
53013         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
53014         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
53015         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
53016         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
53017         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
53018         file.
53019         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
53020         file.
53021         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
53022         file.
53023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
53024         file.
53025         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
53026         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
53027         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
53028         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
53029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
53030         new VIS2 routines.
53031         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
53032         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
53033         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
53034         Likewise.
53035         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
53036         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
53037         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
53038         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
53039         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
53040         routines to libm-sysdep_routines.
53041         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
53042
53043         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
53044         fdim/fdimf to libm-sysdep_routines.
53045         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
53046         file.
53047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
53048         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
53049         file.
53050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
53051         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
53052         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
53053         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
53054         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
53055         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
53056         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
53057
53058 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
53059
53060         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
53061         to optimize copies.
53062
53063         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
53064         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53065         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53066
53067         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
53068         local variable MPTWO.
53069         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
53070         Likewise.
53071
53072 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53073
53074         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
53075         GLOB_NOESCAPE.
53076
53077 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53078
53079         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
53080
53081 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
53082
53083         * manual/pattern.texi (glob_t): Document gl_flags.
53084         (glob64_t): Likewise.
53085
53086 2013-01-11  David S. Miller  <davem@davemloft.net>
53087
53088         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
53089         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
53090         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
53091         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
53092         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
53093         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
53094         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
53095         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
53096         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
53097         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
53098         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
53099         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
53100         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
53101
53102         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
53103         sparc V9 rather than using V8 code.
53104         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53105         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53106
53107         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
53108         Move to...
53109         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
53110         Here.
53111
53112 2013-01-11  Roland McGrath  <roland@hack.frob.com>
53113
53114         [BZ #14941]
53115         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
53116         not in the main loop.
53117         * configure: Regenerated.
53118
53119 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
53120
53121         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
53122         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
53123         to just #else.
53124         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
53125         [!__GLIBC_HAVE_LONG_LONG] case.
53126         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
53127         condition to just #else.
53128         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
53129         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
53130         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
53131         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
53132         unconditional.
53133         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
53134         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
53135         #elif condition to just #else.
53136         * sysdeps/unix/sysv/linux/sys/sysmacros.h
53137         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
53138         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
53139         #elif condition to just #else.
53140
53141 2013-01-11  Steve Ellcey  <sellcey@mips.com>
53142
53143         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
53144         (EF_MIPS_ARCH_64): Fix value.
53145         (EF_MIPS_ARCH_32R2): New.
53146         (EF_MIPS_ARCH_64R2): New.
53147
53148 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
53149
53150         * Makeconfig (+link-pie-before-libc): New.
53151         (+link-pie-after-libc): Likewise.
53152         (+link-pie-tests): Likewise.
53153         (+link-pie): Rewritten.
53154         (link-before-libc): Remove $(config-LDFLAGS).
53155         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
53156         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
53157         (config-LDFLAGS): Renamed to ...
53158         (rtld-LDFLAGS): This.
53159         (rtld-tests-LDFLAGS): New macro.
53160         (link-libc-rpath-link): Likewise.
53161         (link-libc-tests-rpath-link): Likewise.
53162         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
53163         (link-libc): Prepand $(link-libc-rpath-link).
53164         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
53165         (test-program-prefix): New macro.
53166         (test-via-rtld-prefix): Likewise.
53167         (test-program-cmd): Likewise.
53168         (host-test-program-cmd): Likewise.
53169         * Makefile ($(common-objpfx)testrun.sh): Replace
53170         $(run-program-prefix) with $(test-program-prefix).
53171         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
53172         $(rtld-LDFLAGS).
53173         ($(common-objpfx)shlib.lds): Likewise.
53174         (build-module-helper): Likewise.
53175         ($(common-objpfx)format.lds): Likewise.
53176         * Rules (binaries-pie-tests): New.
53177         (binaries-pie-notests): Likewise.
53178         (binaries-pie): Rewritten.
53179         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
53180         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
53181         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
53182         (make-test-out): Replace $(host-built-program-cmd) with
53183         $(host-test-program-cmd).
53184         * config.make.in (build-hardcoded-path-in-tests): New variable.
53185         * configure.in (--enable-hardcoded-path-in-tests): New configure
53186         option.
53187         (hardcoded_path_in_tests): New AC_SUBST.
53188         * configure: Regenerated.
53189         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
53190         $(built-program-cmd) with $(test-program-cmd).
53191         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
53192         (test_program_cmd): This.
53193         * elf/Makefile ($(objpfx)order.out): Run test with
53194         $(test-program-prefix).
53195         ($(objpfx)order2.out): Likewise.
53196         ($(objpfx)tst-initorder.out): Likewise.
53197         ($(objpfx)tst-initorder2.out): Likewise.
53198         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
53199         $(test-program-cmd).
53200         ($(objpfx)tst-array1-static.out): Likewise.
53201         ($(objpfx)tst-array2.out): Likewise.
53202         ($(objpfx)tst-array3.out): Likewise.
53203         ($(objpfx)tst-array4.out): Likewise.
53204         ($(objpfx)tst-array5.out): Likewise.
53205         ($(objpfx)tst-array5-static.out): Likewise.
53206         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
53207         $(test-program-cmd).
53208         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
53209         $(run-program-prefix) with $(test-program-prefix).
53210         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
53211         (test_program_prefix): This.
53212         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
53213         $(run-program-prefix) with $(test-program-prefix).
53214         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
53215         (test_program_prefix): This.
53216         * iconvdata/tst-tables.sh: Likewise.
53217         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
53218         $(run-program-prefix) with $(test-program-prefix).
53219         ($(objpfx)tst-translit.out): Likewise.
53220         ($(objpfx)tst-gettext2.out): Likewise.
53221         ($(objpfx)tst-gettext4.out): Likewise.
53222         ($(objpfx)tst-gettext6.out): Likewise.
53223         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
53224         (test_program_prefix): This.
53225         * intl/tst-gettext2.sh: Likewise.
53226         * intl/tst-gettext4.sh  Likewise.
53227         * intl/tst-gettext6.sh: Likewise.
53228         * intl/tst-translit.sh: Likewise.
53229         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
53230         with $(test-program-cmd).
53231         * libio/Makefile ($(objpfx)test-freopen.out): Replace
53232         $(run-program-prefix) with $(test-program-prefix).
53233         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
53234         (test_program_prefix): This.
53235         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
53236         $(run-program-prefix) with $(test-program-prefix).
53237         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
53238         (test_program_prefix): This.
53239         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
53240         * posix/Makefile ($(objpfx)globtest.out): Replace
53241         $(run-via-rtld-prefix) and $(test-wrapper) with
53242         $(test-program-prefix) and $(test-via-rtld-prefix).
53243         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
53244         $(test-program-prefix).
53245         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
53246         $(host-test-program-cmd).
53247         (tst-spawn-ARGS): Likewise.
53248         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
53249         $(test-program-prefix).
53250         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
53251         (test_via_rtld_prefix): This.
53252         (test_wrapper): Renamed to ...
53253         (test_program_prefix): This.
53254         (run_program_prefix): Replaced by test_program_prefix.
53255         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
53256         (test_program_prefix): This.
53257         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
53258         with $(host-test-program-cmd).
53259         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
53260         $(run-program-prefix) with $(test-program-prefix).
53261         ($(objpfx)tst-printf.out): Likewise.
53262         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
53263         $(test-program-cmd).
53264         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
53265         (test_program_prefix): This.
53266         * stdio-common/tst-unbputc.sh: Likewise.
53267         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
53268         $(run-program-prefix) with $(test-program-prefix).
53269         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
53270         (test_program_prefix): This.
53271         * string/Makefile ($(objpfx)tst-svc.out):  Replace
53272         $(built-program-cmd) with $(test-program-cmd).
53273
53274 2013-01-11  Andreas Jaeger  <aj@suse.de>
53275
53276         [BZ #15003]
53277         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
53278         value. Sync with Linux 3.7.
53279
53280 2013-01-10  David S. Miller  <davem@davemloft.net>
53281
53282         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
53283         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53284         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53285
53286 2013-01-10  Roland McGrath  <roland@hack.frob.com>
53287
53288         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
53289         never set.
53290         * configure: Regenerated.
53291
53292 2013-01-10  David S. Miller  <davem@davemloft.net>
53293
53294         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
53295         sparc V9 rather than using V8 code.
53296         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
53297         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
53298
53299 2013-01-10  Roland McGrath  <roland@hack.frob.com>
53300
53301         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
53302         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
53303         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
53304         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
53305         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
53306         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
53307         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
53308         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
53309         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
53310         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
53311         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
53312         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
53313         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
53314         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
53315         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
53316         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
53317         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
53318         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
53319         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
53320         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
53321         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
53322         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
53323         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
53324         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
53325         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
53326         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
53327         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
53328
53329 2013-01-10  David S. Miller  <davem@davemloft.net>
53330
53331         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53332
53333 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
53334
53335         * posix/Makefile (tests-static): New variable.
53336         (tests): Add $(tests-static).
53337         (tst-exec-static-ARGS): New variable.
53338         (tst-spawn-static-ARGS): Likewise.
53339         * posix/tst-exec-static.c: New file.
53340         * posix/tst-spawn-static.c: Likewise.
53341         * posix/tst-exec.c: Support run directly.
53342         * posix/tst-spawn.c: Likewise.
53343
53344 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
53345
53346         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
53347         long.
53348         * math/bits/mathcalls.h (llrint): Likewise.
53349         (llround): Likewise.
53350         * stdlib/stdlib.h (struct drand48_data): Likewise.
53351         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
53352         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
53353         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
53354         Likewise.
53355         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
53356         Likewise.
53357         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
53358         (elf_greg_t): Likewise.
53359         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
53360         (__jmp_buf): Likewise.
53361         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
53362         definitions.
53363         (llrint): Likewise, for all definitions.
53364         (llrintl): Likewise.
53365
53366         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
53367         Remove [__GNUC__] condition.
53368         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
53369         condition to just [__USE_ISOC99].
53370         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
53371
53372 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
53373
53374         [BZ #14200]
53375         * sysdeps/unix/sysv/linux/x86/bits/environments.h
53376         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
53377         defined.
53378         (_POSIX_V6_ILP32_OFF32): Likewise.
53379         (_XBS5_ILP32_OFF32): Likewise.
53380         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
53381         (__ILP32_OFFBIG_LDFLAGS): Likewise.
53382
53383 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
53384
53385         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
53386
53387         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
53388         doubles __mpexp_twomm1.  Adjust usage.
53389         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
53390         Remove.
53391
53392 2013-01-10  Andreas Schwab  <schwab@suse.de>
53393
53394         [BZ #14964]
53395         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
53396         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
53397
53398 2013-01-09  David S. Miller  <davem@davemloft.net>
53399
53400         [BZ #15003]
53401         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
53402         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
53403         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
53404         (TCP_FASTOPEN): Define.
53405         (tcp_repair_opt): New structure.
53406         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
53407         enum values.
53408         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
53409         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
53410         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
53411         (tcp_cookie_transactions): New structure.
53412
53413 2013-01-09  Anton Blanchard  <anton@samba.org>
53414
53415         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
53416         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
53417         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
53418         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
53419
53420 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
53421
53422         * include/features.h (__USE_ANSI): Remove.
53423
53424 2013-01-09  Roland McGrath  <roland@hack.frob.com>
53425
53426         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
53427
53428         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
53429
53430 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
53431
53432         * sysdeps/s390/fpu/libm-test-ulps: Update.
53433
53434         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53435
53436         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
53437         (__acr): Likewise.
53438         (__cpy): Likewise.
53439         (norm): Likewise.
53440         (denorm): Likewise.
53441         (__mp_dbl): Likewise.
53442         (__dbl_mp): Likewise.
53443         (add_magnitudes): Likewise.
53444         (sub_magnitudes): Likewise.
53445         (__add): Likewise.
53446         (__sub): Likewise.
53447         (__mul): Likewise.
53448         (__inv): Likewise.
53449         (__dvd): Likewise.
53450         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
53451         (__acr): Likewise.
53452         (__cpy): Likewise.
53453         (norm): Likewise.
53454         (denorm): Likewise.
53455         (__mp_dbl): Likewise.
53456         (__dbl_mp): Likewise.
53457         (add_magnitudes): Likewise.
53458         (sub_magnitudes): Likewise.
53459         (__add): Likewise.
53460         (__sub): Likewise.
53461         (__mul): Likewise.
53462         (__inv): Likewise.
53463         (__dvd): Likewise.
53464         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
53465         (__acr): Likewise.
53466         (__cpy): Likewise.
53467         (norm): Likewise.
53468         (denorm): Likewise.
53469         (__mp_dbl): Likewise.
53470         (__dbl_mp): Likewise.
53471         (add_magnitudes): Likewise.
53472         (sub_magnitudes): Likewise.
53473         (__add): Likewise.
53474         (__sub): Likewise.
53475         (__mul): Likewise.
53476         (__inv): Likewise.
53477         (__dvd): Likewise.
53478
53479 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
53480
53481         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
53482         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
53483         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
53484         2 && __USE_EXTERN_INLINES]: Likewise.
53485
53486 2013-01-08  Andreas Jaeger  <aj@suse.de>
53487
53488         [BZ# 14985]
53489         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
53490         Remove.
53491         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53492         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
53493
53494 2013-01-07  Anton Blanchard  <anton@samba.org>
53495
53496         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
53497         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
53498         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
53499         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
53500         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
53501         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
53502         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
53503         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53504         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53505         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53506         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
53507         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
53508         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
53509         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
53510         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
53511         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
53512         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
53513         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
53514         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
53515         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
53516         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
53517         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
53518         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
53519         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
53520         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
53521         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
53522         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
53523         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
53524         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
53525         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
53526         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
53527         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53528         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53529         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
53530         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
53531         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
53532         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
53533         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
53534         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
53535         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
53536         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
53537         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
53538         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
53539
53540 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
53541
53542         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
53543         (__MALLOC_PMT): Likewise.
53544         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
53545         [__GNUC__], only on [_LIBC].
53546         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53547         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
53548         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
53549         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
53550         forward declaration.
53551         (realloc_hook_ini): Likewise.
53552         (memalign_hook_ini): Likewise.
53553         (__libc_memalign): Do not use __MALLOC_PMT in variable
53554         declaration.
53555         (__libc_valloc): Likewise.
53556         (__libc_pvalloc): Likewise.
53557         (__libc_calloc): Likewise.
53558         (__posix_memalign): Likewise.
53559
53560         [BZ #14996]
53561         * math/s_casinh.c: Include <float.h>.
53562         (__casinh): Do not do computation with squaring and square root
53563         for large arguments.
53564         * math/s_casinhf.c: Include <float.h>.
53565         (__casinhf): Do not do computation with squaring and square root
53566         for large arguments.
53567         * math/s_casinhl.c: Include <float.h>.
53568         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
53569         (__casinhl): Do not do computation with squaring and square root
53570         for large arguments.
53571         * math/libm-test.inc (casin_test): Add more tests.
53572         (casinh_test): Likewise.
53573         * sysdeps/i386/fpu/libm-test-ulps: Update.
53574         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53575
53576 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
53577
53578         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
53579         (__x86_64_raw_data_cache_size): Likewise.
53580         (__x86_64_data_cache_size_half): Likewise.
53581         (__x86_64_raw_data_cache_size_half): Likewise.
53582         (__x86_64_shared_cache_size): Likewise.
53583         (__x86_64_raw_shared_cache_size): Likewise.
53584         (__x86_64_shared_cache_size_half): Likewise.
53585         (__x86_64_raw_shared_cache_size_half): Likewise.
53586         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
53587         to ...
53588         (__x86_data_cache_size): This.
53589         (__x86_64_raw_data_cache_size): Renamed to ...
53590         (__x86_raw_data_cache_size): This.
53591         (__x86_64_data_cache_size_half): Renamed to ...
53592         (__x86_data_cache_size_half): This.
53593         (__x86_64_raw_data_cache_size_half): Renamed to ...
53594         (__x86_raw_data_cache_size_half): This.
53595         (__x86_64_shared_cache_size): Renamed to ...
53596         (__x86_shared_cache_size): This.
53597         (__x86_64_raw_shared_cache_size): Renamed to ...
53598         (__x86_raw_shared_cache_size): This.
53599         (__x86_64_shared_cache_size_half): Renamed to ...
53600         (__x86_shared_cache_size_half): This.
53601         (__x86_64_raw_shared_cache_size_half): Renamed to ...
53602         (__x86_raw_shared_cache_size_half): This.
53603         * sysdeps/x86_64/memcpy.S: Updated.
53604         * sysdeps/x86_64/memset.S: Likewise.
53605         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
53606         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
53607         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
53608
53609 2013-01-04  David S. Miller  <davem@davemloft.net>
53610
53611         * sysdeps/sparc/fpu/libm-test-ulps: Update.
53612
53613 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
53614
53615         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
53616         1 to avoid redefinition warning.
53617         (__USE_GNU): Don't define.
53618         (init_signaling_nan): Protoize.
53619
53620         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
53621
53622 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53623
53624         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
53625         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
53626         (__cpymn): Likewise.
53627         (norm): Remove commented code.
53628         (denorm): Likewise.
53629         (__mp_dbl): Likewise.
53630         (__inv): Likewise.
53631         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
53632         (__cpymn): Likewise.
53633         (norm): Remove commented code.
53634         (denorm): Likewise.
53635         (__mp_dbl): Likewise.
53636         (__inv): Likewise.
53637
53638         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
53639         mp_no value for 1.0 and 2.0.
53640         (norm): Use RADIXI instead of radixi.d.
53641         (denorm): Likewise.
53642         (__mul): Use 0.0 instead of zero.d.
53643         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
53644         mp_no value for 1.0 and 2.0.
53645         (norm): Use RADIXI instead of radixi.d.
53646         (denorm): Likewise.
53647         (__mul): Use 0.0 instead of zero.d.
53648
53649 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
53650
53651         [BZ #14994]
53652         * math/s_casinh.c (__casinh): Reduce finite argument to first
53653         quadrant then set signs of results at the end.
53654         * math/s_casinhf.c (__casinhf): Likewise.
53655         * math/s_casinhl.c (__casinhl): Likewise.
53656         * math/libm-test.inc (casin_test): Add more tests.
53657         (casinh_test): Likewise.
53658         * sysdeps/i386/fpu/libm-test-ulps: Update.
53659         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
53660
53661 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
53662
53663         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
53664
53665         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
53666
53667         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
53668         declarations.
53669         (denorm): Likewise.
53670         (__mp_dbl): Likewise.
53671         (__inv): Likewise.
53672
53673         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
53674         and adjust the header comment.
53675
53676         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
53677         variable name from declaration.
53678
53679 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
53680
53681         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
53682         Initialize COMMON_CPUID_INDEX_7 element.
53683         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
53684         (CPUID_RTM): Likewise.
53685         (HAS_RTM): Likewise.
53686         (COMMON_CPUID_INDEX_7): New enum.
53687
53688 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
53689
53690         [BZ #14981]
53691         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
53692         size is zero, record memory as freed.
53693
53694 2013-01-03  Andreas Jaeger  <aj@suse.de>
53695
53696         * po/ia.po: Add new Interlingua translation.
53697
53698 2012-01-03  Allan McRae  <allan@archlinux.org>
53699
53700         * locale/programs/localedef.c: Fix description of '--posix' flag.
53701
53702 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
53703
53704         * NEWS: Update dates in second copyright notice.
53705         * README: Update copyright dates in example.
53706         * manual/libc.texinfo: Update copyright dates.
53707         * scripts/test-installation.pl: Update copyright date in --version
53708         output.
53709
53710         * hurd/ctty-input.c: Fix copyright notice formatting.
53711         * hurd/ctty-output.c: Likewise.
53712         * hurd/dtable.c: Likewise.
53713         * hurd/hurd-raise.c: Likewise.
53714         * hurd/hurdprio.c: Likewise.
53715         * hurd/msgportdemux.c: Likewise.
53716         * misc/sys/file.h: Likewise.
53717         * misc/sys/ioctl.h: Likewise.
53718         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
53719         * sysdeps/mach/hurd/chdir.c: Likewise.
53720         * sysdeps/mach/hurd/fchdir.c: Likewise.
53721         * sysdeps/mach/hurd/rename.c: Likewise.
53722         * sysdeps/mach/hurd/rmdir.c: Likewise.
53723         * sysdeps/mach/hurd/seekdir.c: Likewise.
53724         * sysdeps/mach/hurd/setsid.c: Likewise.
53725         * sysdeps/posix/wait3.c: Likewise.
53726
53727         * All files with FSF copyright notices: Update copyright dates
53728         using scripts/update-copyrights.
53729         * intl/plural.c: Regenerated.
53730         * locale/programs/charmap-kw.h: Likewise.
53731         * locale/programs/locfile-kw.h: Likewise.
53732
53733 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
53734
53735         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
53736         four values.
53737
53738         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
53739         calculation loop and add branch prediction.
53740
53741         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
53742         check access beyond bounds of m1np.
53743
53744         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53745         MPTWO.
53746         (__inv): Remove local variable MPTWO to use the global
53747         constant.
53748         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
53749         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53750         variable MPTWO.
53751         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
53752         MP3HALFS static const.
53753
53754 2013-01-01  David S. Miller  <davem@davemloft.net>
53755
53756         * po/ca.po: Update from translation team.
53757
53758 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
53759
53760         * scripts/update-copyrights: New file.
53761         * Makeconfig: Reformat copyright notice.
53762         * ctype/ctype.h: Likewise.
53763         * debug/swprintf_chk.c: Likewise.
53764         * elf/dl-cache.c: Likewise.
53765         * elf/dl-debug.c: Likewise.
53766         * elf/dl-object.c: Likewise.
53767         * grp/initgroups.c: Likewise.
53768         * hurd/Makefile: Likewise.
53769         * hurd/hurd/signal.h: Likewise.
53770         * hurd/hurdfault.c: Likewise.
53771         * hurd/hurdioctl.c: Likewise.
53772         * hurd/hurdlookup.c: Likewise.
53773         * hurd/intr-msg.c: Likewise.
53774         * iconv/gconv_open.c: Likewise.
53775         * libio/swprintf.c: Likewise.
53776         * locale/lc-ctype.c: Likewise.
53777         * locale/nl_langinfo.c: Likewise.
53778         * mach/Machrules: Likewise.
53779         * mach/Makefile: Likewise.
53780         * malloc/obstack.h: Likewise.
53781         * manual/Makefile: Likewise.
53782         * manual/tsort.awk: Likewise.
53783         * misc/bits/stab.def: Likewise.
53784         * nis/nis_print_group_entry.c: Likewise.
53785         * nis/nis_table.c: Likewise.
53786         * nis/nss_compat/compat-pwd.c: Likewise.
53787         * nis/nss_compat/compat-spwd.c: Likewise.
53788         * po/Makefile: Likewise.
53789         * posix/fnmatch.c: Likewise.
53790         * posix/regex.h: Likewise.
53791         * resolv/Makefile: Likewise.
53792         * resolv/nss_dns/dns-network.c: Likewise.
53793         * resolv/res_hconf.c: Likewise.
53794         * scripts/gen-sorted.awk: Likewise.
53795         * soft-fp/soft-fp.h: Likewise.
53796         * stdio-common/printf.h: Likewise.
53797         * stdlib/monetary.h: Likewise.
53798         * stdlib/random.c: Likewise.
53799         * stdlib/random_r.c: Likewise.
53800         * sysdeps/generic/Makefile: Likewise.
53801         * sysdeps/gnu/Makefile: Likewise.
53802         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
53803         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
53804         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
53805         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
53806         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
53807         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
53808         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
53809         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
53810         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
53811         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
53812         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
53813         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
53814         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
53815         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
53816         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
53817         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
53818         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
53819         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
53820         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
53821         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
53822         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
53823         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
53824         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
53825         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
53826         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
53827         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
53828         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
53829         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
53830         * sysdeps/mach/hurd/errnos.awk: Likewise.
53831         * sysdeps/mach/hurd/fork.c: Likewise.
53832         * sysdeps/mach/hurd/getcwd.c: Likewise.
53833         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
53834         * sysdeps/mach/hurd/mmap.c: Likewise.
53835         * sysdeps/mach/hurd/utimes.c: Likewise.
53836         * sysdeps/mach/hurd/xmknod.c: Likewise.
53837         * sysdeps/posix/profil.c: Likewise.
53838         * sysdeps/posix/readdir_r.c: Likewise.
53839         * sysdeps/powerpc/bits/mathdef.h: Likewise.
53840         * sysdeps/powerpc/bits/setjmp.h: Likewise.
53841         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
53842         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
53843         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
53844         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
53845         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
53846         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
53847         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
53848         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
53849         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
53850         * sysdeps/pthread/lio_listio.c: Likewise.
53851         * sysdeps/sparc/dl-procinfo.h: Likewise.
53852         * sysdeps/unix/i386/sysdep.S: Likewise.
53853         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
53854         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
53855         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
53856         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
53857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
53858         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
53859         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
53860         * sysdeps/unix/sysv/linux/speed.c: Likewise.
53861         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
53862         * sysdeps/wordsize-32/divdi3.c: Likewise.
53863         * time/sys/time.h: Likewise.
53864         * wcsmbs/Makefile: Likewise.
53865
53866 2013-01-01  David S. Miller  <davem@davemloft.net>
53867
53868         * po/fr.po: Update from translation team.
53869
53870         * catgets/gencat.c: Update copyright year.
53871         * csu/version.c: Likewise.
53872         * debug/catchsegv.sh: Likewise.
53873         * debug/pcprofiledump.c: Likewise.
53874         * debug/xtrace.sh: Likewise.
53875         * elf/ldconfig.c: Likewise.
53876         * elf/ldd.bash.in: Likewise.
53877         * elf/pldd.c: Likewise.
53878         * elf/sotruss.ksh: Likewise.
53879         * elf/sprof.c: Likewise.
53880         * iconv/iconv_prog.c: Likewise.
53881         * iconv/iconvconfig.c: Likewise.
53882         * locale/programs/locale.c: Likewise.
53883         * locale/programs/localedef.c: Likewise.
53884         * login/programs/pt_chown.c: Likewise.
53885         * malloc/memusage.sh: Likewise.
53886         * malloc/memusagestat.c: Likewise.
53887         * malloc/mtrace.pl: Likewise.
53888         * nscd/nscd.c: Likewise.
53889         * nss/getent.c: Likewise.
53890         * nss/makedb.c: Likewise.
53891         * posix/getconf.c: Likewise.
53892
53893 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
53894
53895         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
53896         numbers.
53897
53898 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
53899
53900         * math/bits/mathcalls.h (modf): Use __nonnull.
53901
53902 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
53903
53904         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
53905         (split): Use macro CN instead of the bare value.
53906         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
53907         could be used.
53908         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
53909         instead of the bare value.
53910         (power1): Likewise.
53911
53912 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53913
53914         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
53915         __ATAN_TWOM.
53916         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53917
53918         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
53919         their values.
53920         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
53921         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
53922         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
53923         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
53924
53925 2012-12-28  Andreas Jaeger  <aj@suse.de>
53926
53927         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
53928         values are from Linux 3.7.
53929
53930         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
53931         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
53932
53933 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
53934
53935         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
53936         TRUE case.
53937
53938         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
53939         (norm): Likewise.
53940         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
53941         variables with preprocessor constants.
53942         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
53943         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
53944         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
53945
53946 2012-12-27  Bruno Haible  <bruno@clisp.org>
53947
53948         [BZ #14317]
53949         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
53950         only if needed.
53951
53952 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
53953
53954         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
53955         and use variable directly.
53956         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
53957
53958         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
53959         MPONE.
53960         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
53961         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
53962         variable MPONE.
53963         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
53964         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
53965         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
53966         include directive.  Remove local variable MPONE.
53967         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
53968         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
53969         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
53970
53971 2012-12-25  David S. Miller  <davem@davemloft.net>
53972
53973         * version.h (RELEASE): Set to "development".
53974         (VERSION): Set to "2.17.90".
53975         * NEWS: Add 2.18 section.
53976
53977 2012-12-21  David S. Miller  <davem@davemloft.net>
53978
53979         * po/hr.po: Update from translation team.
53980
53981 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
53982
53983         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
53984
53985 2012-12-19  Steve Ellcey  <sellcey@mips.com>
53986
53987         * NEWS:  Mention new memcpy for MIPS.
53988
53989 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
53990
53991         * manual/contrib.texi (Contributors): Spelling correction.
53992
53993 2012-12-15  David S. Miller  <davem@davemloft.net>
53994
53995         * po/ru.po: Update from translation team.
53996
53997 2012-12-13  David S. Miller  <davem@davemloft.net>
53998
53999         * NEWS: Mention IFUNC testsuite enhancements.
54000
54001         * po/pl.po: Update from translation team.
54002         * po/bg.po: Likewise.
54003
54004         * manual/contrib.texi (Contributors): Update entries for Hongjiu
54005         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
54006
54007 2012-12-11  David S. Miller  <davem@davemloft.net>
54008
54009         * po/sv.po: Update from translation team.
54010
54011         * po/vi.po: Update from translation team.
54012
54013         * po/cs.po: Update from translation team.
54014
54015         * po/de.po: Update from translation team.
54016         * po/eo.po: Likewise.
54017         * po/nl.po: Likewise.
54018
54019 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
54020
54021         [BZ #14246]
54022         * manual/argp.texi (Argp Helper Functions): Move node to follow
54023         Argp Parsing State.
54024
54025         [BZ #14872]
54026         * manual/conf.texi (Limits on File System Capacity): Mention if
54027         terminating null is included in the max size.
54028
54029 2012-12-10  Andreas Jaeger  <aj@suse.de>
54030
54031         * po/cs.po: Update from translation team.
54032
54033 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
54034
54035         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
54036         void pointer and cast to uintptr_t.
54037         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
54038         path.
54039         * sysdeps/s390/s390-64/memcpy.S: Likewise.
54040         * sysdeps/s390/s390-64/memset.S: Likewise.
54041
54042 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
54043
54044         [BZ #14833]
54045         * menual/message.texi (Message Translation): Fix typos.
54046         (Helper programs for gettext): Likewise.
54047
54048 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
54049
54050         [BZ #14898]
54051         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
54052         Change to -1.
54053
54054 2012-12-07  David S. Miller  <davem@davemloft.net>
54055
54056         * po/libc.pot: Update.
54057
54058 2012-12-07  Richard Henderson  <rth@redhat.com>
54059
54060         [BZ #10114]
54061         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
54062         normal/normal case to before the switch.
54063         (_FP_DIV): Likewise.
54064
54065 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
54066             Mike Frysinger  <vapier@gentoo.org>
54067
54068         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
54069         check for __NR_fadvise64_64.
54070
54071 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
54072
54073         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
54074         0, not just to plain "0" as a statement.
54075         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
54076         with cw.
54077
54078 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
54079
54080         * NEWS: Use sourceware.org in Bugzilla URL.
54081
54082 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
54083
54084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
54085         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
54086
54087         * stdio-common/tst-put-error.c (do_test): Add newline to the
54088         padded test to ensure flush.
54089
54090 2012-12-05  Jeff Law  <law@redhat.com>
54091
54092         * sunrpc/etc.rpc (fedfs_admin): Add entry.
54093
54094 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
54095
54096         * README: Don't refer to ports add-on as distributed separately.
54097         Mention AArch64 in list of systems supported in the ports add-on.
54098
54099         * LICENSES: Add more non-FSF copyright and license notices.
54100
54101         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
54102         ((unused)).
54103
54104         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
54105
54106         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
54107         10000 as width of padded output.
54108
54109 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
54110
54111         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
54112
54113         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
54114         variable LX with __attribute__ ((unused)).
54115         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
54116         Likewise.
54117         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
54118         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
54119         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
54120         with __attribute__ ((unused)).
54121
54122 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
54123
54124         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
54125
54126 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
54127
54128         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
54129         (CFLAGS-nldbl-acos.c): New variable.
54130         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
54131         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
54132         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
54133         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
54134         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
54135         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
54136         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
54137         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
54138         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
54139         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
54140         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
54141         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
54142         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
54143         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
54144         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
54145         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
54146         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
54147         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
54148         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
54149         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
54150         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
54151         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
54152         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
54153         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
54154         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
54155         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
54156         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
54157         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
54158         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
54159         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
54160         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
54161         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
54162         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
54163         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
54164         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
54165         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
54166         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
54167         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
54168         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
54169         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
54170         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
54171         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
54172         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
54173         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
54174         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
54175         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
54176         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
54177         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
54178         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
54179         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
54180         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
54181         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
54182         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
54183         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
54184         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
54185         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
54186         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
54187         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
54188         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
54189         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
54190         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
54191         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
54192         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
54193         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
54194         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
54195         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
54196         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
54197         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
54198         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
54199         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
54200         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
54201         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
54202         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
54203         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
54204         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
54205         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
54206         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
54207         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
54208         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
54209         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
54210         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
54211         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
54212         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
54213         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
54214         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
54215         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
54216         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
54217         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
54218         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
54219         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
54220         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
54221         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
54222         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
54223         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
54224         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
54225         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
54226         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
54227
54228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
54229         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
54230
54231         [BZ #14914]
54232         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
54233         whole low double instead of just low 47 bits when splitting values
54234         into two parts.
54235
54236 2012-12-03  Allan McRae  <allan@archlinux.org>
54237
54238         * manual/stdio.texi (Predefined Printf Handlers): Remove
54239         @hsep and @vsep usage.
54240
54241 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
54242
54243         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
54244         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
54245
54246 2012-12-03  Jeff Law  <law@redhat.com>
54247
54248         * time/sys/time.h (settimeofday): Do not mark TV argument
54249         as __nonnull.
54250
54251 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
54252
54253         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
54254         when currently writing and seek to current position when not.
54255         * libio/Makefile (tests): Remove bug-fclose1.
54256         * libio/bug-fclose1.c: Delete.
54257
54258 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
54259
54260         * manual/arith.texi (feenableexcept): Fix typo.
54261         (fedisableexcept): Likewise.
54262
54263 2012-11-30  Roland McGrath  <roland@hack.frob.com>
54264
54265         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
54266         second, differently-typed declaration, rather than a cast.
54267
54268 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
54269
54270         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
54271         * include/rpc/svc.h: ... here.
54272
54273 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
54274
54275         [BZ #13013]
54276         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
54277         depending n and resplen2 to catch cases where answer
54278         equals answerp2.
54279
54280 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
54281
54282         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
54283         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
54284
54285 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
54286
54287         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
54288
54289 2012-11-29  Roland McGrath  <roland@hack.frob.com>
54290
54291         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
54292
54293 2012-11-28  Jeff Law  <law@redhat.com>
54294
54295         [BZ #13761]
54296         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
54297         dataset_temporary.  Track alloca usage into alloca_used.
54298         If dataset is large allocate and release it via malloc/free.
54299
54300 2012-06-04  Florian Weimer  <fweimer@redhat.com>
54301
54302         [BZ #14197]
54303         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
54304
54305 2012-11-28  David S. Miller  <davem@davemloft.net>
54306
54307         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54308
54309 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
54310
54311         [BZ #14803]
54312         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
54313         of pi/2 rounded to nearest to 64 bits.
54314         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
54315         nearest to 64 bits.
54316         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
54317         bits.
54318
54319 2012-11-28  Jeff Law <law@redhat.com>
54320             Martin Osvald <mosvald@redhat.com>
54321
54322         [BZ #14889]
54323         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
54324         * sunrpc/svc.c: Include time.h.
54325         (__svc_accept_failed): New function.
54326         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
54327         any reason other than EINTR, call __svc_accept_failed.
54328         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
54329         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
54330
54331 2012-11-28  Andreas Schwab  <schwab@suse.de>
54332
54333         * scripts/abilist.awk: Also handle indirect functions in .opd
54334         section.
54335
54336 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
54337
54338         [BZ #13881]
54339         * sysdeps/x86/fpu/powl_helper.c: New file.
54340         * sysdeps/x86/fpu/Makefile: Likewise.
54341         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
54342         (p3): New object.
54343         (__ieee754_powl): Use __powl_helper for finite arguments except
54344         integer exponents below 8.
54345         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
54346         (p3): New object.
54347         (__ieee754_powl): Use __powl_helper for finite arguments except
54348         integer exponents below 8.
54349         * math/libm-test.inc (pow_test): Add more tests and enable some
54350         previously disabled tests.
54351         * sysdeps/i386/fpu/libm-test-ulps: Update.
54352         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
54353
54354 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
54355             Carlos O'Donell  <carlos_odonell@mentor.com>
54356
54357         * nss/makedb.c (is_prime): Assert that input is odd and greater
54358         than 4.  Note that fact in a comment too.
54359         (next_prime): Add 4 to input.
54360
54361 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
54362
54363         [BZ #11741]
54364         * libio/Makefile (tests): Add test case tst-fwrite-error.
54365         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
54366         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
54367         * libio/tst-fwrite-error.c: New test case.
54368
54369 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
54370
54371         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
54372         before casting to void *.
54373         * include/libc-internal.h (__pointer_type): New macro.
54374         (__integer_if_pointer_type_sub): Likewise.
54375         (__integer_if_pointer_type): Likewise.
54376         (cast_to_integer): Likewise.
54377         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
54378         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
54379         before casting to atomic64_t.
54380         (atomic_exchange_acq): Likewise.
54381         (__arch_exchange_and_add_body): Likewise.
54382         (__arch_add_body): Likewise.
54383         (atomic_add_negative): Likewise.
54384         (atomic_add_zero): Likewise.
54385
54386 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
54387
54388         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
54389         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
54390         (add_fdes): Likewise.
54391         (linear_search_fdes): Likewise.
54392         (binary_search_unencoded_fdes): Likewise.
54393
54394 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
54395
54396         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
54397
54398 2012-11-24  Adam Conrad  <adconrad@0c3.net>
54399
54400         * configure.in: Autodetect C++ header directories.
54401         * configure: Regenerated.
54402
54403 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
54404
54405         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
54406
54407 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
54408
54409         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
54410
54411 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
54412
54413         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
54414         LDBL_MANT_DIG == 106]: Disable some tests.
54415         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
54416         Likewise.
54417         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
54418         Likewise.
54419
54420         [BZ #14871]
54421         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
54422         input for small inputs.  Return +/- pi/2 for large inputs.
54423         * math/libm-test.inc (atan_test): Add more tests.
54424
54425         * sysdeps/generic/unwind-dw2-fde-glibc.c
54426         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
54427         __attribute__ ((unused)).
54428
54429         [BZ #14645]
54430         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
54431         x * y if x and y are nonzero and z is zero.
54432
54433         [BZ #14811]
54434         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
54435         nonzero exponents with absolute value below 0x1p-117 to +/-
54436         0x1p-117.
54437
54438         [BZ #14869]
54439         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
54440         up arguments below 2**-450, not just those below 2**-500.
54441         * math/libm-test.inc (hypot_test): Add another test.
54442
54443         [BZ #14868]
54444         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
54445         Return a+b for ratio over 2**120, not 2**60.
54446         * math/libm-test.inc (hypot_test): Add another test.
54447
54448         * math/libm-test.inc (clog_test): Use
54449         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
54450         (clog10_test): Likewise.
54451
54452         [BZ #6778]
54453         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
54454
54455 2012-11-22  Andreas Schwab  <schwab@suse.de>
54456
54457         * sysdeps/i386/fpu/libm-test-ulps: Update.
54458
54459 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
54460
54461         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
54462         printf output with newline.
54463
54464 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
54465
54466         [BZ #14865]
54467         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
54468         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
54469         -z nodlopen, -z initfirst and -z execstack support.
54470         * configure: Regenerated.
54471
54472         * elf/elf.h (DF_1_NODIRECT): New macro.
54473         (DF_1_IGNMULDEF): Likewise.
54474         (DF_1_NOKSYMS): Likewise.
54475         (DF_1_NOHDR): Likewise.
54476         (DF_1_EDITED): Likewise.
54477         (DF_1_NORELOC): Likewise.
54478         (DF_1_SYMINTPOSE): Likewise.
54479         (DF_1_GLOBAUDIT): Likewise.
54480         (DF_1_SINGLETON): Likewise.
54481         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
54482         DT_1_SUPPORTED_MASK bits.
54483         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
54484
54485 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
54486
54487         * sysdeps/unix/make-syscalls.sh: Document prefixes.
54488
54489 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
54490
54491         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
54492         macro.
54493
54494         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
54495         (sendmmsg): Move declarations...
54496         * socket/sys/socket.h: ... here.
54497         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
54498         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
54499         include it from...
54500         * socket/recvmmsg.c: ... this new file.
54501         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
54502         (sendmmsg): Rename to __sendmmsg, create weak alias and make
54503         definition of __sendmmsg hidden.
54504         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
54505         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
54506         Move ENOSYS stub into and include it from...
54507         * socket/sendmmsg.c: ... this new file.
54508         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
54509         (sysdep_routines): Move recvmmsg and sendmmsg...
54510         * socket/Makefile (routines): ... here.
54511         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
54512         (GLIBC_PRIVATE): Add __sendmmsg.
54513         * include/sys/socket.h (__sendmmsg): Add declarations.
54514         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
54515         sendmmsg.
54516
54517 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
54518
54519         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
54520         variable I1 with __attribute__ ((unused)).
54521         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
54522
54523 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54524
54525         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
54526         DUMMY variables with __attribute__ ((unused)).
54527
54528         * bits/byteswap.h: Include <bits/types.h>.
54529         (__bswap_64): Use __uint64_t instead of unsigned long long int.
54530
54531 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54532
54533         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
54534         string_t.  Do not manually set errno.
54535         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
54536         length with __strnlen.  Make sure to both set errno and return it on
54537         failure.
54538
54539 2012-11-19  David S. Miller  <davem@davemloft.net>
54540
54541         With help from Joseph Myers.
54542         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
54543         very large arguments properly.
54544         * math/libm-test.inc (atan_test): New tests.
54545         (atan2_test): New tests.
54546         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54547         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54548
54549 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
54550
54551         [BZ #14856]
54552         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
54553         Define to 3.
54554
54555         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
54556         [POSIX] (EADDRNOTAVAIL): Likewise.
54557         [POSIX] (EAFNOSUPPORT): Likewise.
54558         [POSIX] (EALREADY): Likewise.
54559         [POSIX] (ECONNABORTED): Likewise.
54560         [POSIX] (ECONNREFUSED): Likewise.
54561         [POSIX] (ECONNRESET): Likewise.
54562         [POSIX] (EDESTADDRREQ): Likewise.
54563         [POSIX] (EDQUOT): Likewise.
54564         [POSIX] (EHOSTUNREACH): Likewise.
54565         [POSIX] (EIDRM): Likewise.
54566         [POSIX] (EISCONN): Likewise.
54567         [POSIX] (ELOOP): Likewise.
54568         [POSIX] (EMULTIHOP): Likewise.
54569         [POSIX] (ENETDOWN): Likewise.
54570         [POSIX] (ENETUNREACH): Likewise.
54571         [POSIX] (ENOBUFS): Likewise.
54572         [POSIX] (ENODATA): Likewise.
54573         [POSIX] (ENOLINK): Likewise.
54574         [POSIX] (ENOMSG): Likewise.
54575         [POSIX] (ENOPROTOOPT): Likewise.
54576         [POSIX] (ENOSR): Likewise.
54577         [POSIX] (ENOSTR): Likewise.
54578         [POSIX] (ENOTCONN): Likewise.
54579         [POSIX] (ENOTSOCK): Likewise.
54580         [POSIX] (EOPNOTSUPP): Likewise.
54581         [POSIX] (EOVERFLOW): Likewise.
54582         [POSIX] (EPROTO): Likewise.
54583         [POSIX] (EPROTONOSUPPORT): Likewise.
54584         [POSIX] (EPROTOTYPE): Likewise.
54585         [POSIX] (ESTALE): Likewise.
54586         [POSIX] (ETIME): Likewise.
54587         [POSIX] (ETXTBSY): Likewise.
54588         [POSIX] (EWOULDBLOCK): Likewise.
54589         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
54590         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
54591         [POSIX] (SEEK_CUR): Likewise.
54592         [POSIX] (SEEK_END): Likewise.
54593         [POSIX || UNIX98] (mode_t): Do not require.
54594         [POSIX] (off_t): Likewise.
54595         [POSIX] (pid_t): Likewise.
54596         [POSIX] (sys/stat.h): Do not allow header.
54597         [POSIX] (unistd.h): Likewise.
54598         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
54599         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
54600         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
54601         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
54602         require.
54603         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
54604         sigevent): Specify elements.
54605         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
54606         entry.
54607         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
54608         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
54609
54610         * conform/data/cpio.h-data [POSIX]: Disable whole file.
54611         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
54612         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
54613         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
54614         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
54615         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
54616         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
54617         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
54618         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
54619         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
54620         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
54621         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
54622         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
54623         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
54624         Likewise.
54625         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
54626         Likewise.
54627         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
54628         Likewise.
54629         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
54630         Likewise.
54631         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
54632         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
54633         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
54634         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
54635         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
54636         Specify lower bound on value.
54637         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
54638         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
54639         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
54640         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
54641         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
54642         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise.
54643         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
54644         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
54645         value.
54646         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
54647         as optional.
54648         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
54649         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
54650         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
54651         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
54652         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
54653         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
54654         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
54655         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
54656         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
54657         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
54658         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
54659         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
54660         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
54661         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
54662         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
54663         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
54664         entry.
54665         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
54666         optional.
54667         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
54668         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
54669         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
54670         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
54671         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
54672         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
54673         Likewise.
54674         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
54675         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
54676         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
54677         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
54678         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
54679         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
54680         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
54681         as optional.
54682         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
54683         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
54684         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
54685         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
54686         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
54687         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
54688         specify as optional.
54689         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
54690         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
54691         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
54692         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
54693         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
54694         [XPG3] (NL_LANGMAX): Likewise.
54695         [POSIX || XPG3] (NL_MSGMAX): Likewise.
54696         [POSIX || XPG3] (NL_NMAX): Likewise.
54697         [POSIX || XPG3] (NL_SETMAX): Likewise.
54698         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
54699         [XPG3] (NZERO): Likewise.
54700         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
54701         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
54702         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
54703         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
54704         (REG_ERANGE): Expect.
54705         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
54706         optional-constant.
54707         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
54708         Use (void) in prototype.
54709         [POSIX] (*_t): Allow.
54710         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
54711         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
54712         (WRDE_BADVAL): Expect.
54713
54714         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
54715         expect.
54716         [XPG3 || XPG4] (O_RSYNC): Likewise.
54717         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
54718         Likewise.
54719         [XPG3 || XPG4] (pthread_sigmask): Likewise.
54720         [XPG3 || XPG4] (sigqueue): Likewise.
54721         [XPG3 || XPG4] (sigtimedwait): Likewise.
54722         [XPG3 || XPG4] (sigwaitinfo): Likewise.
54723         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
54724         [XPG3 || XPG4] (vsnprintf): Likewise.
54725         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
54726         Likewise.
54727         [XPG3 || XPG4] (blksize_t): Likewise.
54728         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
54729         Likewise.
54730         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
54731         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
54732         [XPG3 || XPG4] (struct itimerspec): Likewise.
54733         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
54734         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
54735         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
54736         [XPG3 || XPG4] (clockid_t): Likewise.
54737         [XPG3 || XPG4] (timer_t): Likewise.
54738         [XPG3 || XPG4] (clock_getres): Likewise.
54739         [XPG3 || XPG4] (clock_gettime): Likewise.
54740         [XPG3 || XPG4] (clock_settime): Likewise.
54741         [XPG3 || XPG4] (nanosleep): Likewise.
54742         [XPG3 || XPG4] (timer_create): Likewise.
54743         [XPG3 || XPG4] (timer_delete): Likewise.
54744         [XPG3 || XPG4] (timer_gettime): Likewise.
54745         [XPG3 || XPG4] (timer_getoverrun): Likewise.
54746         [XPG3 || XPG4] (timer_settime): Likewise.
54747         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
54748         [XPG3 || XPG4] (getlogin_r): Likewise.
54749         [XPG3 || XPG4] (pread): Likewise.
54750         [XPG3 || XPG4] (pthread_atfork): Likewise.
54751         [XPG3 || XPG4] (pwrite): Likewise.
54752
54753         [BZ #14835]
54754         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
54755         <bits/siginfo.h>.
54756
54757 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
54758
54759         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
54760         finalizing MALLSTREAM.
54761
54762         * sysdeps/mach/hurd/syncfs.c: New file.
54763
54764 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
54765
54766         [BZ #14719]
54767         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
54768         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
54769         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
54770         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
54771         (_nss_dns_gethostbyname4_r): Likewise.
54772         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
54773         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
54774
54775 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
54776
54777         [BZ #13763]
54778         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
54779
54780 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
54781
54782         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
54783         * elf/cache.c (print_entry): Print ",AArch64" for
54784         FLAG_AARCH64_LIB64
54785
54786         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
54787         * elf/cache.c (print_entry): Print ",hard-float" for
54788         FLAG_ARM_LIBHF.
54789
54790 2012-11-18  David S. Miller  <davem@davemloft.net>
54791
54792         With help from Joseph Myers.
54793         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
54794         cutoff to 2**-13.
54795         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
54796         cutoff to 2**-25.
54797         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
54798         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
54799         small.
54800         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
54801         * math/libm-test.inc (y0_test): New tests.
54802         (y1_test): New tests.
54803         * sysdeps/i386/fpu/libm-test-ulps: Update.
54804         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
54805         * sysdeps/sparc/fpu/libm-test-ulps: Update.
54806
54807 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
54808
54809         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
54810         64-bit targets.
54811         * configure: Regenerated.
54812
54813 2012-11-17  David S. Miller  <davem@davemloft.net>
54814
54815         [BZ #14811]
54816         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
54817         nonzero exponents with absolute value below 0x1p-128 to +/-
54818         0x1p-128.
54819
54820 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
54821
54822         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
54823
54824         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
54825
54826         * posix/getconf-speclist.c: New file.
54827         * posix/posix-envs.def: Likewise.
54828         * posix/confstr.c (START_ENV_GROUP): New macro.
54829         (END_ENV_GROUP): Likewise.
54830         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54831         (KNOWN_PRESENT_ENV_STRING): Likewise.
54832         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54833         (UNKNOWN_ENVIRONMENT): Likewise.
54834         (confstr): Include posix-envs.def instead of handling
54835         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
54836         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
54837         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
54838         (END_ENV_GROUP): Likewise.
54839         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
54840         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54841         (UNKNOWN_ENVIRONMENT): Likewise.
54842         (__sysconf): Include posix-envs.def instead of handling associated
54843         cases directly here.
54844         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
54845         preprocessing getconf-speclist.c rather than running getconf or
54846         generating empty file.
54847
54848 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
54849
54850         * scripts/check-local-headers.sh: Ignore 'mach' headers.
54851
54852 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
54853
54854         [BZ #14672]
54855         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
54856
54857 2012-11-16  David S. Miller  <davem@davemloft.net>
54858
54859         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
54860         smaller than LDBL_EPSILON/2.0L, just return xm1.
54861
54862 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
54863
54864         * elf/tst-array1.c (init): Set constructor priority to 1000.
54865         (fini): Set destructor priority to 1000.
54866         * elf/tst-array2dep.c: Likewise.
54867
54868 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54869
54870         [BZ #11741]
54871         * libio/fileops.c (_IO_new_file_write): Correctly return error.
54872         (_IO_new_file_xsputn): Also return EOF if none of the input
54873         data was written when overflow failed.
54874         * libio/iopadn.c (_IO_padn): Likewise.
54875         * libio/iowpadn.c (_IO_wpadn): Likewise.
54876         * stdio-common/tst-put-error.c: Add copyright notice.
54877         (do_test): Add case for printing padded string.
54878         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
54879         _IO_padn returned error.
54880         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
54881         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
54882         return EOF.
54883
54884 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
54885
54886         * libio/libioP.h: Add comment note that the references to C++
54887         bits are now obsolete.
54888
54889 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54890
54891         * math/libm-test.inc (check_complex): Use asprintf.
54892
54893 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
54894
54895         * debug/pcprofiledump.c (print_version): Update copyright year.
54896         * malloc/memusagestat.c (print_version): Likewise.
54897
54898 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
54899
54900         [BZ #14831]
54901         * elf/Makefile (tests): Add tst-audit8.
54902         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
54903         ($(objpfx)tst-audit8.out): New target.
54904         (tst-audit8-ENV): New variable.
54905         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
54906         audit if l_reloc_result is NULL.
54907         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
54908         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
54909         * elf/tst-audit8.c: New file.
54910
54911 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54912
54913         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
54914         * misc/Makefile (CFLAGS-select.c): Define.
54915         * posix/Makefile (CFLAGS-pause.c): Define.
54916
54917 2012-11-13  David S. Miller  <davem@davemloft.net>
54918
54919         * crypt/Makefile: Move test targets after toplevel Rules
54920         inclusion.  Grab any necessary sysdep routines when linking.
54921         * crypt/md5.c (md5_process_block): Remove define, we will always
54922         name it __md5_process_block.
54923         (md5_finish_ctx): Update md5_process_block call.
54924         (md5_stream): Likewise.
54925         (md5_process_bytes): Likewise.
54926         (md5_process_block): Rename to __md5_process_block and move to ...
54927         * crypt/md5-block.c: ... here.
54928         * crypt/sha256.c (sha256_process_block): Move to ...
54929         * crypt/sha256-block.c: ... here.
54930         * crypt/sha512.c (sha512_process_block): Move to ...
54931         * crypt/sha512-block.c: ... here.
54932         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
54933         path.
54934         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
54935         * sysdeps/sparc/sparc64/multiarch/Makefile
54936         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
54937         crypt subdir.
54938         (localedef-aux): Add md5 crypto assembler when in locale subdir.
54939         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
54940         multiarch changes.
54941         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
54942         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
54943         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
54944         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
54945         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
54946         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
54947         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
54948         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
54949         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
54950         file.
54951         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
54952         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
54953         file.
54954         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
54955
54956 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
54957
54958         * timezone/tzselect.ksh: Update from tzcode git revision
54959         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
54960         * timezone/zdump.c: Likewise.
54961         * timezone/zic.c: Likewise.
54962         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
54963         in TZVERSION setting, not $(PKGVERSION).
54964         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
54965         REPORT_BUGS_TO settings.
54966
54967         [BZ #14838]
54968         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
54969         macro.
54970
54971 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
54972
54973         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
54974         detection to immediately after _FP_ROUND().
54975         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
54976         bits are 0.
54977
54978 2012-11-11  David S. Miller  <davem@davemloft.net>
54979
54980         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
54981         inttypes.h
54982         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
54983         __close rather than their public counterparts.
54984
54985 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
54986
54987         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
54988         file.
54989         [UNIX98] (sem_timedwait): Do not expect.
54990         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
54991         [XPG4 || UNIX98] (sockatmark): Do not expect.
54992         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
54993         (clock_getcpuclockid): Do not expect.
54994         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
54995         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
54996         Do not expect.
54997         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
54998         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
54999         [UNIX98] (vwscanf): Likewise.
55000         [UNIX98] (vswscanf): Likewise.
55001
55002 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
55003
55004         * timezone/version.h: Remove file.
55005         * timezone/README: Do not refer to version.h.
55006         * timezone/Makefile ($(objpfx)zic.o): New dependency on
55007         $(objpfx)version.h.
55008         ($(objpfx)zdump.o): Likewise.
55009         ($(objpfx)version.h): New target.
55010
55011         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
55012         2012i.
55013         * timezone/README: Don't mention modification to tzselect.ksh.
55014         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
55015         work on unmodified tzselect.ksh.  Substitute version numbers in
55016         tzselect.ksh.
55017
55018         * Makefile (format-me): Remove.
55019         (INSTALL): Adjust indentation.  Use commands directly instead of
55020         using $(format-me).
55021
55022         * aclocal.m4 (ACX_PKGVERSION): New macro.
55023         (ACX_BUGURL): Likewise.
55024         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
55025         (PKGVERSION): New AC_DEFINE_UNQUOTED.
55026         (REPORT_BUGS_TO): Likewise.
55027         * configure: Regenerated.
55028         * config.h.in (PKGVERSION): New macro.
55029         (REPORT_BUGS_TO): Likewise.
55030         * config.make.in (PKGVERSION): New variable.
55031         (PKGVERSION_TEXI): Likewise.
55032         (REPORT_BUGS_TO): Likewise.
55033         (REPORT_BUGS_TEXI): Likewise.
55034         * Makefile (format-me): Use -I$(common-objpfx)manual.
55035         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
55036         ($(common-objpfx)manual/%): New target.
55037         (manual/%): Remove target.
55038         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
55039         (print_version): Use PKGVERSION.
55040         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
55041         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
55042         and REPORT_BUGS_TO.
55043         ($(objpfx)xtrace): Likewise.
55044         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
55045         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
55046         (print_version): Use PKGVERSION.
55047         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
55048         (do_version): Use PKGVERSION.
55049         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
55050         REPORT_BUGS_TO.
55051         (common-ldd-rewrite): Likewise.
55052         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
55053         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
55054         (print_version): Use PKGVERSION.
55055         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
55056         * elf/pldd.c (argp_program_bug_address): Remove variable.
55057         (more_help): New function.
55058         (argp): Use more_help.
55059         (print_version): Use PKGVERSION.
55060         * elf/sln.c (main): Use PKGVERSION.
55061         (usage): Use REPORT_BUGS_TO.
55062         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
55063         (top level): Use PKGVERSION.
55064         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
55065         (print_version): Use PKGVERSION.
55066         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
55067         (print_version): Use PKGVERSION.
55068         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
55069         (print_version): Use PKGVERSION.
55070         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
55071         (print_version): Use PKGVERSION.
55072         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
55073         (print_version): Use PKGVERSION.
55074         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
55075         (print_version): Use PKGVERSION.
55076         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
55077         and BUGURL.
55078         ($(objpfx)memusage): Likewise.
55079         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
55080         (do_version): Use PKGVERSION.
55081         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
55082         (print_version): Use PKGVERSION.
55083         * malloc/mtrace.pl ($PACKAGE): Remove variable.
55084         ($PKGVERSION): New variable.
55085         ($REPORT_BUGS_TO): Likewise.
55086         (usage): Use $REPORT_BUGS_TO.
55087         (top level): Use $PKGVERSION.
55088         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
55089         ($(objpfx)pkgvers.texi): New rule.
55090         ($(objpfx)stamp-pkgvers): Likewise.
55091         * manual/install.texi: Include pkgvers.texi.
55092         (--with-pkgversion): Document new configure option.
55093         (--with-bugurl): Likewise.
55094         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
55095         than necessarily for this particular distribution.  Use
55096         REPORT_BUGS_TO for where to report bugs.
55097         * INSTALL: Regenerated.
55098         * manual/libc.texinfo: Include pkgvers.texi.
55099         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
55100         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
55101         (print_version): Use PKGVERSION.
55102         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
55103         (print_version): Use PKGVERSION.
55104         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
55105         (print_version): Use PKGVERSION.
55106         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
55107         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
55108         macro.
55109         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
55110         (print_version): Use PKGVERSION.
55111         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
55112         (print_version): Use PKGVERSION.
55113         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
55114         and PKGVERSION.
55115
55116         * timezone/checktab.awk: Update from tzcode 2012i.
55117         * timezone/ialloc.c: Likewise.
55118         * timezone/private.h: Likewise.
55119         * timezone/scheck.c: Likewise.
55120         * timezone/tzfile.h: Likewise.
55121         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
55122         (TZVERSION): Hardcode tzcode version number.
55123         * timezone/zdump.c: Update from tzcode 2012i.
55124         * timezone/zic.c: Likewise.
55125         * timezone/version.h: New file.
55126         * timezone/README: Describe version.h.  Update upstream location.
55127
55128         [BZ #14824]
55129         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
55130         (mktemp): Enable declaration.
55131         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
55132         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
55133         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
55134         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
55135         Likewise.
55136         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
55137         Likewise.
55138         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
55139         Likewise.
55140         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
55141         Likewise.
55142         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
55143         Likewise.
55144         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
55145         Likewise.
55146
55147         [BZ #14821]
55148         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
55149         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
55150         for copies of such integer values.
55151         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
55152         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
55153
55154 2012-11-09  Andreas Jaeger  <aj@suse.de>
55155
55156         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
55157         definitions and declarations that are provided by
55158         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
55159
55160 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55161
55162         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
55163         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
55164         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
55165         definition.
55166
55167 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55168
55169         * elf/elf.h: Update comment before AArch64 relocations.
55170
55171 2012-11-07  David S. Miller  <davem@davemloft.net>
55172
55173         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
55174         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
55175         (__start_context): Declare.
55176         (__makecontext_ret): Delete.
55177         (__makecontext): Hook up __start_context instead of
55178         __makecontext_ret.
55179         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
55180         (sysdep_routines): Add __start_context when in stdlib.
55181
55182 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55183
55184         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
55185         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
55186         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
55187         hardcoded "nm".
55188         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
55189         (READELF): New variable.  Use it instead of hardcoded "readelf".
55190
55191 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
55192
55193         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
55194         * sysdeps/x86/Makefile: Here.
55195         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
55196         * sysdeps/x86/tst-xmmymm.sh: This.
55197
55198 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55199
55200         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
55201         expectations.
55202         [UNIX98] (pthread_barrier_t): Do not expect.
55203         [UNIX98] (pthread_barrierattr_t): Likewise.
55204         [UNIX98] (pthread_spinlock_t): Likewise.
55205         [UNIX98] (pthread_barrier_destroy): Likewise.
55206         [UNIX98] (pthread_barrier_init): Likewise.
55207         [UNIX98] (pthread_barrier_wait): Likewise.
55208         [UNIX98] (pthread_barrierattr_destroy): Likewise.
55209         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
55210         [UNIX98] (pthread_barrierattr_init): Likewise.
55211         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
55212         [UNIX98] (pthread_getcpuclockid): Likewise.
55213         [UNIX98] (pthread_mutex_timedlock): Likewise.
55214         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
55215         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
55216         [UNIX98] (pthread_sigmask): Likewise.
55217         [UNIX98] (pthread_spin_destroy): Likewise.
55218         [UNIX98] (pthread_spin_init): Likewise.
55219         [UNIX98] (pthread_spin_lock): Likewise.
55220         [UNIX98] (pthread_spin_trylock): Likewise.
55221         [UNIX98] (pthread_spin_unlock): Likewise.
55222         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
55223         Do not expect.
55224         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
55225         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
55226         [XPG3 || XPG4] (pthread_cond_t): Likewise.
55227         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
55228         [XPG3 || XPG4] (pthread_key_t): Likewise.
55229         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
55230         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
55231         [XPG3 || XPG4] (pthread_once_t): Likewise.
55232         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
55233         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
55234         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
55235         [XPG3 || XPG4] (pthread_t): Likewise.
55236
55237         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
55238         not expect.
55239         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
55240
55241         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
55242         Change function return type to int.
55243
55244         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
55245         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
55246         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
55247         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
55248         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
55249         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
55250         [!POSIX] (posix_madvise): Likewise.
55251         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
55252         && !UNIX98].
55253         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
55254         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
55255         (mode_t): Likewise.
55256         (posix_mem_offset): Likewise.
55257         (posix_typed_mem_get_info): Likewise.
55258         (posix_typed_mem_open): Likewise.
55259
55260         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
55261         Change condition to [XOPEN2K8].
55262
55263         * conform/conformtest.pl: Preprocess allow-header data with -x c
55264         instead of from stdin.
55265         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
55266         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
55267         [C99-based standards] (cerfc): Likewise.
55268         [C99-based standards] (cexp2): Likewise.
55269         [C99-based standards] (cexpm1): Likewise.
55270         [C99-based standards] (clog10): Likewise.
55271         [C99-based standards] (clog1p): Likewise.
55272         [C99-based standards] (clog2): Likewise.
55273         [C99-based standards] (clgamma): Likewise.
55274         [C99-based standards] (ctgamma): Likewise.
55275         [C99-based standards] (cerff): Likewise.
55276         [C99-based standards] (cerfcf): Likewise.
55277         [C99-based standards] (cexp2f): Likewise.
55278         [C99-based standards] (cexpm1f): Likewise.
55279         [C99-based standards] (clog10f): Likewise.
55280         [C99-based standards] (clog1pf): Likewise.
55281         [C99-based standards] (clog2f): Likewise.
55282         [C99-based standards] (clgammaf): Likewise.
55283         [C99-based standards] (ctgammaf): Likewise.
55284         [C99-based standards] (cerfl): Likewise.
55285         [C99-based standards] (cerfcl): Likewise.
55286         [C99-based standards] (cexp2l): Likewise.
55287         [C99-based standards] (cexpm1l): Likewise.
55288         [C99-based standards] (clog10l): Likewise.
55289         [C99-based standards] (clog1pl): Likewise.
55290         [C99-based standards] (clog2l): Likewise.
55291         [C99-based standards] (clgammal): Likewise.
55292         [C99-based standards] (ctgammal): Likewise.
55293         * conform/data/inttypes.h-data [C99-based standards]: Include
55294         stdint.h-data.  Remove all expectations for stdint.h contents.
55295         [C99-based standards] (PRI*): Do not allow.
55296         [C99-based standards] (SCN*): Likewise.
55297         [C99-based standards] (*_t): Likewise.
55298         [C99-based-standards] (PRId8): Expect macro.
55299         [C99-based-standards] (PRIi8): Likewise.
55300         [C99-based-standards] (PRIo8): Likewise.
55301         [C99-based-standards] (PRIu8): Likewise.
55302         [C99-based-standards] (PRIx8): Likewise.
55303         [C99-based-standards] (PRIX8): Likewise.
55304         [C99-based-standards] (SCNd8): Likewise.
55305         [C99-based-standards] (SCNi8): Likewise.
55306         [C99-based-standards] (SCNo8): Likewise.
55307         [C99-based-standards] (SCNu8): Likewise.
55308         [C99-based-standards] (SCNx8): Likewise.
55309         [C99-based-standards] (PRIdLEAST8): Likewise.
55310         [C99-based-standards] (PRIiLEAST8): Likewise.
55311         [C99-based-standards] (PRIoLEAST8): Likewise.
55312         [C99-based-standards] (PRIuLEAST8): Likewise.
55313         [C99-based-standards] (PRIxLEAST8): Likewise.
55314         [C99-based-standards] (PRIXLEAST8): Likewise.
55315         [C99-based-standards] (SCNdLEAST8): Likewise.
55316         [C99-based-standards] (SCNiLEAST8): Likewise.
55317         [C99-based-standards] (SCNoLEAST8): Likewise.
55318         [C99-based-standards] (SCNuLEAST8): Likewise.
55319         [C99-based-standards] (SCNxLEAST8): Likewise.
55320         [C99-based-standards] (PRIdFAST8): Likewise.
55321         [C99-based-standards] (PRIiFAST8): Likewise.
55322         [C99-based-standards] (PRIoFAST8): Likewise.
55323         [C99-based-standards] (PRIuFAST8): Likewise.
55324         [C99-based-standards] (PRIxFAST8): Likewise.
55325         [C99-based-standards] (PRIXFAST8): Likewise.
55326         [C99-based-standards] (SCNdFAST8): Likewise.
55327         [C99-based-standards] (SCNiFAST8): Likewise.
55328         [C99-based-standards] (SCNoFAST8): Likewise.
55329         [C99-based-standards] (SCNuFAST8): Likewise.
55330         [C99-based-standards] (SCNxFAST8): Likewise.
55331         [C99-based-standards] (PRId16): Likewise.
55332         [C99-based-standards] (PRIi16): Likewise.
55333         [C99-based-standards] (PRIo16): Likewise.
55334         [C99-based-standards] (PRIu16): Likewise.
55335         [C99-based-standards] (PRIx16): Likewise.
55336         [C99-based-standards] (PRIX16): Likewise.
55337         [C99-based-standards] (SCNd16): Likewise.
55338         [C99-based-standards] (SCNi16): Likewise.
55339         [C99-based-standards] (SCNo16): Likewise.
55340         [C99-based-standards] (SCNu16): Likewise.
55341         [C99-based-standards] (SCNx16): Likewise.
55342         [C99-based-standards] (PRIdLEAST16): Likewise.
55343         [C99-based-standards] (PRIiLEAST16): Likewise.
55344         [C99-based-standards] (PRIoLEAST16): Likewise.
55345         [C99-based-standards] (PRIuLEAST16): Likewise.
55346         [C99-based-standards] (PRIxLEAST16): Likewise.
55347         [C99-based-standards] (PRIXLEAST16): Likewise.
55348         [C99-based-standards] (SCNdLEAST16): Likewise.
55349         [C99-based-standards] (SCNiLEAST16): Likewise.
55350         [C99-based-standards] (SCNoLEAST16): Likewise.
55351         [C99-based-standards] (SCNuLEAST16): Likewise.
55352         [C99-based-standards] (SCNxLEAST16): Likewise.
55353         [C99-based-standards] (PRIdFAST16): Likewise.
55354         [C99-based-standards] (PRIiFAST16): Likewise.
55355         [C99-based-standards] (PRIoFAST16): Likewise.
55356         [C99-based-standards] (PRIuFAST16): Likewise.
55357         [C99-based-standards] (PRIxFAST16): Likewise.
55358         [C99-based-standards] (PRIXFAST16): Likewise.
55359         [C99-based-standards] (SCNdFAST16): Likewise.
55360         [C99-based-standards] (SCNiFAST16): Likewise.
55361         [C99-based-standards] (SCNoFAST16): Likewise.
55362         [C99-based-standards] (SCNuFAST16): Likewise.
55363         [C99-based-standards] (SCNxFAST16): Likewise.
55364         [C99-based-standards] (PRId32): Likewise.
55365         [C99-based-standards] (PRIi32): Likewise.
55366         [C99-based-standards] (PRIo32): Likewise.
55367         [C99-based-standards] (PRIu32): Likewise.
55368         [C99-based-standards] (PRIx32): Likewise.
55369         [C99-based-standards] (PRIX32): Likewise.
55370         [C99-based-standards] (SCNd32): Likewise.
55371         [C99-based-standards] (SCNi32): Likewise.
55372         [C99-based-standards] (SCNo32): Likewise.
55373         [C99-based-standards] (SCNu32): Likewise.
55374         [C99-based-standards] (SCNx32): Likewise.
55375         [C99-based-standards] (PRIdLEAST32): Likewise.
55376         [C99-based-standards] (PRIiLEAST32): Likewise.
55377         [C99-based-standards] (PRIoLEAST32): Likewise.
55378         [C99-based-standards] (PRIuLEAST32): Likewise.
55379         [C99-based-standards] (PRIxLEAST32): Likewise.
55380         [C99-based-standards] (PRIXLEAST32): Likewise.
55381         [C99-based-standards] (SCNdLEAST32): Likewise.
55382         [C99-based-standards] (SCNiLEAST32): Likewise.
55383         [C99-based-standards] (SCNoLEAST32): Likewise.
55384         [C99-based-standards] (SCNuLEAST32): Likewise.
55385         [C99-based-standards] (SCNxLEAST32): Likewise.
55386         [C99-based-standards] (PRIdFAST32): Likewise.
55387         [C99-based-standards] (PRIiFAST32): Likewise.
55388         [C99-based-standards] (PRIoFAST32): Likewise.
55389         [C99-based-standards] (PRIuFAST32): Likewise.
55390         [C99-based-standards] (PRIxFAST32): Likewise.
55391         [C99-based-standards] (PRIXFAST32): Likewise.
55392         [C99-based-standards] (SCNdFAST32): Likewise.
55393         [C99-based-standards] (SCNiFAST32): Likewise.
55394         [C99-based-standards] (SCNoFAST32): Likewise.
55395         [C99-based-standards] (SCNuFAST32): Likewise.
55396         [C99-based-standards] (SCNxFAST32): Likewise.
55397         [C99-based-standards] (PRId64): Likewise.
55398         [C99-based-standards] (PRIi64): Likewise.
55399         [C99-based-standards] (PRIo64): Likewise.
55400         [C99-based-standards] (PRIu64): Likewise.
55401         [C99-based-standards] (PRIx64): Likewise.
55402         [C99-based-standards] (PRIX64): Likewise.
55403         [C99-based-standards] (SCNd64): Likewise.
55404         [C99-based-standards] (SCNi64): Likewise.
55405         [C99-based-standards] (SCNo64): Likewise.
55406         [C99-based-standards] (SCNu64): Likewise.
55407         [C99-based-standards] (SCNx64): Likewise.
55408         [C99-based-standards] (PRIdLEAST64): Likewise.
55409         [C99-based-standards] (PRIiLEAST64): Likewise.
55410         [C99-based-standards] (PRIoLEAST64): Likewise.
55411         [C99-based-standards] (PRIuLEAST64): Likewise.
55412         [C99-based-standards] (PRIxLEAST64): Likewise.
55413         [C99-based-standards] (PRIXLEAST64): Likewise.
55414         [C99-based-standards] (SCNdLEAST64): Likewise.
55415         [C99-based-standards] (SCNiLEAST64): Likewise.
55416         [C99-based-standards] (SCNoLEAST64): Likewise.
55417         [C99-based-standards] (SCNuLEAST64): Likewise.
55418         [C99-based-standards] (SCNxLEAST64): Likewise.
55419         [C99-based-standards] (PRIdFAST64): Likewise.
55420         [C99-based-standards] (PRIiFAST64): Likewise.
55421         [C99-based-standards] (PRIoFAST64): Likewise.
55422         [C99-based-standards] (PRIuFAST64): Likewise.
55423         [C99-based-standards] (PRIxFAST64): Likewise.
55424         [C99-based-standards] (PRIXFAST64): Likewise.
55425         [C99-based-standards] (SCNdFAST64): Likewise.
55426         [C99-based-standards] (SCNiFAST64): Likewise.
55427         [C99-based-standards] (SCNoFAST64): Likewise.
55428         [C99-based-standards] (SCNuFAST64): Likewise.
55429         [C99-based-standards] (SCNxFAST64): Likewise.
55430         [C99-based-standards] (PRIdMAX): Likewise.
55431         [C99-based-standards] (PRIiMAX): Likewise.
55432         [C99-based-standards] (PRIoMAX): Likewise.
55433         [C99-based-standards] (PRIuMAX): Likewise.
55434         [C99-based-standards] (PRIxMAX): Likewise.
55435         [C99-based-standards] (PRIXMAX): Likewise.
55436         [C99-based-standards] (SCNdMAX): Likewise.
55437         [C99-based-standards] (SCNiMAX): Likewise.
55438         [C99-based-standards] (SCNoMAX): Likewise.
55439         [C99-based-standards] (SCNuMAX): Likewise.
55440         [C99-based-standards] (SCNxMAX): Likewise.
55441         [C99-based-standards] (PRIdPTR): Likewise.
55442         [C99-based-standards] (PRIiPTR): Likewise.
55443         [C99-based-standards] (PRIoPTR): Likewise.
55444         [C99-based-standards] (PRIuPTR): Likewise.
55445         [C99-based-standards] (PRIxPTR): Likewise.
55446         [C99-based-standards] (PRIXPTR): Likewise.
55447         [C99-based-standards] (SCNdPTR): Likewise.
55448         [C99-based-standards] (SCNiPTR): Likewise.
55449         [C99-based-standards] (SCNoPTR): Likewise.
55450         [C99-based-standards] (SCNuPTR): Likewise.
55451         [C99-based-standards] (SCNxPTR): Likewise.
55452         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
55453         allow.
55454         * conform/data/stdint.h-data: Update comments to clarify
55455         requirements.
55456         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
55457         type.
55458         [C99-based standards] (INT8_MAX): Likewise.
55459         [C99-based standards] (INT16_MIN): Likewise.
55460         [C99-based standards] (INT16_MAX): Likewise.
55461         [C99-based standards] (INT32_MIN): Likewise.
55462         [C99-based standards] (INT32_MAX): Likewise.
55463         [C99-based standards] (INT64_MIN): Likewise.
55464         [C99-based standards] (INT64_MAX): Likewise.
55465         [C99-based standards] (UINT8_MAX): Likewise.
55466         [C99-based standards] (UINT16_MAX): Likewise.
55467         [C99-based standards] (UINT32_MAX): Likewise.
55468         [C99-based standards] (UINT64_MAX): Likewise.
55469         [C99-based standards] (INT_LEAST8_MIN): Likewise.
55470         [C99-based standards] (INT_LEAST8_MAX): Likewise.
55471         [C99-based standards] (INT_LEAST16_MIN): Likewise.
55472         [C99-based standards] (INT_LEAST16_MAX): Likewise.
55473         [C99-based standards] (INT_LEAST32_MIN): Likewise.
55474         [C99-based standards] (INT_LEAST32_MAX): Likewise.
55475         [C99-based standards] (INT_LEAST64_MIN): Likewise.
55476         [C99-based standards] (INT_LEAST64_MAX): Likewise.
55477         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
55478         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
55479         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
55480         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
55481         [C99-based standards] (INT_FAST8_MIN): Likewise.
55482         [C99-based standards] (INT_FAST8_MAX): Likewise.
55483         [C99-based standards] (INT_FAST16_MIN): Likewise.
55484         [C99-based standards] (INT_FAST16_MAX): Likewise.
55485         [C99-based standards] (INT_FAST32_MIN): Likewise.
55486         [C99-based standards] (INT_FAST32_MAX): Likewise.
55487         [C99-based standards] (INT_FAST64_MIN): Likewise.
55488         [C99-based standards] (INT_FAST64_MAX): Likewise.
55489         [C99-based standards] (UINT_FAST8_MAX): Likewise.
55490         [C99-based standards] (UINT_FAST16_MAX): Likewise.
55491         [C99-based standards] (UINT_FAST32_MAX): Likewise.
55492         [C99-based standards] (UINT_FAST64_MAX): Likewise.
55493         [C99-based standards] (INTPTR_MIN): Likewise.
55494         [C99-based standards] (INTPTR_MAX): Likewise.
55495         [C99-based standards] (UINTPTR_MAX): Likewise.
55496         [C99-based standards] (INTMAX_MIN): Likewise.
55497         [C99-based standards] (INTMAX_MAX): Likewise.
55498         [C99-based standards] (UINTMAX_MAX): Likewise.
55499         [C99-based standards] (PTRDIFF_MIN): Likewise.
55500         [C99-based standards] (PTRDIFF_MAX): Likewise.
55501         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
55502         [C99-based standards] (SIZE_MAX): Likewise.
55503         [C99-based standards] (WCHAR_MAX): Likewise.
55504         [C99-based standards] (WINT_MAX): Likewise.
55505         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
55506         constraint on value.
55507         [C99-based standards] (WCHAR_MIN): Likewise.
55508         [C99-based standards] (WINT_MIN): Likewise.
55509         [C99-based standards] (*_t): Allow.
55510         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
55511         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
55512         Include math.h-data and complex.h-data.  Remove all expectations
55513         of math.h and complex.h contents.
55514         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
55515         at end of line.
55516         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
55517         (struct tm): Expect tag.
55518         [C99-based-standards] (wcstof): Expect function.
55519         [C99-based-standards] (wcstold): Likewise.
55520         [C99-based-standards] (wcstoll): Likewise.
55521         [C99-based-standards] (wcstoull): Likewise.
55522         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
55523         macro-int-constant.  Specify type.
55524         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
55525         constraint on value.
55526         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55527         Specify type.
55528         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
55529         Specify value.
55530         [ISO C standards]: Do not allow headers.
55531         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
55532         wcs[abcdefghijklmnopqrstuvwxyz]*.
55533         [ISO C standards] (*_t): Do not allow.
55534         * conform/data/wctype.h-data [C99-based standards] (iswblank):
55535         Expect function.
55536         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
55537         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
55538         Specify type.
55539         [ISO C standards]: Do not allow headers.
55540         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
55541         is[abcdefghijklmnopqrstuvwxyz]*.
55542         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
55543         to[abcdefghijklmnopqrstuvwxyz]*.
55544         [ISO C standards] (*_t): Do not allow.
55545         * conform/data/stdalign.h-data: New file.
55546         * conform/data/stdbool.h-data: Likewise.
55547         * conform/data/stdnoreturn.h-data: Likewise.
55548
55549 2012-11-07  Roland McGrath  <roland@hack.frob.com>
55550
55551         [BZ #14815]
55552         * manual/filesys.texi (Directory Entries): Typo fix.
55553         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
55554
55555 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
55556
55557         * elf/elf.h (EM_AARCH64): New macro.
55558         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
55559         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
55560         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
55561         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
55562         (R_AARCH64_TLSDESC): Likewise.
55563         (NT_ARM_TLS): Likewise.
55564         (NT_ARM_HW_BREAK): Likewise.
55565         (NT_ARM_HW_WATCH): Likewise.
55566
55567 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55568
55569         [BZ #14811]
55570         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
55571         (__ieee754_powl): Saturate nonzero exponents with absolute value
55572         below 0x1p-79 to +/- 0x1p-79.
55573         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
55574         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
55575         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
55576         nonzero exponents with absolute value below 0x1p-32 to +/-
55577         0x1p-32.
55578         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
55579         (__ieee754_powl): Saturate nonzero exponents with absolute value
55580         below 0x1p-79 to +/- 0x1p-79.
55581         * math/libm-test.inc (pow_test): Add more tests.
55582
55583 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55584
55585         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
55586         _dl_s390_cap_flags with kernel. Increase string length.
55587         (_dl_s390_platforms): Add z196 and zEC12.
55588
55589 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
55590
55591         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
55592         Change XOPEN21K to XOPEN2K.
55593
55594 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
55595
55596         * string/memmove.c: Use memcpy when possible.
55597
55598 2012-11-06  Andreas Jaeger  <aj@suse.de>
55599
55600         * po/eo.po: Update from translation team.
55601
55602 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
55603
55604         [BZ #14793]
55605         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
55606         exponent and small x and y exponents, scale x or y up.  Increase
55607         by 2 the exponent used in scaling up.
55608         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55609         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55610         * math/libm-test.inc (fma_test): Add more tests.
55611         (fma_test_towardzero): Likewise.
55612         (fma_test_downward): Likewise.
55613         (fma_test_upward): Likewise.
55614
55615 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
55616
55617         [BZ #14805]
55618         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
55619         fenv_t *.
55620
55621         [BZ #14801]
55622         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
55623         namespace for names of struct fields.
55624         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
55625         fenv_t fields.
55626         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
55627         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
55628
55629 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
55630
55631         [BZ #3665]
55632         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
55633
55634 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55635
55636         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
55637         PTR_DEMANGLE.
55638
55639         [BZ #5246]
55640         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
55641         PTR_DEMANGLE.
55642
55643 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
55644
55645         [BZ #14797]
55646         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
55647         definitely overflow as x * y not x * y + z.
55648         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
55649         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
55650         * math/libm-test.inc (fma_test): Add more tests.
55651         (fma_test_towardzero): Likewise.
55652         (fma_test_downward): Likewise.
55653         (fma_test_upward): Likewise.
55654
55655 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
55656
55657         [BZ #157]
55658
55659         * include/stub-tag.h: Remove file.
55660         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
55661         '#include' of it.
55662         * manual/maint.texi (Porting): Don't reference it.
55663         * Makerules ($(objpfx)stubs): Likewise.
55664         * dirent/closedir.c: Don't include <stub-tag.h>.
55665         * dirent/dirfd.c: Likewise.
55666         * dirent/fdopendir.c: Likewise.
55667         * dirent/getdents.c: Likewise.
55668         * dirent/getdents64.c: Likewise.
55669         * dirent/opendir.c: Likewise.
55670         * dirent/readdir.c: Likewise.
55671         * dirent/readdir64.c: Likewise.
55672         * dirent/readdir64_r.c: Likewise.
55673         * dirent/readdir_r.c: Likewise.
55674         * dirent/rewinddir.c: Likewise.
55675         * dirent/seekdir.c: Likewise.
55676         * dirent/telldir.c: Likewise.
55677         * gmon/profil.c: Likewise.
55678         * grp/setgroups.c: Likewise.
55679         * inet/if_index.c: Likewise.
55680         * io/access.c: Likewise.
55681         * io/chdir.c: Likewise.
55682         * io/chmod.c: Likewise.
55683         * io/chown.c: Likewise.
55684         * io/close.c: Likewise.
55685         * io/dup.c: Likewise.
55686         * io/dup2.c: Likewise.
55687         * io/dup3.c: Likewise.
55688         * io/euidaccess.c: Likewise.
55689         * io/faccessat.c: Likewise.
55690         * io/fchdir.c: Likewise.
55691         * io/fchmod.c: Likewise.
55692         * io/fchmodat.c: Likewise.
55693         * io/fchown.c: Likewise.
55694         * io/fchownat.c: Likewise.
55695         * io/fcntl.c: Likewise.
55696         * io/flock.c: Likewise.
55697         * io/fstatfs.c: Likewise.
55698         * io/fstatfs64.c: Likewise.
55699         * io/fstatvfs.c: Likewise.
55700         * io/fstatvfs64.c: Likewise.
55701         * io/futimens.c: Likewise.
55702         * io/fxstat.c: Likewise.
55703         * io/fxstat64.c: Likewise.
55704         * io/fxstatat.c: Likewise.
55705         * io/fxstatat64.c: Likewise.
55706         * io/getcwd.c: Likewise.
55707         * io/isatty.c: Likewise.
55708         * io/lchmod.c: Likewise.
55709         * io/lchown.c: Likewise.
55710         * io/link.c: Likewise.
55711         * io/linkat.c: Likewise.
55712         * io/lseek.c: Likewise.
55713         * io/lseek64.c: Likewise.
55714         * io/lxstat64.c: Likewise.
55715         * io/mkdir.c: Likewise.
55716         * io/mkdirat.c: Likewise.
55717         * io/mkfifo.c: Likewise.
55718         * io/mkfifoat.c: Likewise.
55719         * io/open.c: Likewise.
55720         * io/open64.c: Likewise.
55721         * io/openat.c: Likewise.
55722         * io/openat64.c: Likewise.
55723         * io/pipe.c: Likewise.
55724         * io/pipe2.c: Likewise.
55725         * io/poll.c: Likewise.
55726         * io/posix_fadvise.c: Likewise.
55727         * io/posix_fadvise64.c: Likewise.
55728         * io/posix_fallocate.c: Likewise.
55729         * io/posix_fallocate64.c: Likewise.
55730         * io/read.c: Likewise.
55731         * io/readlink.c: Likewise.
55732         * io/readlinkat.c: Likewise.
55733         * io/rmdir.c: Likewise.
55734         * io/sendfile.c: Likewise.
55735         * io/sendfile64.c: Likewise.
55736         * io/statfs.c: Likewise.
55737         * io/statfs64.c: Likewise.
55738         * io/statvfs.c: Likewise.
55739         * io/statvfs64.c: Likewise.
55740         * io/symlink.c: Likewise.
55741         * io/symlinkat.c: Likewise.
55742         * io/ttyname.c: Likewise.
55743         * io/ttyname_r.c: Likewise.
55744         * io/umask.c: Likewise.
55745         * io/unlink.c: Likewise.
55746         * io/unlinkat.c: Likewise.
55747         * io/utime.c: Likewise.
55748         * io/utimensat.c: Likewise.
55749         * io/write.c: Likewise.
55750         * io/xmknod.c: Likewise.
55751         * io/xmknodat.c: Likewise.
55752         * io/xstat.c: Likewise.
55753         * io/xstat64.c: Likewise.
55754         * login/getpt.c: Likewise.
55755         * login/grantpt.c: Likewise.
55756         * login/unlockpt.c: Likewise.
55757         * math/e_acoshl.c: Likewise.
55758         * math/e_acosl.c: Likewise.
55759         * math/e_asinl.c: Likewise.
55760         * math/e_atan2l.c: Likewise.
55761         * math/e_atanhl.c: Likewise.
55762         * math/e_coshl.c: Likewise.
55763         * math/e_expl.c: Likewise.
55764         * math/e_fmodl.c: Likewise.
55765         * math/e_gammal_r.c: Likewise.
55766         * math/e_hypotl.c: Likewise.
55767         * math/e_j0l.c: Likewise.
55768         * math/e_j1l.c: Likewise.
55769         * math/e_jnl.c: Likewise.
55770         * math/e_lgammal_r.c: Likewise.
55771         * math/e_log10l.c: Likewise.
55772         * math/e_log2l.c: Likewise.
55773         * math/e_logl.c: Likewise.
55774         * math/e_powl.c: Likewise.
55775         * math/e_rem_pio2l.c: Likewise.
55776         * math/e_sinhl.c: Likewise.
55777         * math/e_sqrtl.c: Likewise.
55778         * math/fclrexcpt.c: Likewise.
55779         * math/fedisblxcpt.c: Likewise.
55780         * math/feenablxcpt.c: Likewise.
55781         * math/fegetenv.c: Likewise.
55782         * math/fegetexcept.c: Likewise.
55783         * math/fegetround.c: Likewise.
55784         * math/feholdexcpt.c: Likewise.
55785         * math/fesetenv.c: Likewise.
55786         * math/fesetround.c: Likewise.
55787         * math/feupdateenv.c: Likewise.
55788         * math/fgetexcptflg.c: Likewise.
55789         * math/fraiseexcpt.c: Likewise.
55790         * math/fsetexcptflg.c: Likewise.
55791         * math/ftestexcept.c: Likewise.
55792         * math/k_cosl.c: Likewise.
55793         * math/k_rem_pio2l.c: Likewise.
55794         * math/k_sinl.c: Likewise.
55795         * math/k_tanl.c: Likewise.
55796         * math/s_asinhl.c: Likewise.
55797         * math/s_atanl.c: Likewise.
55798         * math/s_cbrtl.c: Likewise.
55799         * math/s_erfl.c: Likewise.
55800         * math/s_expm1l.c: Likewise.
55801         * math/s_log1pl.c: Likewise.
55802         * math/s_tanhl.c: Likewise.
55803         * misc/acct.c: Likewise.
55804         * misc/brk.c: Likewise.
55805         * misc/chflags.c: Likewise.
55806         * misc/chroot.c: Likewise.
55807         * misc/fchflags.c: Likewise.
55808         * misc/fgetxattr.c: Likewise.
55809         * misc/flistxattr.c: Likewise.
55810         * misc/fremovexattr.c: Likewise.
55811         * misc/fsetxattr.c: Likewise.
55812         * misc/fsync.c: Likewise.
55813         * misc/ftruncate.c: Likewise.
55814         * misc/futimes.c: Likewise.
55815         * misc/futimesat.c: Likewise.
55816         * misc/getdomain.c: Likewise.
55817         * misc/getdtsz.c: Likewise.
55818         * misc/gethostid.c: Likewise.
55819         * misc/gethostname.c: Likewise.
55820         * misc/getloadavg.c: Likewise.
55821         * misc/getpagesize.c: Likewise.
55822         * misc/getsysstats.c: Likewise.
55823         * misc/getxattr.c: Likewise.
55824         * misc/gtty.c: Likewise.
55825         * misc/ioctl.c: Likewise.
55826         * misc/lgetxattr.c: Likewise.
55827         * misc/listxattr.c: Likewise.
55828         * misc/llistxattr.c: Likewise.
55829         * misc/lremovexattr.c: Likewise.
55830         * misc/lsetxattr.c: Likewise.
55831         * misc/lutimes.c: Likewise.
55832         * misc/madvise.c: Likewise.
55833         * misc/mincore.c: Likewise.
55834         * misc/mlock.c: Likewise.
55835         * misc/mlockall.c: Likewise.
55836         * misc/mmap.c: Likewise.
55837         * misc/mprotect.c: Likewise.
55838         * misc/msync.c: Likewise.
55839         * misc/munlock.c: Likewise.
55840         * misc/munlockall.c: Likewise.
55841         * misc/munmap.c: Likewise.
55842         * misc/preadv.c: Likewise.
55843         * misc/preadv64.c: Likewise.
55844         * misc/ptrace.c: Likewise.
55845         * misc/pwritev.c: Likewise.
55846         * misc/pwritev64.c: Likewise.
55847         * misc/readv.c: Likewise.
55848         * misc/reboot.c: Likewise.
55849         * misc/remap_file_pages.c: Likewise.
55850         * misc/removexattr.c: Likewise.
55851         * misc/revoke.c: Likewise.
55852         * misc/select.c: Likewise.
55853         * misc/setdomain.c: Likewise.
55854         * misc/setegid.c: Likewise.
55855         * misc/seteuid.c: Likewise.
55856         * misc/sethostid.c: Likewise.
55857         * misc/sethostname.c: Likewise.
55858         * misc/setregid.c: Likewise.
55859         * misc/setreuid.c: Likewise.
55860         * misc/setxattr.c: Likewise.
55861         * misc/sstk.c: Likewise.
55862         * misc/stty.c: Likewise.
55863         * misc/swapoff.c: Likewise.
55864         * misc/swapon.c: Likewise.
55865         * misc/sync.c: Likewise.
55866         * misc/syncfs.c: Likewise.
55867         * misc/syscall.c: Likewise.
55868         * misc/truncate.c: Likewise.
55869         * misc/ualarm.c: Likewise.
55870         * misc/usleep.c: Likewise.
55871         * misc/ustat.c: Likewise.
55872         * misc/utimes.c: Likewise.
55873         * misc/vhangup.c: Likewise.
55874         * misc/writev.c: Likewise.
55875         * posix/_exit.c: Likewise.
55876         * posix/alarm.c: Likewise.
55877         * posix/execve.c: Likewise.
55878         * posix/fexecve.c: Likewise.
55879         * posix/fork.c: Likewise.
55880         * posix/fpathconf.c: Likewise.
55881         * posix/getaddrinfo.c: Likewise.
55882         * posix/getegid.c: Likewise.
55883         * posix/geteuid.c: Likewise.
55884         * posix/getgid.c: Likewise.
55885         * posix/getgroups.c: Likewise.
55886         * posix/getlogin.c: Likewise.
55887         * posix/getlogin_r.c: Likewise.
55888         * posix/getpgid.c: Likewise.
55889         * posix/getpid.c: Likewise.
55890         * posix/getppid.c: Likewise.
55891         * posix/getresgid.c: Likewise.
55892         * posix/getresuid.c: Likewise.
55893         * posix/getsid.c: Likewise.
55894         * posix/getuid.c: Likewise.
55895         * posix/glob64.c: Likewise.
55896         * posix/nanosleep.c: Likewise.
55897         * posix/pathconf.c: Likewise.
55898         * posix/pause.c: Likewise.
55899         * posix/posix_madvise.c: Likewise.
55900         * posix/pread.c: Likewise.
55901         * posix/pread64.c: Likewise.
55902         * posix/pwrite.c: Likewise.
55903         * posix/pwrite64.c: Likewise.
55904         * posix/sched_getaffinity.c: Likewise.
55905         * posix/sched_getp.c: Likewise.
55906         * posix/sched_gets.c: Likewise.
55907         * posix/sched_primax.c: Likewise.
55908         * posix/sched_primin.c: Likewise.
55909         * posix/sched_rr_gi.c: Likewise.
55910         * posix/sched_setaffinity.c: Likewise.
55911         * posix/sched_setp.c: Likewise.
55912         * posix/sched_sets.c: Likewise.
55913         * posix/sched_yield.c: Likewise.
55914         * posix/setgid.c: Likewise.
55915         * posix/setlogin.c: Likewise.
55916         * posix/setpgid.c: Likewise.
55917         * posix/setresgid.c: Likewise.
55918         * posix/setresuid.c: Likewise.
55919         * posix/setsid.c: Likewise.
55920         * posix/setuid.c: Likewise.
55921         * posix/sleep.c: Likewise.
55922         * posix/spawni.c: Likewise.
55923         * posix/sysconf.c: Likewise.
55924         * posix/times.c: Likewise.
55925         * posix/wait.c: Likewise.
55926         * posix/wait3.c: Likewise.
55927         * posix/wait4.c: Likewise.
55928         * posix/waitpid.c: Likewise.
55929         * resolv/gai_sigqueue.c: Likewise.
55930         * resource/getpriority.c: Likewise.
55931         * resource/getrlimit.c: Likewise.
55932         * resource/getrusage.c: Likewise.
55933         * resource/nice.c: Likewise.
55934         * resource/setpriority.c: Likewise.
55935         * resource/setrlimit.c: Likewise.
55936         * resource/ulimit.c: Likewise.
55937         * rt/aio_cancel.c: Likewise.
55938         * rt/aio_fsync.c: Likewise.
55939         * rt/aio_read.c: Likewise.
55940         * rt/aio_sigqueue.c: Likewise.
55941         * rt/aio_suspend.c: Likewise.
55942         * rt/aio_write.c: Likewise.
55943         * rt/clock_getres.c: Likewise.
55944         * rt/clock_gettime.c: Likewise.
55945         * rt/clock_nanosleep.c: Likewise.
55946         * rt/clock_settime.c: Likewise.
55947         * rt/lio_listio.c: Likewise.
55948         * rt/mq_close.c: Likewise.
55949         * rt/mq_getattr.c: Likewise.
55950         * rt/mq_notify.c: Likewise.
55951         * rt/mq_open.c: Likewise.
55952         * rt/mq_receive.c: Likewise.
55953         * rt/mq_send.c: Likewise.
55954         * rt/mq_setattr.c: Likewise.
55955         * rt/mq_timedreceive.c: Likewise.
55956         * rt/mq_timedsend.c: Likewise.
55957         * rt/mq_unlink.c: Likewise.
55958         * rt/shm_open.c: Likewise.
55959         * rt/shm_unlink.c: Likewise.
55960         * rt/timer_create.c: Likewise.
55961         * rt/timer_delete.c: Likewise.
55962         * rt/timer_getoverr.c: Likewise.
55963         * rt/timer_gettime.c: Likewise.
55964         * rt/timer_settime.c: Likewise.
55965         * setjmp/__longjmp.c: Likewise.
55966         * setjmp/setjmp.c: Likewise.
55967         * signal/kill.c: Likewise.
55968         * signal/killpg.c: Likewise.
55969         * signal/raise.c: Likewise.
55970         * signal/sigaction.c: Likewise.
55971         * signal/sigaltstack.c: Likewise.
55972         * signal/sigblock.c: Likewise.
55973         * signal/sigignore.c: Likewise.
55974         * signal/sigintr.c: Likewise.
55975         * signal/signal.c: Likewise.
55976         * signal/sigpause.c: Likewise.
55977         * signal/sigpending.c: Likewise.
55978         * signal/sigqueue.c: Likewise.
55979         * signal/sigreturn.c: Likewise.
55980         * signal/sigset.c: Likewise.
55981         * signal/sigsetmask.c: Likewise.
55982         * signal/sigstack.c: Likewise.
55983         * signal/sigsuspend.c: Likewise.
55984         * signal/sigtimedwait.c: Likewise.
55985         * signal/sigvec.c: Likewise.
55986         * signal/sigwait.c: Likewise.
55987         * signal/sigwaitinfo.c: Likewise.
55988         * signal/sysv_signal.c: Likewise.
55989         * socket/accept.c: Likewise.
55990         * socket/accept4.c: Likewise.
55991         * socket/bind.c: Likewise.
55992         * socket/connect.c: Likewise.
55993         * socket/getpeername.c: Likewise.
55994         * socket/getsockname.c: Likewise.
55995         * socket/getsockopt.c: Likewise.
55996         * socket/isfdtype.c: Likewise.
55997         * socket/listen.c: Likewise.
55998         * socket/recv.c: Likewise.
55999         * socket/recvfrom.c: Likewise.
56000         * socket/recvmsg.c: Likewise.
56001         * socket/send.c: Likewise.
56002         * socket/sendmsg.c: Likewise.
56003         * socket/sendto.c: Likewise.
56004         * socket/setsockopt.c: Likewise.
56005         * socket/shutdown.c: Likewise.
56006         * socket/sockatmark.c: Likewise.
56007         * socket/socket.c: Likewise.
56008         * socket/socketpair.c: Likewise.
56009         * stdio-common/ctermid.c: Likewise.
56010         * stdio-common/cuserid.c: Likewise.
56011         * stdio-common/remove.c: Likewise.
56012         * stdio-common/rename.c: Likewise.
56013         * stdio-common/renameat.c: Likewise.
56014         * stdio-common/tempname.c: Likewise.
56015         * stdlib/getcontext.c: Likewise.
56016         * stdlib/makecontext.c: Likewise.
56017         * stdlib/setcontext.c: Likewise.
56018         * stdlib/swapcontext.c: Likewise.
56019         * stdlib/system.c: Likewise.
56020         * streams/fattach.c: Likewise.
56021         * streams/fdetach.c: Likewise.
56022         * streams/getmsg.c: Likewise.
56023         * streams/getpmsg.c: Likewise.
56024         * streams/putmsg.c: Likewise.
56025         * streams/putpmsg.c: Likewise.
56026         * sysdeps/unix/bsd/getpt.c: Likewise.
56027         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
56028         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
56029         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
56030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
56031         Likewise.
56032         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
56033         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
56034         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
56035         * sysvipc/msgctl.c: Likewise.
56036         * sysvipc/msgget.c: Likewise.
56037         * sysvipc/msgrcv.c: Likewise.
56038         * sysvipc/msgsnd.c: Likewise.
56039         * sysvipc/semctl.c: Likewise.
56040         * sysvipc/semget.c: Likewise.
56041         * sysvipc/semop.c: Likewise.
56042         * sysvipc/semtimedop.c: Likewise.
56043         * sysvipc/shmat.c: Likewise.
56044         * sysvipc/shmctl.c: Likewise.
56045         * sysvipc/shmdt.c: Likewise.
56046         * sysvipc/shmget.c: Likewise.
56047         * termios/tcdrain.c: Likewise.
56048         * termios/tcflow.c: Likewise.
56049         * termios/tcflush.c: Likewise.
56050         * termios/tcgetattr.c: Likewise.
56051         * termios/tcgetpgrp.c: Likewise.
56052         * termios/tcsendbrk.c: Likewise.
56053         * termios/tcsetattr.c: Likewise.
56054         * termios/tcsetpgrp.c: Likewise.
56055         * time/adjtime.c: Likewise.
56056         * time/clock.c: Likewise.
56057         * time/getitimer.c: Likewise.
56058         * time/gettimeofday.c: Likewise.
56059         * time/setitimer.c: Likewise.
56060         * time/settimeofday.c: Likewise.
56061         * time/stime.c: Likewise.
56062         * time/time.c: Likewise.
56063
56064 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
56065
56066         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
56067         /usr/old/bin.
56068
56069         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
56070         instead of spaces.
56071         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
56072
56073 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
56074
56075         [BZ #14796]
56076         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
56077         FE_TONEAREST before applying Dekker multiplication and Knuth
56078         addition.  Clear inexact exceptions and check for exact zero
56079         results afterwards.
56080         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56081         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
56082         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56083         * math/libm-test.inc (fma_test): Add more tests.
56084         (fma_test_towardzero): Likewise.
56085         (fma_test_downward): Likewise.
56086         (fma_test_upward): Likewise.
56087         * sysdeps/generic/math_private.h (default_libc_fesetround): New
56088         function.
56089         (libc_fesetround): New macro.
56090         (libc_fesetroundf): Likewise.
56091         (libc_fesetroundl): Likewise.
56092         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
56093         function.
56094         (libc_fesetround_387): Likewise.
56095         (libc_fesetroundf): New macro.
56096         (libc_fesetround): Likewise.
56097         (libc_fesetroundl): Likewise.
56098         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
56099         function.
56100         (libc_fesetroundf): New macro.
56101         (libc_fesetround): Likewise.
56102         (libc_fesetroundl): Likewise.
56103         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
56104         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
56105         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
56106         libm_hidden_ver.
56107         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
56108         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
56109         libm_hidden_def.
56110         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
56111         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
56112         libm_hidden_ver.
56113         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
56114         libm_hidden_def.
56115
56116         [BZ #3439]
56117         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
56118         integer constant usable in #if and use that to give value to enum
56119         constant.
56120         (FE_DIVBYZERO): Likewise.
56121         (FE_UNDERFLOW): Likewise.
56122         (FE_OVERFLOW): Likewise.
56123         (FE_INVALID): Likewise.
56124         (FE_INVALID_SNAN): Likewise.
56125         (FE_INVALID_ISI): Likewise.
56126         (FE_INVALID_IDI): Likewise.
56127         (FE_INVALID_ZDZ): Likewise.
56128         (FE_INVALID_IMZ): Likewise.
56129         (FE_INVALID_COMPARE): Likewise.
56130         (FE_INVALID_SOFTWARE): Likewise.
56131         (FE_INVALID_SQRT): Likewise.
56132         (FE_INVALID_INTEGER_CONVERSION): Likewise.
56133         (FE_TONEAREST): Likewise.
56134         (FE_TOWARDZERO): Likewise.
56135         (FE_UPWARD): Likewise.
56136         (FE_DOWNWARD): Likewise.
56137         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
56138         (FE_DIVBYZERO): Likewise.
56139         (FE_OVERFLOW): Likewise.
56140         (FE_UNDERFLOW): Likewise.
56141         (FE_INEXACT): Likewise.
56142         (FE_TONEAREST): Likewise.
56143         (FE_DOWNWARD): Likewise.
56144         (FE_UPWARD): Likewise.
56145         (FE_TOWARDZERO): Likewise.
56146         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
56147         (FE_UNDERFLOW): Likewise.
56148         (FE_OVERFLOW): Likewise.
56149         (FE_DIVBYZERO): Likewise.
56150         (FE_INVALID): Likewise.
56151         (FE_TONEAREST): Likewise.
56152         (FE_TOWARDZERO): Likewise.
56153         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
56154         (FE_OVERFLOW): Likewise.
56155         (FE_UNDERFLOW): Likewise.
56156         (FE_DIVBYZERO): Likewise.
56157         (FE_INEXACT): Likewise.
56158         (FE_TONEAREST): Likewise.
56159         (FE_TOWARDZERO): Likewise.
56160         (FE_UPWARD): Likewise.
56161         (FE_DOWNWARD): Likewise.
56162         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
56163         (FE_DIVBYZERO): Likewise.
56164         (FE_OVERFLOW): Likewise.
56165         (FE_UNDERFLOW): Likewise.
56166         (FE_INEXACT): Likewise.
56167         (FE_TONEAREST): Likewise.
56168         (FE_DOWNWARD): Likewise.
56169         (FE_UPWARD): Likewise.
56170         (FE_TOWARDZERO): Likewise.
56171
56172 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
56173
56174         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
56175
56176 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
56177
56178         * scripts/cross-test-ssh.sh (command): Use newlines to separate
56179         commands.  Quote $PWD.
56180         (blacklist_exports): Don't use remove_newlines.  Replace "declare
56181         -x" by "export".
56182         (remove_newlines): Remove.
56183
56184 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
56185
56186         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
56187         * stdlib/stdlib.h (atof): Moved to ...
56188         * include/bits/stdlib-float.h: Here.  New file.
56189         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
56190         * stdlib/bits/stdlib-float.h: New file.
56191         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
56192         -mno-sse -mno-mmx.
56193         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
56194         <xmmintrin.h>.
56195
56196 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
56197
56198         * conform/conformtest.pl (@headers): Add fenv.h.
56199         * conform/data/fenv.h-data: New file.
56200         * include/fenv.h [_ISOMAC]: Disable all contents of file except
56201         include of <math/fenv.h>.
56202
56203         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
56204         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
56205         && !UNIX98].  Enables tests for XOPEN2K8.
56206         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
56207         POSIX2008]: Likewise.
56208
56209         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
56210         (struct rusage): Do not expect type or its members.
56211
56212         [BZ #3439]
56213         * math/math.h (FP_NAN): Define macro to integer constant usable in
56214         #if and use that to give value to enum constant.
56215         (FP_INFINITE): Likewise.
56216         (FP_ZERO): Likewise.
56217         (FP_SUBNORMAL): Likewise.
56218         (FP_NORMAL): Likewise.
56219
56220 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
56221
56222         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
56223         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
56224         arguments.
56225
56226 2012-11-02  Roland McGrath  <roland@hack.frob.com>
56227
56228         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
56229         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
56230         autoconf-time if not.
56231         * configure.in: Remove AC_PREREQ.
56232
56233 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56234
56235         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
56236         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
56237         of the internal implementation.
56238
56239 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
56240
56241         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
56242         except include of <misc/sys/syslog.h>.
56243
56244 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
56245
56246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
56247         function returns with a NULL context exit with zero.
56248
56249 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56250
56251         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
56252
56253 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
56254
56255         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
56256         (run_program_cmd): This.
56257         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
56258         (tst_langinfo): New variable.  Use it.
56259
56260 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
56261
56262         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
56263         floating point opcodes.
56264
56265 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56266
56267         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
56268         variable.
56269
56270         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
56271
56272         * sysdeps/mach/hurd/powerpc: Remove directory.
56273         * sysdeps/mach/powerpc: Likewise.
56274
56275 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
56276
56277         * scripts/check-local-headers.sh: Ignore c++ headers.
56278
56279 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56280
56281         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
56282         __libc_cleanup_region_start argument.
56283
56284 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
56285
56286         [BZ #14784]
56287         [BZ #14785]
56288         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
56289         x * y using scaling, not as x * y + z.
56290         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56291         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56292         * math/libm-test.inc (fma_test): Add more tests.
56293         (fma_test_towardzero): Likewise.
56294         (fma_test_downward): Likewise.
56295         (fma_test_upward): Likewise.
56296
56297 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
56298
56299         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
56300
56301 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
56302
56303         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
56304         New variable.
56305
56306 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
56307
56308         * rt/tst-shm.c (worker): Correct checking for mmap failure.
56309
56310 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
56311
56312         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56313         Fix sort order.
56314         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56315         Likewise.
56316
56317 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
56318
56319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56320         Fix the order of the list for glibc 2.17.
56321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56322         Likewise.
56323
56324 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
56325
56326         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
56327
56328 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
56329
56330         [BZ #14610]
56331         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
56332         for low part of x being zero before using __atanl (y).
56333         * math/libm-test.inc (atan2_test): Add another test.
56334
56335         * manual/install.texi (Configuring and compiling): Document
56336         general use of test-wrapper and test-wrapper-env.
56337         * INSTALL: Regenerated.
56338
56339         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
56340         (__fma): Do not extract and scale down low bits on after-rounding
56341         systems when result rounded to normal precision would have normal
56342         exponent.
56343         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
56344         (__fmal): Do not extract and scale down low bits on after-rounding
56345         systems when result rounded to normal precision would have normal
56346         exponent.
56347         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
56348         (__fmal): Do not extract and scale down low bits on after-rounding
56349         systems when result rounded to normal precision would have normal
56350         exponent.
56351         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
56352         macro.
56353         (fma_test): Add more tests.
56354         (fma_test_towardzero): Likewise.
56355         (fma_test_downward): Likewise.
56356         (fma_test_upward): Likewise.
56357
56358 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
56359
56360         * sysdeps/i386/tininess.h: Renamed to ...
56361         * sysdeps/x86/tininess.h: This.
56362         * sysdeps/x86_64/tininess.h: Removed.
56363
56364 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56365
56366         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
56367         input.  Use $(build-program-cmd).
56368         ($(objpfx)tst-array1-static.out): Likewise.
56369         ($(objpfx)tst-array2.out): Likewise.
56370         ($(objpfx)tst-array3.out): Likewise.
56371         ($(objpfx)tst-array4.out): Likewise.
56372         ($(objpfx)tst-array5.out): Likewise.
56373         ($(objpfx)tst-array5-static.out): Likewise.
56374
56375 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
56376
56377         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
56378         if defined.
56379
56380         * nss/nsswitch.h (nss_interface_function): Provide new
56381         macro for use with NSS functions.
56382         * grp/initgroups.c: Use new macro.
56383         * nss/getXXbyYY.c: Likewise.
56384         * nss/getXXbyYY_r.c: Likewise.
56385         * nss/getXXent.c: Likewise.
56386         * nss/getXXent_r.c: Likewise.
56387         * sysdeps/posix/getaddrinfo.c: Likewise.
56388
56389 2012-10-30  Andreas Jaeger  <aj@suse.de>
56390
56391         * po/ru.po: Update Russion translation from translation project.
56392
56393 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
56394
56395         [BZ #14152]
56396         [BZ #14783]
56397         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
56398         result and shift together with sticky bit instead of replicating
56399         round-to-nearest rounding.
56400         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
56401         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
56402         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
56403         missing underflow exceptions.
56404         (fma_test_towardzero): Add more tests.
56405         (fma_test_downward): Likewise.
56406         (fma_test_upward): Likewise.
56407
56408         [BZ #14047]
56409         * sysdeps/generic/tininess.h: New file.
56410         * sysdeps/i386/tininess.h: Likewise.
56411         * sysdeps/sh/tininess.h: Likewise.
56412         * sysdeps/x86_64/tininess.h: Likewise.
56413         * stdlib/tst-strtod-underflow.c: Likewise.
56414         * stdlib/tst-tininess.c: Likewise.
56415         * stdlib/strtod_l.c: Include <tininess.h>.
56416         (round_and_return): Do not set errno for exact underflow cases.
56417         Force an underflow exception when setting errno for underflow.
56418         Determine underflow based on rounding to normal precision if
56419         TININESS_AFTER_ROUNDING.
56420         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
56421         ERANGE for exact underflow cases.
56422         * stdlib/Makefile (tests): Add tst-tininess and
56423         tst-strtod-underflow.
56424         ($(objpfx)tst-tininess): Use $(link-libm).
56425         ($(objpfx)tst-strtod-underflow): Likewise.
56426
56427 2012-10-30  Andreas Jaeger  <aj@suse.de>
56428
56429         [BZ#14767]
56430         * elf/Makefile (tests): Remove conditional for have-initfini-array
56431         since this is now always required and the variable does not exist
56432         anymore.
56433         (tests-static): Likewise.
56434         (modules-names): Likewise.
56435
56436         * po/eo.po: Add Esperanto translation from translation project.
56437
56438         * elf/tst-array1.c (fini_array): Make writeable so that it can be
56439         merged with constructor/destructor.
56440         (init_array): Likewise.
56441         * elf/tst-array2dep.c (fini_array): Likewise.
56442         (init_array): Likewise.
56443
56444 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
56445
56446         * manual/message.texi: Delete @cartouche tags.
56447
56448 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
56449
56450         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
56451         EOPNOTSUPP.
56452         * sysdeps/mach/hurd/fsync.c: Likewise.
56453
56454         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
56455         [_POSIX_REALTIME_SIGNALS]: Change condition to
56456         [_POSIX_REALTIME_SIGNALS > 0].
56457
56458 2012-10-27  Andreas Jaeger  <aj@suse.de>
56459
56460         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
56461         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
56462         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
56463         [__WORDSIZE != 64]: Likewise.
56464
56465 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
56466
56467         *  iconvdata/tst-table.sh: Remove ${SHELL}.
56468         *  iconvdata/tst-tables.sh: Likewise.
56469
56470 2012-10-25  David S. Miller  <davem@davemloft.net>
56471
56472         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56473         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
56474         of strtoull.
56475
56476         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
56477         ifunc-impl-list.c
56478         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
56479         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
56480         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
56481         file.
56482
56483 2012-10-25  Roland McGrath  <roland@hack.frob.com>
56484
56485         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56486         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
56487         __getdirentries.
56488
56489 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56490             Jim Blandy  <jimb@codesourcery.com>
56491
56492         * scripts/cross-test-ssh.sh: New file.
56493         * manual/install.texi (Configuring and compiling): Document use of
56494         cross-test-ssh.sh.
56495         * INSTALL: Regenerated.
56496
56497 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
56498
56499         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
56500         EOPNOTSUPP.
56501
56502 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
56503
56504         * Makeconfig (run-program-prefix): Fix comment.
56505
56506 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56507             Jim Blandy  <jimb@codesourcery.com>
56508
56509         * Makeconfig (test-wrapper): New variable,
56510         (test-wrapper-env): Likewise.
56511         [$(cross-compiling) = yes && $(test-wrapper) != ""]
56512         (run-built-tests): Define to yes.
56513         (run-program-prefix): Use $(test-wrapper).
56514         (built-program-cmd): Likewise.
56515         * Rules (make-test-out): Use $(test-wrapper-env) and
56516         $(host-built-program-cmd).
56517         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
56518         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
56519         tst-pathopt.sh.
56520         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
56521         $(test-wrapper-env) to tst-rtld-load-self.sh.
56522         ($(objpfx)order2.out): Use $(test-wrapper).
56523         ($(objpfx)tst-initorder.out): Likewise.
56524         ($(objpfx)tst-initorder2.out): Likewise.
56525         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
56526         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
56527         (test_wrapper_env): New variable.  Use it to run ld.so.
56528         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
56529         Use it to run ld.so.
56530         (test_wrapper_env): Likewise.
56531         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
56532         $(test-wrapper) to run-iconv-test.sh.
56533         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
56534         (ICONV): Use $test_wrapper.
56535         * posix/Makefile ($(objpfx)globtest.out): Pass
56536         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
56537         globtest.sh, not $(run-program-prefix).
56538         * posix/globtest.sh (run_via_rtld_prefix): New variable.
56539         (test_wrapper): Likewise.
56540         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
56541         set together with run_via_rtld_prefix.
56542         (run_program_prefix): Define in terms of test_wrapper and
56543         run_via_rtld_prefix.
56544
56545 2012-10-24  Roland McGrath  <roland@hack.frob.com>
56546
56547         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
56548         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
56549         Targets removed.
56550
56551         [BZ #14743]
56552         * include/time.h: Remove librt_hidden_proto (clock_gettime).
56553         Declare __clock_getres, __clock_gettime, __clock_settime,
56554         __clock_nanosleep, and __clock_getcpuclockid.
56555         * rt/clock_gettime.c: Define __clock_gettime as an alias.
56556         Remove librt_hidden_def (clock_gettime).
56557         * sysdeps/unix/clock_gettime.c: Likewise.
56558         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
56559         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
56560         * rt/clock_getres.c: Define __clock_getres as an alias.
56561         * sysdeps/posix/clock_getres.c: Likewise.
56562         * rt/clock_settime.c: Define __clock_settime as an alias.
56563         * sysdeps/unix/clock_settime.c: Likewise.
56564         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
56565         * sysdeps/unix/clock_nanosleep.c: Likewise.
56566         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
56567         * rt/clock-compat.c: New file.
56568         * rt/Makefile (librt-routines): Add clock-compat and move
56569         $(clock-routines) to ...
56570         (routines): ... here, new variable.
56571         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
56572         Don't add get_clockfreq here.
56573         * rt/Versions (libc: GLIBC_2.17): New version set.
56574         Add clock_* symbols here.
56575         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
56576         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
56577         (GLIBC_2.17): Add clock_* symbols.
56578         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
56579         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
56580         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
56581         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
56582         Likewise.
56583         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
56584         Likewise.
56585         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
56586         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
56587         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
56588         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
56589         * NEWS: Mention the move.
56590
56591         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
56592         Use __open, __read, __close rather than their public counterparts.
56593         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
56594         (__get_clockfreq_via_cpuinfo): Likewise.
56595         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
56596         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
56597
56598         * config.h.in (HAVE_IFUNC): New #undef.
56599         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
56600         was successful.
56601         * configure: Regenerated.
56602
56603 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56604
56605         * configure.in: Move READELF check to start of file.
56606         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
56607         libc_cv_asm_gnu_indirect_function in the process.
56608         * configure: Regenerated.
56609
56610 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
56611
56612         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
56613         send the output to /dev/null.
56614         (libc_cv_cc_with_libunwind): Likewise.
56615         (libc_cv_as_noexecstack): Likewise.
56616         * configure: Regenerate.
56617
56618 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
56619
56620         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
56621
56622         * posix/globtest.sh (TMPDIR): Do not set.
56623         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
56624         (testout): Likewise.
56625
56626 2012-10-24  Andreas Jaeger  <aj@suse.de>
56627
56628         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
56629         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
56630         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
56631         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
56632         posix_fadvise64, posix_fallocate64.
56633
56634         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
56635         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
56636         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
56637         Likewise.
56638         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
56639         Likewise.
56640         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
56641
56642         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
56643         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
56644         <bits/fcntl-linux.h>.
56645         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
56646
56647         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
56648         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
56649         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
56650         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
56651         [__WORDSIZE != 64]: Likewise.
56652
56653 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56654
56655         * Makeconfig (run-built-tests): New variable.
56656         * Rules [$(cross-compiling) = yes]: Change condition to
56657         [$(run-built-tests) = no].
56658         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
56659         to [$(run-built-tests) = yes].
56660         * elf/Makefile [$(cross-compiling) = no]: Likewise.
56661         * grp/Makefile [$(cross-compiling) = no]: Likewise.
56662         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
56663         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
56664         * intl/Makefile [$(cross-compiling) = no]: Likewise.
56665         * io/Makefile [$(cross-compiling) = no]: Likewise.
56666         * libio/Makefile [$(cross-compiling) = no]: Likewise.
56667         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
56668         * misc/Makefile [$(cross-compiling) = no]: Likewise.
56669         * posix/Makefile [$(cross-compiling) = no]: Likewise.
56670         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
56671         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
56672         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
56673         * string/Makefile [$(cross-compiling) = no]: Likewise.
56674
56675         * posix/Makefile ($(objpfx)globtest.out): Pass
56676         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
56677         $(rtld-installed-name).
56678         * posix/globtest.sh (elf_objpfx): Remove variable.
56679         (rtld_installed_name): Likewise.
56680         (library_path): Likewise.
56681         (run_program_prefix): New variable.  Use for running globtest
56682         binary.
56683
56684 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
56685             Joseph Myers  <joseph@codesourcery.com>
56686
56687         * Makeconfig (host-built-program-cmd): New variable.
56688         * elf/Makefile (tst-stackguard1-ARGS): Use
56689         $(host-built-program-cmd).
56690         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
56691         (tst-spawn-ARGS): Likewise.
56692         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
56693
56694 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
56695             Jim Blandy  <jimb@codesourcery.com>
56696
56697         * Makeconfig (run-via-rtld-prefix): New variable.
56698         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
56699         (built-program-cmd): Likewise.
56700
56701 2012-10-22  Andreas Jaeger  <aj@suse.de>
56702
56703         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
56704         __O_RSYNC if it exists, otherwise to O_SYNC.
56705
56706 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
56707             Joseph Myers  <joseph@codesourcery.com>
56708
56709         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
56710         /dev/null.
56711         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
56712         from /dev/null
56713         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
56714         /dev/null.
56715
56716 2012-10-22  Andreas Jaeger  <aj@suse.de>
56717
56718         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
56719         Define always.
56720         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
56721
56722         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
56723         bits/fcntl-linux.h.
56724
56725         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
56726         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
56727
56728         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
56729         to __O_LARGEFILE.
56730         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
56731         to __O_LARGEFILE.
56732
56733 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
56734             Joseph Myers  <joseph@codesourcery.com>
56735
56736         * config.make.in (NM): New variable.
56737
56738 2012-10-21  Andreas Jaeger  <aj@suse.de>
56739
56740         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
56741         definitions and declarations that are provided by
56742         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
56743
56744 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56745
56746         [BZ #14683]
56747         * elf/Makefile (tests-static): Add tst-leaks1-static.
56748         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
56749         ($(objpfx)tst-leaks1-static): New rule.
56750         ($(objpfx)tst-leaks1-static-mem): Likewise.
56751         (tst-leaks1-static-ENV): New macro.
56752         * elf/dl-open.c (dl_open_worker): Check the main application
56753         only if SHARED is defined.
56754         * elf/tst-leaks1-static.c: New file.
56755
56756 2012-10-20  Andreas Jaeger  <aj@suse.de>
56757
56758         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
56759         generic values for Linux.
56760         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
56761         and declarations that are provided by <bits/fcntl-linux.h> and
56762         include <bits/fcntl-linux.h>.
56763         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
56764         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
56765
56766 2012-10-20  Roland McGrath  <roland@hack.frob.com>
56767
56768         * io/fcntl.h: Move include of <bits/types.h> to the top and
56769         include it unconditionally.
56770
56771 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
56772
56773         * wcsmbs/Makefile (tests-ifunc): New variable.
56774         (tests): Add $(tests-ifunc).
56775         * wcsmbs/test-wcschr-ifunc.c: New file.
56776         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
56777         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
56778         * wcsmbs/test-wcslen-ifunc.c: Likewise.
56779         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
56780         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
56781
56782         * string/Makefile (tests-ifunc): New variable.
56783         (tests): Add $(tests-ifunc).
56784         * string/test-memccpy.c (TEST_NAME): New macro.
56785         * string/test-memchr.c (TEST_NAME): Likewise.
56786         * string/test-memcmp.c (TEST_NAME): Likewise.
56787         * string/test-memcpy.c (TEST_NAME): Likewise.
56788         * string/test-memmem.c (TEST_NAME): Likewise.
56789         * string/test-memmove.c (TEST_NAME): Likewise.
56790         * string/test-memset.c (TEST_NAME): Likewise.
56791         * string/test-rawmemchr.c (TEST_NAME): Likewise.
56792         * string/test-stpcpy.c (TEST_NAME): Likewise.
56793         * string/test-stpncpy.c (TEST_NAME): Likewise.
56794         * string/test-strcasecmp.c (TEST_NAME): Likewise.
56795         * string/test-strcasestr.c (TEST_NAME): Likewise.
56796         * string/test-strcat.c (TEST_NAME): Likewise.
56797         * string/test-strchr.c (TEST_NAME): Likewise.
56798         * string/test-strcmp.c(TEST_NAME): Likewise.
56799         * string/test-strcpy.c (TEST_NAME): Likewise.
56800         * string/test-strcspn.c (TEST_NAME): Likewise.
56801         * string/test-strlen.c (TEST_NAME): Likewise.
56802         * string/test-strncasecmp.c (TEST_NAME): Likewise.
56803         * string/test-strncmp.c (TEST_NAME): Likewise.
56804         * string/test-strncpy.c (TEST_NAME): Likewise.
56805         * string/test-strnlen.c (TEST_NAME): Likewise.
56806         * string/test-strpbrk.c (TEST_NAME): Likewise.
56807         * string/test-strrchr.c (TEST_NAME): Likewise.
56808         * string/test-strspn.c (TEST_NAME): Likewise.
56809         * string/test-strstr.c (TEST_NAME): Likewise.
56810         * string/test-bcopy-ifunc.c: New file.
56811         * string/test-bzero-ifunc.c: Likewise.
56812         * string/test-memccpy-ifunc.c: Likewise.
56813         * string/test-memchr-ifunc.c: Likewise.
56814         * string/test-memcmp-ifunc.c: Likewise.
56815         * string/test-memcpy-ifunc.c: Likewise.
56816         * string/test-memmem-ifunc.c: Likewise.
56817         * string/test-memmove-ifunc.c: Likewise.
56818         * string/test-mempcpy-ifunc.c: Likewise.
56819         * string/test-memset-ifunc.c: Likewise.
56820         * string/test-rawmemchr-ifunc.c: Likewise.
56821         * string/test-stpcpy-ifunc.c: Likewise.
56822         * string/test-stpncpy-ifunc.c: Likewise.
56823         * string/test-strcasecmp-ifunc.c: Likewise.
56824         * string/test-strcasestr-ifunc.c: Likewise.
56825         * string/test-strcat-ifunc.c: Likewise.
56826         * string/test-strchr-ifunc.c: Likewise.
56827         * string/test-strchrnul-ifunc.c: Likewise.
56828         * string/test-strcmp-ifunc.c: Likewise.
56829         * string/test-strcpy-ifunc.c: Likewise.
56830         * string/test-strcspn-ifunc.c: Likewise.
56831         * string/test-strlen-ifunc.c: Likewise.
56832         * string/test-strncasecmp-ifunc.c: Likewise.
56833         * string/test-strncat-ifunc.c: Likewise.
56834         * string/test-strncmp-ifunc.c: Likewise.
56835         * string/test-strncpy-ifunc.c: Likewise.
56836         * string/test-strnlen-ifunc.c: Likewise.
56837         * string/test-strpbrk-ifunc.c: Likewise.
56838         * string/test-strrchr-ifunc.c: Likewise.
56839         * string/test-strspn-ifunc.c: Likewise.
56840         * string/test-strstr-ifunc.c: Likewise.
56841
56842         * debug/Makefile (tests-ifunc): New variable.
56843         (tests): Add $(tests-ifunc).
56844         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
56845         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
56846         * debug/test-stpcpy_chk-ifunc.c: New file.
56847         * debug/test-strcpy_chk-ifunc.c: Likewise.
56848
56849 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
56850
56851         [BZ #13601]
56852         * elf/dl-load.c (open_verify): Retry read if the entire ELF
56853         header is not read in.
56854
56855 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
56856
56857         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
56858         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
56859         directly.  Pass built executable to script as
56860         $(built-program-cmd).
56861         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
56862         $testprogram without using LD_LIBRARY_PATH and $ldso.
56863
56864         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
56865         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
56866         $(rtld-installed-name).
56867         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
56868         (rtld_installed_name): Likewise.
56869         (library_path): Likewise.
56870         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
56871         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
56872         $(run-program-prefix) to tst-tables.sh.
56873         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
56874         it to run tst-table-from and tst-table-to.
56875         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
56876         Pass it to tst-table.sh.
56877         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
56878         $(run-program-prefix) to tst-gettext.sh.
56879         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
56880         tst-translit.sh.
56881         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
56882         tst-gettext2.sh.
56883         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
56884         to run tst-gettext.
56885         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
56886         to run tst-gettext2.
56887         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
56888         to run tst-translit.
56889         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
56890         $(run-program-prefix) to tst-mtrace.sh.
56891         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
56892         to run tst-mtrace.
56893         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
56894         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
56895         $(rtld-installed-name).
56896         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
56897         (rtld_installed_name): Likewise.
56898         (run_program_prefix): New variable.  Use it to run wordexp-test.
56899
56900         * Makeconfig (ARCH): Remove all definitions.
56901         (machine): Likewise.
56902         [ARCH]: Remove conditional code.
56903         [!objdir]: Give error.
56904         [!objdir] (objpfx): Remove.
56905         [!objdir] (common-objpfx): Likewise.
56906         [!objdir] (common-objdir): Likewise.
56907         * configure.in (config_makefile): Remove.  Hardcode Makefile in
56908         AC_CONFIG_FILES call.
56909         * configure: Regenerated.
56910
56911         [BZ #13888]
56912         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
56913         or TMPDIR.
56914         (testout): Likewise.
56915
56916         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
56917         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
56918         $(rtld-installed-name).
56919         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
56920         (rtld_installed_name): Likwise.
56921         (runit): Remove function.
56922         (run_getconf): New variable,  Use it for running getconf binary.
56923
56924 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
56925
56926         [BZ #14716]
56927         * string/test-memmem.c (check_result): New function.
56928         (do_one_test): Use it.
56929         (check1): New function.
56930         (test_main): Use it.
56931
56932 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
56933
56934         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
56935
56936 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
56937
56938         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
56939         (_G_LSEEK64): Likewise.
56940         (_G_MMAP64): Likewise.
56941         (_G_FSTAT64): Likewise.
56942         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
56943         (_G_LSEEK64): Likewise.
56944         (_G_MMAP64): Likewise.
56945         (_G_FSTAT64): Likewise.
56946         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
56947         unconditional.  Call __mmap64 directly.
56948         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
56949         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
56950         __lseek64 directly.
56951         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
56952         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
56953         __mmap64 directly.
56954         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
56955         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
56956         __lseek64 directly.
56957         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
56958         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
56959         __lseek64 directly.
56960         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
56961         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
56962         __lseek64 directly.
56963         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
56964         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
56965         __fxstat64 directly.
56966         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
56967         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
56968         unconditional.
56969         (freopen64) [!_G_OPEN64]: Remove conditional code.
56970         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
56971         unconditional.
56972         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
56973         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
56974         unconditional.
56975         (ftello64) [!_G_LSEEK64]: Remove conditional code.
56976         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
56977         unconditional.
56978         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
56979         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
56980         unconditional.
56981         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
56982         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
56983         unconditional.
56984         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56985         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
56986         unconditional.
56987         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
56988         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
56989         unconditional.
56990         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
56991
56992 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
56993
56994         [BZ #12140]
56995         * manual/memory.texi (Malloc Tunable Parameters): Add note
56996         about free list pointers overwriting some perturb bytes.
56997         Wording suggested by Roland McGrath.
56998
56999 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
57000
57001         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
57002         (lgamma_test): Likewise.
57003         (tgamma_test): Likewise.
57004
57005 2012-10-16  Florian Weimer  <fweimer@redhat.com>
57006
57007         [BZ #14700]
57008         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
57009         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
57010
57011 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
57012
57013         * NEWS: Mention BZ #14716.
57014         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
57015         when removing AVAILABLE1_USES_J macro.
57016
57017 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
57018
57019         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
57020         (__bswap_64): __uint64_t for unsigned 64-bit int.
57021
57022 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
57023
57024         * include/string.h (memmem): Declare libc hidden alias.
57025         * string/memmem.c (memmem): Define libc hidden alias.
57026         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
57027         __read, __close instead of open, read, close.
57028
57029 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
57030
57031         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
57032         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
57033         global and hidden.
57034         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
57035         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
57036         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
57037         Likewise.
57038         (__rawmemchr_sse2): Likewise.
57039         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
57040         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
57041         (__strchr_sse2): Likewise.
57042         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
57043         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
57044         (__strcasecmp_sse2): Likewise.
57045         (__strncasecmp_sse2): Likewise.
57046         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
57047         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
57048         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
57049         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
57050         (__strrchr_sse2): Likewise.
57051         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
57052         ifunc-impl-list.c.
57053         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
57054         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
57055         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
57056         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
57057         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
57058         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
57059         * sysdeps/x86_64/multiarch/memset.S: Likewise.
57060         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
57061         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
57062         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
57063         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
57064         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
57065         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
57066         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
57067         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
57068         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
57069         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
57070         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
57071         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
57072         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
57073         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
57074         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
57075         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
57076         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
57077         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
57078         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
57079         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
57080         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
57081         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
57082         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
57083
57084         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
57085         global and hidden.
57086         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
57087         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
57088         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
57089         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
57090         Likewise.
57091         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
57092         Likewise.
57093         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
57094         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
57095         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
57096         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
57097         ifunc-impl-list.c.
57098         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
57099         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
57100         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
57101         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
57102         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
57103         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
57104         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
57105         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
57106         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
57107         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
57108         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
57109         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
57110         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
57111         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
57112         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
57113         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
57114         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
57115         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
57116         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
57117         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
57118         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
57119         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
57120         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
57121         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
57122         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
57123         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
57124         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
57125         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
57126         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
57127         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
57128         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
57129         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
57130         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
57131         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
57132         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
57133         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
57134         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
57135         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
57136         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
57137         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
57138         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
57139
57140         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
57141         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
57142         * include/ifunc-impl-list.h: New file.
57143         * misc/ifunc-impl-list.c: Likewise.
57144         * misc/Makefile (routines): Add ifunc-impl-list.
57145         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
57146         * string/test-string.h: Include <ifunc-impl-list.h>.
57147         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
57148         TEST_NAME]: New variables.
57149         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
57150         are defined.
57151         (test_init): Call __libc_ifunc_impl_list to initialize
57152         func_list if TEST_IFUNC and TEST_NAME are defined.
57153
57154         * string/Makefile (strop-tests): Add bcopy and bzero.
57155         * string/test-bcopy.c: New file.
57156         * string/test-bzero.c: Likewise.
57157         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
57158         defined.
57159         * string/test-memset.c: Support bzero test if TEST_BZERO is
57160         defined.
57161         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
57162         __libc_memmove.
57163         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
57164         __libc_memset.
57165         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
57166         of memset.
57167
57168 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
57169
57170         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
57171         * configure: Regenerated.
57172
57173         * Makeconfig (+link-static-before-libc): Don't include
57174         $(link-static-libc).
57175
57176         * libio/libio.h (_IO_pos_t): Remove.
57177
57178 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57179
57180         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
57181         McGrath.
57182
57183 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57184
57185         * crypt/crypt-entry.c: Include fips-private.h.
57186         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
57187         * crypt/md5c-test.c (main): Tolerate disabled MD5.
57188         * sysdeps/unix/sysv/linux/fips-private.h: New file.
57189         * sysdeps/generic/fips-private.h: New file, dummy fallback.
57190
57191 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
57192
57193         * crypt/crypt-private.h: Include stdbool.h.
57194         (_ufc_setup_salt_r): Return bool.
57195         * crypt/crypt-entry.c: Include errno.h.
57196         (__crypt_r): Return NULL with EINVAL for bad salt.
57197         * crypt/crypt_util.c (bad_for_salt): New.
57198         (_ufc_setup_salt_r): Check that salt is long enough and within
57199         the specified alphabet.
57200         * crypt/badsalttest.c: New file.
57201         * crypt/Makefile (tests): Add it.
57202         ($(objpfx)badsalttest): New.
57203
57204 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
57205
57206         * NEWS: Add entry for BZ #14602.
57207
57208 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
57209
57210         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
57211         type-generic.
57212         * math/libm-test.inc: Update comment listing what functions and
57213         macros are tested.
57214         (isgreater_test): New function.
57215         (isgreaterequal_test): Likewise.
57216         (isless_test): Likewise.
57217         (islessequal_test): Likewise.
57218         (islessgreater_test): Likewise.
57219         (isunordered_test): Likewise.
57220         (main): Call the new functions.
57221
57222 2012-10-09  Roland McGrath  <roland@hack.frob.com>
57223
57224         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
57225         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
57226         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
57227         * sysdeps/i386/configure: Regenerated.
57228         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
57229         * sysdeps/mach/configure: Regenerated.
57230         * sysdeps/mach/hurd/configure: Regenerated.
57231         * sysdeps/powerpc/configure: Regenerated.
57232         * sysdeps/powerpc/powerpc32/configure: Regenerated.
57233         * sysdeps/powerpc/powerpc64/configure: Regenerated.
57234         * sysdeps/s390/s390-32/configure: Regenerated.
57235         * sysdeps/s390/s390-64/configure: Regenerated.
57236         * sysdeps/sh/configure: Regenerated.
57237         * sysdeps/sparc/configure: Regenerated.
57238         * sysdeps/unix/sysv/linux/configure: Regenerated.
57239         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
57240         * sysdeps/x86_64/configure: Regenerated.
57241
57242         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
57243         defined.  Don't check if MAP is NULL.
57244
57245 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
57246
57247         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
57248         (_G_stat64): Likewise.
57249         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
57250         (_G_stat64): Likewise.
57251         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
57252         instead of struct _G_stat64.
57253         * libio/fileops.c (mmap_remap_check): Likewise.
57254         (decide_maybe_mmap): Likewise.
57255         (_IO_new_file_seekoff): Likewise.
57256         (_IO_file_stat): Likewise.
57257         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
57258         _G_off64_t.
57259         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
57260         instead of struct _G_stat64.
57261         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
57262
57263 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
57264
57265         [BZ #14602]
57266         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57267         Replace with ...
57268         (CHECK_EOL): New macro.
57269         (two_way_short_needle): Check beginning of haystack for EOL.  Use
57270         CHECK_EOL.
57271         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57272         Replace with CHECK_EOL.
57273         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
57274         Replace with CHECK_EOL.
57275
57276 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
57277
57278         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
57279         type-generic.
57280         * math/libm-test.inc: Update comment listing what functions and
57281         macros are tested.
57282         (finite_test): New function.
57283         (isinf_test): Likewise.
57284         (isnan_test): Likewise.
57285         (fpclassify_test): Test subnormal input.
57286         (isfinite_test): Likewise.
57287         (isnormal_test): Likewise.
57288         (main): Call the new functions.
57289
57290 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
57291
57292         [BZ #14660]
57293         * Makerules (%.dynsym): Force C locale when running
57294         $(OBJDUMP) --dynamic-syms.
57295
57296 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
57297
57298         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
57299         <stdint.h>.
57300
57301 2012-10-06  David S. Miller  <davem@davemloft.net>
57302
57303         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
57304         upper 32-bits of the length value in %o2 since we use branch-on-register
57305         tests which consider the entire 64-bit register.
57306
57307 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
57308
57309         * string/test-strstr.c (check2): Add a test for page boundary.
57310
57311 2012-10-05  David S. Miller  <davem@davemloft.net>
57312
57313         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
57314         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
57315         file.
57316         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57317         sysdep_routines.
57318         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57319         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
57320         and bzero when HWCAP_SPARC_CRYPTO is present.
57321
57322 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
57323
57324         [BZ #14602]
57325         * string/test-strstr.c (check2): New function.
57326         (test_main): Call check2.
57327
57328         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
57329         and bug-strchr1.
57330         * string/bug-strcasestr1.c (do_test): Moved to ...
57331         * string/test-strcasestr.c (check1): Here.  New function.
57332         (do_one_test): Break out result checking code into ...
57333         (check_result): This.  New function.
57334         (do_one_test): Call check_result.
57335         (test_main): Call check1.
57336         * string/bug-strchr1.c (do_test): Moved to ...
57337         * string/test-strchr.c (check1): Here.  New function.
57338         (do_one_test): Break out result checking code into ...
57339         (check_result): This.  New function.
57340         (do_one_test): Call check_result.
57341         (test_main): Call check1.
57342         * string/bug-strstr1.c (main): Moved to ...
57343         * string/test-strstr.c (check1): Here.  New function.
57344         (do_one_test): Break out result checking code into ...
57345         (check_result): This.  New function.
57346         (do_one_test): Call check_result.
57347         (test_main): Call check1.
57348         * string/bug-strcasestr1.c: Removed.
57349         * string/bug-strchr1.c: Likewise.
57350         * string/bug-strstr1.c: Likewise.
57351
57352         * elf/Makefile (dl-routines): Add hwcaps.
57353         * elf/dl-support.c (_dl_important_hwcaps): Removed.
57354         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
57355         (_dl_important_hwcaps): Moved to ...
57356         * elf/dl-hwcaps.c: Here.  New file.
57357         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
57358
57359         [BZ #14557]
57360         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
57361         if IS_IN_rtld isn't defined.
57362
57363         * elf/dl-support.c (_dl_sysinfo_map): New.
57364         Include "get-dynamic-info.h" and "setup-vdso.h".
57365         (_dl_non_dynamic_init): Call setup_vdso.
57366         * elf/dynamic-link.h: Don't include <assert.h>.
57367         (elf_get_dynamic_info): Moved to ...
57368         * elf/get-dynamic-info.h: Here.  New file.
57369         * elf/dynamic-link.h: Include "get-dynamic-info.h".
57370         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
57371         * elf/setup-vdso.h: Here.  New file.
57372         * elf/rtld.c: Include "setup-vdso.h".
57373         (dl_main): Call setup_vdso.
57374
57375 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
57376
57377         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
57378         creal in comment listing functions tested.  List finite, isinf,
57379         isnan, isless, islessequal, isgreater, isgreaterequal,
57380         islessgreater, isunordered, lgamma_r and pow10 as functions and
57381         macros not tested.  Mention which functions not tested are aliases
57382         for other functions.  Fix typo.  Note that signs of NaNs are not
57383         tested.
57384
57385         * scripts/config.guess: Update from config.git.
57386         * scripts/config.sub: Likewise.
57387
57388 2012-10-04  Roland McGrath  <roland@hack.frob.com>
57389
57390         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
57391         * misc/madvise.c (madvise): Renamed to __madvise.
57392         Make madvise a weak alias.
57393         * include/sys/mman.h: Declare __madvise.
57394         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
57395         * sysdeps/unix/syscalls.list
57396         (madvise): Make __madvise the strong name, and madvise a weak alias.
57397         * sysdeps/unix/sysv/linux/syscalls.list
57398         (madvise, mmap): Remove redundant entries.
57399         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
57400         * malloc/malloc.c (mtrim): Likewise.
57401         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
57402
57403 2012-10-03  Roland McGrath  <roland@hack.frob.com>
57404
57405         * sysdeps/mach/hurd/dl-cache.c: File removed.
57406         * config.h.in (USE_LDCONFIG): New #undef.
57407         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
57408         * configure: Regenerated.
57409         * elf/Makefile (dl-routines): Add dl-cache only under
57410         [$(use-ldconfig) = yes].
57411         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
57412         cache on [USE_LDCONFIG].
57413         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
57414         [USE_LDCONFIG].
57415         * elf/rtld.c (dl_main): Likewise.
57416
57417 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
57418
57419         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
57420         _SC_LEVEL4_CACHE_LINESIZE.
57421
57422 2012-10-03  Roland McGrath  <roland@hack.frob.com>
57423
57424         * sysdeps/unix/bsd/confstr.h: File removed.
57425
57426 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
57427
57428         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
57429         sys/sdt-config.h.
57430
57431 2012-10-02  Roland McGrath  <roland@hack.frob.com>
57432
57433         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
57434         Make 'mapoff' field ElfW(Off) rather than off_t.
57435
57436 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
57437
57438         * nscd/Makefile: Remove nscd-cflags and all its users.
57439         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
57440         (CFLAGS-nonlib): Add compiler flags for nscd modules.
57441
57442         [BZ #10631]
57443         * malloc.c (malloc_printerr): Clarify error message.
57444
57445 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
57446
57447         [BZ #14648]
57448         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
57449         Set bit_FMA_Usable if FMA is supported.
57450         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
57451         macro.
57452         (bit_FMA4_Usable): Updated.
57453         (index_FMA_Usable): New macro.
57454         (CPUID_FMA): Likewise.
57455         (HAS_FMA): Defined with bit_FMA_Usable.
57456
57457 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57458
57459         * bits/types.h (__swblk_t): Type removed.
57460         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
57461         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
57462         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
57463         (__SWBLK_T_TYPE): Likewise.
57464         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
57465         (__SWBLK_T_TYPE): Likewise.
57466         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
57467         (__SWBLK_T_TYPE): Likewise.
57468         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
57469         (__SWBLK_T_TYPE): Likewise.
57470
57471 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
57472             Honza Horak <hhorak@redhat.com>
57473
57474         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
57475         (xdr_mapname): Use YPMAXMAP as maxsize.
57476         (xdr_peername): Use YPMAXPEER as maxsize.
57477         (xdr_keydat): Use YPAXRECORD as maxsize.
57478         (xdr_valdat): Use YPMAXRECORD as maxsize.
57479
57480 2012-10-01  Roland McGrath  <roland@hack.frob.com>
57481
57482         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
57483
57484         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
57485         * csu/init-first.c: ... here.
57486         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
57487         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
57488         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
57489         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
57490         * sysdeps/i386/init-first.c: File removed.
57491         * sysdeps/sh/init-first.c: File removed.
57492
57493 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
57494
57495         [BZ #14645]
57496         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
57497         if x * y might underflow to zero and z is zero.
57498         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
57499         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57500         * math/libm-test.inc (min_subnorm_value): New variable.
57501         (fma_test): Add more tests.
57502         (fma_test_towardzero): Likewise.
57503         (fma_test_downward): Likewise.
57504         (fma_test_upward): Likewise.
57505         (initialize): Set min_subnorm_value.
57506
57507 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
57508
57509         [BZ #14638]
57510         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
57511         0 + 0.
57512         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
57513         mode for addition resulting in exact zero.
57514         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
57515         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
57516         exact 0 + 0.
57517         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
57518         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
57519         * math/libm-test.inc (fma_test): Add more tests.
57520         (fma_test_towardzero): New function.
57521         (fma_test_downward): Likewise.
57522         (fma_test_upward): Likewise.
57523         (main): Call the new functions.
57524
57525 2012-09-28  David S. Miller  <davem@davemloft.net>
57526
57527         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
57528
57529 2012-09-28  Roland McGrath  <roland@hack.frob.com>
57530
57531         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
57532         instead of SIGALRM.
57533
57534         * sysdeps/gnu/_G_config.h: Moved to ...
57535         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
57536         * sysdeps/mach/hurd/_G_config.h: Moved to ...
57537         * sysdeps/generic/_G_config.h: ... here.
57538
57539         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
57540
57541         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
57542
57543         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
57544         Conditionalize target on [libnss_test1.so-version].
57545
57546         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
57547
57548         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
57549         (elfobjdir): Move out of conditionals.
57550
57551         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
57552         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
57553         (__nss_lookup_function): Conditionalize label remove_from_tree on
57554         [!DO_STATIC_NSS || SHARED], matching its only use.
57555
57556 2012-09-28  David S. Miller  <davem@davemloft.net>
57557
57558         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
57559         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
57560         file.
57561         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
57562         sysdep_routines.
57563         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
57564         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
57565         when HWCAP_SPARC_CRYPTO is present.
57566
57567 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57568
57569         * io/tst-mknodat.c: Create a FIFO instead of a socket.
57570
57571 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
57572
57573         [BZ #6530]
57574         * stdio-common/vfprintf.c (process_string_arg): Revert
57575         2000-07-22 change.
57576
57577 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
57578
57579         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
57580         for testcase.
57581         * stdio-common/tst-sprintf.c: Include <locale.h>
57582         (main): Test sprintf's handling of incomplete multibyte
57583         characters.
57584
57585 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
57586
57587         * elf/dl-runtime.c (VERSYMIDX): Removed.
57588         * elf/dl-version.c (VERSYMIDX): Likewise.
57589         * elf/do-rel.h (VERSYMIDX): Likewise.
57590         (VALIDX): Likewise.
57591         * elf/dynamic-link.h (VERSYMIDX): Likewise.
57592         * elf/rtld.c (VALIDX): Likewise.
57593         (ADDRIDX): Likewise.
57594         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
57595         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
57596         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
57597         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
57598         (VALIDX): Likewise.
57599         (ADDRIDX): Likewise.
57600
57601 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57602
57603         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
57604
57605 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
57606
57607         [BZ #11438]
57608         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
57609         to global scope.
57610         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
57611         addresses are in the same scope as 192.0.2/24.
57612         * posix/gai.conf: Document new scope table defaults.
57613
57614 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57615
57616         [BZ #5298]
57617         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
57618         for ftell.  Compute offsets from write pointers instead.
57619         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
57620
57621 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
57622
57623         [BZ #14543]
57624         * libio/Makefile (tests): New test case tst-fseek.
57625         * libio/tst-fseek.c: New test case to verify that fseek/ftell
57626         combination works in wide mode.
57627         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
57628         state when the external buffer state changes.
57629
57630 2012-09-27  David S. Miller  <davem@davemloft.net>
57631
57632         [BZ #14376]
57633         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
57634         pass reloc->r_addend in as the 'high' argument to
57635         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
57636
57637         * sysdeps/sparc/fpu/libm-test-ulps: Update.
57638
57639 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
57640
57641         * rt/tst-aio2.c: Include <pthread.h>.
57642         * rt/tst-aio3.c: Likewise.
57643
57644 2012-09-27  Steve Ellcey  <sellcey@mips.com>
57645
57646         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
57647
57648 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
57649
57650         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
57651         contents on [SHARED].
57652
57653 2012-09-26  Marek Polacek  <polacek@redhat.com>
57654
57655         [BZ #14530]
57656         [BZ #13741]
57657         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
57658         for C++ and GCC <4.3 as well as for non GCC compilers.
57659
57660 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
57661
57662         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57663
57664 2012-09-25  Roland McGrath  <roland@hack.frob.com>
57665
57666         * Makefile.in (all, install): Declare with .PHONY.
57667         Reported by Michael Hope <michael.hope@linaro.org>.
57668
57669 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
57670
57671         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
57672         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
57673         system header.
57674         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
57675         Likewise.
57676         (sydep_routines): Add the new and the internal functions.
57677         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
57678         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
57679         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
57680         (GLIBC_2.17): Add the new function.
57681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
57682         (GLIBC_2.17): Likewise.
57683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
57684         (GLIBC_2.17): Likewise.
57685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
57686         (GLIBC_2.17): Likewise.
57687         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
57688
57689 2012-09-25  Alan Modra  <amodra@gmail.com>
57690
57691         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
57692         Add release barrier before setting once_control to say
57693         initialisation is done.  Add hints on lwarx.  Use macro in
57694         place of isync.
57695         (clear_once_control): Add release barrier.
57696
57697 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57698
57699         [BZ #13629]
57700         * math/s_clog.c (__clog): Handle more values close to |z| = 1
57701         specially.
57702         * math/s_clog10.c (__clog10): Likewise.
57703         * math/s_clog10f.c (__clog10f): Likewise.
57704         * math/s_clog10l.c (__clog10l): Likewise.
57705         * math/s_clogf.c (__clogf): Likewise.
57706         * math/s_clogl.c (__clogl): Likewise.
57707         * math/Makefile (libm-calls): Add x2y2m1.
57708         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
57709         (__x2y2m1): Likewise.
57710         (__x2y2m1l): Likewise.
57711         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
57712         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
57713         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
57714         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
57715         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
57716         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
57717         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
57718         * sysdeps/i386/fpu/libm-test-ulps: Update.
57719         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
57720
57721         [BZ #14621]
57722         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
57723         int as type of variable DEPTH.
57724         (glob): Use size_t instead of int as type of variables NEWCOUNT
57725         and OLD_PATHC.
57726
57727 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
57728
57729         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
57730         Add s_sincosf-sse2.
57731         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
57732         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
57733         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
57734         macros for using routine as __sincosf_ia32.
57735         Use macro for function declaration and weak_alias.
57736         * sysdeps/i386/fpu/libm-test-ulps: Update.
57737
57738         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
57739         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
57740
57741         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
57742         subnormal argument.
57743         * math/s_cexpf.c (__cexpf): Likewise.
57744         * math/s_csinf.c (__csinf): Likewise.
57745         * math/s_csinhf.c (__csinhf): Likewise.
57746         * math/s_ctanf.c (__ctanf): Likewise.
57747         * math/s_ctanhf.c (__ctanhf): Likewise.
57748         * math/s_ccosh.c (__ccoshf): Likewise.
57749         * math/s_cexp.c (__cexpl): Likewise.
57750         * math/s_csin.c (__csin): Likewise.
57751         * math/s_csinh.c (__csinh): Likewise.
57752         * math/s_ctan.c (__ctan): Likewise.
57753         * math/s_ctanh.c (ctanh): Likewise.
57754         * math/s_ccoshl.c (__ccoshl): Likewise.
57755         * math/s_cexpl.c (__cexpl): Likewise.
57756         * math/s_csinl.c (__csinl): Likewise.
57757         * math/s_csinhl.c (__csinhl): Likewise.
57758         * math/s_ctanl.c (__ctanl): Likewise.
57759         * math/s_ctanhl.c (__ctanhl): Likewise.
57760
57761 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
57762
57763         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
57764         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
57765         (_IO_off_t): Define to __off_t, not _G_off_t.
57766         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
57767         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
57768         (_IO_wint_t): Define to wint_t, not _G_wint_t.
57769         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
57770         type of __dummy and __dummy2 fields.
57771         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
57772         (_G_ssize_t): Likewise.
57773         (_G_off_t): Likewise.
57774         (_G_pid_t): Likewise.
57775         (_G_uid_t): Likewise.
57776         (_G_wchar_t): Likewise.
57777         (_G_wint_t): Likewise.
57778         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
57779         (_G_ssize_t): Likewise.
57780         (_G_off_t): Likewise.
57781         (_G_pid_t): Likewise.
57782         (_G_uid_t): Likewise.
57783         (_G_wchar_t): Likewise.
57784         (_G_wint_t): Likewise.
57785         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
57786         (_G_ssize_t): Likewise.
57787         (_G_off_t): Likewise.
57788         (_G_pid_t): Likewise.
57789         (_G_uid_t): Likewise.
57790         (_G_wchar_t): Likewise.
57791         (_G_wint_t): Likewise.
57792
57793 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57794
57795         * malloc/arena.c: Include malloc-sysdep.h.
57796         (shrink_heap): Use check_may_shrink_heap to decide if madvise
57797         is sufficient to shrink the heap or an unmap is needed.
57798         * sysdeps/generic/malloc-sysdep.h: New file.  Define
57799         new function check_may_shrink_heap.
57800         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
57801         new function check_may_shrink_heap.
57802
57803 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
57804
57805         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
57806         comments.
57807
57808 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
57809
57810         * catgets/test-gencat.sh: Add "set -e".
57811         * elf/tst-pathopt.sh: Likewise.
57812         * grp/tst_fgetgrent.sh: Likewise.
57813         * iconvdata/run-iconv-test.sh: Likewise.
57814         * intl/tst-gettext.sh: Likewise.
57815         * intl/tst-gettext2.sh: Likewise.
57816         * intl/tst-gettext4.sh: Likewise.
57817         * intl/tst-gettext6.sh: Likewise.
57818         * intl/tst-translit.sh: Likewise.
57819         * io/ftwtest-sh: Likewise.
57820         * libio/test-freopen.sh: Likewise.
57821         * malloc/tst-mtrace.sh: Likewise.
57822         * posix/globtest.sh: Likewise.
57823         * posix/tst-getconf.sh: Likewise.
57824         * posix/wordexp-tst.sh: Likewise.
57825         * stdio-common/tst-printf.sh: Likewise.
57826         * stdio-common/tst-unbputc.sh: Likewise.
57827         * stdlib/tst-fmtmsg.sh: Likewise.
57828         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57829         * catgets/Makefile: Do not specify -e option when running
57830         testsuite shell scripts.
57831         * elf/Makefile: Likewise.
57832         * grp/Makefile: Likewise.
57833         * iconvdata/Makefile: Likewise.
57834         * intl/Makefile: Likewise.
57835         * io/Makefile: Likewise.
57836         * libio/Makefile: Likewise.
57837         * malloc/Makefile: Likewise.
57838         * posix/Makefile: Likewise.
57839         * stdio-common/Makefile: Likewise.
57840         * stdlib/Makefile: Likewise.
57841         * sysdeps/x86_64/Makefile: Likewise.
57842
57843         * io/ftwtest-sh: Add copyright header.
57844         * posix/globtest.sh: Likewise.
57845         * posix/tst-getconf.sh: Likewise.
57846         * posix/wordexp-tst.sh: Likewise.
57847         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
57848
57849 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
57850
57851         [BZ #13679]
57852         * Makeconfig (+link): Defined as $(+link-static) if
57853         $(build-shared) isn't yes.
57854         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
57855         isn't yes.
57856         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
57857
57858         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
57859
57860         [BZ #14562]
57861         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
57862         new chunk size with MALLOC_ALIGN_MASK.
57863
57864 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
57865
57866         [BZ #5044]
57867         * stdio-common/printf_fphex.c: Include <stdbool.h> and
57868         <rounding-mode.h>.
57869         (__printf_fphex): Determine rounding using get_rounding_mode and
57870         round_away.
57871         * stdio-common/tst-printf-round.c (struct hex_test): New
57872         structure.
57873         (hex_tests): New variable.
57874         (test_hex_in_one_mode): New function.
57875         (do_test): Also run tests for hex float output.
57876
57877 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
57878
57879         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57880         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57881         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
57882         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
57883         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
57884         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
57885         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57886         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
57887
57888 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
57889
57890         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
57891         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
57892         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
57893         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
57894
57895 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
57896
57897         [BZ #14579]
57898         * elf/rtld.c (dl_main): Limit the check for self loading to normal
57899         mode only.
57900         * elf/tst-rtld-load-self.sh: New test.
57901         * elf/Makefile: Run it.
57902
57903 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
57904
57905         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
57906         (tst-writev-ENV): Remove.
57907         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
57908
57909 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
57910
57911         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
57912
57913 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
57914
57915         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
57916         unconditional.
57917         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
57918         Likewise.
57919         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
57920         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
57921         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
57922         Likewise.
57923
57924 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
57925
57926         [BZ #14587]
57927         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
57928         * config.make.in (have-cpp-asm-debuginfo): Removed.
57929         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
57930         * configure: Regenerated.
57931
57932 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
57933
57934         [BZ #5044]
57935         * stdio-common/printf_fp.c: Include <stdbool.h> and
57936         <rounding-mode.h>.
57937         (___printf_fp): Determine rounding using get_rounding_mode and
57938         round_away.
57939         * stdio-common/tst-printf-round.c: New file.
57940         * stdio-common/Makefile (tests): Add tst-printf-round.
57941         (link-libm): New variable.
57942         ($(objpfx)tst-printf-round): Depend in $(link-libm).
57943
57944 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
57945
57946         [BZ #14576]
57947         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
57948         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
57949         Likewise.
57950         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
57951         Likewise.
57952
57953 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
57954
57955         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
57956         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57957         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57958         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
57959
57960 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
57961
57962         [BZ #14518]
57963         * include/rounding-mode.h: New file.
57964         * sysdeps/generic/get-rounding-mode.h: Likewise.
57965         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
57966         * stdlib/strtod_l.c: Include <rounding-mode.h>.
57967         (MAX_VALUE): New macro.
57968         (MIN_VALUE): Likewise.
57969         (overflow_value): New function.
57970         (underflow_value): Likewise.
57971         (round_and_return): Use overflow_value and underflow_value to
57972         determine return values in overflow and underflow cases.  Use
57973         round_away to determine rounding depending on rounding mode.
57974         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
57975         determine return values in overflow and underflow cases.
57976         * stdlib/tst-strtod-round.c: Include <fenv.h>.
57977         (struct test_results): New structure.
57978         (struct test): Use struct test_results to store expected results
57979         for all rounding modes.
57980         (TEST): Include expected results for all rounding modes.
57981         (test_in_one_mode): New function.
57982         (do_test): Use test_in_one_mode to compute and check results.
57983         Check results for all rounding modes.
57984         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
57985         $(link-libm).
57986
57987 2012-12-09  Allan McRae  <allan@archlinux.org>
57988
57989         * sysdeps/i386/fpu/libm-test-ulps: Update
57990
57991 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
57992
57993         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
57994         (_G_int32_t): Likewise.
57995         (_G_uint16_t): Likewise.
57996         (_G_uint32_t): Likewise.
57997         (_G_HAVE_BOOL): Likewise.
57998         (_G_HAVE_ATEXIT): Likewise.
57999         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
58000         (_G_HAVE_IO_FILE_OPEN): Likewise.
58001         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
58002         (_G_int32_t): Likewise.
58003         (_G_uint16_t): Likewise.
58004         (_G_uint32_t): Likewise.
58005         (_G_HAVE_BOOL): Likewise.
58006         (_G_HAVE_ATEXIT): Likewise.
58007         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
58008         (_G_HAVE_IO_FILE_OPEN): Likewise.
58009         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
58010         (_G_int32_t): Likewise.
58011         (_G_uint16_t): Likewise.
58012         (_G_uint32_t): Likewise.
58013         (_G_HAVE_BOOL): Likewise.
58014         (_G_HAVE_ATEXIT): Likewise.
58015         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
58016         (_G_HAVE_IO_FILE_OPEN): Likewise.
58017
58018 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
58019
58020         * csu/libc-tls.c: Update copyright years.
58021
58022 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
58023
58024         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
58025         [!_G_USING_THUNKS]: Remove conditional code.
58026         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
58027         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
58028
58029         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
58030         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
58031         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58032         (_G_VTABLE_LABEL_PREFIX): Likewise.
58033         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58034         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58035         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58036         (_G_VTABLE_LABEL_PREFIX): Likewise.
58037         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
58038         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
58039         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
58040         (_G_VTABLE_LABEL_PREFIX): Likewise.
58041         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
58042
58043 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
58044
58045         * libio/Makefile: Include ../Makeconfig before tests.
58046         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
58047         only if $(build-shared) is yes.
58048
58049         * iconv/gconv_db.c: Update copyright years.
58050
58051 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58052
58053         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
58054         unwind info if defined PIC. Fix special cases description.
58055         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
58056
58057         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
58058         DP_HI_MASK entry.
58059         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
58060
58061 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
58062
58063         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
58064
58065         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
58066         is NULL.
58067
58068         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
58069         (LDLIBS-tst-chk4): This.
58070         (LDFLAGS-tst-chk5): Renamed to ...
58071         (LDLIBS-tst-chk5): This.
58072         (LDFLAGS-tst-chk6): Renamed to ...
58073         (LDLIBS-tst-chk6): This.
58074         (LDFLAGS-tst-lfschk4): Renamed to ...
58075         (LDLIBS-tst-lfschk4): This.
58076         (LDFLAGS-tst-lfschk5): Renamed to ...
58077         (LDLIBS-tst-lfschk5): This.
58078         (LDFLAGS-tst-lfschk6): Renamed to ...
58079         (LDLIBS-tst-lfschk6): This.
58080
58081         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
58082         on $(common-objpfx)soversions.mk.
58083
58084 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
58085
58086         [BZ #10014]
58087         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
58088         example host name.
58089
58090 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
58091
58092         * malloc/arena.c (arena_get_retry): New function that gets
58093         another arena for the caller to try its request on.
58094         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
58095         current arena cannot fulfill the request.
58096         (__libc_memalign): Likewise.
58097         (__libc_memalign): Likewise.
58098         (__libc_pvalloc): Likewise.
58099         (__libc_calloc): Likewise.
58100
58101 2012-09-05  John Tobey  <john.tobey@gmail.com>
58102
58103         [BZ #13542]
58104         * manual/arith.texi (Operations on Complex): Fix description
58105         of carg branch cut.
58106
58107 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
58108
58109         [BZ #10014]
58110         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
58111         host name.
58112
58113         [BZ #10038]
58114         * manual/memory.texi (Memory): Make order of menu items match
58115         order of sections.
58116
58117 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58118
58119         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
58120         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
58121         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
58122
58123 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58124
58125         * csu/libc-tls.c (static_dtv): Renamed to ...
58126         (_dl_static_dtv): This.  Make it global.
58127         (_dl_initial_dtv): Removed.
58128         (__libc_setup_tls): Updated.
58129         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
58130         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
58131         DL_INITIAL_DTV.
58132
58133 2012-09-06  Petr Machata  <pmachata@redhat.com>
58134
58135         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
58136         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
58137         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
58138         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
58139
58140 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58141
58142         [BZ #14545]
58143         * csu/libc-tls.c (_dl_initial_dtv): New variable.
58144         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
58145         freeing dtv[-1].
58146
58147 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58148
58149         [BZ #14544]
58150         * Makeconfig (link-static-before-libc): Replace $(+prector)
58151         with $(+prectorT).
58152         (link-static-after-libc): Replace $(+postctor) with
58153         $(+postctorT).
58154         (link-bounded): Replace $(+prector)/$(+postctor) with
58155         $(+prectorT)/$(+postctorT).
58156         (+prectorT): New macro.
58157         (+postctorT): Likewise.
58158
58159 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
58160
58161         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
58162         (round_str): Handle values above the maximum for IBM long double
58163         as inexact.
58164         * stdlib/tst-strtod-round.c (tests): Regenerated.
58165
58166 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58167
58168         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
58169         assembler flag.
58170         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
58171         zarch_nohighgprs around the zarch optimized routines.
58172         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
58173         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
58174         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
58175         for zarch.
58176
58177 2012-09-05  David S. Miller  <davem@davemloft.net>
58178
58179         * sysdeps/sparc/fpu/libm-test-ulps: Update.
58180
58181         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
58182         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
58183         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
58184         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
58185         entries.
58186
58187 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58188
58189         * malloc/arena.c: Fold copyright years.
58190         * malloc/mcheck.c, malloc/memusage.c: Likewise.
58191
58192 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58193
58194         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
58195
58196 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58197
58198         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
58199
58200 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58201
58202         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
58203         change internal state upon failure.
58204
58205 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
58206
58207         * malloc/mcheck.c (mcheck_check_all): Fix typo.
58208         * malloc/memusage.c (mmap): Likewise.
58209         (mmap64, mremap): Likewise.  Adjust name in comment.
58210
58211 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
58212
58213         * libio/fileops.c: Fix typos in comments.
58214         * libio/oldfileops.c: Likewise.
58215         * libio/wfileops.c: Likewise.
58216
58217 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
58218
58219         [BZ #1349]
58220         * malloc/Makefile (tests): Add tst-malloc-usable test case.
58221         (tst-malloc-usable-ENV): Set environment for test case.
58222         * malloc/hooks.c (malloc_check_get_size): New function to get
58223         requested size.
58224         * malloc/malloc.c (musable): Use malloc_check_get_size.
58225         * malloc/tst-malloc-usable.c: New test case.
58226
58227 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
58228
58229         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
58230
58231 2012-09-05  Allan McRae  <allan@archlinux.org>
58232
58233         [BZ #13966]
58234         * configure.in (CXX_SYSINCLUDES): Use compiler output to
58235         determine header location.
58236         * configure: Regenerated.
58237
58238 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
58239
58240         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
58241         float format.
58242         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
58243         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
58244         format.
58245         (test): Regenerate.
58246
58247 2012-09-04  David S. Miller  <davem@davemloft.net>
58248
58249         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
58250         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
58251         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
58252
58253 2012-09-04  Florian Weimer  <fweimer@redhat.com>
58254
58255         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
58256         failures.
58257
58258         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
58259
58260 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
58261
58262         [BZ #9914]
58263         * libio/iogetdelim.c: Include <limits.h>.
58264         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
58265         + len + 1 would overflow.
58266
58267 2012-09-03  Andreas Jaeger  <aj@suse.de>
58268
58269         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58270         * sysdeps/i386/fpu/libm-test-ulps: Update.
58271
58272 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58273
58274         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
58275         Add s_sinf-sse2, s_conf-sse2.
58276
58277         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
58278         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
58279         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
58280         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
58281
58282         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
58283         for using routine as __sinf_ia32.
58284         Use macro for function declaration and weak_alias.
58285         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
58286         for using routine as __cosf_ia32.
58287         Use macro for function declaration and weak_alias.
58288
58289         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
58290         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
58291
58292         * sysdeps/x86_64/fpu/s_sinf.S: New file.
58293         * sysdeps/x86_64/fpu/s_cosf.S: New file.
58294         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
58295
58296         * math/libm-test.inc (cos_test): Add more test cases.
58297         (sin_test): Likewise.
58298         (sincos_test): Likewise.
58299
58300 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58301
58302         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
58303         (IFUNC_RESOLVE): Make pointers to the specialized implementations
58304         hidden.
58305         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
58306
58307 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
58308
58309         [BZ #14538]
58310         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
58311         first element of the GOT.
58312         (elf_machine_load_address): Return the difference between
58313         the runtime address of _DYNAMIC and elf_machine_dynamic ().
58314
58315 2012-09-01  Allan McRae  <allan@archlinux.org>
58316
58317         [BZ #13412]
58318         * configure.in (AWK): Require gawk version 3.0 or later.
58319         * configure: Regenerated.
58320
58321 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
58322
58323         * sysdeps/unix/sysv/linux/kernel-features.h
58324         (__ASSUME_POSIX_CPU_TIMERS): Remove.
58325         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58326         [__NR_clock_getres]: Make code unconditional.
58327         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
58328         (clock_getcpuclockid): Remove code left unreachable by removal of
58329         conditionals.
58330         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
58331         code unconditional.
58332         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
58333         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58334         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
58335         Make code unconditional.
58336         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
58337         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58338         * sysdeps/unix/sysv/linux/clock_settime.c
58339         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
58340         conditional code.
58341         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
58342         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
58343
58344 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
58345
58346         [BZ #14476]
58347         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
58348         scripts/test-installation.pl.
58349
58350         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
58351         and $ld_so_version if it is set.
58352
58353 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
58354
58355         [BZ #14516]
58356         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
58357         failure if reading from procfs failed.
58358         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
58359
58360 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
58361
58362         * sysdeps/unix/sysv/linux/kernel-features.h
58363         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
58364         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
58365         Remove conditional code.
58366         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58367         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
58368         Remove conditional code.
58369         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58370         * sysdeps/unix/sysv/linux/i386/fxstat.c
58371         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58372         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58373         * sysdeps/unix/sysv/linux/i386/fxstatat.c
58374         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58375         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58376         * sysdeps/unix/sysv/linux/i386/lxstat.c
58377         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
58378         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58379         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
58380         Remove conditional code.
58381         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58382         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
58383         Remove conditional code.
58384         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58385         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
58386         <kernel-features.h>.
58387         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
58388         Remove.
58389         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
58390         Remove conditional code.
58391         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
58392         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
58393         Remove conditional.
58394
58395 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
58396
58397         [BZ #5400]
58398         * NEWS: Add fixed bug number.
58399
58400 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
58401
58402         [BZ #14519]
58403         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
58404         underflowing exponent in case of negative sign.
58405         * stdlib/tst-strtod-round-data: Add more tests.
58406         * stdlib/tst-strtod-round.c (tests): Regenerated.
58407
58408         [BZ #3479]
58409         * stdlib/strtod_l.c (NDIG): Remove.
58410         (HEXNDIG): Likewise.
58411         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
58412         smallest representable value.
58413         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
58414         lie within an exact representation of 1/2 ulp of the result.
58415         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
58416         unconditionally.
58417         (TENS_P9_IDX): Define unconditionally.
58418         (TENS_P9_SIZE): Likewise.
58419         (TENS_P10_IDX): Likewise.
58420         (TENS_P10_SIZE): Likewise.
58421         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
58422         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
58423         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
58424         entries for 10^2^13 and 10^2^14.
58425         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
58426         (TENS_P13_IDX): Define.
58427         (TENS_P13_SIZE): Likewise.
58428         (TENS_P14_IDX): Likewise.
58429         (TENS_P14_SIZE): Likewise.
58430         (_fpioconst_pow10): Change array size to
58431         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
58432         unconditional.
58433         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
58434         1024]: Add entries for 10^2^13 and 10^2^14.
58435         [LAST_POW10 > _LAST_POW10]: Remove #error.
58436         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
58437         (_fpioconst_pow10): Change array size to
58438         FPIOCONST_POW10_ARRAY_SIZE.
58439         * stdlib/gen-fpioconst.c: New file.
58440         * stdlib/gen-tst-strtod-round.c: Likewise.
58441         * stdlib/tst-strtod-round-data: Likewise.
58442         * stdlib/tst-strtod-round.c: Likewise.
58443         * stdlib/Makefile (tests): Add tst-strtod-round.
58444
58445         [BZ #14459]
58446         * stdlib/strtod_l.c: Include <stdint.h>.
58447         (NDEBUG): Do not define.
58448         (round_and_return): Change EXPONENT parameter to type intmax_t.
58449         Rearrange calculations to avoid internal overflow possibilities.
58450         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
58451         Rearrange calculations to avoid internal overflow possibilities.
58452         Assert that number fits inside MPNSIZE limbs.
58453         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
58454         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
58455         calculations and add assertions to avoid internal overflow
58456         possibilities.  Add casts to avoid signed/unsigned operations.
58457         * stdlib/tst-strtod-overflow.c: New file.
58458         * stdlib/Makefile (tests): Add tst-strtod-overflow.
58459
58460 2012-08-25  Marek Polacek  <polacek@redhat.com>
58461
58462         * time/time.h: Fix some typos in comments.
58463
58464 2012-08-23  Roland McGrath  <roland@hack.frob.com>
58465
58466         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
58467         * posix/tst-rfc3484-2.c: Likewise.
58468         * posix/tst-rfc3484-3.c: Likewise.
58469
58470 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
58471
58472         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
58473         (EF_ARM_ABI_FLOAT_HARD): Likewise.
58474
58475 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
58476
58477         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
58478         #include of fxstatat64.c.
58479
58480 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58481
58482         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
58483         * shadow/getspent_r.c: Likewise.
58484         * shadow/getspnam.c: Likewise.
58485         * shadow/getspnam_r.c: Likewise.
58486         * gshadow/getsgent.c: Likewise.
58487         * gshadow/getsgent_r.c: Likewise.
58488         * gshadow/getsgnam.c: Likewise.
58489         * gshadow/getsgnam_r.c: Likewise.
58490         * inet/getnetbyad.c: Likewise.
58491         * inet/getnetbyad_r.c: Likewise.
58492         * inet/getnetbynm.c: Likewise.
58493         * inet/getnetbynm_r.c: Likewise.
58494         * inet/getnetent.c: Likewise.
58495         * inet/getnetent_r.c: Likewise.
58496         * inet/getproto.c: Likewise.
58497         * inet/getproto_r.c: Likewise.
58498         * inet/getprtent.c: Likewise.
58499         * inet/getprtent_r.c: Likewise.
58500         * inet/getprtname.c: Likewise.
58501         * inet/getprtname_r.c: Likewise.
58502         * inet/getrpcbyname.c: Likewise.
58503         * inet/getrpcbyname_r.c: Likewise.
58504         * inet/getrpcbynumber.c: Likewise.
58505         * inet/getrpcbynumber_r.c: Likewise.
58506         * inet/getrpcent.c: Likewise.
58507         * inet/getrpcent_r.c: Likewise.
58508         * inet/getaliasent.c: Likewise.
58509         * inet/getaliasent_r.c: Likewise.
58510         * inet/getaliasname.c: Likewise.
58511         * inet/getaliasname_r.c: Likewise.
58512         * nscd/getgrgid_r.c: Likewise.
58513         * nscd/getgrnam_r.c: Likewise.
58514         * nscd/gethstbyad_r.c: Likewise.
58515         * nscd/gethstbynm3_r.c: Likewise.
58516         * nscd/getpwnam_r.c: Likewise.
58517         * nscd/getpwuid_r.c: Likewise.
58518         * nscd/getsrvbynm_r.c: Likewise.
58519         * nscd/getsrvbypt_r.c: Likewise.
58520         * nscd/gai.c: Likewise.
58521
58522         * configure.in (build_nscd): New substituted variable, set
58523         by --disable-build-nscd and defaults to $use_nscd.
58524         * configure: Regenerated.
58525         * config.make.in (build-nscd): New substituted variable.
58526         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
58527         Change conditional to require [$(build-nscd) = yes] as well.
58528         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
58529
58530         [BZ# 13696]
58531         * configure.in (use_nscd): New substituted variable, set by
58532         --disable-nscd.  If enabled, define USE_NSCD.
58533         * configure: Regenerated.
58534         * config.h.in: Add USE_NSCD.
58535         * config.make.in (use-nscd): New substituted variable.
58536         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
58537         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
58538         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
58539         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
58540         (CFLAGS-getgrnam_r.c): Likewise.
58541         (CFLAGS-initgroups.c): Likewise.
58542         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
58543         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
58544         Variables removed.
58545         * inet/getnetgrent_r.c
58546         (nscd_setnetgrent): New function, broken out of ...
58547         (setnetgrent): ... here.  Call it.
58548         (innetgr): Conditionalize nscd bits on [USE_NSCD].
58549         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
58550         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
58551         * nscd/Makefile (routines, aux): Move definitions after include of
58552         Makeconfig.  Conditionalize on [$(use-nscd) != no].
58553         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
58554         Conditionalize on [USE_NSCD].
58555         (is_nscd, nscd_init_cb): Likewise.
58556         (nss_load_library): Conditionalize init callback on [USE_NSCD].
58557         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
58558         * nss/nss_db/db-init.c: Likewise.
58559         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
58560         [USE_NSCD].
58561         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
58562         (make_request): Use it.
58563         (cache_valid_p): New function.
58564         (__check_pf): Use it.
58565         * NEWS: Add item for --disable-nscd.
58566
58567 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
58568
58569         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
58570         to support sed >= 4.2.1-20-ga9bf076.
58571         * configure: Regenerated.
58572
58573 2012-08-22  Roland McGrath  <roland@hack.frob.com>
58574
58575         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
58576         Conditionalize whole body on [IREL].
58577
58578 2012-08-22  Jeff Law <law@redhat.com>
58579
58580         [BZ #14505]
58581         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
58582         if the family is PF_UNSPEC.
58583
58584 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
58585
58586         * Makerules (lib-version): Rename from V.
58587         (install-lib-nosubdir): Change V to lib-version.
58588
58589 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
58590
58591         [BZ #14252]
58592         * powerpc32/power6/wcschr.c: New file.
58593         * powerpc32/power6/wcscpy.c: New file.
58594         * powerpc32/power6/wcsrchr.c: New file.
58595         * powerpc64/power6/wcschr.c: New file.
58596         * powerpc64/power6/wcscpy.c: New file.
58597         * powerpc64/power6/wcsrchr.c: New file.
58598
58599 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58600
58601         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
58602         (two_way_short_needle): Use it.
58603         * string/strstr.c (AVAILABLE1_USES_J): Define.
58604         * string/strcasestr.c: Likewise.
58605
58606         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
58607         array references.
58608         * string/strcasestr.c (TOLOWER): Make side-effect safe.
58609
58610         [BZ #11607]
58611         * NEWS: Add an entry.
58612         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
58613         define their defaults.
58614         (two_way_short_needle): Detect end-of-string on-the-fly.
58615         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
58616         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
58617         * string/bug-strcasestr1.c: New test.
58618         * string/Makefile: Run it.
58619
58620 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
58621
58622         [BZ #11607]
58623         * string/str-two-way.h (two_way_short_needle): Optimize matching of
58624         the first character.
58625
58626 2012-08-21  Roland McGrath  <roland@hack.frob.com>
58627
58628         * csu/elf-init.c (__libc_csu_irel): Function removed.
58629         * csu/libc-start.c (apply_irel): New function.
58630         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
58631
58632 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
58633
58634         * sysdeps/unix/sysv/linux/kernel-features.h
58635         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
58636         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
58637         <kernel-features.h>.
58638         [__NR_fadvise64_64]: Make code unconditional.
58639         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
58640         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58641         !__NR_fadvise64_64)]: Likewise.
58642         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
58643         !__NR_fadvise64_64))]: Likewise.
58644         [__NR_fadvise64]: Make code unconditional.
58645         [!__NR_fadvise64]: Remove conditional code.
58646         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
58647         <kernel-features.h>.
58648         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58649         unconditional.
58650         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58651         conditional code.
58652         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
58653         not include <kernel-features.h>.
58654         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58655         unconditional.
58656         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58657         conditional code.
58658         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
58659         include <kernel-features.h>.
58660         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
58661         unconditional.
58662         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
58663         conditional code.
58664
58665 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
58666
58667         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
58668         slight instruction rearrangements per scrollpipe analysis.
58669         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
58670
58671 2012-08-20  Roland McGrath  <roland@hack.frob.com>
58672
58673         * manual/syslog.texi (syslog; vsyslog, closelog):
58674         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
58675         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
58676
58677         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
58678         DSOCAPS to match condition on defining it.
58679
58680 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
58681
58682         * sysdeps/unix/sysv/linux/kernel-features.h
58683         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
58684         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
58685         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58686         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
58688         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58689         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58690         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
58691         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
58692         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
58693
58694         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
58695         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
58696
58697         * sysdeps/unix/sysv/linux/kernel-features.h
58698         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
58699         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
58700         unconditional.
58701         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58702         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
58703         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58704         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58705         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
58706         Make code unconditional.
58707         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58708         (__mmap64) [!__NR_mmap2]: Likewise.
58709         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
58710         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
58711         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58712         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
58713         [__NR_mmap2]: Make code unconditional.
58714         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
58715         (__mmap64) [!__NR_mmap2]: Likewise.
58716
58717 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
58718
58719         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
58720
58721 2012-08-18  Andreas Jaeger  <aj@suse.de>
58722
58723         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
58724
58725 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58726
58727         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
58728         * include/unistd.h (__have_sock_cloexec): Likewise.
58729         (__have_pipe2): Likewise.
58730         (__have_dup3): Likewise.
58731
58732 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
58733
58734         [BZ #9685]
58735         * include/unistd.h (__have_pipe2): Change define into an extern int.
58736         (__have_dup3): Likewise.
58737         * socket/have_sock_cloexec.c: Include fcntl.h.
58738         (__have_pipe2): New variable.
58739         (__have_dup3): Likewise.
58740
58741 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
58742
58743         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
58744
58745 2012-08-17  Marek Polacek  <polacek@redhat.com>
58746
58747         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
58748         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
58749
58750 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58751
58752         * configure.in: Add AC_SUBST for sysheaders.
58753         * configure: Regenerated.
58754         * config.make.in (sysheaders): New substituted variable.
58755
58756         * sysdeps/unix/mkfifo.c: Moved ...
58757         * sysdeps/posix/mkfifo.c: ... here.
58758         * sysdeps/unix/mkfifoat.c: Moved ...
58759         * sysdeps/posix/mkfifoat.c: ... here.
58760
58761         * sysdeps/unix/utime.c: Moved ...
58762         * sysdeps/posix/utime.c: ... here.
58763
58764         * sysdeps/unix/time.c: Moved ...
58765         * sysdeps/posix/time.c: ... here.
58766         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
58767         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
58768
58769         * sysdeps/unix/nice.c: Moved ...
58770         * sysdeps/posix/nice.c: ... here.
58771
58772         * sysdeps/unix/alarm.c: Moved ...
58773         * sysdeps/posix/alarm.c: ... here.
58774
58775         * intl/Makefile ($(codeset_mo)): Depend on the input file.
58776
58777 2012-08-17  Jeff Law <law@redhat.com>
58778
58779         * intl/Makefile (codeset_mo): New variable.
58780         ($(codeset_mo)): New target.
58781         (tst-codeset.out): Depend on that.  Remove explicit rule.
58782         (tst-gettext3.out, tst-gettext5.out): Likewise.
58783         (LOCPATH-ENV, tst-codeset-ENV): New variables.
58784         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
58785         * intl/tst-codeset.sh: Remove.
58786         * intl/tst-gettext3.sh: Likewise.
58787         * intl/tst-gettext5.sh: Likewise.
58788
58789 2012-08-17  Roland McGrath  <roland@hack.frob.com>
58790
58791         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
58792         * sysdeps/unix/syscalls.list: ... here.
58793
58794         * sysdeps/posix/getaddrinfo.c
58795         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
58796         (gaiconf_init, gaiconf_reload): Use them.
58797         [!_STATBUF_ST_NSEC]
58798         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
58799         Define using time_t rather than struct timespec.
58800
58801         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
58802         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
58803         Macros removed.
58804         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
58805         [!NO_THREADS].
58806         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
58807         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
58808         Likewise.
58809
58810         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
58811         __libc_cleanup_push argument.
58812
58813         * bits/param.h: New file.
58814         * misc/sys/param.h: New file.
58815         * include/sys/param.h: New file.
58816         * misc/Makefile (headers): Add bits/param.h.
58817         * sysdeps/generic/sys/param.h: File removed.
58818         * sysdeps/unix/sysv/linux/bits/param.h: New file.
58819         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
58820         * sysdeps/mach/hurd/bits/param.h: New file.
58821         * sysdeps/mach/hurd/sys/param.h: File removed.
58822
58823         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
58824         last change.
58825
58826         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
58827         [_IO_MTSAFE_IO].
58828         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
58829         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
58830         New macros.
58831
58832         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
58833         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
58834         rather than -D_IO_MTSAFE_IO conditionally.
58835         * stdio-common/Makefile (CPPFLAGS): Likewise.
58836         * wcsmbs/Makefile (CPPFLAGS): Likewise.
58837         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
58838         Use $(libio-mtsafe).
58839         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
58840         of -D_IO_MTSAFE_IO.
58841         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
58842         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
58843         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
58844         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
58845         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
58846         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
58847         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
58848         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
58849         (CFLAGS-fread_u_chk.c): Likewise.
58850         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
58851         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
58852         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
58853         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
58854         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
58855         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
58856         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
58857         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
58858         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
58859
58860         * libio/Makefile: Test [$(libc-reentrant) = yes]
58861         instead of [$(filter %REENTRANT, $(defines)) nonempty].
58862
58863         * Makeconfig
58864         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
58865         * sysdeps/pthread/configure: File removed.
58866         * sysdeps/pthread/Makeconfig: New file.
58867         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
58868         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
58869
58870 2012-08-16  Gary Benson  <gbenson@redhat.com>
58871
58872         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
58873         unmapping the first object in a namespace.
58874
58875 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58876
58877         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
58878         (__internal_setnetgrent): ... this.  Add internal_function to
58879         definition.  Add libc_hidden_def.
58880         (setnetgrent): Update caller.
58881         (internal_endnetgrent): Renamed to ...
58882         (__internal_endnetgrent): ... this.  Add internal_function to
58883         definition.  Add libc_hidden_def.
58884         (endnetgrent): Update caller.
58885         (internal_getnetgrent_r): Renamed to ...
58886         (__internal_getnetgrent_r): ... this.  Add internal_function to
58887         definition.  Add libc_hidden_def.
58888         (__getnetgrent_r): Update caller.
58889         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
58890
58891 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58892
58893         * stdlib/longlong.h: Update from GCC.
58894
58895 2012-08-16  Roland McGrath  <roland@hack.frob.com>
58896
58897         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
58898         on _QL, which is set by umul_ppmm but never used.
58899         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
58900         variables, which are set by GMP macros but never used.
58901         * stdio-common/_itowa.c (_itowa): Likewise.
58902         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
58903         * stdlib/mod_1.c (mpn_mod_1): Likewise.
58904
58905 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
58906
58907         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
58908         struct La_sh_regs is not constant.
58909         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
58910         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
58911         and struct La_sparc64_regs are not constant.
58912
58913 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
58914
58915         * sysdeps/unix/sysv/linux/kernel-features.h
58916         (__ASSUME_POSIX_TIMERS): Remove.
58917         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
58918         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58919         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
58920         Make code unconditional.
58921         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58922         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
58923         Make code unconditional.
58924         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58925         * sysdeps/unix/sysv/linux/clock_nanosleep.c
58926         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
58927         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58928         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
58929         Make code unconditional.
58930         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
58931         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
58932         (__libc_missing_posix_timers): Remove.
58933
58934 2012-08-15  Roland McGrath  <roland@hack.frob.com>
58935
58936         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
58937         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
58938
58939         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
58940
58941         * elf/dl-sym.c: Include <stdlib.h>.
58942
58943         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
58944         constants, which avoids warnings in 32-bit builds.
58945
58946         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
58947         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
58948
58949         * misc/lseek.c: File moved to ...
58950         * io/lseek.c: ... here.
58951
58952         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
58953
58954         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
58955         shifting LEN more than 31 bits at once.
58956
58957 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
58958
58959         [BZ #14195]
58960         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
58961         segmentation fault for a case of two empty input strings.
58962         * string/test-strncasecmp.c (check1): Renamed to...
58963         (bz12205): ...this.
58964         (bz14195): Add new testcase for two empty input strings and N > 0.
58965         (test_main): Call new testcase, adapt for renamed function.
58966
58967 2012-08-15  Andreas Jaeger  <aj@suse.de>
58968
58969         [BZ #14090]
58970         * crypt/md5test2.c: New test, based on test supplied by Serge
58971         Belyshev <belyshev@depni.sinp.msu.ru>.
58972         * crypt/Makefile (xtests): Add md5test-giant..
58973         * crypt/Makefile ($(objpfx)md5test-giant): Add.
58974
58975 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58976
58977         [BZ #14090]
58978         * crypt/md5.c (md5_process_block): Don't assume the buffer
58979         length is less than 2**32.
58980         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
58981         length is less than 2**64.
58982
58983 2012-08-15  Roland McGrath  <roland@hack.frob.com>
58984
58985         * string/str-two-way.h: Include <sys/param.h>.
58986         (MAX): Macro removed.
58987
58988         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
58989         Move #define and #undef of memmove to just before and after
58990         including <string.h>.
58991
58992         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
58993         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
58994         and after including <string.h>.  Move declarations of
58995         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
58996         to before #include "string/memmove.c".
58997
58998         * include/dirent.h: Declare __getdirentries.
58999
59000         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
59001         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
59002
59003 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
59004
59005         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
59006         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
59007         * sysdeps/i386/configure: Regenerated.
59008         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
59009         STABS_CURRENT_FILE, and STABS_FUN.
59010         (END): Remove call to STABS_FUN_END.
59011         (STABS_CURRENT_FILE1): Delete.
59012         (STABS_CURRENT_FILE): Likewise.
59013         (STABS_FUN): Likewise.
59014         (STABS_FUN_END): Likewise.
59015         (STABS_FUN2): Likewise.
59016         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
59017         * sysdeps/x86_64/configure: Regenerated.
59018
59019 2012-08-14  Roland McGrath  <roland@hack.frob.com>
59020
59021         * elf/dl-open.c: Include <atomic.h>.
59022         * elf/dl-lookup.c: Likewise.
59023
59024 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
59025
59026         * sysdeps/unix/sysv/linux/kernel-features.h
59027         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
59028         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
59029         unconditionally.
59030         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
59031         unconditionally.
59032         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
59033         condition on __ASSUME_CLONE_THREAD_FLAGS.
59034
59035 2012-08-14  Andreas Jaeger  <aj@suse.de>
59036
59037         * sysdeps/i386/fpu/libm-test-ulps: Update.
59038
59039 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
59040
59041         * include/atomic.h (atomic_exchange_and_add): Split into ...
59042         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
59043         New atomic macros.
59044
59045 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
59046
59047         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
59048
59049 2012-08-13  Jeff Law <law@redhat.com>
59050
59051         * manual/stdio.texi (snprintf): Clarify handling of the trailing
59052         null byte in the output string.
59053
59054 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
59055
59056         * sysdeps/unix/sysv/linux/kernel-features.h
59057         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
59058         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
59059         (__ASSUME_ARG_MAX_STACK_BASED): Define.
59060         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
59061         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
59062         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
59063         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
59064
59065 2012-08-09  Jeff Law <law@redhat.com>
59066
59067         [BZ #13939]
59068         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
59069         When avoid_arena is set, don't retry in the that arena.  Pick the
59070         next one, whatever it might be.
59071         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
59072         (arena_lock): Pass in new parameter to arena_get2.
59073         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
59074         arena_get2.
59075         (__libc_malloc): Unify retrying after main arena failure with
59076         __libc_memalign version.
59077         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
59078
59079 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
59080
59081         [BZ #14166]
59082         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
59083         to __redirect_strstr.
59084         (__strstr_sse42): Use typeof __redirect_strstr.
59085         (__strstr_ia32): Likewise.
59086         (__libc_strstr): New prototype.
59087         (strstr): Renamed to ...
59088         (__libc_strstr): This.
59089         (strstr): New strong alias of __libc_strstr.
59090         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
59091         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
59092         __redirect_time.
59093         Include <time.h>.
59094         (__libc_time): New prototype.
59095         (time_ifunc): Replace time with __libc_time.
59096         (time): New strong alias and hidden definition of __libc_time.
59097         (__GI_time): Remove strong alias.
59098         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
59099         Include <stddef.h>.
59100         (memmove): Redefined to __redirect_memmove.
59101         (__memmove_sse2): Use typeof __redirect_memmove.
59102         (__memmove_ssse3): Likewise.
59103         (__memmove_ssse3_back): Likewise.
59104         (__libc_memmove): New prototype.
59105         (memmove): Renamed to ...
59106         (__libc_memmove): This.
59107         (memmove): New strong alias of __libc_memmove.
59108
59109 2012-08-08  Mark Salter  <msalter@redhat.com>
59110
59111         * elf/elf.h
59112         (R_MN10300_TLS_GD): Define.
59113         (R_MN10300_TLS_LD): Likewise.
59114         (R_MN10300_TLS_LDO): Likewise.
59115         (R_MN10300_TLS_GOTIE): Likewise.
59116         (R_MN10300_TLS_IE): Likewise.
59117         (R_MN10300_TLS_LE): Likewise.
59118         (R_MN10300_TLS_DTPMOD): Likewise.
59119         (R_MN10300_TLS_DTPOFF): Likewise.
59120         (R_MN10300_TLS_TPOFF): Likewise.
59121         (R_MN10300_SYM_DIFF): Likewise.
59122         (R_MN10300_ALIGN): Likewise.
59123         (R_MN10300_NUM): Update.
59124
59125 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
59126
59127         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
59128         Remove.
59129
59130 2012-08-08  Roland McGrath  <roland@hack.frob.com>
59131
59132         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
59133
59134         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
59135         sysdeps/unix -> sysdeps/posix move.
59136         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
59137
59138 2012-08-07      Allan McRae     <allan@archlinux.org>
59139
59140         [BZ #14303]
59141         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
59142         (SUNOS_CPP): Likewise.
59143         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
59144         not found.
59145         (open_input): Call CPP using execvp.
59146
59147 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
59148
59149         * sysdeps/unix/sysv/linux/kernel-features.h
59150         (__ASSUME_PROT_GROWSUPDOWN): Remove.
59151         (__ASSUME_NO_CLONE_DETACHED): Likewise.
59152         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
59153         (__ASSUME_WAITID_SYSCALL): Likewise.
59154         * sysdeps/unix/sysv/linux/dl-execstack.c
59155         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
59156         code unconditional.
59157         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
59158         conditional code.
59159         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
59160         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
59161         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
59162         code.
59163         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
59164         unconditional.
59165         [__ASSUME_WAITID_SYSCALL]: Likewise.
59166         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
59167
59168 2012-08-07  Roland McGrath  <roland@hack.frob.com>
59169
59170         * sysdeps/unix/closedir.c: Renamed to ...
59171         * sysdeps/posix/closedir.c: ... here.
59172         * sysdeps/unix/dirfd.c: Renamed to ...
59173         * sysdeps/posix/dirfd.c: ... here.
59174         * sysdeps/unix/dirstream.h: Renamed to ...
59175         * sysdeps/posix/dirstream.h: ... here.
59176         * sysdeps/unix/fdopendir.c: Renamed to ...
59177         * sysdeps/posix/fdopendir.c: ... here.
59178         * sysdeps/unix/opendir.c: Renamed to ...
59179         * sysdeps/posix/opendir.c: ... here.
59180         * sysdeps/unix/readdir.c: Renamed to ...
59181         * sysdeps/posix/readdir.c: ... here.
59182         * sysdeps/unix/readdir_r.c: Renamed to ...
59183         * sysdeps/posix/readdir_r.c: ... here.
59184         * sysdeps/unix/rewinddir.c: Renamed to ...
59185         * sysdeps/posix/rewinddir.c: ... here.
59186         * sysdeps/unix/seekdir.c: Renamed to ...
59187         * sysdeps/posix/seekdir.c: ... here.
59188         * sysdeps/unix/telldir.c: Renamed to ...
59189         * sysdeps/posix/telldir.c: ... here.
59190         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
59191         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
59192         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
59193         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
59194
59195         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
59196         * bits/fcntl.h: ... here.
59197
59198         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
59199         not 0.
59200         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
59201         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
59202         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
59203         (struct flock): Move l_start, l_len to the beginning.
59204         Use __pid_t for l_pid.
59205         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
59206         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
59207         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
59208         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
59209         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
59210         [__USE_LARGEFILE64] (struct flock64): New type.
59211         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
59212
59213         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
59214         * bits/dirent.h: ... here.
59215
59216         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
59217         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
59218
59219 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
59220
59221         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59222         Change from 2.6.0 to 2.6.16.
59223         * sysdeps/unix/sysv/linux/configure: Regenerated.
59224         * sysdeps/unix/sysv/linux/kernel-features.h
59225         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
59226         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
59227         version.
59228         (__ASSUME_UTIMES): Likewise.
59229         (__ASSUME_CLONE_STOPPED): Remove.
59230         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
59231         architectures, not kernel version.
59232         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
59233         (__ASSUME_NO_CLONE_DETACHED): Likewise.
59234         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
59235         (__ASSUME_WAITID_SYSCALL): Likewise.
59236         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
59237         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
59238         * README: State 2.6.16 as minimum Linux kernel version.  Do not
59239         refer to older versions.
59240
59241 2012-08-06  Roland McGrath  <roland@hack.frob.com>
59242
59243         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
59244         Define alphasort64 as an alias.
59245         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
59246         Define versionsort64 as an alias.
59247         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
59248         Define scandir64 as an alias.
59249         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
59250         Define scandirat64 as an alias.
59251         * dirent/alphasort64.c (alphasort64):
59252         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
59253         * dirent/versionsort64.c: Likewise.
59254         * dirent/scandir64.c: Likewise.
59255         * dirent/scandirat64.c: Likewise.
59256         * sysdeps/wordsize-64/alphasort.c: File removed.
59257         * sysdeps/wordsize-64/alphasort64.c: File removed.
59258         * sysdeps/wordsize-64/scandir.c: File removed.
59259         * sysdeps/wordsize-64/scandir64.c: File removed.
59260         * sysdeps/wordsize-64/scandirat.c: File removed.
59261         * sysdeps/wordsize-64/scandirat64.c: File removed.
59262         * sysdeps/wordsize-64/versionsort.c: File removed.
59263         * sysdeps/wordsize-64/versionsort64.c: File removed.
59264         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
59265         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
59266         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
59267         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
59268         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
59269         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
59270         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
59271         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
59272
59273         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
59274         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
59275         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
59276         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
59277         [defined __arch64__ || defined __sparcv9]
59278         (__INO_T_MATCHES_INO64_T): New macro.
59279         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
59280         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
59281         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
59282         * sysdeps/unix/sysv/linux/bits/dirent.h
59283         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
59284         (_DIRENT_MATCHES_DIRENT64): New macro.
59285
59286         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
59287         Define lockf64 as an alias.
59288         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
59289         Define fseeko64 as an alias.
59290         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
59291         Define ftello64 as an alias.
59292         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
59293         Define _IO_fgetpos64 and fgetpos64 as aliases.
59294         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
59295         Define _IO_fsetpos64 and fsetpos64 as aliases.
59296         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
59297         Conditionalize body on this.
59298         * libio/fseeko64.c: Likewise.
59299         * libio/ftello64.c: Likewise.
59300         * libio/iofgetpos64.c: Likewise.
59301         * libio/iofsetpos64.c: Likewise.
59302         * sysdeps/wordsize-64/lockf.c: File removed.
59303         * sysdeps/wordsize-64/lockf64.c: File removed.
59304         * sysdeps/wordsize-64/fseeko.c: File removed.
59305         * sysdeps/wordsize-64/fseeko64.c: File removed.
59306         * sysdeps/wordsize-64/ftello.c: File removed.
59307         * sysdeps/wordsize-64/ftello64.c: File removed.
59308         * sysdeps/wordsize-64/iofgetpos.c: File removed.
59309         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
59310         * sysdeps/wordsize-64/iofsetpos.c: File removed.
59311         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
59312         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
59313         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
59314         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
59315         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
59316         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
59317         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
59318         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
59319         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
59320         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
59321         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
59322
59323         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
59324         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
59325         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
59326         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
59327         [defined __arch64__ || defined __sparcv9]
59328         (__OFF_T_MATCHES_OFF64_T): New macro.
59329         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
59330         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
59331         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
59332         (__OFF_T_MATCHES_OFF64_T): New macro.
59333
59334 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
59335
59336         * stdlib/secure-getenv.c (__secure_getenv): Replace
59337         GLIBC_2_16 with GLIBC_2_17.
59338
59339 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
59340
59341         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
59342         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
59343
59344 2012-08-03  David S. Miller  <davem@davemloft.net>
59345
59346         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59347
59348 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
59349
59350         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
59351         Remove.
59352         (__ASSUME_CORRECT_SI_PID): Likewise.
59353         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
59354         (__ASSUME_TMPFS_NAME): Likewise.
59355         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
59356         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
59357         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
59358         (HAVE_AUX_SECURE): Make definition unconditional.
59359         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
59360         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
59361
59362 2012-08-03  Roland McGrath  <roland@hack.frob.com>
59363
59364         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
59365         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
59366         * sysdeps/mach/hurd/eloop-threshold.h: New file.
59367         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
59368         __eloop_threshold instead of SYMLOOP_MAX.
59369
59370         * sysdeps/generic/eloop-threshold.h: New file.
59371         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
59372         of MAXSYMLINKS.
59373         * elf/chroot_canon.c (chroot_canon): Likewise.
59374
59375 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
59376
59377         [BZ #13717]
59378         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59379         Change to 2.6.0 everywhere.
59380         * sysdeps/unix/sysv/linux/configure: Regenerated.
59381         * sysdeps/unix/sysv/linux/kernel-features.h
59382         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
59383         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
59384         kernel versions.
59385         (__ASSUME_POSIX_TIMERS): Define unconditionally.
59386         (__ASSUME_FUTEX_REQUEUE): Remove.
59387         (__ASSUME_STATFS64): Define unconditionally.
59388         (__ASSUME_AT_SECURE): Likewise.
59389         (__ASSUME_CORRECT_SI_PID): Likewise.
59390         (__ASSUME_TGKILL): Define without depending on kernel version for
59391         i386.
59392         (__ASSUME_UTIMES): Likewise.
59393         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
59394         kernel version.
59395         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
59396         (__ASSUME_TMPFS_NAME): Likewise.
59397         * README: Update reference to Linux kernel versions.
59398
59399 2012-08-02  Marek Polacek  <polacek@redhat.com>
59400
59401         [BZ# 14150]
59402         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
59403         libc_cv_asm_type_prefix with %.
59404         * configure: Regenerated.
59405         * include/libc-symbols.h: Remove comment about
59406         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
59407         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
59408         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
59409         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
59410         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
59411         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
59412         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
59413         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
59414         * elf/tst-unique2mod1.c: Likewise.
59415         * elf/tst-unique1mod2.c: Likewise.
59416         * elf/tst-unique1mod1.c: Likewise.
59417         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
59418         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
59419         Replace ASM_TYPE_DIRECTIVE with .type.
59420         * sysdeps/s390/s390-64/sysdep.h: Likewise.
59421         * sysdeps/i386/sysdep.h: Likewise.
59422         * sysdeps/x86_64/sysdep.h: Likewise.
59423         * sysdeps/sh/sysdep.h: Likewise.
59424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
59425         Do not define ASM_TYPE_DIRECTIVE.
59426         * sysdeps/powerpc/sysdep.h: Likewise.
59427         * sysdeps/powerpc/powerpc32/sysdep.h:
59428         Replace ASM_TYPE_DIRECTIVE with .type.
59429         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
59430         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
59431         * sysdeps/i386/fpu/e_powf.S: Likewise.
59432         * sysdeps/i386/fpu/e_expl.S: Likewise.
59433         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
59434         * sysdeps/i386/fpu/e_acosh.S: Likewise.
59435         * sysdeps/i386/fpu/e_pow.S: Likewise.
59436         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
59437         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
59438         * sysdeps/i386/fpu/s_expm1.S: Likewise.
59439         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
59440         * sysdeps/i386/fpu/e_log2.S: Likewise.
59441         * sysdeps/i386/fpu/e_log2l.S: Likewise.
59442         * sysdeps/i386/fpu/e_scalb.S: Likewise.
59443         * sysdeps/i386/fpu/e_powl.S: Likewise.
59444         * sysdeps/i386/fpu/e_log10f.S: Likewise.
59445         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
59446         * sysdeps/i386/fpu/e_logl.S: Likewise.
59447         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
59448         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
59449         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
59450         * sysdeps/i386/fpu/e_log2f.S: Likewise.
59451         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
59452         * sysdeps/i386/fpu/e_log.S: Likewise.
59453         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
59454         * sysdeps/i386/fpu/e_logf.S: Likewise.
59455         * sysdeps/i386/fpu/e_log10l.S: Likewise.
59456         * sysdeps/i386/fpu/e_atanh.S: Likewise.
59457         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
59458         * sysdeps/i386/fpu/e_log10.S: Likewise.
59459         * sysdeps/i386/fpu/s_frexp.S: Likewise.
59460         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
59461         * sysdeps/i386/fpu/s_asinh.S: Likewise.
59462         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
59463         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
59464         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
59465         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
59466         * sysdeps/i386/i686/strtok.S: Likewise.
59467         * sysdeps/i386/i386-mcount.S: Likewise.
59468         * sysdeps/i386/strtok.S: Likewise.
59469         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
59470         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
59471         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
59472         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
59473         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
59474         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
59475         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
59476         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
59477         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
59478         * sysdeps/x86_64/_mcount.S: Likewise.
59479         * sysdeps/x86_64/strtok.S: Likewise.
59480         * sysdeps/sh/_mcount.S: Likewise.
59481
59482 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59483
59484         * libio/iofopen.c: Include <fcntl.h>.
59485         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
59486         (_IO_fopen64, fopen64): Define as aliases.
59487         * libio/iofopen64.c: Include <fcntl.h>.
59488         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
59489         Conditionalize body on this.
59490         * sysdeps/wordsize-64/iofopen.c: File removed.
59491         * sysdeps/wordsize-64/iofopen64.c: File removed.
59492
59493 2012-08-01  Marek Polacek  <polacek@redhat.com>
59494
59495         * libc/Makeconfig: Use elf in place of binfmt-subdir.
59496         Use dlfcn directly instead of a variable.
59497         (binfmt-subdir): Do not define.
59498         (dlfcn): Likewise.
59499
59500 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
59501
59502         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
59503         Remove all definitions.
59504         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
59505         <kernel-features.h>.
59506         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59507         (miss_F_GETOWN_EX): Remove all definitions.
59508         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
59509         macro definition.
59510         [!__ASSUME_FCNTL64]: Remove conditional code.
59511         [__ASSUME_FCNTL64]: Make code unconditional.
59512         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
59513         <kernel-features.h>.
59514         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
59515         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
59516         (lockf64) [__NR_fcntl64]: Make code unconditional.
59517         (lockf64) [__ASSUME_FCNTL64]: Likewise.
59518
59519         * sysdeps/unix/sysv/linux/kernel-features.h
59520         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
59521         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
59522         Make code unconditional.
59523         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59524         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59525         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
59526         [__NR_vfork]: Make code unconditional.
59527         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59528         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59529         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
59530         [__NR_vfork]: Make code unconditional.
59531         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
59532         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
59533
59534 2012-08-01  Roland McGrath  <roland@hack.frob.com>
59535
59536         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
59537         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
59538
59539         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59540         Define mkstemp64 as an alias.
59541         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59542         Define mkstemps64 as an alias.
59543         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59544         Define mkostemp64 as an alias.
59545         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
59546         Define mkostemps64 as an alias.
59547         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
59548         Conditionalize body on this.
59549         * misc/mkostemp64.c: Likewise.
59550         * misc/mkostemps64.c: Likewise.
59551         * misc/mkstemps64.c: Likewise.
59552         * sysdeps/wordsize-64/mkstemp64.c: File removed.
59553         * sysdeps/wordsize-64/mkostemp64.c: File removed.
59554         * sysdeps/wordsize-64/mkostemp.c: File removed.
59555         * sysdeps/wordsize-64/mkstemp.c: File removed.
59556         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
59557         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
59558         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
59559         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
59560
59561         [BZ #14138]
59562         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
59563         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
59564         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
59565         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
59566
59567         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
59568         compat_symbol macros from <shlib-compat.h> rather than the underlying
59569         default_symbol_version and symbol_version macros, so that DEFAULT
59570         lines in shlib-versions are respected.
59571         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
59572
59573 2012-08-01  Florian Weimer  <fweimer@redhat.com>
59574
59575         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
59576         Declare with warn_unused_result.
59577         (setgid, setregid, setegid, setresgid): Likewise.
59578         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
59579         Likewise.
59580         * WUR-REPORT: Remove set*id functions.
59581
59582 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
59583
59584         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
59585
59586 2012-07-31  Roland McGrath  <roland@hack.frob.com>
59587
59588         [BZ #10191]
59589         * include/sys/socket.h (__libc_accept, __libc_accept4):
59590         Add attribute_hidden.
59591         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
59592
59593         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
59594         use of PTR_MANGLE.
59595         * inet/getnetgrent_r.c (setup): Likewise.
59596
59597         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
59598
59599 2012-07-31  David S. Miller  <davem@davemloft.net>
59600
59601         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59602
59603 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
59604
59605         [BZ #13629]
59606         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
59607         value between 1.0 and 2.0 and smaller part has absolute value less
59608         than 1.0.
59609         * math/s_clog10.c (__clog10): Likewise.
59610         * math/s_clog10f.c (__clog10f): Likewise.
59611         * math/s_clog10l.c (__clog10l): Likewise.
59612         * math/s_clogf.c (__clogf): Likewise.
59613         * math/s_clogl.c (__clogl): Likewise.
59614         * math/libm-test.inc (clog_test): Add more tests.
59615         (clog10_test): Likewise.
59616         * sysdeps/i386/fpu/libm-test-ulps: Update.
59617         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59618
59619 2012-07-31  Florian Weimer  <fweimer@redhat.com>
59620
59621         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
59622         Exit with zero in case no suitable GID is found, and write a
59623         message to standard error.
59624
59625 2012-07-30  Roland McGrath  <roland@hack.frob.com>
59626
59627         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
59628         rather than to 1.
59629         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
59630         (MAXPATHLEN): Removed.
59631         (NOGROUP, NODEV): New macros.
59632         (setbit, clrbit, isset, isclr): New macros.
59633         (howmany, roundup, powerof2): New macros.
59634         (DEV_BSIZE): New macro.
59635
59636         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
59637         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
59638
59639         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
59640         definition on [!__NO_LONG_DOUBLE_MATH].
59641
59642         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
59643         PTR_MANGLE and PTR_DEMANGLE.
59644
59645         * socket/accept4.c (accept4): Rename to __libc_accept4.
59646         Define accept4 as a weak alias.
59647
59648         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
59649         on [_DIRENT_HAVE_D_TYPE].
59650         * io/ftw.c (ftw_dir): Likewise.
59651
59652         * io/xmknod.c (__xmknod): Don't check PATH for being null.
59653
59654         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
59655
59656         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
59657         Use the BSD numbers rather than the arbitrary ones we had.
59658         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
59659         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
59660         (SIGXCPU, SIGXFSZ): New macros.
59661         (_NSIG): Now 32.
59662
59663         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
59664         initializer on [_LIBC_REENTRANT].
59665
59666         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
59667         definitions inside [_POSIX_MAPPED_FILES].
59668
59669         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
59670
59671         * dirent/opendir.c: Include <fcntl.h>.
59672
59673         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
59674         (__libc_getspecific): Likewise.
59675         (__libc_key_create): Likewise.
59676
59677         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
59678         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
59679         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
59680         (tmpfile64): Define as alias.
59681         * sysdeps/wordsize-64/tmpfile.c: File removed.
59682         * sysdeps/wordsize-64/tmpfile64.c: File removed.
59683         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
59684         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
59685
59686         * stdio-common/vfscanf.c: Include <stdbool.h>.
59687         * nss/makedb.c: Likewise.
59688         * stdio-common/_i18n_number.h: Likewise.
59689         * argp/argp-help.c: Likewise.
59690         * posix/wordexp.c: Likewise.
59691         * sysdeps/posix/spawni.c: Likewise.
59692         * nss/nss_files/files-initgroups.c: Likewise.
59693         * stdio-common/reg-modifier.c: Include <stdlib.h>.
59694         * nss/nss_files/files-initgroups.c: Likewise.
59695         * nss/nss_db/db-netgrp.c: Likewise.
59696         * nss/nss_db/db-initgroups.c: Likewise.
59697         * io/fchmodat.c: Include <sys/stat.h>.
59698
59699         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
59700         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
59701
59702         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
59703         [HAVE_MMAP].
59704
59705         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
59706         Add multiple inclusion protection.
59707
59708 2012-07-27  David S. Miller  <davem@davemloft.net>
59709
59710         * sysdeps/sparc/fpu/libm-test-ulps: Update.
59711
59712 2012-07-27  Gary Benson  <gbenson@redhat.com>
59713
59714         [BZ #14298]
59715         * elf/rtld.c: Include <stap-probe.h>.
59716         (dl_main): Added static probes "init_start" and "init_complete".
59717         * elf/dl-load.c: Include <stap-probe.h>.
59718         (lose): Take new parameter "nsid".
59719         Added static probe "map_failed".
59720         (_dl_map_object_from_fd): Pass namespace id to lose.
59721         Added static probe "map_start".
59722         (open_verify): Pass namespace id to lose.
59723         * elf/dl-open.c: Include <stap-probe.h>.
59724         (dl_open_worker) Added static probes "map_complete", "reloc_start"
59725         and "reloc_complete".
59726         * elf/dl-close.c: Include <stap-probe.h>.
59727         (_dl_close_worker): Added static probes "unmap_start" and
59728         "unmap_complete".
59729         * elf/rtld-debugger-interface.txt: New file documenting the above.
59730
59731 2012-07-26  Roland McGrath  <roland@hack.frob.com>
59732
59733         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
59734         rather than a string variable.
59735         * sunrpc/rpc_main.c (h_output): Likewise.
59736         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
59737
59738 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
59739
59740         * inet/check_native.c: New file.
59741
59742 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
59743
59744         [BZ #13629]
59745         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
59746         if larger part has absolute value 1.0.
59747         * math/s_clog10.c (__clog10): Likewise.
59748         * math/s_clog10f.c (__clog10f): Likewise.
59749         * math/s_clog10l.c (__clog10l): Likewise.
59750         * math/s_clogf.c (__clogf): Likewise.
59751         * math/s_clogl.c (__clogl): Likewise.
59752         * math/libm-test.inc (clog_test): Add more tests.
59753         (clog10_test): Likewise.
59754         * sysdeps/i386/fpu/libm-test-ulps: Update.
59755         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
59756
59757         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
59758         (pltexit): Likewise.
59759         (La_regs): Likewise.
59760         (La_retval): Likewise.
59761         (int_retval): Likewise.
59762         Update #error for removed macros to refer only to definitions in
59763         tst-audit.h.
59764         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
59765         macro.
59766         (pltexit): Likewise.
59767         (La_regs): Likewise.
59768         (La_retval): Likewise.
59769         (int_retval): Likewise.
59770         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
59771         macro.
59772         (pltexit): Likewise.
59773         (La_regs): Likewise.
59774         (La_retval): Likewise.
59775         (int_retval): Likewise.
59776         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
59777         macro.
59778         (pltexit): Likewise.
59779         (La_regs): Likewise.
59780         (La_retval): Likewise.
59781         (int_retval): Likewise.
59782         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
59783         macro.
59784         (pltexit): Likewise.
59785         (La_regs): Likewise.
59786         (La_retval): Likewise.
59787         (int_retval): Likewise.
59788         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
59789         macro.
59790         (pltexit): Likewise.
59791         (La_regs): Likewise.
59792         (La_retval): Likewise.
59793         (int_retval): Likewise.
59794         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
59795         macro.
59796         (pltexit): Likewise.
59797         (La_regs): Likewise.
59798         (La_retval): Likewise.
59799         (int_retval): Likewise.
59800         * sysdeps/generic/tst-audit.h: Update comment to refer only to
59801         macro definitions in tst-audit.h.
59802         * sysdeps/i386/tst-audit.h: New file.
59803         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
59804         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
59805         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
59806         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
59807         * sysdeps/sh/tst-audit.h: Likewise.
59808         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
59809         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
59810         * sysdeps/x86_64/tst-audit.h: Likewise.
59811
59812 2012-07-26  Andreas Jaeger  <aj@suse.de>
59813
59814         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
59815         ptrace.
59816
59817         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
59818         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
59819         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
59820         PTRACE_O_MASK.
59821         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
59822         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
59823         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
59824
59825         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
59826         value.
59827
59828         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
59829         _sigsys.
59830         (si_call_addr, si_syscall, si_arch): Define new macro.
59831         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
59832         _sigsys.
59833         (si_call_addr, si_syscall, si_arch): Define new marcro.
59834         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
59835         _sigsys.
59836         (si_call_addr, si_syscall, si_arch): Define new macro.
59837         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
59838         _sigsys.
59839         (si_call_addr, si_syscall, si_arch): Define new macro.
59840
59841 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59842
59843         [BZ #13717]
59844         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
59845         Change to 2.4.21 where previously 2.4.1.
59846         * sysdeps/unix/sysv/linux/configure: Regenerated.
59847         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
59848         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
59849         Linux kernel version.
59850         (__ASSUME_STD_AUXV): Remove.
59851         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
59852         kernel version.
59853         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
59854         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
59855         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
59856         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
59857         (__ASSUME_NETLINK_SUPPORT): Likewise.
59858         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
59859         (__no_netlink_support): Remove conditional definition.
59860         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
59861         Remove.
59862         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59863         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
59864         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
59865         (if_nameindex_ioctl): Remove.
59866         (if_nameindex_netlink): Do not handle __no_netlink_support.
59867         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59868         code.
59869         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
59870         Remove conditional code.
59871         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
59872         code.
59873         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
59874         unconditional.
59875         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
59876         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
59877         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
59878         Remove.
59879         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
59880         [!__ASSUME_STD_AUXV]: Remove conditional code.
59881         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
59882         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
59883         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
59884         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
59885         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
59886         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59887         code.
59888         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59889         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
59890         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
59891         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59892         conditional code.
59893         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
59894         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
59895         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
59896         code.
59897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
59898         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
59899         conditional code.
59900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
59901         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59902         code unconditional.
59903         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59904         conditional code.
59905         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59906         unconditional.
59907         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59908         conditional code.
59909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
59910         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59911         unconditional.
59912         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59913         conditional code.
59914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
59915         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59916         code unconditional.
59917         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59918         conditional code.
59919         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59920         unconditional.
59921         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59922         conditional code.
59923         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
59924         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
59925         code unconditional.
59926         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59927         conditional code.
59928         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
59929         unconditional.
59930         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
59931         conditional code.
59932
59933 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
59934
59935         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
59936         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
59937         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
59938         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
59939         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
59940         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
59941         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
59942         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
59943         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
59944         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
59945         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
59946         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
59947         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
59948         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
59949         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
59950         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
59951         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
59952         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
59953         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
59954         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
59955         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
59956         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
59957         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
59958
59959 2012-07-25  Florian Weimer  <fweimer@redhat.com>
59960
59961         * Versions.def: Add GLIBC_2.17.
59962         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
59963         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
59964         Introduce __libc_secure_getenv.
59965         * stdlib/Versions (2.17): Add secure_getenv
59966         (GLIBC_PRIVATE): Add __libc_secure_getenv.
59967         * stdlib/secure-getenv.c: Rename __secure_getenv to
59968         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
59969         symbol __secure_getenv for GLIBC_2.0.
59970         * stdlib/tst-secure-getenv.c: New.
59971         * stdlib/Makefile (tests): Add testcase.
59972         * manual/startup.texi (Environment Access): Document
59973         secure_getenv.
59974         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
59975         __libc_secure_getenv.
59976         * inet/ruserpass.c (ruserpass): Likewise.
59977         * malloc/mtrace.c (mtrace): Likewise.
59978         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
59979         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
59980         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
59981         * sysdeps/posix/tempname.c: Likewise.  Evaluate
59982         HAVE_SECURE_GETENV.
59983         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
59984         __secure_getenv to __libc_secure_getenv.
59985         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
59986         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
59987         Likewise.
59988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
59989         Likewise.
59990         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
59991         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
59992         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
59993         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
59994         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
59995         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
59996         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
59997
59998 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
59999
60000         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
60001         (struct La_i86_retval): Likewise.
60002         (struct La_x86_64_regs): Likewise.
60003         (struct La_x86_64_retval): Likewise.
60004         (struct La_x32_regs): Likewise.
60005         (struct La_x32_retval): Likewise.
60006         (struct La_ppc32_regs): Likewise.
60007         (struct La_ppc32_retval): Likewise.
60008         (struct La_ppc64_regs): Likewise.
60009         (struct La_ppc64_retval): Likewise.
60010         (struct La_sh_regs): Likewise.
60011         (struct La_sh_retval): Likewise.
60012         (struct La_s390_32_regs): Likewise.
60013         (struct La_s390_32_retval): Likewise.
60014         (struct La_s390_64_regs): Likewise.
60015         (struct La_s390_64_retval): Likewise.
60016         (struct La_sparc32_regs): Likewise.
60017         (struct La_sparc32_retval): Likewise.
60018         (struct La_sparc64_regs): Likewise.
60019         (struct La_sparc64_retval): Likewise.
60020         (struct audit_ifaces): Remove architecture-specific pltenter and
60021         pltexit members.
60022         * sysdeps/i386/ldsodefs.h: New file.
60023         * sysdeps/powerpc/ldsodefs.h: Likewise.
60024         * sysdeps/s390/ldsodefs.h: Likewise.
60025         * sysdeps/sh/ldsodefs.h: Likewise.
60026         * sysdeps/sparc/ldsodefs.h: Likewise.
60027         * sysdeps/x86_64/ldsodefs.h: Likewise.
60028
60029 2012-07-25  Marek Polacek  <polacek@redhat.com>
60030
60031         [BZ #6808]
60032         * math/libm-test.inc (yn_test): Add another test.
60033         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
60034         to ERANGE when the result is +-Inf.
60035         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
60036         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
60037         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
60038         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
60039
60040 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
60041
60042         * conform/data/time.h-data (NULL): Use macro-constant.  Require
60043         equal to 0.
60044         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
60045         clock_t.
60046         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
60047
60048 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
60049
60050         * configure.in <sysdeps resolving>: Correct printing
60051         Implies_before.
60052         * configure: Regenerate.
60053
60054 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
60055
60056         * math/w_ilogb.c: Include <limits.h>.
60057         * math/w_ilogbl.c: Likewise.
60058
60059 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
60060
60061         * manual/lang.texi (__va_copy): Document primarily as ISO C99
60062         va_copy.  Document allowing for unavailable va_copy only as
60063         pre-C99 compatibility.
60064         * manual/string.texi (Copying and Concatenation): Use va_copy
60065         instead of __va_copy in concat example.
60066
60067 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
60068
60069         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
60070         (__sendto): Use create_address_port.  Initialize APORT and deallocate
60071         it if not null.
60072
60073         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
60074         with O_NOLINK passed to __file_name_lookup.
60075
60076         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
60077         with O_NOLINK passed to __file_name_lookup.
60078
60079         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
60080         negative N or less than NGIDS.
60081
60082         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
60083         type to string_t.  Set ERANGE as errno and return it if NAME is not big
60084         enough.  Use memcpy instead of strncpy.
60085
60086 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
60087
60088         * elf/Makefile (check-data): Remove.
60089         (localplt.data): New vpath directive.
60090         ($(objpfx)check-localplt.out): Use localplt.data from vpath
60091         instead of $(check-data).
60092         * scripts/data/localplt-generic.data: Move to ...
60093         * sysdeps/generic/localplt.data: ... here.
60094         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
60095         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
60096         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
60097         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
60098         ... here.
60099         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
60100         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
60101         ... here.
60102         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
60103         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
60104         ... here.
60105         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
60106         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
60107         ... here.
60108         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
60109         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
60110         ... here.
60111         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
60112         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
60113         ... here.
60114
60115 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60116
60117         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
60118         PPC32 and PPC64 files.
60119         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
60120         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
60121
60122 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60123
60124         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
60125         __makecontext_ret to ...
60126         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
60127         ... here and call exit if uc_link is NULL.  New file.
60128         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
60129         __makecontext_ret.S.
60130         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
60131         __makecontext_ret to ...
60132         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
60133         ... here and call exit if uc_link is NULL.  New file.
60134         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
60135         __makecontext_ret.S.
60136
60137 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60138
60139         * elf/elf.h (R_390_IRELATIVE): New definition.
60140         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
60141         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
60142         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
60143         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
60144         (elf_machine_lazy_rel): Likewise.
60145         * sysdeps/s390/dl-irel.h: New file.
60146         * sysdeps/s390/s390-64/memcpy.S: New asm code.
60147         * sysdeps/s390/s390-64/memset.S: New asm code.
60148         * sysdeps/s390/s390-64/memcmp.S: New asm code.
60149         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
60150         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
60151         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
60152         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
60153         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
60154         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
60155         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
60156         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
60157         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
60158         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
60159         * sysdeps/s390/s390-32/memcpy.S: New asm code.
60160         * sysdeps/s390/s390-32/memset.S: New asm code.
60161         * sysdeps/s390/s390-32/memcmp.S: New asm code.
60162
60163 2012-07-17  Marek Polacek  <polacek@redhat.com>
60164
60165         [BZ #14349]
60166         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
60167         * sysdeps/s390/s390-64/configure.in: Likewise.
60168         * sysdeps/sparc/configure.in: Likewise.
60169         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
60170         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
60171         * sysdeps/i386/configure.in: Likewise.
60172         * sysdeps/x86_64/configure.in: Likewise.
60173         * sysdeps/sh/configure.in: Likewise.
60174         * sysdeps/s390/s390-32/configure: Regenerated.
60175         * sysdeps/s390/s390-64/configure: Likewise.
60176         * sysdeps/x86_64/configure: Likewise.
60177         * sysdeps/sh/configure: Likewise.
60178         * sysdeps/powerpc/powerpc64/configure: Likewise.
60179         * sysdeps/powerpc/powerpc32/configure: Likewise.
60180         * sysdeps/sparc/configure: Likwise.
60181         * sysdeps/i386/configure: Likewise.
60182
60183         * elf/dl-open.c: Comment fixes.
60184
60185 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
60186
60187         * Makefile [CXX] (check-data): Remove.
60188         [CXX] (c++-types.data): New vpath directive.
60189         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
60190         vpath.  Do not allow for C++ type data being missing.
60191         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
60192         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
60193         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
60194         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
60195         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
60196         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
60197         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
60198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
60199         ... here.
60200         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
60201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
60202         ... here.
60203         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
60204         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
60205         ... here.
60206         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
60207         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
60208         ... here.
60209         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
60210         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
60211         ... here.
60212         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
60213         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
60214         ... here.
60215         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
60216         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
60217         ... here.
60218         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
60219         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
60220
60221         * elf/tls-macros.h (TLS_LE): Move architecture-specific
60222         definitions to architecture-specific files.
60223         (TLS_IE): Likewise.
60224         (TLS_LD): Likewise.
60225         (TLS_GD): Likewise.
60226         * sysdeps/i386/tls-macros.h: New file.
60227         * sysdeps/powerpc/tls-macros.h: Likewise.
60228         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
60229         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
60230         * sysdeps/sh/tls-macros.h: Likewise.
60231         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
60232         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
60233         * sysdeps/x86_64/tls-macros.h: Likewise.
60234
60235 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
60236
60237         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
60238         zero value for regular exit case.
60239
60240         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
60241         (__start_context): Preserve zero value for regular exit case.
60242
60243 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
60244             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60245
60246         * manual/setjmp.texi (setcontext): Clarify normal process
60247         termination when uc_link is the null pointer.
60248         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
60249         exit call.
60250
60251 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
60252
60253         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
60254         preprocessor.  Test for each exception mask separately.
60255
60256 2012-07-16  Andreas Jaeger  <aj@suse.de>
60257
60258         * po/ru.po: Update from translation team.
60259
60260 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
60261
60262         * conform/data/string.h-data (NULL): Use macro-constant.  Require
60263         equal to 0.
60264         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
60265         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
60266         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
60267         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
60268         [ISO || ISO99 || ISO11] (*_t): Do not allow.
60269
60270 2012-07-13  Andreas Jaeger  <aj@suse.de>
60271
60272         * po/fr.po: Update from translation team.
60273
60274 2012-07-12  Marek Polacek  <polacek@redhat.com>
60275
60276         [BZ #14173]
60277         * math/libm-test.inc (yn_test): Add test for BZ #14173.
60278         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
60279         loop condition.
60280
60281 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
60282
60283         [BZ #13717]
60284         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
60285         Change to 2.4.1 where previously 2.4.0.
60286         * sysdeps/unix/sysv/linux/configure: Regenerated.
60287         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
60288         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
60289         version.
60290         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
60291         (__ASSUME_AT_CLKTCK): Remove.
60292         (__ASSUME_AT_PAGESIZE): Likewise.
60293         (__ASSUME_AT_XID): Likewise.
60294         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
60295         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
60296         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
60297         unconditionally.
60298         (HAVE_AUX_PAGESIZE): Likewise.
60299         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
60300         [__ASSUME_AT_CLKTCK]: Make code unconditional.
60301         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
60302
60303 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
60304
60305         [BZ #14307]
60306         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
60307         the temporary buffer used to invoke __gethostbyname2_r,
60308         __gethostbyaddr_r and gethostbyname4_r to make room for struct
60309         host_data / struct gaih_addrtuple.
60310         * resolv/nss_dns/dns-host.c (global scope): Move definition of
60311         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
60312         header file nss/nsswitch.h.
60313         * nss/nsswitch.h (global scope): Add definition of implementation
60314         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
60315         resolv/nss_dns/dns-host.c).
60316
60317 2012-07-11  Andreas Jaeger  <aj@suse.de>
60318
60319         * po/fr.po: Update from translation team.
60320
60321         * po/sv.po: Update from translation team
60322         * po/fr.po: Another update from translation team.
60323
60324 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60325
60326         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
60327         for subnormals or multiply small sinh result by itself.
60328         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
60329         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
60330
60331 2012-07-11  David S. Miller  <davem@davemloft.net>
60332
60333         * sysdeps/sparc/fpu/libm-test-ulps: Update.
60334
60335 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
60336
60337         [BZ #14347]
60338         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
60339         (INTERNAL_MARK): Shift it here.
60340
60341 2012-07-10  Marek Polacek  <polacek@redhat.com>
60342
60343         [BZ #14151]
60344         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
60345         libc_cv_asm_global_directive with .globl.
60346         * configure: Regenerated.
60347         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
60348         with .globl.
60349         * sysdeps/i386/configure: Regenerated.
60350         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
60351         with .globl.
60352         * sysdeps/x86_64/configure: Regenerated.
60353         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
60354         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
60355         * elf/tst-unique2mod2.c: Likewise.
60356         * elf/tst-unique2mod1.c: Likewise.
60357         * elf/tst-unique1mod2.c: Likewise.
60358         * elf/tst-unique1mod1.c: Likewise.
60359         * sysdeps/s390/s390-32/sysdep.h: Likewise.
60360         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
60361         * sysdeps/s390/s390-64/sysdep.h: Likewise.
60362         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
60363         * sysdeps/mach/sysdep.h: Likewise.
60364         * sysdeps/i386/sysdep.h: Likewise.
60365         * sysdeps/i386/i386-mcount.S: Likewise.
60366         * sysdeps/x86_64/_mcount.S: Likewise.
60367         * sysdeps/x86_64/sysdep.h: Likewise.
60368         * sysdeps/sh/_mcount.S: Likewise.
60369         * sysdeps/sh/sysdep.h: Likewise.
60370         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
60371         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
60372         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
60373         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
60374         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
60375         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
60376         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
60377         * locale/localeinfo.h: Likewise.
60378         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
60379         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
60380
60381 2012-07-09  Roland McGrath  <roland@hack.frob.com>
60382
60383         [BZ #14336]
60384         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
60385         system".
60386         * manual/message.texi (The Uniforum approach): Likewise.
60387         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
60388         (glibc iconv Implementation): Likewise.
60389
60390 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
60391
60392         [BZ #14337]
60393         * math/s_clog.c (__clog): Avoid scaling a value down where that
60394         could result in underflow.
60395         * math/s_clog10.c (__clog10): Likewise.
60396         * math/s_clog10f.c (__clog10f): Likewise.
60397         * math/s_clog10l.c (__clog10l): Likewise.
60398         * math/s_clogf.c (__clogf): Likewise.
60399         * math/s_clogl.c (__clogl): Likewise.
60400         * math/libm-test.inc (clog_test): Add more tests.
60401         (clog10_test): Likewise.
60402         * sysdeps/i386/fpu/libm-test-ulps: Update.
60403         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60404
60405 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
60406
60407         [BZ #14283]
60408         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
60409         by 7 not 8 to examine high bit of fractional part.
60410
60411         [BZ #14042]
60412         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
60413         for call to __mcount_internal.
60414         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
60415         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
60416         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
60417
60418 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
60419
60420         [BZ #14154]
60421         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
60422         approximation for values within 0x1p-13f of an odd multiple of
60423         pi/4.
60424         * math/libm-test.inc (tan_test): Do not allow spurious underflow
60425         exception.  Add more tests.
60426         * sysdeps/i386/fpu/libm-test-ulps: Update.
60427
60428         [BZ #6778]
60429         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
60430         inputs and return -1 for them.  Do not check for +Inf in case not
60431         reachable for +Inf.
60432         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
60433         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
60434         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
60435         and return -1 for them.  Do not check for +Inf in case not
60436         reachable for +Inf.
60437         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
60438         define.
60439         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
60440         and return -1 for them.  Do not check for +Inf in case not
60441         reachable for +Inf.
60442         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
60443         spurious underflow.
60444         * sysdeps/i386/fpu/libm-test-ulps: Update.
60445         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60446
60447 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
60448
60449         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
60450
60451 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
60452
60453         [BZ #14157]
60454         [BZ #14331]
60455         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
60456         could result in spurious underflow.  Scale down values above
60457         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
60458         * math/s_csqrtf.c (__csqrtf): Likewise.
60459         * math/s_csqrtl.c (__csqrtl): Likewise.
60460         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
60461         spurious underflow.
60462         * sysdeps/i386/fpu/libm-test-ulps: Update.
60463         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60464
60465 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
60466
60467         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
60468         xopen-msg.sed.
60469         * catgets/xopen-msg.awk: New file.
60470         * catgets/xopen-msg.sed: Removed.
60471
60472         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
60473         po2text.sed.
60474         * intl/po2test.awk: New file.
60475         * intl/po2test.sed: Removed.
60476
60477 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
60478
60479         [BZ #14328]
60480         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
60481         or multiply small sinh result by itself.
60482         * math/s_ctanf.c (__ctanf): Likewise.
60483         * math/s_ctanh.c (__ctanh): Likewise.
60484         * math/s_ctanhf.c (__ctanhf): Likewise.
60485         * math/s_ctanhl.c (__ctanhl): Likewise.
60486         * math/s_ctanl.c (__ctanl): Likewise.
60487         * math/libm-test.inc (ctan_test_tonearest): New function.
60488         (ctan_test_towardzero): Likewise.
60489         (ctan_test_downward): Likewise.
60490         (ctan_test_upward): Likewise.
60491         (ctanh_test_tonearest): Likewise.
60492         (ctanh_test_towardzero): Likewise.
60493         (ctanh_test_downward): Likewise.
60494         (ctanh_test_upward): Likewise.
60495         (main): Call these new functions.
60496         * sysdeps/i386/fpu/libm-test-ulps: Update.
60497         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
60498
60499 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
60500
60501         * .gitignore: Delete /ports entry.
60502
60503 2012-07-03  Andreas Jaeger  <aj@suse.de>
60504
60505         * po/bg.po: Update from translation team.
60506         * po/cs.po: Likewise.
60507         * po/de.po: Likewise.
60508         * po/hr.po: Likewise.
60509         * po/nl.pl: Likewise.
60510         * po/pl.po: Likewise.
60511         * po/vi.po: Likewise.
60512
60513 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
60514
60515         * Makeconfig [!+link] (+link-before-libc): New variable.
60516         [!+link] (+link-after-libc): Likewise.
60517         [!+link] (+link-tests): Likewise.
60518         [!+link] (+link): Define in terms of $(+link-before-libc) and
60519         $(+link-after-libc).
60520         [!+link-static] (+link-static-before-libc): New variable.
60521         [!+link-static] (+link-static-after-libc): Likewise.
60522         [!+link-static] (+link-static-tests): Likewise.
60523         [!+link-static] (+link-static): Define in terms of
60524         $(+link-static-before-libc) and $(+link-static-after-libc).
60525         [build-shared] (link-libc-before-gnulib): New variable.
60526         [build-shared] (link-libc-tests): Likewise.
60527         [build-shared] (link-libc): Define in terms of
60528         $(link-libc-before-gnulib).
60529         [!build-shared] (link-libc-tests): New variable.
60530         (link-libc-static-tests): New variable.
60531         [!gnulib] (gnulib-arch): New variable.
60532         [!gnulib] (gnulib-tests): Likewise.
60533         [!gnulib] (static-gnulib-arch): Likewise.
60534         [!gnulib] (static-gnulib-tests): Likewise.
60535         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
60536         Define with "=" instead of ":=".
60537         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
60538         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
60539         * Rules (binaries-all-notests): New variable.
60540         (binaries-all-tests): Likewise.
60541         (binaries-static-notests): Likewise.
60542         (binaries-static-tests): Likewise.
60543         (binaries-all): Define using $(binaries-all-notests) and
60544         $(binaries-all-tests).
60545         (binaries-static): Define using $(binaries-static-notests) and
60546         $(binaries-static-tests).
60547         (binaries-shared-tests): New variable.
60548         (binaries-shared-notests): Likewise.
60549         (binaries-shared): Remove variable.
60550         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
60551         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
60552         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
60553         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
60554         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
60555         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
60556         * elf/Makefile (sln-modules): New variable.
60557         (extra-objs): Add $(sln-modules:=.o).
60558         (ldconfig-modules): Add static-stubs.
60559         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
60560         * elf/static-stubs.c: New file.
60561
60562         [BZ #14283]
60563         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
60564         by 7 not 8 to examine high bit of fractional part.  Use volatile
60565         variables when splitting into final array of floats if
60566         __FLT_EVAL_METHOD__ != 0.
60567         * math/libm-test.inc (cos_test): Add another test.
60568         (sin_test): Likewise.
60569         * sysdeps/i386/fpu/libm-test-ulps: Update.
60570
60571         [BZ #14273]
60572         * math/libm-test.inc (cosh_test): Add more tests.
60573
60574         * version.h (RELEASE): Set to "development".
60575         (VERSION): Set to "2.16.90".
60576
60577 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
60578
60579         * NEWS: Update copyright. Remove last-updated date.
60580         Mention math library bug fixes and timezone data changes.
60581         * README: Mention GNU/Hurd, x32, and HPPA support status.
60582
60583 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
60584
60585         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
60586
60587 2012-06-27  Andreas Jaeger  <aj@suse.de>
60588
60589         * manual/contrib.texi (Contributors): Add Samuel Thibault.
60590
60591 2012-06-25  Andreas Jaeger  <aj@suse.de>
60592
60593         * sysdeps/s390/fpu/libm-test-ulps: Update.
60594
60595 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
60596             Thomas Schwinge  <thomas@codesourcery.com>
60597
60598         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
60599         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
60600         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
60601         fanotify_mark.
60602
60603 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
60604
60605         * sysdeps/mach/start.c: Remove file.
60606         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
60607         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
60608         * sysdeps/sh/init-first.c: Likewise.
60609
60610         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
60611         registers for frame unwinding purposes, add CFI directives.
60612         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60613         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise.
60614         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
60615         Likewise.
60616
60617         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
60618         __fortify_fail returning.
60619         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
60620
60621         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
60622         sysdeps/sh/____longjmp_chk.S.
60623         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
60624         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
60625         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
60626         (gen-as-const-headers): Append sigaltstack-offsets.sym.
60627
60628         * sysdeps/sh/abort-instr.h: New file.
60629         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
60630         process in case exit returns.
60631
60632         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
60633         initialize the GOT register before use.
60634
60635         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
60636         calculation of ARGC > 4.
60637
60638         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
60639         meaningful names to some local labels.
60640
60641 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
60642             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60643
60644         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
60645         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
60646         (__arch_compare_and_exchange_val_16_acq): Likewise.
60647         (__arch_compare_and_exchange_val_32_acq): Likewise.
60648         (atomic_exchange_and_add): Fix gUSA sequence.
60649         (atomic_add): Likewise.
60650         (atomic_add_negative): Likewise.
60651         (atomic_add_zero): Likewise.
60652         (atomic_bit_test_set): Likewise.
60653
60654 2012-06-22  Andreas Schwab  <schwab@redhat.com>
60655
60656         [BZ #13579]
60657         * include/link.h (struct link_map): Add l_free_initfini.
60658         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
60659         l_initfini.
60660         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
60661         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
60662         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
60663         set.
60664
60665 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
60666
60667         * configure.in: Use AC_LANG_SOURCE.
60668         * configure: Regenerate.
60669
60670 2012-06-22  Roland McGrath  <roland@hack.frob.com>
60671
60672         * configure.in (libc_cv_localstatedir): New substituted variable.
60673         * configure: Regenerated.
60674         * config.make.in (localstatedir): New variable, substituted from
60675         libc_cv_localstatedir.
60676         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
60677         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
60678         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
60679         * sysdeps/gnu/configure: Regenerated.
60680
60681 2012-06-21  Jeff Law  <law@redhat.com>
60682
60683         [BZ #14277]
60684         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
60685         free.  Simplify list management for _LIBC case.
60686
60687 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
60688
60689         [BZ #14273]
60690         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
60691         Clear sign bit of 64-bit integer value before comparing against
60692         overflow value.
60693
60694         * sysdeps/mach/configure: Regenerated.
60695
60696 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
60697
60698         [BZ #14278]
60699         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
60700
60701 2012-06-21  Jeff Law  <law@redhat.com>
60702
60703         [BZ #13882]
60704         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
60705         uint16_t for elements in the "seen" array to avoid char overflows.
60706         * elf/dl-fini.c (_dl_sort_fini): Likewise.
60707         * elf/dl-open.c (dl_open_worker): Likewise.
60708
60709 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
60710
60711         * scripts/list-sources.sh: Scan PORTS for translations.
60712         * po/libc.pot: Regenerated.
60713
60714 2012-06-21  Andreas Jaeger  <aj@suse.de>
60715
60716         [BZ #12194]
60717         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
60718         warning.
60719         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
60720         * bits/byteswap-16.h (__bswap_16): Likewise.
60721         * bits/byteswap.h (__bswap_constant_16): Likewise.
60722
60723 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
60724
60725         [BZ #14117]
60726         * sysdeps/i386/fpu_control.h: Removed.
60727         * sysdeps/x86_64/fpu_control.h: Moved to ...
60728         * sysdeps/x86/fpu_control.h: Here.
60729
60730         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
60731         (_FPU_SETCW): Likewise.
60732
60733 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
60734
60735         [BZ #14117]
60736         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
60737         * sysdeps/x86/fpu/bits/mathinline.h: This.
60738         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
60739
60740         [BZ #14050]
60741         [BZ #14117]
60742         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
60743         functions if __x86_64__ is defined.
60744
60745 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
60746
60747         * string/endian.h: Add !__ASSEMBLER__ condition for including
60748         conversion interfaces.
60749
60750 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
60751
60752         [BZ #14241]
60753         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
60754         of ABS(x) in calculating zero to negative powers other than odd
60755         integers.
60756         * math/libm-test.inc (pow_test): Add more tests.
60757
60758 2012-06-15  Andreas Jaeger  <aj@suse.de>
60759
60760         * manual/contrib.texi (Contributors): Update entry of Liubov
60761         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
60762         Machado Filho.
60763
60764 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
60765
60766         * string/string.h: Add __wur to GNU version of strerror_r.
60767
60768 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
60769
60770         [BZ #14229]
60771         * string/Makefile (tests): Add tst-strtok_r.
60772         * string/tst-strtok_r.c: New file.
60773         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
60774         RAX_LP/RDX_LP on SAVE_PTR.
60775
60776 2012-06-14  Roland McGrath  <roland@hack.frob.com>
60777
60778         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
60779
60780 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
60781
60782         * libm_test.inc (csqrt_test): Allow more spurious underflow
60783         exceptions.
60784         (j0_test): Likewise.
60785         (j1_test): Likewise.
60786         (y0_test): Likewise.
60787         (y1_test): Likewise.
60788
60789 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
60790
60791         * po/Makefile (libc.pot): Use UTF-8 charset.
60792
60793 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
60794
60795         [BZ #14210]
60796         Suppress sign-conversion warning from FD_SET.
60797         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
60798         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
60799         not unsigned long int.
60800         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
60801
60802 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
60803
60804         [BZ #14050]
60805         [BZ #14117]
60806         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
60807         __extern_always_inline instead of __extern_inline.
60808         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
60809         (__signbit): Likewise.
60810         (__signbitl): Support C++ namespace.
60811         (lrintf): New inline function.
60812         (lrint): Likewise.
60813         (llrintf): Likewise.
60814         (llrint): Likewise.
60815         (fmaxf): Likewise.
60816         (fmax): Likewise.
60817         (fminf): Likewise.
60818         (fmin): Likewise.
60819         (rint): Likewise.
60820         (rintf): Likewise.
60821         (ceil): Likewise.
60822         (ceilf): Likewise.
60823         (floor): Likewise.
60824         (floorf): Likewise.
60825         (nearbyint): Likewise.
60826         (nearbyintf): Likewise.
60827
60828 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
60829
60830         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
60831         non-default versions.
60832
60833 2012-06-11  Roland McGrath  <roland@hack.frob.com>
60834
60835         [BZ #14218]
60836         * manual/argp.texi (Argp): Reword argp_parse description slightly.
60837
60838 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
60839
60840         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
60841         (FE_UPWARD, FE_DOWNWARD): Don't define.
60842         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
60843         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
60844
60845         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
60846         reading it.
60847         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
60848         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
60849
60850 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60851
60852         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
60853         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
60854         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
60855         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
60856
60857 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
60858
60859         [BZ #14117]
60860         * sysdeps/i386/fpu/bits/fenv.h: Removed.
60861         * sysdeps/i386/fpu/Implies: New file.
60862         * sysdeps/x86_64/fpu/Implies: Likewise.
60863         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
60864         * sysdeps/x86/fpu/bits/fenv.h: This.
60865
60866         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
60867         __SSE_MATH__.
60868
60869 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
60870
60871         [BZ #14134]
60872         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
60873         character 0xffff that matches the last element of the
60874         conversion table.
60875
60876 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60877
60878         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
60879         fmodl commit.
60880
60881 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60882
60883         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
60884         values higher than 25.6283.
60885
60886 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
60887
60888         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
60889         subnormal exponent extraction and add some __builtin_expect.
60890         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
60891         Fix for subnormal mantissa calculation.
60892
60893 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
60894
60895         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
60896         cpu2 is -1 and errno is not ENOSYS.
60897
60898 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
60899
60900         [BZ #14117]
60901         * sysdeps/i386/i486/bits/string.h: Renamed to ...
60902         * sysdeps/x86/bits/string.h: This.
60903         * sysdeps/x86_64/bits/string.h: Removed.
60904
60905         * sysdeps/i386/i486/bits/string.h: Define inline functions only
60906         if not compiling for x86-64, but compiling for >= i486.
60907
60908         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
60909         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
60910
60911         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
60912         New macro from Linux kernel 3.4.0.
60913         (FP_XSTATE_MAGIC2): Likewise.
60914         (FP_XSTATE_MAGIC2_SIZE): Likewise.
60915         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
60916         (struct _fpx_sw_bytes): New struct.
60917         (struct _xsave_hdr): Likewise.
60918         (struct _ymmh_state): Likewise.
60919         (struct _xstate): Likewise.
60920
60921         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
60922         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
60923         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
60924         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
60925         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
60926         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
60927
60928         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
60929         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
60930         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
60931         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
60932         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
60933         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
60934
60935 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
60936
60937         [BZ #13743]
60938         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
60939         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
60940         (sysdep_headers): Include sys/platform/ppc.h.
60941         * sysdeps/powerpc/test-gettimebase.c: Test for
60942         __ppc_get_timebase() to catch future ISA opcode/insn changes.
60943         * manual/Makefile (appendices): Include platform.texi.
60944         * manual/contrib.texi (Contributors): Update @node pointers.
60945         * manual/maint.texi (Maintenance): Likewise.
60946         (Platform): New node.
60947         * manual/platform.texi: New file.  Document the new features.
60948
60949 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
60950             Jakub Jelinek  <jakub@redhat.com>
60951
60952         [BZ #14188]
60953         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
60954         where __builtin_expect is unavailable.
60955
60956 2012-06-03  David S. Miller  <davem@davemloft.net>
60957
60958         * stdlib/longlong.h: Updated from GCC.
60959
60960 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
60961
60962         [BZ #14042]
60963         * sysdeps/powerpc/powerpc32/mcount.c: New file.
60964         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
60965         __mcount_internal.
60966         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
60967         (GLIBC_2.16): Likewise.
60968
60969 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60970
60971         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
60972
60973 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
60974
60975         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
60976         (default-abi): New variable.
60977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
60978         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
60979         variable.
60980         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
60981         Likewise.
60982         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
60983         Likewise.
60984         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
60985         Likewise.
60986
60987         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
60988         definition.  Document in comment.
60989
60990 2012-06-01  David S. Miller  <davem@davemloft.net>
60991
60992         * stdlib/longlong.h: Updated from GCC.
60993
60994 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
60995
60996         [BZ #14117]
60997         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
60998         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
60999         sys/debugreg.h sys/io.h here.
61000         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
61001         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
61002         sys/io.h.
61003         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
61004         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
61005         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
61006         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
61007         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
61008         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
61009
61010         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
61011         Define only if __x86_64__ is defined.
61012
61013 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
61014
61015         [BZ #14048]
61016         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
61017         Use int64_t for variable i.
61018         * math/libm-test.inc (fmod_test): Add more tests.
61019
61020         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
61021         z computation is not scheduled after fetestexcept.
61022         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
61023         Use math_force_eval instead of asm to ensure calculation scheduled
61024         before exception test.
61025         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
61026         Ensure a1 + u.d computation is not scheduled after fetestexcept.
61027
61028 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
61029
61030         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
61031         computation is not scheduled after fetestexcept.
61032
61033 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
61034
61035         [BZ #14117]
61036         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
61037         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
61038
61039 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61040
61041         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
61042         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
61043
61044 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
61045
61046         [BZ #14117]
61047         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
61048         <bits/wordsize.h>.
61049         (__WCHAR_MIN): Support __WORDSIZE == 64.
61050         (__WCHAR_MAX): Likewise.
61051
61052         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
61053         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
61054
61055         [BZ #14183]
61056         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
61057         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
61058
61059         [BZ #14117]
61060         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
61061         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
61062
61063         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
61064         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
61065
61066         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
61067         Defined to 1 if __x86_64__ isn't defined.
61068         (_STAT_VER_LINUX_OLD): New.
61069         (st_atime): Remove duplicate.
61070         (st_mtime): Likewise.
61071         (st_ctime): Likewise.
61072
61073 2012-05-31  David S. Miller  <davem@davemloft.net>
61074
61075         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
61076         entries.
61077
61078 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
61079
61080         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
61081         gen-libm-test.pl.
61082
61083         [BZ #14132]
61084         * elf/dl-reloc.c: Include <_itoa.h>.
61085         (_dl_reloc_bad_type): Remove use of INTUSE.
61086         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
61087         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
61088         * stdio-common/psiginfo.c (psiginfo): Likewise.
61089         * stdio-common/psignal.c (psignal): Likewise.
61090         * string/strsignal.c (strsignal): Likewise.
61091         * include/signal.h (_sys_siglist): Declare hidden proto.
61092         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
61093         INTVARDEF with libc_hidden_data_def.
61094         * stdio-common/itoa-udigits.c: Likewise.
61095         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
61096         (_itoa_lower_digits_internal): Remove declaration.
61097         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
61098         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
61099         (_sys_sigabbrev_internal): Remove aliases.
61100         (_sys_siglist): Define hidden alias.
61101
61102 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
61103
61104         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
61105         bits/sysctl.h.
61106
61107 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
61108
61109         [BZ #14117]
61110         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
61111         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
61112
61113         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
61114         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
61115         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
61116         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
61117         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
61118         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
61119
61120         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
61121         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
61122         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
61123
61124         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
61125         with __addr.
61126         (insw): Likewise.
61127         (insl): Likewise.
61128         (outsb): Likewise.
61129         (outsw): Likewise.
61130         (outsl): Likewise.
61131
61132         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
61133         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
61134         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
61135
61136         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
61137         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
61138         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
61139         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
61140         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
61141         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
61142
61143         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
61144         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
61145
61146         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
61147         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
61148
61149         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
61150         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
61151         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
61152
61153         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
61154         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
61155         to ...
61156         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
61157
61158         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
61159         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
61160         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
61161
61162         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
61163         for x86-64.
61164         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
61165
61166 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
61167
61168         * math/math.h (M_El): Use two more decimal places.
61169         (M_LOG2El): Likewise.
61170         (M_LOG10El): Likewise.
61171         (M_LN2l): Likewise.
61172         (M_LN10l): Likewise.
61173         (M_PIl): Likewise.
61174         (M_PI_2l): Likewise.
61175         (M_PI_4l): Likewise.
61176         (M_1_PIl): Likewise.
61177         (M_2_PIl): Likewise.
61178         (M_2_SQRTPIl): Likewise.
61179         (M_SQRT2l): Likewise.
61180         (M_SQRT1_2l): Likewise.
61181
61182 2012-05-31  David S. Miller  <davem@davemloft.net>
61183
61184         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
61185         values between float registers.
61186         * sysdeps/sparc/sparc64/memset.S: Likewise.
61187         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
61188
61189 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
61190
61191         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
61192         -D_FORTIFY_SOURCE=1.
61193         (CPPFLAGS-tst-longjmp_chk.c): Define.
61194         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
61195         (CPPFLAGS-tst-longjmp_chk2.c): Define.
61196         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
61197         CFLAGS-tst-wchar-h.c.
61198
61199 2012-05-31  Marek Polacek  <polacek@redhat.com>
61200
61201         [BZ #14132]
61202         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
61203         __endmntent_internal): Remove declaration.
61204         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
61205         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
61206         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
61207
61208 2012-05-30  David S. Miller  <davem@davemloft.net>
61209
61210         * sysdeps/sparc/sparc32/soft-fp/q_util.c
61211         (___Q_simulate_exceptions): Use real FP ops rather than writing
61212         into the %fsr.
61213         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
61214         Likewise.
61215
61216 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61217
61218         [BZ #14117]
61219         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
61220         * sysdeps/x86/bits/xtitypes.h: This.
61221
61222         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
61223         * sysdeps/x86/bits/wordsize.h: This.
61224
61225         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
61226         * sysdeps/x86/bits/huge_vall.h: This.
61227
61228         * sysdeps/i386/bits/select.h: Removed.
61229         * sysdeps/x86_64/bits/select.h: Renamed to ...
61230         * sysdeps/x86/bits/select.h: This.
61231
61232         * sysdeps/i386/bits/setjmp.h: Removed.
61233         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
61234         * sysdeps/x86/bits/setjmp.h: This.
61235
61236         * sysdeps/i386/bits/mathdef.h: Removed.
61237         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
61238         * sysdeps/x86/bits/mathdef.h: This.
61239
61240 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
61241
61242         [BZ #14132]
61243         * include/sys/socket.h (__connect_internal)
61244         (__libc_sa_len_internal): Remove declaration.
61245         (__connect, __libc_sa_len): Declare hidden_proto.
61246         (SA_LEN): Remove use of INTUSE.
61247         * socket/connect.c: Add libc_hidden_def.
61248         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
61249         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
61250         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
61251         alias.
61252         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
61253         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
61254         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
61255         of adding _internal alias.
61256
61257 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61258
61259         [BZ #14117]
61260         * sysdeps/i386/bits/link.h: Removed.
61261         * sysdeps/i386/bits/linkmap.h: Likewise.
61262         * sysdeps/x86_64/bits/link.h: Renamed to ...
61263         * sysdeps/x86/bits/link.h: This.
61264         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
61265         * sysdeps/x86/bits/linkmap.h: This.
61266
61267         * sysdeps/i386/bits/endian.h: Removed.
61268         * sysdeps/x86_64/bits/endian.h: Renamed to ...
61269         * sysdeps/x86/bits/endian.h: This.
61270
61271         * sysdeps/i386/bits/byteswap.h: Removed.
61272         * sysdeps/i386/bits/byteswap-16.h: Likewise.
61273         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
61274         * sysdeps/x86/bits/byteswap.h: This.
61275         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
61276         * sysdeps/x86/bits/byteswap-16.h: This.
61277         * sysdeps/i386/Implies: Add x86.
61278         * sysdeps/x86_64/Implies: Likewise.
61279
61280 2012-05-30  David S. Miller  <davem@davemloft.net>
61281
61282         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
61283         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
61284         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
61285         (FP_TRAPPING_EXCEPTIONS): Define.
61286         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
61287         (FP_TRAPPING_EXCEPTIONS): Define.
61288         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
61289         subnormals only when inexact has been signalled or underflow
61290         exceptions are enabled.
61291         (_FP_PACK_CANONICAL): Likewise.
61292
61293 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61294
61295         [BZ #14183]
61296         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
61297         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
61298
61299 2012-05-30  Richard Henderson  <rth@twiddle.net>
61300
61301         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
61302         with #ifndef NOT_IN_libc.
61303
61304         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
61305         marked to avoid plt entry.
61306
61307 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
61308
61309         [BZ #14112]
61310         * Makeconfig (default-abi): New macro.
61311         (abi-includes): Likewise.
61312         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
61313         $(abi-$(default-abi)-lib-soname) for soname if defined.
61314         ($(common-objpfx)gnu/lib-names.stmp): Generate from
61315         abi-variants.
61316         * Makefile (installed-stubs): Likewise.
61317         * include/stubs-biarch.h: Removed.
61318         * scripts/lib-names.awk: Only handle one library at a time.
61319         * scripts/soversions.awk: Remove WORDSIZE support.
61320         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
61321         entries.
61322         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
61323         Removed.
61324         (syscall-list-default-condition): Likewise.
61325         (syscall-list-default-condition): Likewise.
61326         (syscall-list-includes): Likewise.
61327         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
61328         syscall-list-* with abi-*.  Handle undefined abi-variants.
61329         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
61330         * sysdeps/unix/sysv/linux/i386/Implies: New file.
61331         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
61332         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
61333         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
61334         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
61335         Removed.
61336         (syscall-list-32-options): Likewise.
61337         (syscall-list-32-condition): Likewise.
61338         (syscall-list-64-options): Likewise.
61339         (syscall-list-64-condition): Likewise.
61340         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
61341         macro.
61342         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
61343         Renamed to ...
61344         (abi-*): This.
61345         (abi-64-ld-soname): New macro.
61346         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
61347         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
61348         Renamed to ...
61349         (abi-*): This.
61350         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
61351         * sysdeps/x86_64/x32/shlib-versions: Likewise.
61352
61353 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
61354
61355         * sysdeps/unix/sysv/linux/kernel-features.h
61356         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
61357         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
61358         include <kernel-features.h>.
61359         [!__NR_ftruncate64]: Remove conditional code.
61360         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61361         [__NR_ftruncate64]: Make code unconditional.
61362         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61363         * sysdeps/unix/sysv/linux/truncate64.c: Do not
61364         include <kernel-features.h>.
61365         [!__NR_ftruncate64]: Remove conditional code.
61366         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61367         [__NR_ftruncate64]: Make code unconditional.
61368         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61369         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
61370         include <kernel-features.h>.
61371         [!__NR_ftruncate64]: Remove conditional code.
61372         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61373         [__NR_ftruncate64]: Make code unconditional.
61374         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
61376         include <kernel-features.h>.
61377         [!__NR_ftruncate64]: Remove conditional code.
61378         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61379         [__NR_ftruncate64]: Make code unconditional.
61380         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
61381
61382         * configure.in (libc_cv_fpie): Weaken to a compile test using
61383         LIBC_TRY_CC_OPTION.
61384         * configure: Regenerated.
61385
61386 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
61387
61388         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
61389         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
61390         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
61391         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
61392         Refreshed.
61393         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
61394         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
61395         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
61396         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
61397         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
61398         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
61399         Refreshed.
61400
61401 2012-05-27  David S. Miller  <davem@davemloft.net>
61402
61403         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
61404         (___Q_zero): New.
61405         (__Q_simulate_exceptions): Return void.  Change to simulate
61406         exceptions by writing into the %fsr.
61407         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
61408         (__Qp_handle_exceptions): Likewise.
61409         (numbers): Delete.
61410         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
61411         __Qp_handle_exceptions.
61412         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
61413         __Qp_handle_exceptions.
61414         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
61415         as unused and give dummy FP_RND_NEAREST initializer.
61416         (FP_INHIBIT_RESULTS): Define.
61417         (___Q_simulate_exceptions): Update declaration.
61418         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
61419         formatting.
61420         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
61421         as unused and give dummy FP_RND_NEAREST initializer.
61422         (__Qp_handle_exceptions): Update declaration.
61423         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
61424         formatting.
61425
61426 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
61427
61428         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
61429         the temporary FPU control word.
61430         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
61431         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
61432         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
61433         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
61434         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
61435         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
61436         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
61437         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
61438         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
61439         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
61440         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
61441
61442 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
61443
61444         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
61445         fields.
61446
61447 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
61448
61449         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
61450         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
61451         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
61452         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
61453         Likewise.
61454         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
61455         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
61456         Likewise.
61457
61458 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
61459
61460         * po/h.po: Update from translation team.
61461
61462 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
61463
61464         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
61465
61466         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
61467         handling of denormals.
61468         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
61469         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
61470         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
61471         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
61472         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
61473         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
61474         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
61475         Likewise.
61476
61477 2012-05-26  Marek Polacek  <polacek@redhat.com>
61478
61479         [BZ #14152]
61480         * math/libm-test.inc (fma_test): Don't always expect underflow
61481         exception.
61482
61483 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
61484
61485         [BZ #12416]
61486         * elf/tst-execstack.c: Include stackinfo.h.
61487         (do_test): Adjust test case to ensure that pthread_getattr_np
61488         behaviour remains the same after marking stack executable.
61489
61490 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61491
61492         * sysdeps/unix/sysv/linux/kernel-features.h
61493         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
61494         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
61495         kernel-features.h.
61496         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61497         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61498         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
61499         kernel-features.h.
61500         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
61501         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
61502
61503 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
61504
61505         * configure.in: Define the default includes to being none.
61506         * configure: Regenerated.
61507
61508 2012-05-25  Roland McGrath  <roland@hack.frob.com>
61509
61510         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
61511         * sysdeps/x86_64/setjmp.S: Likewise.
61512         * sysdeps/i386/bsd-setjmp.S: Likewise.
61513         * sysdeps/i386/bsd-_setjmp.S: Likewise.
61514         * sysdeps/i386/setjmp.S: Likewise.
61515         * sysdeps/i386/__longjmp.S: Likewise.
61516         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
61517         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
61518
61519         * include/stap-probe.h: New file.
61520         * configure.in: Handle --enable-systemtap.
61521         * configure: Regenerated.
61522         * config.h.in (USE_STAP_PROBE): New #undef.
61523         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
61524         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
61525         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
61526
61527 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
61528
61529         [BZ #13717]
61530         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
61531         to 2.4.0 where earlier.
61532         * sysdeps/unix/sysv/linux/configure: Regenerated.
61533         * sysdeps/unix/sysv/linux/i386/chown.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/fchown.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/fchownat.c (fchownat)
61542         [__ASSUME_32BITUIDS]: Make code unconditional.
61543         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
61544         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
61545         <kernel-features.h>.
61546         [__ASSUME_32BITUIDS]: Make code unconditional.
61547         [!__ASSUME_32BITUIDS]: Remove conditional code.
61548         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
61549         <kernel-features.h>.
61550         [__ASSUME_32BITUIDS]: Make code unconditional.
61551         [!__ASSUME_32BITUIDS]: Remove conditional code.
61552         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
61553         <kernel-features.h>.
61554         [__ASSUME_32BITUIDS]: Make code unconditional.
61555         [!__ASSUME_32BITUIDS]: Remove conditional code.
61556         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
61557         <kernel-features.h>.
61558         [__ASSUME_32BITUIDS]: Make code unconditional.
61559         [!__ASSUME_32BITUIDS]: Remove conditional code.
61560         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
61561         <kernel-features.h>.
61562         [__ASSUME_32BITUIDS]: Make code unconditional.
61563         [!__ASSUME_32BITUIDS]: Remove conditional code.
61564         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
61565         <kernel-features.h>.
61566         [__ASSUME_32BITUIDS]: Make code unconditional.
61567         [!__ASSUME_32BITUIDS]: Remove conditional code.
61568         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
61569         <kernel-features.h>.
61570         [__ASSUME_32BITUIDS]: Make code unconditional.
61571         [!__ASSUME_32BITUIDS]: Remove conditional code.
61572         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
61573         <kernel-features.h>.
61574         [__ASSUME_32BITUIDS]: Make code unconditional.
61575         [!__ASSUME_32BITUIDS]: Remove conditional code.
61576         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
61577         <kernel-features.h>.
61578         [__ASSUME_32BITUIDS]: Make code unconditional.
61579         [!__ASSUME_32BITUIDS]: Remove conditional code.
61580         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
61581         <kernel-features.h>.
61582         [__ASSUME_32BITUIDS]: Make code unconditional.
61583         [!__ASSUME_32BITUIDS]: Remove conditional code.
61584         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
61585         <kernel-features.h>.
61586         [__NR_setresgid] (__setresgid): Do not declare.
61587         [__ASSUME_32BITUIDS]: Make code unconditional.
61588         [!__ASSUME_32BITUIDS]: Remove conditional code.
61589         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
61590         <kernel-features.h>.
61591         [__NR_setresuid] (__setresuid): Do not declare.
61592         [__ASSUME_32BITUIDS]: Make code unconditional.
61593         [!__ASSUME_32BITUIDS]: Remove conditional code.
61594         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
61595         <kernel-features.h>.
61596         [__ASSUME_32BITUIDS]: Make code unconditional.
61597         [!__ASSUME_32BITUIDS]: Remove conditional code.
61598         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
61599         <kernel-features.h>.
61600         [__ASSUME_32BITUIDS]: Make code unconditional.
61601         [!__ASSUME_32BITUIDS]: Remove conditional code.
61602         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
61603         <kernel-features.h>.
61604         [__ASSUME_32BITUIDS]: Make code unconditional.
61605         [!__ASSUME_32BITUIDS]: Remove conditional code.
61606         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
61607         <kernel-features.h>.
61608         [__ASSUME_32BITUIDS]: Make code unconditional.
61609         [!__ASSUME_32BITUIDS]: Remove conditional code.
61610         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
61611         <kernel-features.h>.
61612         [__ASSUME_32BITUIDS]: Make code unconditional.
61613         [!__ASSUME_32BITUIDS]: Remove conditional code.
61614         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
61615         <kernel-features.h>.
61616         [__ASSUME_32BITUIDS]: Make code unconditional.
61617         [!__ASSUME_32BITUIDS]: Remove conditional code.
61618         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
61619         <kernel-features.h>.
61620         [__ASSUME_32BITUIDS]: Make code unconditional.
61621         [!__ASSUME_32BITUIDS]: Remove conditional code.
61622         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
61623         <kernel-features.h>.
61624         [__ASSUME_32BITUIDS]: Make code unconditional.
61625         [!__ASSUME_32BITUIDS]: Remove conditional code.
61626         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
61627         <kernel-features.h>.
61628         [__ASSUME_32BITUIDS]: Make code unconditional.
61629         [!__ASSUME_32BITUIDS]: Remove conditional code.
61630         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
61631         <kernel-features.h>.
61632         [__ASSUME_32BITUIDS]: Make code unconditional.
61633         [!__ASSUME_32BITUIDS]: Remove conditional code.
61634         * sysdeps/unix/sysv/linux/kernel-features.h
61635         (__ASSUME_SETRESUID_SYSCALL): Remove.
61636         (__ASSUME_SETRESGID_SYSCALL): Likewise.
61637         (__ASSUME_32BITUIDS): Likewise.
61638         (__ASSUME_LDT_WORKS): Likewise.
61639         (__ASSUME_O_DIRECTORY): Likewise.
61640         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
61641         architecture but not kernel version.
61642         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
61643         (__ASSUME_MMAP2_SYSCALL): Likewise.
61644         (__ASSUME_STAT64_SYSCALL): Likewise.
61645         (__ASSUME_IPC64): Likewise.
61646         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
61647         <kernel-features.h>.
61648         [__ASSUME_32BITUIDS]: Make code unconditional.
61649         [!__ASSUME_32BITUIDS]: Remove conditional code.
61650         * sysdeps/unix/sysv/linux/opendir.c: Do not include
61651         <kernel-features.h>.
61652         [__ASSUME_O_DIRECTORY]: Make code unconditional.
61653         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
61654         132096]: Remove conditional code.
61655         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
61656         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
61657         <kernel-features.h>.
61658         [__ASSUME_32BITUIDS]: Make code unconditional.
61659         [!__ASSUME_32BITUIDS]: Remove conditional code.
61660         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
61661         <kernel-features.h>.
61662         [__ASSUME_32BITUIDS]: Make code unconditional.
61663         [!__ASSUME_32BITUIDS]: Remove conditional code.
61664         * sysdeps/unix/sysv/linux/setegid.c: Do not include
61665         <kernel-features.h>.
61666         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
61667         unconditional.
61668         (__setresgid): Do not declare.
61669         [__ASSUME_32BITUIDS]: Make code unconditional.
61670         [!__ASSUME_32BITUIDS]: Remove conditional code.
61671         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
61672         <kernel-features.h>.
61673         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
61674         unconditional.
61675         (__setresuid): Do not declare.
61676         [__ASSUME_32BITUIDS]: Make code unconditional.
61677         [!__ASSUME_32BITUIDS]: Remove conditional code.
61678         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
61679         <kernel-features.h>.
61680         [__ASSUME_32BITUIDS]: Make code unconditional.
61681         [!__ASSUME_32BITUIDS]: Remove conditional code.
61682         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
61683         <kernel-features.h>.
61684         [__ASSUME_32BITUIDS]: Make code unconditional.
61685         [!__ASSUME_32BITUIDS]: Remove conditional code.
61686
61687 2012-05-25  Richard Henderson  <rth@twiddle.net>
61688
61689         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
61690         dl_hwcap to ifunc resolver.
61691         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
61692         elf_ifunc_invoke.
61693         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
61694         dl_hwcap to ifunc resolver.
61695         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
61696
61697 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61698
61699         [BZ #14153]
61700         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
61701         for |x| <= 2**-26, not 2**-57.
61702         * math/libm-test.inc (acos_test): Do not allow spurious underflow
61703         exception.
61704
61705 2012-05-24  Jeff Law  <law@redhat.com>
61706
61707         * stdio-common/Makefile (tests): Add bug25.
61708         * stdio-common/bug25.c: New test.
61709
61710 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61711
61712         [BZ #13576]
61713         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
61714         multiple of MALLOC_ALIGNMENT in size.
61715         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
61716
61717 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
61718
61719         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
61720         Require >= 256.
61721         (FILENAME_MAX): Use macro-int-constant.
61722         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
61723         (_IOFBF): Use macro-int-constant.
61724         (_IOLBF): Likewise.
61725         (_IONBF): Likewise.
61726         (SEEK_CUR): Likewise.
61727         (SEEK_END): Likewise.
61728         (SEEK_SET): Likewise.
61729         (TMP_MAX): Likewise.
61730         (EOF): Use macro-int-constant.  Require < 0.
61731         (NULL): Use macro-constant.  Require == 0.
61732         (stdin): Require type to be FILE *.
61733         (stdout): Likewise.
61734         (stderr): Likewise.
61735         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
61736         macro-int-constant.
61737         (EXIT_SUCCESS): Likewise.
61738         (NULL): Use macro-constant.  Require == 0.
61739         (RAND_MAX): Use macro-int-constant.
61740         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
61741         [C99-based standards] (strtof): Require function.
61742         [C99-based standards] (strtold): Likewise.
61743         [C99-based standards] (strtoll): Likewise.
61744         [C99-based standards] (strtoull): Likewise.
61745         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
61746         [ISO || ISO99 || ISO11] (limits.h): Likewise.
61747         [ISO || ISO99 || ISO11] (math.h): Likewise.
61748         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
61749         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
61750         [ISO || ISO99 || ISO11] (*_t): Do not allow.
61751
61752 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
61753
61754         [BZ #14132]
61755         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
61756         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
61757         * intl/dgettext.c (DCGETTEXT): Likewise.
61758         * intl/gettext.c (DCGETTEXT): Likewise.
61759         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
61760         * posix/regex_internal.h (gettext): Likewise.
61761         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
61762         Remove declaration.
61763         * include/argz.h (__argz_count_internal)
61764         (__argz_stringify_internal): Remove declaration.
61765         (__argz_count, __argz_stringify): Declare hidden proto.
61766         * intl/dcgettext.c: Remove use of INTDEF.
61767         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
61768         * string/argz-stringify.c: Likewise.
61769         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61770         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61771         Declare hidden proto.
61772         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
61773         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
61774         Declare hidden proto.
61775         * include/stdio.h (__asprintf_internal): Don't declare.
61776         (__asprintf): Don't define as macro.  Declare hidden proto.
61777         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
61778         (__fsetlocking): Declare hidden proto.
61779         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
61780         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
61781         hidden proto.
61782         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
61783         (_IO_setlinebuf): Remove use of INTUSE.
61784         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
61785         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
61786         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
61787         Remove declaration.
61788         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
61789         (_IO_do_flush): Remove use of INTUSE.
61790         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
61791         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
61792         (_IO_adjust_column, _IO_least_wmarker)
61793         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
61794         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
61795         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
61796         (_IO_default_doallocate, _IO_wdefault_doallocate)
61797         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
61798         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
61799         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
61800         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
61801         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
61802         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
61803         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
61804         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
61805         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
61806         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
61807         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
61808         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
61809         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
61810         proto.
61811         (_IO_flush_all_internal, _IO_adjust_column_internal)
61812         (_IO_default_uflow_internal, _IO_default_finish_internal)
61813         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
61814         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
61815         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
61816         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
61817         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
61818         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
61819         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
61820         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
61821         (_IO_file_close_internal, _IO_file_close_it_internal)
61822         (_IO_file_underflow_internal, _IO_file_overflow_internal)
61823         (_IO_file_init_internal, _IO_file_attach_internal)
61824         (_IO_file_fopen_internal, _IO_file_read_internal)
61825         (_IO_file_sync_internal, _IO_file_seek_internal)
61826         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
61827         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
61828         (_IO_str_underflow_internal, _IO_str_overflow_internal)
61829         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
61830         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
61831         (_IO_list_all_internal, _IO_link_in_internal)
61832         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
61833         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
61834         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
61835         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
61836         (_IO_do_write_internal, _IO_padn_internal)
61837         (_IO_getline_info_internal, _IO_getline_internal)
61838         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
61839         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
61840         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
61841         (_IO_vfscanf_internal, _IO_vfprintf_internal)
61842         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
61843         (_IO_init_internal, _IO_un_link_internal): Don't declare.
61844         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
61845         with libc_hidden_ver, remove use of INTUSE.
61846         * libio/genops.c: Likewise.
61847         * libio/freopen.c: Likewise.
61848         * libio/freopen64.c: Likewise.
61849         * libio/iofclose.c: Likewise.
61850         * libio/iofdopen.c: Likewise.
61851         * libio/iofflush.c: Likewise.
61852         * libio/iofflush_u.c: Likewise.
61853         * libio/iofgets.c: Likewise.
61854         * libio/iofgets_u.c: Likewise.
61855         * libio/iofopen.c: Likewise.
61856         * libio/iofopncook.c: Likewise.
61857         * libio/iofread.c: Likewise.
61858         * libio/iofread_u.c: Likewise.
61859         * libio/ioftell.c: Likewise.
61860         * libio/iofwrite.c: Likewise.
61861         * libio/iogetline.c: Likewise.
61862         * libio/iogets.c: Likewise.
61863         * libio/iogetwline.c: Likewise.
61864         * libio/iopadn.c: Likewise.
61865         * libio/iopopen.c: Likewise.
61866         * libio/ioseekoff.c: Likewise.
61867         * libio/ioseekpos.c: Likewise.
61868         * libio/iosetbuffer.c: Likewise.
61869         * libio/iosetvbuf.c: Likewise.
61870         * libio/ioungetc.c: Likewise.
61871         * libio/ioungetwc.c: Likewise.
61872         * libio/iovdprintf.c: Likewise.
61873         * libio/iovsprintf.c: Likewise.
61874         * libio/iovsscanf.c: Likewise.
61875         * libio/memstream.c: Likewise.
61876         * libio/obprintf.c: Likewise.
61877         * libio/oldfileops.c: Likewise.
61878         * libio/oldiofclose.c: Likewise.
61879         * libio/oldiofdopen.c: Likewise.
61880         * libio/oldiofopen.c: Likewise.
61881         * libio/oldiopopen.c: Likewise.
61882         * libio/oldstdfiles.c: Likewise.
61883         * libio/putc.c: Likewise.
61884         * libio/setbuf.c: Likewise.
61885         * libio/setlinebuf.c: Likewise.
61886         * libio/stdfiles.c: Likewise.
61887         * libio/strops.c: Likewise.
61888         * libio/vasprintf.c: Likewise.
61889         * libio/vscanf.c: Likewise.
61890         * libio/vsnprintf.c: Likewise.
61891         * libio/vswprintf.c: Likewise.
61892         * libio/wfiledoalloc.c: Likewise.
61893         * libio/wfileops.c: Likewise.
61894         * libio/wgenops.c: Likewise.
61895         * libio/wmemstream.c: Likewise.
61896         * libio/wstrops.c: Likewise.
61897         * libio/__fpurge.c: Likewise.
61898         * libio/__fsetlocking.c: Likewise.
61899         * assert/assert.c: Likewise.
61900         * debug/fgets_chk.c: Likewise.
61901         * debug/fgets_u_chk.c: Likewise.
61902         * debug/fread_chk.c: Likewise.
61903         * debug/fread_u_chk.c: Likewise.
61904         * debug/gets_chk.c: Likewise.
61905         * debug/obprintf_chk.c: Likewise.
61906         * debug/vasprintf_chk.c: Likewise.
61907         * debug/vdprintf_chk.c: Likewise.
61908         * debug/vsnprintf_chk.c: Likewise.
61909         * debug/vsprintf_chk.c: Likewise.
61910         * malloc/mtrace.c: Likewise.
61911         * misc/error.c: Likewise.
61912         * misc/syslog.c: Likewise.
61913         * stdio-common/asprintf.c: Likewise.
61914         * stdio-common/fxprintf.c: Likewise.
61915         * stdio-common/getw.c: Likewise.
61916         * stdio-common/isoc99_fscanf.c: Likewise.
61917         * stdio-common/isoc99_scanf.c: Likewise.
61918         * stdio-common/isoc99_vfscanf.c: Likewise.
61919         * stdio-common/isoc99_vscanf.c: Likewise.
61920         * stdio-common/isoc99_vsscanf.c: Likewise.
61921         * stdio-common/printf-prs.c: Likewise.
61922         * stdio-common/printf_fp.c: Likewise.
61923         * stdio-common/printf_fphex.c: Likewise.
61924         * stdio-common/printf_size.c: Likewise.
61925         * stdio-common/putw.c: Likewise.
61926         * stdio-common/scanf.c: Likewise.
61927         * stdio-common/sprintf.c: Likewise.
61928         * stdio-common/tmpfile.c: Likewise.
61929         * stdio-common/vfprintf.c: Likewise.
61930         * stdio-common/vfscanf.c: Likewise.
61931         * stdlib/strfmon_l.c: Likewise.
61932         * sunrpc/openchild.c: Likewise.
61933         * sunrpc/xdr_stdio.c: Likewise.
61934         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
61935         * sysdeps/mach/hurd/tmpfile.c: Likewise.
61936
61937 2012-05-24  Roland McGrath  <roland@hack.frob.com>
61938
61939         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
61940
61941         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
61942         in the third column, to generate for the shared library an IFUNC
61943         that uses _dl_vdso_vsym.
61944         * Makerules (COMPILE.c, compile-stdin.c): New variables.
61945         * Makeconfig (object-suffixes-noshared): New variable.
61946
61947         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
61948         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
61949         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
61950         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
61951
61952         [BZ #14132]
61953         * include/sys/time.h (__gettimeofday): Remove macro.
61954         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
61955         * time/gettimeofday.c (__gettimeofday): Remove #undef.
61956         Remove INTDEF.
61957         (__gettimeofday): Add libc_hidden_def.
61958         (gettimeofday): Add libc_hidden_weak.
61959         * sysdeps/mach/gettimeofday.c: Likewise.
61960         * sysdeps/posix/gettimeofday.c: Likewise.
61961         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
61962         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
61963         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
61964         (__gettimeofday_internal): Remove strong_alias.
61965         (__gettimeofday): Add libc_hidden_def.
61966         (gettimeofday): Add libc_hidden_weak.
61967         * sysdeps/unix/syscalls.list (gettimeofday):
61968         Remove __gettimeofday_internal alias.
61969
61970 2012-05-24  Daniel Jacobowitz  <drow@false.org>
61971             H.J. Lu  <hongjiu.lu@intel.com>
61972
61973         [BZ #12495]
61974         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
61975         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
61976         (largebin_index_32_big): New.
61977         (largebin_index): Use it for 16-byte alignment.
61978         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
61979         correction with front_misalign.
61980
61981 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
61982
61983         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
61984         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
61985         Likewise.
61986         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
61987         Likewise.
61988         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
61989         Likewise.
61990         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
61991         Likewise.
61992         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
61993         Likewise.
61994         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
61995         Likewise.
61996         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
61997         Likewise.
61998         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
61999         Likewise.
62000         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
62001         Likewise.
62002         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
62003         Likewise.
62004         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
62005         Likewise.
62006         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
62007         Likewise.
62008
62009         * scripts/data/c++-types-x32-linux-gnu.data: New file.
62010         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
62011
62012 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
62013
62014         [BZ #10846]
62015         [BZ #14036]
62016         * math/libm-test.inc (exp_test): Add test from bug 14036.
62017         (pow_test): Add test from bug 10846.
62018
62019         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
62020         and other flags.
62021         (special_function): Do not include flags in test name.
62022         (parse_args): Likewise.
62023         * sysdeps/i386/fpu/libm-test-ulps: Update.
62024         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
62025         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
62026         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
62027         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62028
62029         * math/gen-libm-test.pl (%beautify): Add entries for underflow
62030         exceptions.
62031         * math/libm-test.inc ("Philosophy"): Update comment about
62032         exception testing.
62033         (UNDERFLOW_EXCEPTION): New macro.
62034         (UNDERFLOW_EXCEPTION_OK): Likewise.
62035         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
62036         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
62037         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
62038         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
62039         (INVALID_EXCEPTION_OK): Update value.
62040         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
62041         (OVERFLOW_EXCEPTION_OK): Likewise.
62042         (IGNORE_ZERO_INF_SIGN): Likewise.
62043         (test_exceptions): Handle underflow exceptions.
62044         (acos_test): Update for underflow exception expectations.
62045         (cexp_test): Likewise.
62046         (clog_test): Likewise.
62047         (clog10_test): Likewise.
62048         (csqrt_test): Likewise.
62049         (ctan_test): Likewise.
62050         (ctanh_test): Likewise.
62051         (exp_test): Likewise.
62052         (exp10_test): Likewise.
62053         (exp2_test): Likewise.
62054         (expm1_test): Likewise.
62055         (fma_test): Likewise.
62056         (j0_test): Likewise.
62057         (jn_test): Likewise.
62058         (nexttoward_test): Likewise.
62059         (pow_test): Likewise.
62060         (scalbn_test): Likewise.
62061         (scalbln_test): Likewise.
62062         (tan_test): Likewise.
62063         (y1_test): Likewise.
62064         * sysdeps/i386/fpu/libm-test-ulps: Update.
62065         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62066
62067 2012-05-23  David S. Miller  <davem@davemloft.net>
62068
62069         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
62070         (__libc_sigaction): Remove unused local variables.
62071
62072 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62073
62074         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
62075
62076 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
62077
62078         mktime: avoid signed integer overflow
62079         * time/mktime.c (__mktime_internal): Do not mishandle the case
62080         where diff == INT_MIN.
62081
62082         mktime: simplify computation of average
62083         * time/mktime.c (ranged_convert): Use new time_t_avg function
62084         instead of rolling our own (probably-slower) code.
62085
62086         mktime: do not assume signed right shift propagates sign bit
62087         * time/mktime.c (isdst_differ): New static function.
62088         (__mktime_internal): No need to normalize tm_isdst now.
62089         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
62090         tm_isdst values.
62091
62092         mktime: merge another wrapv change from gnulib
62093         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
62094         from some compilers.
62095
62096         mktime: remove incorrect attempt at unusual arithmetics
62097         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
62098         The code didn't really work on such machines anyway.
62099         (TYPE_MINIMUM): Assume two's complement.
62100         (twos_complement_arithmetic): Verify that long_int and time_t
62101         are two's complement (or unsigned, in the latter case).
62102
62103         mktime: check signed shifts on long_int and time_t, too
62104         * time/mktime.c (SHR): Check that shifts work as desired
62105         on the types long_int and time_t too, as SHR is used on
62106         such types.
62107
62108         mktime: do not assume 'long' is wide enough
62109         * time/mktime.c (verify): Move decl up.
62110         (long_int): New type.
62111         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
62112         to remove assumption in the code that 'long' is wide enough to
62113         store year values.  This assumption is not true on x32 and on
62114         some non-glibc platforms.
62115
62116         mktime: merge wrapv change from gnulib
62117         * time/mktime.c (WRAPV): New macro.
62118         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
62119         (guess_time_tm, __mktime_internal): Do not assume that signed
62120         integer overflow wraps around; modern compilers generate code
62121         where this assumption is no longer valid.
62122
62123 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62124
62125         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
62126         Replace "jmp L(pseudo_end)" with "ret".
62127         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
62128         Likewise.
62129
62130 2012-05-23  Andreas Jaeger  <aj@suse.de>
62131
62132         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
62133         * sysdeps/unix/sysv/linux/poll.c: Remove file.
62134
62135 2012-05-23  Andreas Jaeger  <aj@suse.de>
62136             Maximilian Attems  <max@stro.at>
62137
62138         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
62139         New macros.
62140
62141 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
62142
62143         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
62144         code so that pseudo_end is just ret and the stack pointer is
62145         correct also for static library in error case.
62146
62147 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
62148
62149         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
62150         move to syscalls.list.
62151         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
62152         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
62153         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
62154         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
62155
62156         * manual/install.texi (Running make install): Do not mention Linux
62157         kernel version for which pt_chown is not needed.
62158         (Linux): Do not mention problems with nscd with 2.0 kernels.
62159         * INSTALL: Regenerated.
62160
62161 2012-05-23  Andreas Jaeger  <aj@suse.de>
62162
62163         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
62164         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
62165         macro.
62166         * sysdeps/unix/sysv/linux/s390/bits/mman.h
62167         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62168         * sysdeps/unix/sysv/linux/sh/bits/mman.h
62169         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62170         * sysdeps/unix/sysv/linux/i386/bits/mman.h
62171         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62172         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
62173         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62174         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
62175         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
62176         * sysdeps/unix/sysv/linux/bits/in.h
62177         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
62178
62179 2012-05-22  Roland McGrath  <roland@hack.frob.com>
62180
62181         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
62182         (PREPARE_VERSION): Just use assert instead, it will be elided
62183         under [NDEBUG] anyway.
62184
62185 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62186
62187         * sysdeps/unix/sysv/linux/Makefile: Include
62188         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
62189         (sysdep_routines): Remove sysctl.
62190         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
62191         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
62192         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
62193         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
62194         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
62195
62196 2012-05-22  Andreas Jaeger  <aj@suse.de>
62197
62198         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
62199         that pseudo_end is just ret and the stack pointer is correct also
62200         for static library in error case.
62201
62202 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
62203
62204         [BZ #14122]
62205         * nss/nsswitch.c (defconfig_entries): New variable.
62206         (__nss_database_lookup): Don't leak defconfig entries.
62207         (nss_parse_service_list): Don't leak on error paths.
62208         (free_database_entries): New function.
62209         (free_defconfig): New function.
62210         (free_mem): Move common code to free_database_entries.
62211
62212 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62213
62214         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
62215         Add arch_prctl.
62216         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
62217
62218         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
62219         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
62220         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
62221         New macro.
62222         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
62223         (INTERNAL_SYSCALL_TYPES): Likewise.
62224         (LOAD_ARGS_TYPES_[1-6]): Likewise.
62225         (LOAD_REGS_TYPES_[1-6]): Likewise.
62226         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
62227         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
62228
62229 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62230
62231         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
62232         copysignl for GLIBC_2_0.
62233         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
62234         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
62235         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
62236         logbl for GLIBC_2_0.
62237         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
62238         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
62239
62240 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62241
62242         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
62243         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62244
62245         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
62246         Use "neg %eax".
62247
62248         * time/mktime.c: Update copyright years.
62249
62250 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62251
62252         mktime: merge comment-quoting-style change from gnulib
62253         * time/mktime.c: Quote 'like this' in comments.
62254         The GNU coding standards suggest that we no longer quote `like this',
62255         as "`" and "'" are typically rendered asymmetrically nowadays.
62256         The typical gnulib style is to quote 'like this' when quoting
62257         code, and "like this" when quoting English.
62258
62259         * time/mktime.c (compile-command): Add "-I.".
62260
62261         mktime: merge mktime-internal.h change from gnulib
62262         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
62263
62264         mktime: merge time_r change from gnulib
62265         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
62266
62267         mktime: merge DEBUG change from gnulib
62268         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
62269         case system <time.h> has a #define.
62270
62271         mktime: merge <sys/types.h> change from gnulib
62272         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
62273         since <time.t> is now guaranteed to define time_t.
62274
62275         mktime: merge HAVE_CONFIG_H change from gnulib
62276         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
62277
62278 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
62279
62280         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
62281         Use "neg %eax".
62282
62283         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
62284         __rlim_t cast.
62285         (struct rusage): Use anonymous union to pad each field to
62286         __syscall_slong_t.
62287
62288 2012-05-21  David S. Miller  <davem@davemloft.net>
62289
62290         * Makefules (o-iterator): Remove .s cases.
62291         (compile-command.s): Delete.
62292         (COMPILE.s): Delete.
62293         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
62294
62295 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
62296
62297         * configure.in (libc_cv_predef_stack_protector): Only consider
62298         "foobar" and "__stack_chk_fail" lines in libc_undefs.
62299         * configure: Regenerated.
62300
62301 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62302
62303         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
62304         New macro.  Use R*LP on int and pointer.
62305         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
62306         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
62307         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
62308         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
62309
62310         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
62311         [__WORDSIZE_TIME64_COMPAT32] instead of
62312         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
62313         (struct utmp): Likewise.
62314         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
62315         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
62316         Renamed to ...
62317         (__WORDSIZE_TIME64_COMPAT32): This.
62318         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
62319         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
62320         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
62321         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
62322         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
62323         (__WORDSIZE_TIME64_COMPAT32): New macro.
62324
62325 2012-05-21  Andreas Jaeger  <aj@suse.de>
62326
62327         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
62328         only if [SHARED]. Add prototype for __wcschr_ia32.
62329
62330 2012-05-21  Roland McGrath  <roland@hack.frob.com>
62331
62332         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
62333         of %rbp unmolested in the jmp_buf while mangling the low bits.
62334         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
62335         unmolested high bits of %rbp while demangling the low bits.
62336         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
62337
62338 2012-05-21  Andreas Jaeger  <aj@suse.de>
62339
62340         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
62341         * sunrpc/svc_simple.c: Use it for registerrpc.
62342         * sunrpc/xcrypt.c: Use it for passwd2des.
62343
62344         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
62345
62346 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62347
62348         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
62349         Don't define if [__SYSCALL_WORDSIZE != 32].
62350         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
62351         New macro.
62352
62353 2012-05-21  Bruno Haible  <bruno@clisp.org>
62354             Andreas Jaeger  <aj@suse.de>
62355
62356         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
62357         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
62358         inptr and inend for must_buffer_ch.
62359         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
62360         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
62361         * stdio-common/Makefile (tests): Remove bug15.
62362         (bug15-ENV): Remove macro.
62363         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
62364         anymore.
62365
62366 2012-05-19  Andreas Jaeger  <aj@suse.de>
62367             Roland McGrath  <roland@hack.frob.com>
62368
62369         * manual/contrib.texi: Completely rewritten. It contains now an
62370         alphabetical list of contributors and their contributions.
62371
62372 2012-05-21  Richard Henderson  <rth@twiddle.net>
62373
62374         * misc/getauxval.c (__getauxval): Use unsigned long int.
62375         * misc/sys/auxv.h: Include <sys/cdefs.h>.
62376         (getauxval): Use unsigned long int.
62377
62378 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
62379
62380         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
62381
62382 2012-05-21  Roland McGrath  <roland@hack.frob.com>
62383
62384         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
62385         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
62386         __alignof__ (long double).
62387
62388 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62389
62390         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62391
62392 2012-05-20  Richard Henderson  <rth@twiddle.net>
62393
62394         * misc/getauxval.c: New file.
62395         * misc/sys/auxv.h: New file.
62396         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
62397         (routines): Add getauxval.
62398         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
62399         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
62400         * elf/dl-sysdep.c (_dl_auxv): Remove.
62401         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
62402         * elf/dl-support.c (_dl_auxv): New variable.
62403         (_dl_aux_init): Initialize it.
62404         * manual/startup.texi (Auxiliary Vector): New node.
62405         * sysdeps/generic/bits/hwcap.h: New file.
62406         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
62407         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
62408         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
62409         * sysdeps/sparc/sysdep.h: ... here.  Include it.
62410         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
62411         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
62412         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
62413         Update.
62414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
62415         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
62416         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
62417         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
62418         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
62419         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
62420         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
62421         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
62422
62423 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62424
62425         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
62426
62427 2012-05-19  David S. Miller  <davem@davemloft.net>
62428
62429         * sysdeps/sparc/fpu/libm-test-ulps: Update.
62430
62431 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
62432
62433         [BZ #14123]
62434         * math/s_ccosh.c: Include <float.h>
62435         (__ccosh): Avoid internal overflow calculating sinh and cosh
62436         values before multiplying by sin and cos values.
62437         * math/s_ccoshf.c: Likewise.
62438         * math/s_ccoshl.c: Likewise.
62439         * math/s_csin.c: Likewise.
62440         * math/s_csinf.c: Likewise.
62441         * math/s_csinl.c: Likewise.
62442         * math/s_csinh.c: Likewise.
62443         * math/s_csinhf.c: Likewise.
62444         * math/s_csinhl.c: Likewise.
62445         * math/libm-test.inc (ccos_test): Add more tests.
62446         (ccosh_test): Likewise.
62447         (csin_test): Likewise.
62448         (csinh_test): Likewise.
62449         * sysdeps/i386/fpu/libm-test-ulps: Update.
62450         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
62451
62452 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
62453
62454         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
62455         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
62456
62457         * sysdeps/x86_64/x32/_itoa.h: Add comment.
62458
62459 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
62460
62461         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
62462         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
62463         * sysdeps/powerpc/soft-fp/Versions: Likewise.
62464         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
62465         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
62466         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
62467         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
62468         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
62469         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
62470         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
62471         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
62472         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
62473         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
62474         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
62475         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
62476         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
62477         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
62478         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
62479         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
62480         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
62481         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
62482         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
62483         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
62484         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
62485         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
62486         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
62487         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
62488         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
62489         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
62490         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
62491         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
62492
62493 2012-05-18  Andreas Jaeger  <aj@suse.de>
62494
62495         * csu/.gitignore: Delete.
62496
62497 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62498
62499         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
62500         (timex): Use __syscall_slong_t.
62501
62502 2012-05-18  Andreas Jaeger  <aj@suse.de>
62503             Carlos O'Donell  <carlos_odonell@mentor.com>
62504
62505         * manual/install.texi (Configuring and compiling): Update
62506         description about files modified in the source directory.
62507         * INSTALL: Regenerated.
62508
62509 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62510
62511         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
62512         value.  Use "or" to set return value to -1.
62513         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
62514         negate return value.
62515
62516 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
62517
62518         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
62519         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
62520         failure if the compiler has Graphite support disabled.
62521         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
62522         Likewise.
62523         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
62524         (CFLAGS-memmove.c): Likewise.
62525         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
62526         Likewise.
62527
62528 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
62529
62530         * sysdeps/x86_64/x32/_itoa.h: New file.
62531
62532         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
62533         getdents system call only if kernel and user dirents have the
62534         same d_ino and d_off.
62535
62536         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
62537         LLONG_MAX != LONG_MAX.
62538         (_itoa_word): Use _ITOA_WORD_TYPE on value.
62539         (_fitoa_word): Likewise.
62540
62541         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
62542         years.
62543         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
62544         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
62545         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
62546
62547         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
62548         include <bits/wordsize.h>.  Check __x86_64__ instead of
62549         __WORDSIZE.
62550         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
62551         if __x86_64__ is defined.  Use anonymous union on fpstate.
62552
62553         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
62554         anonymous union.
62555
62556 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
62557
62558         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
62559         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
62560         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
62561         Refer to _rtld_local_ro instead of _rtld_global_ro.
62562         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
62563         Likewise.
62564         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
62565         Likewise.
62566         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
62567         Likewise.
62568         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
62569         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
62570         of _rtld_global, and rtld_progname instead of _dl_argv[0].
62571
62572         [BZ #10882]
62573         * sysdeps/powerpc/powerpc32/dl-machine.c
62574         (__elf_machine_runtime_setup) [PROF]: Don't reference
62575         _dl_prof_resolve.
62576
62577 2012-05-18  Andreas Jaeger  <aj@suse.de>
62578
62579         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
62580         function only available for GCCs before 3.4 since GCC 3.4
62581         introduced a builtin.
62582         (lrint): Likewise.
62583         (llrintf): Likewise.
62584         (llrint): Likewise.
62585         (fmaxf): Likewise.
62586         (fmax): Likewise.
62587         (fminf): Likewise.
62588         (fmin): Likewise.
62589         (rint): Likewise.
62590         (rintf): Likewise.
62591         (nearbyint): Likewise.
62592         (nearbyintf): Likewise.
62593         (ceil): Likewise.
62594         (ceilf): Likewise.
62595         (floor): Likewise.
62596         (floorf): Likewise.
62597
62598 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62599
62600         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
62601         on both fields and cast pointer to __syscall_ulong_t.
62602
62603         * bits/types.h (__fsword_t): New type.
62604         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
62605         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
62606         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62607         (__FSWORD_T_TYPE): Likewise.
62608         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62609         (__FSWORD_T_TYPE): Likewise.
62610         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62611         (__FSWORD_T_TYPE): Likewise.
62612         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
62613         (__FSWORD_T_TYPE): Likewise.
62614         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
62615         __SWORD_TYPE with __fsword_t.
62616         (statfs64): Likewise.
62617
62618 2012-05-17  David S. Miller  <davem@davemloft.net>
62619
62620         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
62621
62622 2012-05-17  Andreas Jaeger  <aj@suse.de>
62623
62624         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
62625         warning.
62626
62627 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62628
62629         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
62630
62631 2012-05-17  Andreas Jaeger  <aj@suse.de>
62632
62633         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
62634         when it is used.
62635
62636 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62637
62638         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
62639
62640 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
62641
62642         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
62643         * sysdeps/x86_64/tst-mallocalign1.c: New file.
62644
62645 2012-05-17  Andreas Jaeger  <aj@suse.de>
62646             Carlos O'Donell  <carlos_odonell@mentor.com>
62647
62648         [BZ #14059]
62649         * sysdeps/x86_64/multiarch/init-arch.h
62650         (bit_YMM_Usable): Rename to...
62651         (bit_AVX_Usable): ... this.
62652         (bit_FMA4_Usable): New macro.
62653         (bit_XMM_state): New macro.
62654         (bit_YMM_state): New macro.
62655         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
62656         [__ASSEMBLER__] (index_AVX_Usable): ... this.
62657         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
62658         (CPUID_OSXSAVE): New macro.
62659         (CPUID_AVX): New macro.
62660         (CPUID_FMA4): New macro.
62661         (index_YMM_Usable): Rename to...
62662         (index_AVX_Usable): ... this.
62663         (HAS_AVX): Use HAS_ARCH_FEATURE.
62664         (HAS_FMA4): Likewise.
62665         (HAS_YMM_USABLE): Remove.
62666         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
62667         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
62668         are present.
62669         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
62670         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
62671         * sysdeps/x86_64/multiarch/Makefile: Likewise.
62672         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
62673         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
62674
62675 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
62676
62677         * math/libm-test.c: Support platforms without multiple rounding modes.
62678         * math/bug-nextafter.c: Support platforms without FP exceptions.
62679         * math/bug-nexttoward.c: Likewise.
62680         * math/test-fenv.c: Likewise.
62681         * math/test-misc.c: Likewise.
62682         * stdlib/bug-getcontext.c: Likewise.
62683
62684 2012-05-17  Andreas Jaeger  <aj@suse.de>
62685
62686         * manual/examples/search.c (critter_cmp): Change signature to
62687         avoid warnings.
62688         * manual/string.texi (Collation Functions): Likewise.
62689
62690 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62691
62692         * bits/types.h: Fold copyright years.
62693         * bits/typesizes.h: Likewise.
62694         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
62695         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
62696         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
62697         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
62698         * time/time.h: Likewise.
62699
62700 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
62701
62702         [BZ #208]
62703         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
62704         in instead of returning them.  Return void.
62705         (__libc_mallinfo): Accumulate over all arenas.
62706         (__malloc_stats): Adjust for change in int_mallinfo interface.
62707
62708 2012-05-16  Roland McGrath  <roland@hack.frob.com>
62709
62710         [BZ #10375]
62711         * configure.in (NM): Add AC_CHECK_TOOL for it.
62712         (libc_extra_cflags): New substituted variable.
62713         Check for -fstack-protector being used implicitly.
62714         * configure: Regenerated.
62715         * config.make.in (config-extra-cflags): New variable,
62716         gets @libc_extra_cflags@.
62717         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
62718
62719         [BZ #10375]
62720         * configure.in: Check for _FORTIFY_SOURCE being predefined.
62721         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
62722         * configure: Regenerated.
62723         * config.make.in (CPPUNDEFS): New substituted variable.
62724         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
62725         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
62726         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
62727
62728 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62729
62730         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
62731         (mq_attr): Use __syscall_slong_t.
62732
62733 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62734
62735         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
62736         Check __x86_64__ instead of __WORDSIZE.
62737         (_STAT_VER_LINUX): Likewise.
62738         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
62739         __syscall_ulong_t and __syscall_slong_t.
62740         (stat64): Likewise.
62741
62742 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62743
62744         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
62745
62746 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62747
62748         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
62749
62750 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62751
62752         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
62753         __syscall_ulong_t.
62754
62755         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
62756         include <bits/wordsize.h>.  Check __x86_64__ instead of
62757         __WORDSIZE.
62758         (greg_t): Use "__extension__ long long int" if __x86_64__ is
62759         defined.
62760         (mcontext_t): Replace "unsigned long" with "unsigned long long".
62761
62762         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
62763         include <bits/wordsize.h>.  Check __x86_64__ instead of
62764         __WORDSIZE.
62765         (user_regs_struct): Use "__extension__ unsigned long long"
62766         instead of "unsigned long" if __x86_64__ is defined.
62767         (user): Likewise.  Pad after pointer field if __ILP32__ is
62768         defined.
62769
62770 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
62771
62772         * configure.in (makeinfo): Require version 4.5 or later.  Allow
62773         versions 5 to 9.
62774         * configure: Regenerated.
62775         * manual/install.texi (texinfo): Increase version requirement to
62776         4.5 or later.
62777         * INSTALL: Regenerated.
62778
62779         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
62780
62781 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
62782
62783         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
62784
62785         * sysdeps/x86_64/x32/ffs.c: New file.
62786
62787         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
62788         __syscall_ulong_t.
62789         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
62790         defined.  Use __syscall_ulong_t.
62791         (shminfo): Use __syscall_ulong_t.
62792         (shm_info): Likewise.
62793
62794         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
62795         __syscall_ulong_t.
62796
62797         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
62798         <bits/wordsize.h>.
62799         (msgqnum_t): Use __syscall_ulong_t.
62800         (msglen_t): Likewise.
62801         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
62802         __syscall_ulong_t.
62803
62804         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
62805         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62806
62807         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
62808
62809         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
62810         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
62811
62812         * sysvipc/sys/msg.h (msgbuf): Replace long int with
62813         __syscall_slong_t.
62814
62815         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
62816         include <bits/wordsize.h>.  Check __x86_64__ instead of
62817         __WORDSIZE.
62818
62819         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
62820         "unsigned long long int" if __x86_64__ is defined.
62821         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
62822
62823         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
62824         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
62825         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
62826
62827         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
62828         <stdint.h>.
62829         (GET_PC): Cast to uintptr_t first.
62830         (GET_FRAME): Likewise.
62831         (GET_STACK): Likewise.
62832
62833         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
62834         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
62835         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
62836         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
62837         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
62838         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
62839         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
62840         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
62841         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
62842         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
62843         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
62844         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
62845         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
62846         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
62847         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
62848         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
62849         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
62850         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
62851         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
62852         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
62853         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
62854         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
62855         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
62856         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
62857         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
62858         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
62859         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
62860         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
62861         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
62862
62863 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
62864
62865         * Makerules (+depfiles): Also collect depfiles from .oS in
62866         $(extra-objs).
62867         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
62868         .oS, $(libnldbl-routines)).
62869
62870         * Makerules (native-compile-mkdep-flags): Define.
62871         * sunrpc/Makefile (extra-objs): Add $(addprefix
62872         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
62873         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
62874         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
62875         calling $(make-target-directory).
62876
62877 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62878
62879         * bits/types.h (__snseconds_t): Removed.
62880         * time/time.h (struct timespec): Replace __snseconds_t with
62881         __syscall_slong_t.
62882         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
62883         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
62884         Likewise.
62885         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62886         (__SNSECONDS_T_TYPE): Likewise.
62887         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62888         (__SNSECONDS_T_TYPE): Likewise.
62889         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62890         (__SNSECONDS_T_TYPE): Likewise.
62891
62892 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62893
62894         * sysdeps/mach/hurd/bits/typesizes.h
62895         (__SYSCALL_SLONG_TYPE): New macro.
62896         (__SYSCALL_ULONG_TYPE): Likewise.
62897
62898 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62899
62900         * bits/types.h (__syscall_slong_t): New type.
62901         (__syscall_ulong_t): Likewise.
62902
62903         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
62904         (__SYSCALL_ULONG_TYPE): Likewise.
62905         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
62906         (__SYSCALL_SLONG_TYPE): Likewise.
62907         (__SYSCALL_ULONG_TYPE): Likewise.
62908         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
62909         (__SYSCALL_SLONG_TYPE): Likewise.
62910         (__SYSCALL_ULONG_TYPE): Likewise.
62911         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
62912         (__SYSCALL_SLONG_TYPE): Likewise.
62913         (__SYSCALL_ULONG_TYPE): Likewise.
62914
62915 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62916
62917         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
62918         Add sigaltstack-offsets.sym.
62919         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
62920         <sigaltstack-offsets.h>.
62921         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
62922         longjmp_msg pointer.
62923         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
62924         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
62925         signal stack.
62926         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
62927
62928 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
62929
62930         * elf/stackguard-macros.h: Remove file.
62931         * sysdeps/generic/stackguard-macros.h: New file.
62932         * sysdeps/i386/stackguard-macros.h: Likewise.
62933         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
62934         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
62935         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
62936         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
62937         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
62938         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
62939         * sysdeps/x86_64/stackguard-macros.h: Likewise.
62940         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
62941         <elf/stackguard-macros.h>.
62942
62943         [BZ #14109]
62944         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
62945         __aligned__ in attribute.
62946         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
62947         (gregset_t): Likewise.
62948
62949 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62950
62951         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
62952         * sysdeps/x86_64/64/Implies-after: Here.  New file.
62953         * sysdeps/x86_64/x32/Implies-after: New file.
62954
62955 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62956
62957         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
62958         and access return value for _dl_profile_fixup.  Use R10_LP to
62959         load frame size.
62960
62961 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62962
62963         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
62964
62965 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62966
62967         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
62968         * sysdeps/x86_64/x32/sysdep.h: New file.
62969
62970 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
62971
62972         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
62973         * sysdeps/x86_64/setjmp.S: Likewise.
62974
62975 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
62976
62977         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
62978         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
62979         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
62980         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
62981         remove unused global constant.
62982
62983 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
62984
62985         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
62986         include of <not-cancel.h>.
62987
62988 2012-05-15  Roland McGrath  <roland@hack.frob.com>
62989
62990         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
62991
62992 2012-05-15  Jeff Law  <law@redhat.com>
62993             Andreas Jaeger  <aj@suse.de>
62994
62995         [BZ #13594]
62996         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
62997         out from...
62998         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
62999         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
63000         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
63001         code changing __hst_map_handle.map.
63002
63003 2012-05-15  Roland McGrath  <roland@hack.frob.com>
63004
63005         * configure.in (sysnames): Look for Implies-before and Implies-after
63006         files.
63007         * configure: Regenerated.
63008
63009 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63010
63011         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
63012         8-byte data alignment with LP_SIZE alignment.
63013
63014 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63015
63016         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
63017         into R10_LP.
63018
63019 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63020
63021         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
63022
63023 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63024
63025         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
63026         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
63027         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
63028         Likewise.
63029         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
63030
63031 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63032
63033         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
63034         (stackinfo_sub_sp): Likewise.
63035
63036 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63037
63038         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
63039         RAX_LP.
63040
63041 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63042
63043         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
63044         into R*_LP.
63045
63046 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63047
63048         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
63049         sizes into R*_LP.
63050
63051 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63052
63053         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
63054
63055 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63056
63057         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
63058         into R11_LP and load __x86_64_shared_cache_size_half into
63059         R8_LP.
63060
63061 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
63062
63063         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
63064         R8_LP.
63065
63066 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63067
63068         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
63069         logb for POWER7.
63070         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
63071         logbf for POWER7.
63072         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
63073         logbl for POWER7.
63074         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
63075         powerpc32/power7/fpu/s_logb.c via #include.
63076         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
63077         powerpc32/power7/fpu/s_logbf.c via #include.
63078         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
63079         powerpc32/power7/fpu/s_logbl.c via #include.
63080
63081 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
63082
63083         * README.libm: Remove file.
63084
63085 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63086
63087         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
63088         count for x32.  Use R*_LP and omit operand-size suffix.
63089
63090 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63091
63092         * shlib-versions: Move x86_64-.*-linux.* entries to ...
63093         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
63094         * sysdeps/x86_64/x32/shlib-versions: New file.
63095
63096 2012-05-14  Roland McGrath  <roland@hack.frob.com>
63097
63098         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
63099         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
63100         Use _dl_fatal_printf instead.
63101
63102 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
63103
63104         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
63105         set if not set by the user.  Do not allow for being unset.
63106         * sysdeps/unix/sysv/linux/configure: Regenerated.
63107
63108 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63109
63110         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
63111         the `q' suffix from lea and replace .quad with ASM_ADDR.
63112
63113 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63114
63115         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
63116         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
63117         instead of $17.
63118         (PTR_DEMANGLE): Likewise.
63119
63120 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63121
63122         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
63123         (LP_OP): Likewise.
63124         (ASM_ADDR): Likewise.
63125         (RAX_LP): Likewise.
63126         (RBP_LP): Likewise.
63127         (RBX_LP): Likewise.
63128         (RCX_LP): Likewise.
63129         (RDI_LP): Likewise.
63130         (RSI_LP): Likewise.
63131         (RSP_LP): Likewise.
63132         (R8_LP): Likewise.
63133         (R9_LP): Likewise.
63134         (R10_LP): Likewise.
63135         (R10_LP): Likewise.
63136         (R11_LP): Likewise.
63137         (R12_LP): Likewise.
63138         (R13_LP): Likewise.
63139         (R14_LP): Likewise.
63140         (R15_LP): Likewise.
63141
63142 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63143
63144         * sysdeps/x86_64/x32/dl-machine.h: New file.
63145
63146 2012-05-14  Andreas Jaeger  <aj@suse.de>
63147
63148         * manual/Makefile (subdir): Remove export of subdir.
63149         (all): Remove target.
63150         (.PHONY): Remove all from list.
63151         (mkinstalldirs): Remove.
63152         (.PHONY): Remove installdirs from list.
63153         ($(inst_infodir)/libc.info): Use make-target-directory.
63154         (installdirs): Remove.
63155         (subdir_%): Remove.
63156         (glibc-targets): Remove.
63157         (lib): Remove.
63158         (stubs): Remove.
63159         ($(objpfx)stubs ../po/manual.pot): Remove.
63160         ($(objpfx)stamp%): Remove.
63161         (make-target-directory): Remove.
63162         (subdir_install): Remove.
63163         (routines): Remove.
63164         (aux): Remove.
63165         (sources): Remove.
63166         (objects): Remove.
63167         (headers): Remove.
63168
63169         [BZ #13750]
63170         * manual/.gitignore: Remove, it's not needed anymore.
63171         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
63172         all files in it.
63173         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
63174         directory.
63175         (texis): Renamed to $(objpfx)texis.
63176         (texis-path): New, contains path to generated files.
63177         (chapters.%): Use texis-path for complete path, add extra argument
63178         libc-texinfo.sh.
63179         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
63180         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
63181         (summary,texi, stamp-summary): Use complete path of
63182         files. Generate files in build dir.
63183         (dir-add.texi): Build in build dir.
63184         (libm-err.texi,stamp-libm-err): Likewise.
63185         (version.texi, stamp-version): Likewise.
63186         (.%c.texi): Likewise.
63187         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
63188         (mostlyclean): Remove target.
63189         (realclean): Remove target.
63190         (generated): Add new variable with contents from mostlyclean and
63191         realclean, remove entries duplicated in common-mostlyclean, add
63192         stamp-libm-err and stamp-version.
63193         (generated-dirs): Add libc directory.
63194         ($(inst_infodir)/libc.info): Install files from build dir.
63195
63196         * manual/install.texi (Configuring and compiling): Adjust since
63197         the info files are not part of the tar ball anymore.
63198
63199 2012-05-14  Andreas Jaeger  <aj@suse.de>
63200
63201         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
63202         variable.
63203
63204 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
63205
63206         [BZ #13717]
63207         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
63208         to 2.2.0 where earlier.
63209         * sysdeps/unix/sysv/linux/configure: Regenerated.
63210         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
63211         Remove conditional code.
63212         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
63213         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
63214         Remove conditional code.
63215         [!__NR_lchown]: Likewise.
63216         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63217         [__NR_lchown]: Likewise.
63218         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
63219         comment referencing __ASSUME_LCHOWN_SYSCALL.
63220         * sysdeps/unix/sysv/linux/i386/sigaction.c
63221         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63222         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63223         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
63224         Remove conditional code.
63225         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
63226         (__protocol_available): Remove #if 0 code.
63227         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
63228         conditional code.
63229         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
63230         * sysdeps/unix/sysv/linux/kernel-features.h
63231         (__ASSUME_GETCWD_SYSCALL): Don't define.
63232         (__ASSUME_REALTIME_SIGNALS): Likewise.
63233         (__ASSUME_PREAD_SYSCALL): Likewise.
63234         (__ASSUME_PWRITE_SYSCALL): Likewise.
63235         (__ASSUME_POLL_SYSCALL): Likewise.
63236         (__ASSUME_LCHOWN_SYSCALL): Likewise.
63237         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
63238         non-SPARC.
63239         (__ASSUME_SIOCGIFNAME): Don't define.
63240         (__ASSUME_MSG_NOSIGNAL): Likewise.
63241         (__ASSUME_SENDFILE): Define unconditionally.
63242         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
63243         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
63244         conditional code.
63245         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
63246         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
63247         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
63248         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63249         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
63250         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
63251         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
63252         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
63253         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63254         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
63256         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63257         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63258         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
63259         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63260         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
63262         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63263         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
63265         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63266         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
63268         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
63269         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
63271         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63272         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
63274         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63275         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63276         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
63277         Remove conditional code.
63278         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63279         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
63280         Remove conditional code.
63281         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63282         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
63283         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
63284         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
63285         Remove conditional code.
63286         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63287         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
63288         Remove conditional code.
63289         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63290         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
63291         Remove conditional code.
63292         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63293         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
63294         Remove conditional code.
63295         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
63296         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
63297         Remove conditional code.
63298         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63299         * sysdeps/unix/sysv/linux/sh/pwrite64.c
63300         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
63301         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
63302         * sysdeps/unix/sysv/linux/sigaction.c
63303         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63304         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63305         * sysdeps/unix/sysv/linux/sigpending.c
63306         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63307         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63308         * sysdeps/unix/sysv/linux/sigprocmask.c
63309         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63310         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63311         * sysdeps/unix/sysv/linux/sigsuspend.c
63312         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
63313         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
63314         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
63315         (__libc_missing_rt_sigs): Remove.
63316         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
63317         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
63318         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
63319         Remove conditional code.
63320         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
63321         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
63322         return 1.
63323         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
63324         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
63325         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
63326         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
63327
63328 2012-05-14  Andreas Jaeger  <aj@suse.de>
63329
63330         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
63331         it's not used in glibc.
63332         (__coshm1): Likewise.
63333         (__acosh1p): Likewise.
63334         (__sgn): Likewise.
63335
63336         * manual/string.texi (Copying and Concatenation): Add missing
63337         variable in concat example.
63338         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
63339
63340 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63341
63342         [BZ #14103]
63343         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
63344         __builtin_clzl with __builtin_clzll.
63345
63346 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
63347
63348         [BZ #14104]
63349         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
63350         libc_freeres_ptr.
63351
63352 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
63353
63354         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
63355         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
63356         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
63357         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
63358
63359 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
63360
63361         * NEWS: Update ia64 info.
63362
63363 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
63364
63365         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
63366         used as bcopy.
63367
63368 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
63369
63370         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
63371         * sysdeps/unix/syscalls.list (dup3): Likewise.
63372         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
63373         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
63374
63375 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
63376
63377         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
63378         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
63379
63380 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
63381
63382         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
63383         thread pointer.
63384         (TLS_IE): Use mov/add instead of movq/addq to load thread
63385         pointer.
63386         (TLS_GD_PREFIX): New.
63387         (TLS_GD): Use it.
63388
63389 2012-05-11  David S. Miller  <davem@davemloft.net>
63390
63391         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
63392         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
63393         (_FPU_SETCW): Likewise.
63394
63395 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63396
63397         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
63398         is 32-byte aligned.
63399
63400 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
63401
63402         [BZ #11837]
63403         * iconvdata/gb18030.c: Update tables.
63404         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
63405         characters specially.
63406         (BODY for TO_LOOP): Add encoding of missing ranges.
63407
63408 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
63409
63410         [BZ #13673]
63411         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
63412         * sysdeps/mach/hurd/dup3.c: Likewise.
63413         * sysdeps/mach/hurd/readlinkat.c: Likewise.
63414         * sysdeps/powerpc/memmove.c:: Likewise.
63415
63416 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63417
63418         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
63419         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
63420
63421 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63422
63423         * elf/elf.h (R_X86_64_RELATIVE64): New.
63424         (R_X86_64_NUM): Updated.
63425         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
63426         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
63427         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
63428         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
63429         tst-quad1pie tst-quad2pie
63430         (modules-names): Add tst-quadmod1 tst-quadmod2.
63431         ($(objpfx)tst-quad1): New dependency.
63432         ($(objpfx)tst-quad2): Likewise.
63433         ($(objpfx)tst-quad1pie): Likewise.
63434         ($(objpfx)tst-quad2pie): Likewise.
63435         * sysdeps/x86_64/tst-quad1.c: New file.
63436         * sysdeps/x86_64/tst-quad1pie.c: New file.
63437         * sysdeps/x86_64/tst-quad2.c: Likewise.
63438         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
63439         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
63440         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
63441         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
63442         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
63443
63444 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63445
63446         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
63447         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
63448         * streams/stropts.h (t_scalar_t): Define type.
63449
63450         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
63451         (_PATH_PRESERVE): Set to "/var/lib".
63452         (_PATH_RWHODIR): Set to "/var/spool/rwho".
63453
63454         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
63455         instead of int.
63456
63457         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
63458         if __dir_mkfile succeeded.
63459
63460         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
63461         checking for _hurd_dtablesize.  Unlock it right after having
63462         finished _hurd_dtable allocation.
63463
63464 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63465
63466         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
63467         * sysdeps/mach/hurd/configure: Regenerated.
63468         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
63469         special-casing to...
63470         * sysdeps/gnu/configure.in: ... this new file.
63471         * sysdeps/unix/sysv/linux/configure: Regenerated.
63472         * sysdeps/gnu/configure: New generated file.
63473
63474         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
63475         for Linux: use nsec instead of usec, as well as:
63476         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
63477         members of type struct timespec.
63478         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
63479         New macros.
63480         (struct stat64): Likewise.
63481         (_STATBUF_ST_NSEC): New macro.
63482         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
63483
63484         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
63485         __strtoul_internal rather than strtoul.
63486
63487 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63488
63489         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
63490         and reject them.
63491
63492 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63493
63494         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
63495         which preserves existing values.
63496         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
63497
63498 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63499
63500         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
63501         TIMEOUT values.  Return EINVAL for NFDS values either negative or
63502         greater than FD_SETSIZE.
63503
63504 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63505
63506         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
63507         allocated, call __vm_protect to finish enabling the existing space, and
63508         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
63509         allocate the remainder.
63510
63511 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63512
63513         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
63514         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
63515
63516 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63517
63518         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
63519         sysdeps/mach/hurd/readlink.c.
63520
63521         * posix/tst-sysconf.c (posix_options): Only use
63522         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
63523         _POSIX_SYNCHRONIZED_IO when they are defined
63524         * sysdeps/mach/hurd/bits/posix_opt.h:
63525         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
63526         (_XOPEN_REALTIME): Undefine macro.
63527         (_XOPEN_REALTIME_THREADS): Undefine macro.
63528         (_XOPEN_SHM): Undefine macro.
63529         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
63530         macro to -1.
63531         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
63532         macro to -1.
63533         (_POSIX_ASYNC_IO): Undefine macro.
63534         (_POSIX_PRIORITIZED_IO): Undefine macro.
63535         (_POSIX_SPIN_LOCKS): Define macro to -1.
63536
63537         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
63538         SA_NODEFER, SA_RESETHAND.
63539         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
63540         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
63541         F_DUPFD_CLOEXEC.
63542
63543 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63544
63545         * elf/Makefile (pldd-modules): Define unconditionally.
63546
63547 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63548
63549         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
63550
63551 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63552
63553         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
63554         Return ENOENT when name is empty.
63555         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
63556
63557 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63558
63559         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
63560
63561         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
63562
63563 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63564
63565         Fix mlock in all cases except non-readable pages.
63566         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
63567         instead of VM_PROT_ALL as parameter to __vm_wire function.
63568
63569         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
63570         (__mkdir): When path is `/', just fail with EEXIST.
63571         * sysdeps/mach/hurd/mkdirat.c: Likewise.
63572
63573 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63574
63575         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
63576         <sys/uio.h> (for writev).
63577         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
63578         and <sys/param.h> (for MIN).
63579
63580 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
63581
63582         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
63583         REQUESTED_TIME.  Properly set the remaining time and return EINTR
63584         if interrupted.
63585
63586 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63587
63588         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
63589         Depend on against $(link-rpcuserlibs).
63590
63591 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63592
63593         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
63594         (__libc_stack_end): Do not use attribute_relro.
63595         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
63596         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
63597         to libthread-provided value.
63598         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
63599         attribute_relro.
63600
63601 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63602
63603         [BZ #3748]
63604         * bits/libc-lock.h (__libc_once_get): New macro.
63605         * sysdeps/mach/bits/libc-lock.h: Likewise.
63606         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
63607         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
63608         instead of using implementation details.
63609
63610         * libio/fileops.c: Unconditionally include <kernel-features.h>.
63611         * libio/freopen.c: Likewise.
63612         * libio/freopen64.c: Likewise.
63613         * misc/syslog.c: Likewise.
63614         * nscd/connections.c: Likewise.
63615         * nscd/netgroupcache.c: Likewise.
63616         * sysdeps/posix/getcwd.c: Likewise.
63617
63618 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63619
63620         * math/w_ilogbf.c: Add #include <limits.h>.
63621
63622 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63623
63624         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
63625         path instead of returning without unlocking.
63626
63627         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
63628         immediate-write ioctls.
63629         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
63630
63631 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63632
63633         * sysdeps/mach/hurd/i386/init-first.c (init): Use
63634         __builtin_frame_address instead of making assumptions about the
63635         location of the return address relative to DATA.  Force early load of
63636         the return address.
63637         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
63638         __builtin_frame_address.
63639
63640         dup3 for GNU Hurd.
63641         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
63642         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
63643         implement dup3 and do some further code clean-ups.
63644         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
63645         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
63646
63647 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63648
63649         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
63650
63651         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
63652         HURD_CRITICAL_END around holding _hurd_dtable_lock.
63653         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
63654         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
63655         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
63656         d->port.lock.
63657
63658         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
63659         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
63660         when handler == SIG_ERR, not when handler != SIG_ERR.
63661
63662 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63663
63664         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
63665         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
63666         definitions.
63667
63668         accept4 for GNU Hurd.
63669         * include/sys/socket.h (__libc_accept4): New prototype.
63670         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
63671         to implement __libc_accept4.
63672         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
63673         __libc_accept4.
63674         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
63675
63676         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
63677         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
63678         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
63679         signal-defines.sym.
63680
63681 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63682
63683         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
63684
63685 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
63686
63687         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
63688         assertion on O_CLOEXEC flag.
63689         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
63690         * hurd/intern-fd.c: Likewise.
63691         * hurd/port2fd.c: Likewise.
63692
63693 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
63694
63695         [BZ #3906]
63696         * bits/in.h (IPV6_PKTINFO): Define new macro.
63697         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
63698
63699 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
63700
63701         [BZ #13954]
63702         [BZ #13955]
63703         [BZ #13956]
63704         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
63705         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
63706         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
63707         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
63708         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
63709         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
63710         * math/libm-test.inc (logb_test) : Additional logb tests.
63711
63712 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
63713             Andreas Jaeger  <aj@suse.de>
63714
63715         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
63716         * configure: Regenerated.
63717         * config.h.in (LINK_OBSOLETE_RPC): New macro.
63718         * config.make.in (link-obsolete-rpc): New substituted variable.
63719         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
63720         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
63721         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63722         (shared-only-routines): Don't set it under [link-obsolete-rpc],
63723         so that libc.a contains the symbols.
63724         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
63725         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
63726         * sunrpc/auth_none.c: Likewise.
63727         * sunrpc/auth_unix.c: Likewise.
63728         * sunrpc/authdes_prot.c: Likewise.
63729         * sunrpc/authuxprot.c: Likewise.
63730         * sunrpc/clnt_gen.c: Likewise.
63731         * sunrpc/clnt_perr.c: Likewise.
63732         * sunrpc/clnt_raw.c: Likewise.
63733         * sunrpc/clnt_simp.c: Likewise.
63734         * sunrpc/clnt_tcp.c: Likewise.
63735         * sunrpc/clnt_udp.c: Likewise.
63736         * sunrpc/clnt_unix.c: Likewise.
63737         * sunrpc/des_crypt.c: Likewise.
63738         * sunrpc/des_soft.c: Likewise.
63739         * sunrpc/get_myaddr.c: Likewise.
63740         * sunrpc/key_call.c: Likewise.
63741         * sunrpc/key_prot.c: Likewise.
63742         * sunrpc/netname.c: Likewise.
63743         * sunrpc/pm_getmaps.c: Likewise.
63744         * sunrpc/pm_getport.c: Likewise.
63745         * sunrpc/pmap_clnt.c: Likewise.
63746         * sunrpc/pmap_prot.c: Likewise.
63747         * sunrpc/pmap_prot2.c: Likewise.
63748         * sunrpc/pmap_rmt.c: Likewise.
63749         * sunrpc/publickey.c: Likewise.
63750         * sunrpc/rpc_cmsg.c: Likewise.
63751         * sunrpc/rpc_common.c: Likewise.
63752         * sunrpc/rpc_dtable.c: Likewise.
63753         * sunrpc/rpc_prot.c: Likewise.
63754         * sunrpc/rpc_thread.c: Likewise.
63755         * sunrpc/rtime.c: Likewise.
63756         * sunrpc/svc.c: Likewise.
63757         * sunrpc/svc_auth.c: Likewise.
63758         * sunrpc/svc_raw.c: Likewise.
63759         * sunrpc/svc_run.c: Likewise.
63760         * sunrpc/svc_tcp.c: Likewise.
63761         * sunrpc/svc_udp.c: Likewise.
63762         * sunrpc/svc_unix.c: Likewise.
63763         * sunrpc/svcauth_des.c: Likewise.
63764         * sunrpc/xcrypt.c: Likewise.
63765         * sunrpc/xdr.c: Likewise.
63766         * sunrpc/xdr_array.c: Likewise.
63767         * sunrpc/xdr_float.c: Likewise.
63768         * sunrpc/xdr_intXX_t.c: Likewise.
63769         * sunrpc/xdr_mem.c: Likewise.
63770         * sunrpc/xdr_rec.c: Likewise.
63771         * sunrpc/xdr_ref.c: Likewise.
63772         * sunrpc/xdr_sizeof.c: Likewise.
63773         * sunrpc/xdr_stdio.c: Likewise.
63774
63775 2012-05-10  Roland McGrath  <roland@hack.frob.com>
63776
63777         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
63778         change.  Update copyright years.
63779
63780 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63781
63782         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
63783
63784 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
63785             Joseph Myers  <joseph@codesourcery.com>
63786             Paul Pluzhnikov  <ppluzhnikov@google.com>
63787
63788         [BZ #14012]
63789         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
63790         requiring rpcgen.
63791         [cross-compiling] (extra-libs): Likewise.
63792         [cross-compiling] (extra-libs-others): Likewise.
63793         [cross-compiling] (librpcsvc-routines): Likewise.
63794         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
63795         [cross-compiling] (omit-deps): Likewise.
63796         (sunrpc-CPPFLAGS): New variable.
63797         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
63798         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
63799         (cross-rpcgen-objs): New variable.
63800         (extra-objs): Append $(cross-rpcgen-objs).
63801         ($(cross-rpcgen-objs)): New rule.
63802         ($(objpfx)cross-rpcgen): Likewise.
63803         (rpcgen-cmd): Define to use $(built-program-file).  Expand
63804         comment.
63805         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
63806         ($(objpfx)x%.stmp): Likewise.
63807         * sunrpc/proto.h [IS_IN_build] (_): Define.
63808         [IS_IN_build] (_libc_intl_domainname): Likewise.
63809
63810 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
63811
63812         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
63813         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
63814         and R_X86_64_TPOFF64.
63815
63816 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
63817
63818         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
63819         sysdeps/unix/sysv/syscalls.list.
63820         (stime): Likewise.
63821         (utime): Likewise.
63822         * sysdeps/unix/sysv/syscalls.list: Remove file.
63823
63824 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
63825
63826         [BZ #3440]
63827         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
63828         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
63829         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
63830         (__LC_IDENTIFICATION): Make these macros useful in #if
63831         expressions, as required by C99.
63832
63833 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
63834
63835         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
63836         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
63837         after this.
63838
63839 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
63840
63841         * stdlib/longlong.h: Updated from GCC.
63842
63843 2012-05-09  Andreas Jaeger  <aj@suse.de>
63844
63845         * nscd/nscd.c (run_modes): Make named enum, reorder so that
63846         default is first entry.
63847         (run_mode): Set type.
63848         (main): Remove informal message about syslog.
63849         (options): Fix typo.
63850
63851         [BZ #14053]
63852         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
63853         to asm.
63854         (lrint): Likewise.
63855         (llrintf): Likewise.
63856         (llrint): Likewise.
63857         (rint): Likewise.
63858         (rintf): Likewise.
63859         (nearbyint): Likewise.
63860         (nearbyintf): Likewise.
63861
63862 2012-05-09  Andreas Jaeger  <aj@suse.de>
63863             Pedro Alves  <palves@redhat.com>
63864
63865         * nscd/nscd.c (run_mode): Use enum.
63866         (main): Cleanup coding style issue.
63867
63868 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
63869             Andreas Jaeger  <aj@suse.de>
63870
63871         * nscd/nscd.c (go_background): Replaced with...
63872         (run_mode): ... this.
63873         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
63874         (options): Add -F --foreground.
63875         (main): Implement it.
63876         (parse_opt): Parse it.
63877
63878 2012-05-09  Andreas Jaeger  <aj@suse.de>
63879
63880         [BZ #14083]
63881         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
63882         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
63883         -Wconversion warning.
63884         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
63885         Likewise.
63886
63887 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
63888
63889         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
63890         == 0.
63891         (LC_ALL): Use macro-int-constant.
63892         (LC_COLLATE): Likewise.
63893         (LC_CTYPE): Likewise.
63894         (LC_MESSAGES): Likewise.
63895         (LC_MONETARY): Likewise.
63896         (LC_NUMERIC): Likewise.
63897         (LC_TIME): Likewise.
63898         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
63899         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63900         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63901         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
63902         Specify type.
63903         [C99-based standards] (float_t): Expect type.
63904         [C99-based standards] (double_t): Expect type.
63905         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
63906         type.
63907         [C99-based standards] (HUGE_VALL): Likewise.
63908         [C99-based standards] (INFINITY): Likewise.
63909         [C99-based standards] (NAN): Likewise.
63910         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
63911         [C99-based standards] (FP_NAN): Likewise.
63912         [C99-based standards] (FP_NORMAL): Likewise.
63913         [C99-based standards] (FP_SUBNORMAL): Likewise.
63914         [C99-based standards] (FP_ZERO): Likewise.
63915         [C99-based standards] (FP_FAST_FMA): Use
63916         optional-macro-int-constant.  Specify type.  Require == 1.
63917         [C99-based standards] (FP_FAST_FMAF): Likewise.
63918         [C99-based standards] (FP_FAST_FMAL): Likewise.
63919         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
63920         [C99-based standards] (FP_ILOGBNAN): Likewise.
63921         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
63922         Specify type.
63923         [C99-based standards] (MATH_ERREXCEPT): Likewise.
63924         [C99-based standards] (math_errhandling): Specify type.
63925         [ISO99 || ISO11] (signgam): Do not allow.
63926         [non-C99-based standards] (copysignf): Do not allow.
63927         [non-C99-based standards] (exp2f): Likewise.
63928         [non-C99-based standards] (log2f): Likewise.
63929         [non-C99-based standards] (modff): Allow.
63930         [non-C99-based standards] (erff): Do not allow.
63931         [non-C99-based standards] (erfcf): Likewise.
63932         [non-C99-based standards] (gammaf): Likewise.
63933         [non-C99-based standards] (hypotf): Likewise.
63934         [non-C99-based standards] (j0f): Likewise.
63935         [non-C99-based standards] (j1f): Likewise.
63936         [non-C99-based standards] (jnf): Likewise.
63937         [non-C99-based standards] (lgammaf): Likewise.
63938         [non-C99-based standards] (tgammaf): Likewise.
63939         [non-C99-based standards] (y0f): Likewise.
63940         [non-C99-based standards] (y1f): Likewise.
63941         [non-C99-based standards] (ynf): Likewise.
63942         [non-C99-based standards] (isnanf): Likewise.
63943         [non-C99-based standards] (acoshf): Likewise.
63944         [non-C99-based standards] (asinhf): Likewise.
63945         [non-C99-based standards] (atanhf): Likewise.
63946         [non-C99-based standards] (cbrtf): Likewise.
63947         [non-C99-based standards] (expm1f): Likewise.
63948         [non-C99-based standards] (ilogbf): Likewise.
63949         [non-C99-based standards] (log1pf): Likewise.
63950         [non-C99-based standards] (logbf): Likewise.
63951         [non-C99-based standards] (nextafterf): Likewise.
63952         [non-C99-based standards] (remainderf): Likewise.
63953         [non-C99-based standards] (rintf): Likewise.
63954         [non-C99-based standards] (scalbf): Likewise.
63955         [non-C99-based standards] (copysignl): Likewise.
63956         [non-C99-based standards] (exp2l): Likewise.
63957         [non-C99-based standards] (log2l): Likewise.
63958         [non-C99-based standards] (modfl): Allow.
63959         [non-C99-based standards] (erfl): Do not allow.
63960         [non-C99-based standards] (erfcl): Likewise.
63961         [non-C99-based standards] (gammal): Likewise.
63962         [non-C99-based standards] (hypotl): Likewise.
63963         [non-C99-based standards] (j0l): Likewise.
63964         [non-C99-based standards] (j1l): Likewise.
63965         [non-C99-based standards] (jnl): Likewise.
63966         [non-C99-based standards] (lgammal): Likewise.
63967         [non-C99-based standards] (tgammal): Likewise.
63968         [non-C99-based standards] (y0l): Likewise.
63969         [non-C99-based standards] (y1l): Likewise.
63970         [non-C99-based standards] (ynl): Likewise.
63971         [non-C99-based standards] (isnanl): Likewise.
63972         [non-C99-based standards] (acoshl): Likewise.
63973         [non-C99-based standards] (asinhl): Likewise.
63974         [non-C99-based standards] (atanhl): Likewise.
63975         [non-C99-based standards] (cbrtl): Likewise.
63976         [non-C99-based standards] (expm1l): Likewise.
63977         [non-C99-based standards] (ilogbl): Likewise.
63978         [non-C99-based standards] (log1pl): Likewise.
63979         [non-C99-based standards] (logbl): Likewise.
63980         [non-C99-based standards] (nextafterl): Likewise.
63981         [non-C99-based standards] (remainderl): Likewise.
63982         [non-C99-based standards] (rintl): Likewise.
63983         [non-C99-based standards] (scalbl): Likewise.
63984         [ISO || ISO99 || ISO11] (*_t): Do not allow.
63985         [non-C99-based standards] (FP_*): Do not allow.
63986         [C99-based standards] (FP_*): Change to
63987         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
63988         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
63989         allow.
63990         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
63991         (SIG_ERR): Likewise.
63992         [X/Open-based standards] (SIG_HOLD): Likewise.
63993         (SIG_IGN): Likewise.
63994         (SIGABRT): Use macro-int-constant.  Specify type.  Require
63995         positive value.
63996         (SIGFPE): Likewise.
63997         (SIGILL): Likewise.
63998         (SIGINT): Likewise.
63999         (SIGSEGV): Likewise.
64000         (SIGTER): Likewise.
64001         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
64002         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
64003         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
64004         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
64005         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
64006         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
64007         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
64008         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
64009         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
64010         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
64011         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
64012         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
64013         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
64014         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
64015         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
64016         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
64017         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
64018         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
64019         [X/Open-based standards] (SIGTRAP): Likewise.
64020         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
64021         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
64022         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
64023         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
64024         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64025         allow.
64026
64027 2012-05-08  Ian Wienand  <ianw@vmware.com>
64028
64029         [BZ #14080]
64030         * time/tzset.c (__tzset_parse_tz): Update default rules for
64031         daylight time changes in the Energy Policy Act of 2005.
64032
64033 2012-05-09  Andreas Jaeger  <aj@suse.de>
64034
64035         [BZ #13983]
64036         * elf/ldconfig.c (parse_conf): Change string to make clear that
64037         ldconfig only issued a warning if ld.so.conf does not exist.
64038
64039 2012-05-08  David S. Miller  <davem@davemloft.net>
64040
64041         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
64042         movxtod instead of popping the value on the stack.
64043
64044         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64045
64046 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
64047
64048         * config.h.in: Add HAVE_ARM_PCS_VFP.
64049
64050 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
64051
64052         [BZ #13979]
64053         * include/features.h: Warn if user requests __FORTIFY_SOURCE
64054         checking but the checks are disabled for any reason.
64055
64056 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
64057
64058         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
64059         and ELF64_R_TYPE with ELFW(R_TYPE).
64060
64061 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
64062
64063         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
64064         (ulimit): Likewise.
64065
64066         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
64067         (settimeofday): Likewise.
64068
64069 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
64070
64071         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
64072         a struct th_u2 inside the union, and move tu_block/tu_code into
64073         a new th_u3 union of tu_block/tu_code inside of that.  Move
64074         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
64075         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
64076         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
64077         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
64078         (th_stuff): Change to th_u1.tu_stuff.
64079         (th_data): Define.
64080         (th_msg): Change to th_u1.th_u2.tu_data.
64081
64082 2012-05-07  David S. Miller  <davem@davemloft.net>
64083
64084         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64085
64086         [BZ #14074]
64087         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
64088         (SETUP_PIC_REG): Use it.
64089         (SETUP_PIC_REG_LEAF): Use it.
64090
64091 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
64092
64093         [BZ #13885]
64094         [BZ #13923]
64095         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64096         USE_AS_EXPM1L.
64097         (EXPL_FINITE): Likewise.
64098         (FLDLOG): Likewise.
64099         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
64100         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
64101         e_expl.S.
64102         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64103         USE_AS_EXPM1L.
64104         (EXPL_FINITE): Likewise.
64105         (FLDLOG): Likewise.
64106         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
64107         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
64108         e_expl.S.
64109         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
64110         test of -max_value argument for long double.
64111         * sysdeps/i386/fpu/libm-test-ulps: Update.
64112         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64113
64114 2012-05-06  David S. Miller  <davem@davemloft.net>
64115
64116         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
64117         quad soft-float symbols whose references which are compiler
64118         generated.
64119         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
64120
64121 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
64122
64123         [BZ #13884]
64124         [BZ #13914]
64125         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64126         USE_AS_EXP10L.
64127         (EXPL_FINITE): Likewise.
64128         (FLDLOG): Likewise.
64129         (c0): Likewise.
64130         (c1): Likewise.
64131         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
64132         Adjust comments for base varying.
64133         (__expl_finite): Change alias to EXPL_FINITE.
64134         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
64135         e_expl.S.
64136         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
64137         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
64138         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
64139         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
64140         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
64141         USE_AS_EXP10L.
64142         (EXPL_FINITE): Likewise.
64143         (FLDLOG): Likewise.
64144         (c0): Likewise.
64145         (c1): Likewise.
64146         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
64147         Adjust comments for base varying.
64148         (__expl_finite): Change alias to EXPL_FINITE.
64149         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
64150         tests for bugs.
64151         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64152
64153         [BZ #14064]
64154         * math/libm-test.inc (check_float_internal): Correct ulp
64155         calculation for subnormal expected results.
64156
64157 2012-05-06  Andreas Jaeger  <aj@suse.de>
64158
64159         * Makeconfig (+math-flags): New, set to -frounding-math.
64160         (+cflags): Add +math-flags so that all of glibc gets compiled with
64161         it.
64162
64163         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
64164
64165 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
64166
64167         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
64168         Disable one test.
64169
64170         [BZ #13787]
64171         [BZ #13922]
64172         [BZ #14036]
64173         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
64174         (__ieee754_expl): Allow for and saturate large arguments.
64175         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
64176         (u_threshold): Likewise.
64177         (__exp): Call __ieee754_exp before checking for overflow and
64178         underflow.
64179         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
64180         (u_threshold): Likewise.
64181         (__expf): Call __ieee754_expf before checking for overflow and
64182         underflow.
64183         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
64184         (u_threshold): Likewise.
64185         (__expl): Call __ieee754_expl before checking for overflow and
64186         underflow.
64187         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
64188         (__ieee754_expl): Allow for and saturate large arguments.
64189         * math/libm-test.inc (exp_test): Add another test.  Do not allow
64190         missing overflow exception on overflow.
64191         (expm1_test): Do not allow missing overflow exception on overflow.
64192
64193         * sysdeps/i386/fpu/e_expl.c: Move to ...
64194         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
64195         rather than using inline asm.
64196         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
64197         * sysdeps/x86_64/fpu/e_expl.S: Copy from
64198         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
64199
64200         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
64201         (nice): Likewise.
64202         (poll): Likewise.
64203         (signal): Likewise.
64204         (time): Likewise.
64205         (times): Likewise.
64206
64207 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64208
64209         * sysdeps/unix/syscalls.list (adjtime): Add entry from
64210         sysdeps/unix/common/syscalls.list.
64211         (fchmod): Likewise.
64212         (fchown): Likewise.
64213         (ftruncate): Likewise.
64214         (getrusage): Likewise.
64215         (gettimeofday): Likewise.
64216         (setpgid): Likewise.
64217         (setregid): Likewise.
64218         (setreuid): Likewise.
64219         (sigaction): Likewise.
64220         (truncate): Likewise.
64221         (vhangup): Likewise.
64222         * sysdeps/unix/common/syscalls.list: Remove file.
64223         * sysdeps/unix/bsd/Implies: Don't include unix/common.
64224         * sysdeps/unix/sysv/linux/Implies: Likewise.
64225
64226 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
64227
64228         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
64229         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
64230         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
64231         Moved to ...
64232         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
64233         Here.
64234         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
64235         to ...
64236         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
64237         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
64238         to ...
64239         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
64240         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
64241         to ...
64242         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
64243         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
64244         to ...
64245         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
64246         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
64247         to ...
64248         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
64249         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
64250         to ...
64251         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
64252         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
64253         to ...
64254         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
64255         Here.
64256         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
64257         to ...
64258         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
64259         Here.
64260         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
64261         to ...
64262         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
64263         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
64264         Moved to ...
64265         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
64266         Here.
64267         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
64268         to ...
64269         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
64270
64271 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64272
64273         * sysdeps/unix/common/bits/dirent.h: Remove file.
64274         * sysdeps/unix/common/bits/fcntl.h: Likewise.
64275
64276         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
64277         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
64278         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
64279         * sysdeps/unix/bsd/isatty.c: Likewise.
64280         * sysdeps/unix/bsd/tcdrain.c: Likewise.
64281         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
64282         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
64283
64284 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64285
64286         [BZ #13563]
64287         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
64288         long double comparison inaccuracies.
64289         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
64290         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
64291
64292 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
64293
64294         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
64295         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
64296
64297 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
64298
64299         [BZ #14049]
64300         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
64301         nonzero digits before rounding a hex value.
64302         * stdlib/tst-strtod.c (tests): Add another test.
64303
64304 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
64305
64306         * sysdeps/s390/fpu/libm-test-ulps: Update.
64307
64308 2012-05-03  Andreas Jaeger  <aj@suse.de>
64309
64310         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
64311         does not get optimized out.
64312         (malloc_opt_barrier): New.
64313
64314 2012-05-03  Andreas Jaeger  <aj@suse.de>
64315             Roland McGrath  <roland@hack.frob.com>
64316
64317         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
64318         intermediate file deletion.
64319         (generated): Add .symlist files.
64320
64321 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
64322
64323         [BZ #13775]
64324         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
64325         Redirect under this condition.
64326         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
64327         [__USE_GNU] (__dprintf_chk): Not under this condition.
64328         [__USE_GNU] (__vdprintf_chk): Likewise.
64329         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
64330         under this condition.
64331         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
64332         [__USE_XOPEN2K8] (dprintf): Define under this condition.
64333         [__USE_XOPEN2K8] (vdprintf): Likewise.
64334         [__USE_GNU] (__dprintf_chk): Not under this condition.
64335         [__USE_GNU] (__vdprintf_chk): Likewise.
64336         [__USE_GNU] (dprintf): Likewise.
64337         [__USE_GNU] (vdprintf): Likewise.
64338
64339 2012-05-03  Roland McGrath  <roland@hack.frob.com>
64340
64341         * elf/Makefile (common-generated): Set this instead of generated for
64342         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
64343         $(all-built-dso)-derived lists.
64344
64345 2012-05-03  Andreas Jaeger  <aj@suse.de>
64346
64347         * sysdeps/i386/fpu/libm-test-ulps: Update.
64348
64349         * FAQ: Removed.
64350         * FAQ.in: Likewise.
64351         * scripts/gen-FAQ.pl: Likewise.
64352         * manual/install.texi (Installation): Point to online location of
64353         FAQ.
64354         * Makefile (files-for-dist): Remove FAQ.
64355         (FAQ): Remove.
64356
64357 2012-05-02  Allan McRae  <allan@archlinux.org>
64358
64359         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
64360         (LDFLAGS-reldepmod5.so): Likewise.
64361         (LDFLAGS-reldep6mod1.so): Likewise.
64362         (LDFLAGS-reldep6mod4.so): Likewise.
64363         (LDFLAGS-reldep8mod3.so): Likewise.
64364         (LDFLAGS-unload4mod1.so): Likewise.
64365         (LDFLAGS-unload4mod2.so): Likewise.
64366         (LDFLAGS-tst-initorder): Likewise.
64367         (LDFLAGS-tst-initordera2.so): Likewise.
64368         (LDFLAGS-tst-initordera3.so): Likewise.
64369         (LDFLAGS-tst-initordera4.so): Likewise.
64370         (LDFLAGS-tst-initorderb2.so): Likewise.
64371         (LDFLAGS-noload): Likewise.
64372         (LDFLAGS-next): Likewise.
64373         (LDFLAGS-order2mod1.so): Likewise.
64374         (LDFLAGS-order2mod2.so): Likewise.
64375         (LDFLAGS-tst-initorder2): Likewise.
64376         (LDFLAGS-tst-initorder2a.so): Likewise.
64377         (LDFLAGS-tst-initorder2b.so): Likewise.
64378         (LDFLAGS-tst-initorder2c.so): Likewise.
64379         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
64380
64381 2012-05-02  David S. Miller  <davem@davemloft.net>
64382
64383         * sysdeps/sparc/fpu/libm-test-ulps: Update.
64384
64385 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
64386
64387         [BZ #14055]
64388         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
64389
64390 2012-05-02  Andreas Jaeger  <aj@suse.de>
64391
64392         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
64393         since we manipulate rounding mode.
64394         (CPPFLAGS-test-idouble.c): Likewise.
64395         (CPPFLAGS-test-ifloat.c): Likewise.
64396         (CFLAGS-test-ldouble.c): Likewise.
64397         (CFLAGS-test-double.c): Likewise.
64398         (CFLAGS-test-float.c): Likewise.
64399         (CFLAGS-test-misc.c): Likewise.
64400         (CFLAGS-test-test-fenv.c): Likewise.
64401
64402 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
64403
64404         [BZ #2550]
64405         [BZ #2570]
64406         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
64407         comparisons to determine direction to adjust input.
64408
64409 2012-05-01  Roland McGrath  <roland@hack.frob.com>
64410
64411         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
64412         output to the target.
64413
64414         * scripts/localplt.awk: New file.
64415         * elf/Makefile ($(objpfx)check-localplt): Target removed.
64416         (check-localplt-CFLAGS): Variable removed.
64417         ($(all-built-dso:=.jmprel)): New static pattern rule.
64418         (generated): Add those targets.
64419         (localplt-built-dso): New variable.
64420         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
64421
64422         * elf/check-localplt.c: File removed.
64423
64424         * scripts/check-execstack.awk: New file.
64425         * elf/Makefile ($(objpfx)check-execstack): Target removed.
64426         (check-execstack-CFLAGS): Variable removed.
64427         ($(objpfx)check-execstack.h): Target removed.
64428         ($(objpfx)execstack-default): New target.
64429         (generated): Add that instead of check-execstack.h.
64430         ($(all-built-dso:=.phdr)): New static pattern rule.
64431         (generated): Add those targets.
64432         * elf/check-execstack.c: File removed.
64433
64434         * scripts/check-textrel.awk: New file.
64435         * elf/Makefile ($(objpfx)check-textrel): Target removed.
64436         (check-textrel-CFLAGS): Variable removed.
64437         (all-built-dso): Use := to define.o
64438         ($(all-built-dso:=.dyn)): New static pattern rule.
64439         (generated): Add those targets.
64440         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
64441         * config.make.in (READELF): New substituted variable.
64442         * elf/check-textrel.c: File removed.
64443
64444 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64445
64446         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
64447         allow.
64448         * conform/data/ctype.h-data [C99-based standards] (isblank):
64449         Expect function.
64450         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
64451         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
64452         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64453         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
64454         Specify type.  Require positive value.
64455         (EILSEQ): Likewise.
64456         (ERANGE): Likewise.
64457         [ISO || POSIX] (EILSEQ): Do not expect.
64458         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
64459         Specify type.  Require positive value.
64460         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
64461         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
64462         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
64463         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
64464         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
64465         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
64466         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
64467         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
64468         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
64469         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
64470         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
64471         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
64472         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
64473         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
64474         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
64475         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
64476         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
64477         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
64478         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
64479         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
64480         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
64481         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
64482         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
64483         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
64484         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
64485         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
64486         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
64487         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
64488         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
64489         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
64490         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
64491         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
64492         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
64493         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
64494         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
64495         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
64496         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
64497         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
64498         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
64499         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
64500         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
64501         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
64502         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
64503         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
64504         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
64505         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
64506         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
64507         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
64508         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
64509         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
64510         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
64511         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
64512         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
64513         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
64514         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
64515         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
64516         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
64517         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
64518         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
64519         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
64520         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
64521         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
64522         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
64523         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
64524         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
64525         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
64526         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
64527         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
64528         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
64529         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
64530         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
64531         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
64532         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
64533         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
64534         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
64535         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
64536         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
64537         Require >= 2.
64538         (FLT_ROUNDS): Expect as macro, not constant.
64539         (FLT_MANT_DIG): Use macro-int-constant.
64540         (DBL_MANT_DIG): Likewise.
64541         (LDBL_MANT_DIG): Likewise.
64542         (FLT_DIG): Likewise.
64543         (DBL_DIG): Likewise.
64544         (LDBL_DIG): Likewise.
64545         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
64546         (DBL_MIN_EXP): Likewise.
64547         (LDBL_MIN_EXP): Likewise.
64548         (FLT_MAX_EXP): Use macro-int-constant.
64549         (DBL_MAX_EXP): Likewise.
64550         (LDBL_MAX_EXP): Likewise.
64551         (FLT_MAX_10_EXP): Likewise.
64552         (DBL_MAX_10_EXP): Likewise.
64553         (LDBL_MAX_10_EXP): Likewise.
64554         (FLT_MAX): Use macro-constant.
64555         (DBL_MAX): Likewise.
64556         (LDBL_MAX): Likewise.
64557         (FLT_EPSILON): Use macro-constant.  Give upper bound.
64558         (DBL_EPSILON): Likewise.
64559         (LDBL_EPSILON): Likewise.
64560         (FLT_MIN): Likewise.
64561         (DBL_MIN): Likewise.
64562         (LDBL_MIN): Likewise.
64563         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
64564         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
64565         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
64566         [ISO11] (FLT_HAS_SUBNORM): Likewise.
64567         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
64568         [ISO11] (DBL_DECIMAL_DIG): Likewise.
64569         [ISO11] (FLT_DECIMAL_DIG): Likewise.
64570         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
64571         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
64572         [ISO11] (FLT_TRUE_MIN): Likewise.
64573         [ISO11] (LDBL_TRUE_MIN): Likewise.
64574         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64575         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
64576         (SCHAR_MIN): Use macro-int-constant.  Specify type.
64577         (SCHAR_MAX): Likewise.
64578         (UCHAR_MAX): Likewise.
64579         (CHAR_MIN): Likewise.
64580         (CHAR_MAX): Likewise.
64581         (MB_LEN_MAX): Use macro-int-constant.
64582         (SHRT_MIN): Use macro-int-constant.  Specify type.
64583         (SHRT_MAX): Likewise.
64584         (USHRT_MAX): Likewise.
64585         (INT_MAX): Likewise.
64586         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
64587         bound negative.
64588         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64589         bound with "U".
64590         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64591         bound with "L".
64592         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
64593         bound negative.  Suffix upper bound with "L".
64594         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
64595         bound with "UL".
64596         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
64597         Specify type.
64598         [C99-based standards] (LLONG_MAX): Likewise.
64599         [C99-based standards] (ULLONG_MAX): Likewise.
64600         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
64601         == 0.
64602         [ISO11] (max_align_t): Require type.
64603         [ISO || ISO99 || ISO11] (*_t): Do not allow.
64604
64605         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
64606         from $CFLAGS, without defining away __attribute__ calls.
64607         (checknamespace): Use $CFLAGS_namespace.
64608
64609         * conform/conformtest.pl (@keywords): Only include C99 keywords
64610         for standards based on C99 or C11.
64611
64612         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
64613         Disable tests.
64614         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
64615         UNIX98]: Likewise.
64616
64617         * conform/conformtest.pl: Handle "macro-int-constant" and test for
64618         usability of symbols in #if.
64619
64620         * conform/conformtest.pl: If macro or constant types start
64621         "promoted:", expect the symbol to be of the following type
64622         promoted by the integer promotions.
64623
64624         * conform/conformtest.pl: Parse all "constant" and "macro" lines
64625         in one place.  Also handle "macro-constant".
64626
64627         * conform/conformtest.pl: Only accept expected macro values with
64628         "==".  Parse all "macro" lines in one place.
64629         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
64630
64631         * conform/conformtest.pl: Handle braced types on "constant" lines
64632         instead of handling "typed-constant".
64633         * conform/data/signal.h-data: Use "constant" instead of
64634         "typed-constant".
64635
64636         * conform/conformtest.pl: Handle "optional-" at start of lines in
64637         one place rather than duplicating several cases.  Handle each
64638         format of "macro" line with initial "optional-".
64639
64640         * conform/conformtest.pl: Only accept expected constant or
64641         optional-constant values with "==".  Parse all "constant" lines in
64642         one place.  Parse all "optional-constant" lines in one place.
64643         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
64644         * conform/data/fmtmsg.h-data: Likewise.
64645         * conform/data/netinet/in.h-data: Likewise.
64646         * conform/data/tar.h-data: Likewise.
64647         * conform/data/limits.h-data: Use "==" form on "constant" and
64648         "optional-constant" lines.
64649
64650         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
64651         Use -std=c99 for XOPEN2K.
64652         (@knownproblems): Remove.
64653         (newtoken): Don't check %isknown.
64654
64655         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
64656         Do not expect macro.
64657         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
64658         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
64659         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
64660         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
64661         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
64662         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
64663         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
64664         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
64665         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
64666         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
64667         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
64668         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
64669         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
64670         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
64671         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
64672         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
64673         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
64674         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
64675         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
64676         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
64677         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
64678         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
64679         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
64680         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
64681         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
64682         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
64683         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
64684         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
64685         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
64686         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
64687         [XPG3] (acosh): Likewise.
64688         [XPG3] (asinh): Likewise.
64689         [XPG3] (atanh): Likewise.
64690         [XPG3] (cbrt): Likewise.
64691         [XPG3] (expm1): Likewise.
64692         [XPG3] (ilogb): Likewise.
64693         [XPG3] (log1p): Likewise.
64694         [XPG3] (logb): Likewise.
64695         [XPG3] (nextafter): Likewise.
64696         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
64697         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
64698         [XPG3] (remainder): Likewise.
64699         [XPG3] (rint): Likewise.
64700         [XPG3 || XPG4 || UNIX98] (round): Likewise.
64701         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
64702         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
64703         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
64704         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
64705         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
64706         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
64707         [UNIX98 || XOPEN2K] (scalb): Expect.
64708         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
64709         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
64710         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
64711         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
64712         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
64713         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
64714         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
64715         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
64716         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
64717         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
64718         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
64719         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
64720         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
64721         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
64722         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
64723         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
64724         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
64725         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
64726         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
64727         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
64728         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
64729         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
64730         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
64731         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
64732         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
64733         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
64734         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
64735         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
64736         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
64737         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
64738         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
64739         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
64740         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
64741         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
64742         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
64743         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
64744         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
64745         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
64746         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
64747         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
64748         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
64749         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
64750         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
64751         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
64752         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
64753         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
64754         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
64755         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
64756         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
64757         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
64758         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
64759         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
64760         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
64761         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
64762         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
64763         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
64764         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
64765         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
64766         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
64767         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
64768         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
64769         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
64770         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
64771         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
64772         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
64773         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
64774         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
64775         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
64776         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
64777         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
64778         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
64779         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
64780         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
64781         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
64782         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
64783         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
64784         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
64785         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
64786         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
64787         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
64788         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
64789         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
64790         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
64791         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
64792         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
64793         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
64794         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
64795         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
64796         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
64797         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
64798         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
64799         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
64800         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
64801         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
64802         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
64803         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
64804         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
64805         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
64806         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
64807         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
64808         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
64809         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
64810         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
64811         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
64812         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
64813         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
64814         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
64815         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
64816         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
64817         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
64818         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
64819         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
64820         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
64821         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
64822         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
64823         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
64824         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
64825         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
64826         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
64827         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
64828         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
64829         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
64830         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
64831         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
64832         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
64833         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
64834         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
64835         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
64836         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
64837         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
64838         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
64839         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
64840         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
64841         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
64842         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
64843         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
64844         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
64845
64846         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
64847         _XOPEN_SOURCE_EXTENDED for XPG4.
64848
64849         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
64850
64851         * Makeconfig (localtime): Remove variable.
64852         (inst_localtime-file): Likewise.
64853
64854 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64855
64856         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
64857         Update.
64858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
64859         Update.
64860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
64861         Update.
64862         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
64863         Update.
64864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
64865         Update.
64866         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
64867         Update.
64868         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
64869         Update.
64870         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
64871         Update.
64872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
64873         Update.
64874
64875 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
64876
64877         [BZ #2550]
64878         [BZ #2570]
64879         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
64880         comparisons to determine direction to adjust input.
64881         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
64882         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
64883         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
64884         Likewise.
64885         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
64886         Likewise.
64887         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
64888         Likewise.
64889         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
64890         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
64891         Likewise.
64892         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
64893         Likewise.
64894         * math/libm-test.inc (nexttoward_test): Add more tests.
64895
64896 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
64897
64898         [BZ #14040]
64899         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
64900         in version GLIBC_2.1, not GLIBC_2.0.
64901         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
64902         Likewise.
64903
64904 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
64905
64906         [BZ #13942]
64907         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
64908         (1 - x) * (1 + x).
64909         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64910         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
64911         * math/libm-test.inc (acos_test): Add more tests.
64912         (asin_test): Likewise.
64913         * sysdeps/i386/fpu/libm-test-ulps: Update.
64914         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
64915
64916         [BZ #14034]
64917         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
64918         of square root.
64919         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
64920         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
64921         * math/libm-test.inc (acos_test_tonearest): New function.
64922         (acos_test_towardzero): Likewise.
64923         (acos_test_downward): Likewise.
64924         (acos_test_upward): Likewise.
64925         (asin_test_tonearest): Likewise.
64926         (asin_test_towardzero): Likewise.
64927         (asin_test_downward): Likewise.
64928         (asin_test_upward): Likewise.
64929         (main): Call the new functions.
64930         * sysdeps/i386/fpu/libm-test-ulps: Update.
64931         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
64932
64933         [BZ #13884]
64934         [BZ #13924]
64935         * math/e_exp10.c: Include <float.h>.
64936         (__ieee754_exp10): Handle underflow here rather than multiplying
64937         large negative argument by M_LN10.
64938         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
64939         of __ieee754_expf.
64940         * math/e_exp10l.c: Include <float.h>.
64941         (__ieee754_exp10l): Handle underflow here rather than multiplying
64942         large negative argument by M_LN10l.
64943         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
64944         spurious overflow exception on underflow.
64945
64946 2012-04-29  Marek Polacek  <polacek@redhat.com>
64947
64948         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
64949         (__fortify_function): New macro.
64950         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
64951         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
64952         __extern_always_inline.
64953         * libio/bits/stdio2.h: Likewise.
64954         * libio/bits/stdio.h: Likewise.
64955         * string/string.h: Likewise.
64956         * string/bits/string3.h: Likewise.
64957         * include/stdio.h: Likewise.
64958         * stdlib/bits/stdlib.h: Likewise.
64959         * stdlib/stdlib.h: Likewise.
64960         * rt/bits/mqueue2.h: Likewise.
64961         * rt/mqueue.h: Likewise.
64962         * posix/bits/unistd.h: Likewise.
64963         * posix/unistd.h: Likewise.
64964         * io/bits/poll2.h: Likewise.
64965         * io/bits/fcntl2.h: Likewise.
64966         * io/fcntl.h: Likewise.
64967         * io/sys/poll.h: Likewise.
64968         * misc/bits/syslog.h: Likewise.
64969         * misc/bits/syslog-ldbl.h: Likewise.
64970         * misc/sys/syslog.h: Likewise.
64971         * socket/bits/socket2.h: Likewise.
64972         * socket/sys/socket.h: Likewise.
64973         * debug/tst-chk1.c: Likewise.
64974         * wcsmbs/bits/wchar2.h: Likewise.
64975         * wcsmbs/bits/wchar-ldbl.h: Likewise.
64976         * wcsmbs/wchar.h: Likewise.
64977
64978 2012-04-29  Andreas Jaeger  <aj@suse.de>
64979
64980         * Makerules (tests): Remove enable-check-abi protection.
64981         (check-abi-warn): Remove.
64982         (check-abi-%): Remove check-abi-warn usage.
64983
64984         * configure.in: Remove check-abi configure option.
64985         * configure: Regenerated.
64986         * config.make.in (enable-check-abi): Remove.
64987
64988 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
64989
64990         [BZ #14033]
64991         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
64992         double functions to double *_finite functions.
64993
64994         [BZ #13941]
64995         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
64996         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
64997         LDBL_MIN_EXP.
64998         * stdio-common/Makefile (tests): Add tst-sprintf3.
64999         * stdio-common/tst-sprintf3.c: New file.
65000
65001         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
65002         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
65003
65004 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
65005
65006         * conform/conformtest.pl: Remove duplicate typed-constant
65007         handling.
65008
65009 2012-04-28  David S. Miller  <davem@davemloft.net>
65010
65011         * Makerules (%.abilist): Add vpath on sysdep_dirs.
65012         (check-abi-%): Remove AWK script prerequisite and explicit
65013         abilist directory.
65014         (check-abi): Rewrite to just diff the symlist with the abilist.
65015         (config-tls, config-abi-config): Delete, no longer used.
65016         (update-abi-%): Remove AWK script and explicit abilist directory.
65017         (update-abi): Rewrite to simply compare and conditionally copy the
65018         symlist and the sysdep abilist file.  Remove update-abi-config
65019         checks.
65020         * abilist/ld.abilist: Remove.
65021         * abilist/libBrokenLocale.abilist: Remove.
65022         * abilist/libanl.abilist: Remove.
65023         * abilist/libcrypt.abilist: Remove.
65024         * abilist/libdl.abilist: Remove.
65025         * abilist/librt.abilist: Remove.
65026         * abilist/libthread_db.abilist: Remove.
65027         * abilist/libutil.abilist: Remove.
65028         * scripts/extract-abilist.awk: Remove.
65029         * scripts/merge-abilist.awk: Remove.
65030         * sysdeps/generic/libcidn.abilist: New file.
65031         * sysdeps/generic/libnss_compat.abilist: New file.
65032         * sysdeps/generic/libnss_db.abilist: New file.
65033         * sysdeps/generic/libnss_dns.abilist: New file.
65034         * sysdeps/generic/libnss_files.abilist: New file.
65035         * sysdeps/generic/libnss_hesiod.abilist: New file.
65036         * sysdeps/generic/libnss_nis.abilist: New file.
65037         * sysdeps/generic/libnss_nisplus.abilist: New file.
65038         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
65039         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
65040         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
65041         file.
65042         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
65043         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
65044         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
65045         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
65046         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
65047         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
65048         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
65049         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
65050         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
65051         file.
65052         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
65053         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
65054         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
65055         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
65056         file.
65057         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
65058         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
65059         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
65060         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
65061         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
65062         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
65063         file.
65064         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
65065         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
65066         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
65067         file.
65068         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
65069         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
65070         New file.
65071         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
65072         New file.
65073         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
65074         New file.
65075         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
65076         New file.
65077         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
65078         New file.
65079         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
65080         New file.
65081         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
65082         New file.
65083         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
65084         New file.
65085         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
65086         New file.
65087         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
65088         New file.
65089         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
65090         New file.
65091         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
65092         New file.
65093         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
65094         New file.
65095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
65096         file.
65097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
65098         New file.
65099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
65100         New file.
65101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
65102         file.
65103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
65104         New file.
65105         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
65106         New file.
65107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
65108         file.
65109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
65110         New file.
65111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
65112         New file.
65113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
65114         New file.
65115         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
65116         New file.
65117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
65118         New file.
65119         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
65120         New file.
65121         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
65122         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
65123         file.
65124         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
65125         New file.
65126         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
65127         file.
65128         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
65129         file.
65130         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
65131         file.
65132         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
65133         file.
65134         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
65135         file.
65136         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
65137         New file.
65138         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
65139         file.
65140         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
65141         file.
65142         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
65143         New file.
65144         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
65145         file.
65146         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
65147         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
65148         file.
65149         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
65150         New file.
65151         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
65152         file.
65153         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
65154         file.
65155         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
65156         file.
65157         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
65158         file.
65159         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
65160         file.
65161         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
65162         New file.
65163         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
65164         file.
65165         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
65166         file.
65167         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
65168         New file.
65169         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
65170         file.
65171         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
65172         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
65173         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
65174         file.
65175         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
65176         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
65177         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
65178         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
65179         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
65180         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
65181         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
65182         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
65183         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
65184         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
65185         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
65186         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
65187         file.
65188         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
65189         New file.
65190         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
65191         file.
65192         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
65193         file.
65194         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
65195         file.
65196         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
65197         file.
65198         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
65199         file.
65200         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
65201         New file.
65202         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
65203         New file.
65204         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
65205         file.
65206         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
65207         New file.
65208         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
65209         file.
65210         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
65211         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
65212         file.
65213         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
65214         New file.
65215         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
65216         file.
65217         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
65218         file.
65219         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
65220         file.
65221         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
65222         file.
65223         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
65224         file.
65225         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
65226         New file.
65227         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
65228         New file.
65229         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
65230         file.
65231         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
65232         New file.
65233         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
65234         file.
65235
65236 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
65237
65238         * conform/conformtest.pl: Fix typo in handling typed-constant from
65239         allow-header.
65240
65241 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
65242
65243         * README: Cut down references to pre-2.6 Linux kernels and
65244         Linuxthreads.  Update lists of configurations in libc and ports
65245         and sort alphabetically.  Say "or newer" with Linux kernel version
65246         requirements.
65247
65248         * config.h.in [IS_IN_build]: Allow compiling without optimization.
65249
65250 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
65251
65252         [BZ #887]
65253         * math/libm-test.inc (logb_test_downward): New test to expose
65254         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
65255         rounding mode.
65256
65257 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
65258
65259         [BZ #14027]
65260         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
65261         to be done.
65262         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
65263         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
65264
65265 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
65266
65267         * sysdeps/unix/i386/brk.S: Remove file.
65268         * sysdeps/unix/i386/dl-brk.S: Likewise.
65269         * sysdeps/unix/i386/pipe.S: Likewise.
65270         * sysdeps/unix/i386/sigreturn.S: Likewise.
65271         * sysdeps/unix/i386/syscall.S: Likewise.
65272         * sysdeps/unix/i386/vfork.S: Likewise.
65273         * sysdeps/unix/i386/wait.S: Likewise.
65274
65275         * sysdeps/unix/common/tcsendbrk.c: Move to ...
65276         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
65277
65278         * configure.in (arm*-none*): Do not allow without
65279         --enable-hacker-mode.
65280         (netbsd*): Remove case setting base_os.
65281         (386bsd*): Likewise.
65282         (freebsd*): Likewise.
65283         (bsdi*): Likewise.
65284         (osf*): Likewise.
65285         (sunos*): Likewise.
65286         (ultrix*): Likewise.
65287         (newsos*): Likewise.
65288         (dynix*): Likewise.
65289         (*bsd*): Likewise.
65290         (sysv*): Likewise.
65291         (isc*): Likewise.
65292         (esix*): Likewise.
65293         (sco*): Likewise.
65294         (minix*): Likewise.
65295         (irix4*): Likewise.
65296         (irix6*): Likewise.
65297         (solaris[2-9]*): Likewise.
65298         (none): Likewise.
65299         * configure: Regenerated.
65300
65301 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65302
65303         [BZ #11521]
65304         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
65305         overflow or cancellation in calculating denominator.
65306         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
65307         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
65308         down expression to avoid unexpected rounding in newer GCCs.
65309         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
65310
65311 2012-04-26  David S. Miller  <davem@davemloft.net>
65312
65313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
65314         long-double compat symbols.
65315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
65316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
65317         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
65318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
65319         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
65320         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
65321         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
65322         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
65323         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
65324         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
65325         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
65326         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
65327         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
65328
65329 2012-04-25  David S. Miller  <davem@davemloft.net>
65330
65331         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
65332         HWCAP_* values only after the memory barriers have been defined.
65333         (atomic_full_barrier): Define.
65334         (atomic_read_barrier): Define.
65335         (atomic_write_barrier): Define.
65336
65337 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
65338
65339         * shlib-versions: Add libgcc_s version information.
65340         * sysdeps/generic/libgcc_s.h: Remove.
65341         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
65342         libgcc_s.h.
65343         * sysdeps/gnu/unwind-resume.c: Likewise.
65344         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
65345
65346 2012-04-25  David S. Miller  <davem@davemloft.net>
65347
65348         * sysdeps/unix/sparc/brk.S: Delete.
65349         * sysdeps/unix/sparc/dl-brk.S: Delete.
65350         * sysdeps/unix/sparc/pipe.S: Delete.
65351         * sysdeps/unix/sparc/sysdep.S: Delete.
65352         * sysdeps/unix/sparc/sysdep.h: Delete.
65353         * sysdeps/unix/sparc/vfork.S: Delete.
65354         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
65355         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
65356         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
65357         (ret_ERRVAL, r0, r1, MOVE): Define.
65358         (JUMPTARGET): Remove.
65359         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
65360         sysdeps/unix/sparc/sysdep.h
65361         (ENTRY, END): Remove.
65362         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
65363
65364 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
65365
65366         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
65367         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
65368         -DIS_IN_build.
65369
65370         * timezone/README: Update upstream location and email address for
65371         tzcode and tzdata.
65372         * timezone/zdump.c: Update from tzcode 2012b.
65373         * timezone/zic.c: Likewise.
65374
65375         * configure.in (libc_cv_as_needed): Remove test.
65376         * configure: Regenerated.
65377         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
65378         conditional definition.
65379         [$(have-as-needed) != yes] (no-as-needed): Likewise.
65380         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
65381         * config.make.in (have-as-needed): Remove variable.
65382
65383 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
65384             Paul Pluzhnikov  <ppluzhnikov@google.com>
65385
65386         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
65387         strings correctly.
65388
65389 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
65390
65391         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
65392         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
65393         * sysdeps/sh/strlen.S: Likewise.
65394
65395 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65396
65397         * sysdeps/unix/fork.S: Remove file.
65398         * sysdeps/unix/i386/fork.S: Likewise.
65399         * sysdeps/unix/sparc/fork.S: Likewise.
65400
65401         * sysdeps/unix/system.c: Remove file.
65402         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
65403
65404         * sysdeps/unix/getegid.S: Remove file.
65405         * sysdeps/unix/geteuid.S: Likewise.
65406
65407 2012-04-24  Roland McGrath  <roland@hack.frob.com>
65408
65409         * scripts/check-localplt.awk: New file.
65410         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
65411         of diff.
65412         * scripts/data/localplt-generic.data: Add a comment.
65413
65414         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
65415         NODE when __dir_mkfile failed.
65416         * sysdeps/mach/hurd/symlinkat.c: Likewise.
65417         Reported by Ludovic Courtès <ludo@gnu.org>.
65418
65419 2012-04-24  Andreas Jaeger  <aj@suse.de>
65420
65421         * Makerules (common-clean): Also remove gen-as-const-headers
65422         files.
65423
65424 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65425
65426         * Makerules (native-compile): Do not change working directory for
65427         build.  Use $(OUTPUT_OPTION) in command.
65428         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
65429
65430 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65431
65432         [BZ #13886]
65433         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
65434         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
65435         * math/libm-test.inc (floor_test): Add more tests.
65436         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
65437
65438 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
65439
65440         * sysdeps/unix/getdents.c: Remove file.
65441         * sysdeps/unix/sysv/getdents.c: Likewise.
65442         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
65443
65444         * sysdeps/unix/syscalls.list (madvise): Add syscall from
65445         sysdeps/unix/mman/syscalls.list.
65446         (mmap): Likewise.
65447         (mprotect): Likewise.
65448         (msync): Likewise.
65449         (munmap): Likewise.
65450         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
65451         * sysdeps/unix/mman/syscalls.list: Remove.
65452         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
65453
65454         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
65455         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
65456         * configure: Regenerated.
65457         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
65458         $(libgcc_s_suffix).
65459         * config.make.in (libgcc_s_suffix): Remove variable.
65460
65461 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
65462
65463         * sysdeps/unix/sysv/gethostname.c: Move to ...
65464         * sysdeps/posix/gethostname.c: ... here.
65465
65466         * sysdeps/unix/execve.S: Remove file.
65467
65468         * sysdeps/unix/_exit.S: Remove file.
65469
65470 2012-04-23  Andreas Jaeger  <aj@suse.de>
65471
65472         [BZ #13739]
65473         * manual/Makefile: Remove make dist support, there's no
65474         need for a stand-alone documentation tar ball.
65475         (TEXI2DVI): Define always, it's not in Makeconfig.
65476         (dist): Removed.
65477         (tar-it): Removed.
65478         (edition): Removed.
65479         (glibc-doc-$(edition).tar): Removed
65480         (%.Z): Removed.
65481         (%.gz): Removed.
65482         (%.uu): Removed.
65483         (ETAGS): Remove, it's in Makeconfig.
65484         (move-if-change): Remove, it's in Makeconfig.
65485
65486 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
65487
65488         [BZ #13970]
65489         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
65490         (strtod, strtof, strtold, strtol, strtoul, strtoq)
65491         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
65492         (strtod_l, strtof_l, strtold_l): Remove __wur.
65493         It is not necessarily an error to ignore strtol's return value.
65494         One can reliably look at the stored endptr to decide whether
65495         the number had valid syntax.
65496
65497 2012-04-21  Andreas Jaeger  <aj@suse.de>
65498
65499         [BZ #13739]
65500         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
65501
65502 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
65503
65504         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
65505         * sysdeps/unix/sysv/Versions: Remove file.
65506
65507 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
65508
65509         [BZ #13927]
65510         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65511
65512 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
65513
65514         [BZ #7064]
65515         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
65516         version from __vm86.
65517
65518 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
65519
65520         * sysdeps/unix/common/lxstat.c: Remove file.
65521         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
65522
65523         * sysdeps/unix/sysv/Makefile: Remove file.
65524
65525         * sysdeps/unix/sysv/direct.h: Remove file.
65526
65527         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
65528         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
65529         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
65530         * sysdeps/unix/sysv/bits/signum.h: Likewise.
65531         * sysdeps/unix/sysv/bits/stat.h: Likewise.
65532         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
65533         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
65534
65535         * sysdeps/unix/sysv/setrlimit.c: Remove file.
65536
65537         * sysdeps/unix/xmknod.c: Remove file.
65538         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
65539
65540         * sysdeps/unix/sysv/settimeofday.c: Remove file.
65541
65542         * sysdeps/unix/sysv/i386/time.S: Remove file.
65543
65544         * sysdeps/unix/fxstat.c: Remove file.
65545         * sysdeps/unix/xstat.c: Likewise.
65546         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
65547
65548         * sysdeps/unix/sysv/sigaction.c: Remove file.
65549
65550         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
65551         (sysdep_headers): Remove variable.
65552         [termio.h not in sysdep_headers] (generated): Likewise.
65553         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
65554         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
65555         * sysdeps/unix/sysv/tcdrain.c: Likewise.
65556         * sysdeps/unix/sysv/tcflow.c: Likewise.
65557         * sysdeps/unix/sysv/tcflush.c: Likewise.
65558         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
65559         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
65560         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
65561         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
65562         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
65563
65564         * sysdeps/unix/siglist.c: Remove file.
65565
65566         * sysdeps/unix/getppid.S: Remove file.
65567
65568         * sysdeps/unix/mkdir.c: Remove file.
65569         * sysdeps/unix/rmdir.c: Likewise.
65570
65571 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
65572
65573         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
65574         ERR_MAX value.
65575         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
65576         errlist-compat value.
65577
65578 2012-04-18  David S. Miller  <davem@davemloft.net>
65579
65580         * sysdeps/generic/memcopy.h (reg_char): Delete.
65581         * debug/strcat_chk.c: Use char, not reg_char.
65582         * debug/strcpy_chk.c: Likewise.
65583         * debug/strncat_chk.c: Likewise.
65584         * debug/strncpy_chk.c: Likewise.
65585         * string/memchr.c: Likewise.
65586         * string/memrchr.c: Likewise.
65587         * string/rawmemchr.c: Likewise.
65588         * string/strcat.c: Likewise.
65589         * string/strchr.c: Likewise.
65590         * string/strchrnul.c: Likewise.
65591         * string/strcmp.c: Likewise.
65592         * string/strcpy.c: Likewise.
65593         * string/strncat.c: Likewise.
65594         * string/strncmp.c: Likewise.
65595         * string/strncpy.c: Likewise.
65596
65597 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65598
65599         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
65600         __builtin_memcopy is called when src and dest ranges are known to not
65601         overlap.
65602
65603 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65604
65605         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
65606         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
65607         fwd_align_merge macro call.
65608         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
65609         bwd_align_merge macro call.
65610         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65611
65612 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
65613
65614         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
65615         bwd_align_merge macros.
65616         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
65617         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
65618         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
65619
65620 2012-04-18  David S. Miller  <davem@davemloft.net>
65621
65622         * sysdeps/sparc/sparc64/memcopy.h: Delete.
65623
65624 2012-04-18  Andreas Jaeger  <aj@suse.de>
65625
65626         [BZ# 6794]
65627         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
65628         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
65629         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65630
65631         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
65632         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
65633         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65634
65635         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
65636         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
65637         Adjust for changed ldbl-128 files.
65638
65639         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
65640         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
65641         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
65642
65643 2012-04-17  David S. Miller  <davem@davemloft.net>
65644
65645         * sysdeps/sparc/sparc32/memcopy.h: Delete.
65646
65647 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
65648
65649         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
65650         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
65651         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
65652         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
65653         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
65654         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
65655
65656 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
65657
65658         [BZ #6794]
65659         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
65660         * math/libm-test.inc: Add ilogb errno and exception tests.
65661         * math/w_ilogb.c: New file: ilogb wrapper.
65662         * math/w_ilogbf.c: New file: ilogbf wrapper.
65663         * math/w_ilogbl.c: New file: ilogbl wrapper.
65664         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
65665         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
65666         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
65667         exception being thrown with 0.0 as argument.
65668         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
65669         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
65670         exception being thrown with 0.0 as argument.
65671         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
65672         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65673         exception being thrown with 0.0 as argument.
65674         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
65675         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
65676         exception being thrown with 0.0 as argument.
65677         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
65678         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
65679         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
65680         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
65681         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
65682         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
65683         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
65684         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
65685         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
65686
65687 2012-04-17  Petr Baudis  <pasky@ucw.cz>
65688
65689         * include/sys/uio.h: Change __vector to __iovec to avoid clash
65690         with altivec.
65691
65692 2012-04-16  Marek Polacek  <polacek@redhat.com>
65693
65694         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
65695
65696 2012-04-16  Marek Polacek  <polacek@redhat.com>
65697
65698         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
65699         operands of fdivp instruction.
65700
65701 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65702
65703         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
65704         * elf/tst-auditmod3b.c: Likewise.
65705         * elf/tst-auditmod4b.c: Likewise.
65706         * elf/tst-auditmod5b.c: Likewise.
65707         * elf/tst-auditmod6b.c: Likewise.
65708         * elf/tst-auditmod6c.c: Likewise.
65709         * elf/tst-auditmod7b.c: Likewise.
65710         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
65711         * sysdeps/x86_64/preconfigure.in: Likewise.
65712         * sysdeps/x86_64/preconfigure: Regenerated.
65713
65714 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
65715
65716         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
65717         __ILP32__.
65718
65719 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
65720
65721         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
65722         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
65723
65724 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
65725
65726         [BZ #13973]
65727         * locale/iso-639.def: Fix gl language name. Spotted by
65728         Yaron Shahrabani.
65729
65730 2012-04-12  Roland McGrath  <roland@hack.frob.com>
65731
65732         [BZ #2074]
65733         * libio/libio.h (__io_write_fn): Update comment.
65734
65735 2012-04-12  Petr Baudis  <pasky@ucw.cz>
65736
65737         [BZ #2074]
65738         * stdio.texi (Hook Functions): The user provided writer function
65739         is not allowed to return -1.
65740
65741 2012-04-11  David S. Miller  <davem@davemloft.net>
65742
65743         * sysdeps/sparc/fpu/libm-test-ulps: Update.
65744
65745 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
65746
65747         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
65748         Add a leading slash to rtkaio.
65749
65750 2012-04-11  Jim Meyering  <meyering@redhat.com>
65751
65752         [BZ #11959]
65753         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
65754         It is not necessarily an error to ignore fwrite's return
65755         value.  One can reliably use ferror to test for errors after
65756         the fact.
65757
65758 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65759
65760         * bits/types.h (__snseconds_t): New type.
65761         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
65762
65763         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
65764         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
65765         (__SNSECONDS_T_TYPE): Likewise.
65766         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
65767         (__SNSECONDS_T_TYPE): Likewise.
65768         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
65769         (__SNSECONDS_T_TYPE): Likewise.
65770
65771 2012-04-10  Andreas Jaeger  <aj@suse.de>
65772
65773         [BZ #2636]
65774         * manual/time.texi (Processor Time): Return type of times is
65775         elapsed real time since an arbitrary point in the past.
65776         (CPU Time): Move CLK_TCK from here...
65777         (Processor Time): ...to here.  Correct description.
65778         * manual/conf.texi (Constants for Sysconf): Correct description of
65779         _SC_CLK_TCK.
65780
65781 2012-04-10  David S. Miller  <davem@davemloft.net>
65782
65783         [BZ #13967]
65784         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
65785         where the is a gap between DT_REL(A) and DT_JMPREL.
65786
65787 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
65788
65789         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
65790         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65791         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65792
65793 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
65794
65795         * elf/dl-support.c (_dl_inhibit_cache): New variable.
65796         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
65797         (dl_main): Handle --inhibit-cache.
65798         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
65799         _dl_inhibit_cache.
65800         * elf/dl-load.c (_dl_map_object): Use it.
65801         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
65802
65803 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65804
65805         [BZ #13872]
65806         * sysdeps/i386/fpu/e_powl.S (p78): New object.
65807         (__ieee754_powl): Saturate large exponents rather than testing for
65808         overflow of y*log2(x).
65809         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
65810         * math/libm-test.inc (pow_test): Do not permit spurious overflow
65811         exceptions.
65812
65813         [BZ #11521]
65814         * math/s_ctan.c: Include <float.h>.
65815         (__ctan): Avoid internal overflow or cancellation in calculating
65816         denominator.
65817         * math/s_ctanf.c: Likewise.
65818         * math/s_ctanl.c: Likewise.
65819         * math/s_ctanh.c: Likewise.
65820         * math/s_ctanhf.c: Likewise.
65821         * math/s_ctanhl.c: Likewise.
65822         * math/libm-test.inc (ctan_test): Add more tests.
65823         (ctanh_test): Likewise.
65824         * sysdeps/i386/fpu/libm-test-ulps: Update.
65825         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
65826
65827 2012-04-09  Andreas Jaeger  <aj@suse.de>
65828
65829         [BZ #6894]
65830         * manual/filesys.texi (Directory Entries): Mention that d_namlen
65831         is an optional BSD extension.
65832
65833         [BZ #10254]
65834         * manual/stdio.texi (Opening Streams): Document additional fopen
65835         parameters.
65836
65837 2012-04-09  Roland McGrath  <roland@hack.frob.com>
65838
65839         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
65840         %eax without telling the compiler.
65841
65842 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
65843
65844         [BZ # 13963]
65845         * manual/install.texi: Use sourceware.org.
65846
65847 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
65848
65849         [BZ #13873]
65850         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
65851         (__ieee754_pow): Generate overflow and underflow using huge*huge
65852         and tiny*tiny rather than just returning constant infinity or zero
65853         for large exponents.
65854         * math/libm-test.inc (pow_test): Require overflow exceptions for
65855         applicable cases of large exponents.
65856
65857         [BZ #706]
65858         * sysdeps/i386/fpu/e_pow.S (p10): New object.
65859         (__ieee754_pow): Use iterative multiplication algorithm only for
65860         integer exponents with absolute value below 1024.  Check for odd
65861         integer exponents when using algorithm for real exponents.
65862         * math/libm-test.inc (pow_test): Add more tests.
65863         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
65864
65865 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
65866
65867         [BZ #13705]
65868         * math/libm-test.inc (exp_test): Do not allow overflow exception
65869         on underflow test.
65870
65871 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
65872
65873         [BZ #13705]
65874         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
65875         instead of __kernel_standard_f.
65876
65877 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
65878
65879         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
65880         * sysdeps/x86_64/memset_chk.S: Likewise.
65881
65882 2012-04-08  Andreas Jaeger  <aj@suse.de>
65883
65884         [BZ #10153]
65885         * manual/startup.texi (Environment Access): Describe return value
65886         for putenv and setenv.
65887
65888         [BZ #6895]
65889         * manual/filesys.texi (Directory Entries): Add description for
65890         DT_LNK.
65891
65892         [BZ #6890]
65893         * manual/filesys.texi (Directory Entries): Clarify that it's file
65894         system not operating system in the description of DT_UNKNOWN.
65895
65896         [BZ #6578]
65897         * manual/syslog.texi (closelog): Fix reference, it's openlog.
65898
65899 2012-04-08  Stephen Compall  <s11@member.fsf.org>
65900
65901         [BZ #6649]
65902         * manual/llio.texi (Opening and Closing Files): Add cross
65903         reference to explain mode argument.
65904
65905 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
65906
65907         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
65908         * sysdeps/x86_64/memset_chk.S: Likewise.
65909
65910 2012-04-07  David S. Miller  <davem@davemloft.net>
65911
65912         * elf/elf.h (R_SPARC_WDISP10): Define.
65913         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
65914         R_SPARC_SIZE32.
65915         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
65916         R_SPARC_SIZE64 and R_SPARC_H34.
65917
65918 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
65919
65920         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
65921         conditions and remove no longer applicable assertion.
65922
65923 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65924
65925         * bits/byteswap.h: Include <features.h>.
65926         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
65927         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
65928
65929 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
65930
65931         * bits/byteswap.h (__bswap_16): Removed.
65932         Include <bits/byteswap-16.h> to get __bswap_16.
65933         * sysdeps/i386/bits/byteswap.h: Likewise.
65934         * sysdeps/s390/bits/byteswap.h: Likewise.
65935         * sysdeps/x86_64/bits/byteswap.h: Likewise.
65936         * bits/byteswap-16.h: New file.
65937         * sysdeps/i386/bits/byteswap-16.h: Likewise.
65938         * sysdeps/s390/bits/byteswap-16.h: Likewise.
65939         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
65940         * string/Makefile (headers): Add bits/byteswap-16.h.
65941
65942 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
65943
65944         [BZ #13895]
65945         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
65946         extra indirection.
65947         * nss/Makefile (tests-static, tests): Add tst-nss-static.
65948         * nss/tst-nss-static.c: New.
65949
65950 2012-04-06  Robert Millan  <rmh@gnu.org>
65951
65952         [BZ #6486]
65953         * manual/llio.texi (File Position Primitive): lseek
65954         refers to WHENCE when it really means OFFSET.
65955
65956 2012-04-06  Andreas Jaeger  <aj@suse.de>
65957
65958         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
65959         strncmp declarations.
65960
65961         * abilist/libc.abilist: Add __poll and __ppoll.
65962
65963 2012-04-05  David S. Miller  <davem@davemloft.net>
65964
65965         * scripts/check-local-headers.sh: Accept a host triplet in the
65966         path matched by the exclude regexp.
65967
65968         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
65969         definition.
65970         * sysdeps/powerpc/powerpc32/dl-machine.h
65971         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
65972         * sysdeps/s390/s390-32/dl-machine.h
65973         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65974         * sysdeps/sparc/sparc32/dl-machine.h
65975         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65976         * sysdeps/sparc/sparc64/dl-machine.h
65977         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
65978
65979         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
65980         lazy binding.
65981         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
65982         undefined symbol errors.
65983
65984         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
65985         DT_NEEDED entries.
65986
65987 2012-04-05  Michael Matz  <matz@suse.de>
65988
65989         [BZ #13592]
65990         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
65991
65992 2012-04-05  Andreas Jaeger  <aj@suse.de>
65993
65994         [BZ #13908]
65995         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
65996         comment.
65997
65998 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
65999
66000         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
66001         which ROUND is no valid rounding mode.
66002
66003 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66004
66005         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
66006         read again.
66007         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
66008
66009 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66010
66011         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
66012         an exception using FPU order intentionally.
66013
66014 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
66015
66016         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
66017         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
66018         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
66019         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
66020
66021 2012-04-05  Simon Josefsson  <simon@josefsson.org>
66022
66023         [BZ #12340]
66024         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
66025         EINVAL when BUFLEN is too smal.
66026
66027 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
66028
66029         [BZ #13553]
66030         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
66031         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
66032
66033 2012-04-03  Andreas Jaeger  <aj@suse.de>
66034
66035         [BZ #13938]
66036         * manual/setjmp.texi (System V contexts): Fix sentence.
66037
66038         [BZ #13926]
66039         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
66040         New macro for this case.
66041         [!__GNUC__] (__bswap_64): New inline function for this case.
66042         * sysdeps/x86_64/bits/byteswap.h: Likewise.
66043         * bits/byteswap.h: Likewise.
66044         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
66045         ull, guard with __GLIBC_HAVE_LONG_LONG.
66046
66047         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
66048         __GLIBC_HAVE_LONG_LONG.
66049
66050         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
66051         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
66052
66053 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
66054
66055         [BZ #13691]
66056         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
66057         inptr and inend, rather than using last_ch.
66058
66059 2012-04-02  David S. Miller  <davem@davemloft.net>
66060
66061         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
66062         * stdio-common/printf-parse.h (read_int): Change return type to
66063         'int', return -1 on INT_MAX overflow.
66064         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
66065         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
66066         overflows INT_MAX.  Check for overflow of in-format-string precision
66067         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
66068         SIZE_MAX not INT_MAX for integer overflow test.
66069         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
66070         skip the construct in the format string but do not record anything.
66071         * stdio-common/bug22.c: Adjust to test both width/prevision
66072         INT_MAX overflow as well as total length INT_MAX overflow.  Check
66073         explicitly for proper errno values.
66074
66075 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
66076
66077         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
66078         CHAR_MAX.
66079         * string/test-strcmp.c [! WIDE]: Likewise.
66080         * time/tst-mktime2.c: Likewise for INT_MAX.
66081         * string/test-string.h: #include <sys/param.h> for MIN.
66082
66083         * csu/init-first.c (__libc_init_first): Call __ctype_init.
66084         * sysdeps/i386/init-first.c (init): Likewise.
66085         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
66086         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
66087         * sysdeps/sh/init-first.c (init): Likewise.
66088
66089 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
66090
66091         * po/ru.po: Update from translation team.
66092         * po/vi.po: Likewise.
66093
66094 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
66095
66096         * resolv/nss_dns/dns-host.c: Merge copyright years.
66097
66098 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
66099
66100         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
66101         Optimize memcpy with prefetch if
66102         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
66103         src, dst pointers have unequal 16 byte alignments.
66104
66105 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
66106
66107         [BZ #13928]
66108         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
66109         from a CNAME entry and return the minimum ttl for the query.
66110         (gaih_getanswer_slice): Likewise.
66111
66112 2012-03-30  Jeff Law  <law@redhat.com>
66113
66114         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
66115         due to long keys.
66116         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
66117         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
66118
66119         * resolv/nss_dns/dns-host.c: Update copyright year.
66120
66121 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
66122
66123         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
66124         requests to save a system call.  Fix check that all bytes are sent.
66125
66126         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
66127         comments for sendmmsg.
66128
66129 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
66130
66131         [BZ #13691]
66132         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
66133         with only 1 character between 0x0041 and 0x01b0.
66134         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
66135         * wcsmbs/tst-mbsnrtowcs.c: New file.
66136
66137 2012-03-29  David S. Miller  <davem@davemloft.net>
66138
66139         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
66140         small copies by hand.
66141
66142 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
66143
66144         [BZ #13761]
66145         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
66146         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
66147         group memberships.
66148
66149 2012-03-28  David S. Miller  <davem@davemloft.net>
66150
66151         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
66152         that branches into memcpy.
66153         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
66154         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
66155         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
66156         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
66157         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
66158         bits.
66159         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
66160         implementation too.
66161         * sysdeps/sparc/mempcpy.S: New file.
66162
66163         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
66164         the IFUNC routine in the libc case.
66165         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
66166
66167         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
66168         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
66169         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
66170         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
66171         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
66172         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
66173         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
66174         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
66175
66176         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
66177         loop to 256 bytes instead of 64 bytes and fix test signedness.
66178
66179         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
66180         * sysdeps/sparc/sparc32/Makefile: rather than here...
66181         * sysdeps/sparc/sparc64/Makefile: and here.
66182
66183 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
66184
66185         * malloc/mallocbug.c: Avoid warnings about unused variables.
66186
66187 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
66188
66189         [BZ #13760]
66190         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
66191         in the right place. Discard and retry query if response is
66192         larger than input buffer size.
66193
66194 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
66195
66196         [BZ #369]
66197         [BZ #2678]
66198         [BZ #3866]
66199         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
66200         x for large integer exponent.
66201         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
66202         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
66203         sign of result as needed afterwards.
66204         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
66205         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
66206         result for underflowing pow the same as for overflow.
66207         (__kernel_standard_l): Handle powl overflow and underflow here
66208         rather than calling __kernel_standard.
66209         * math/libm-test.inc (pow_test): Add more tests.
66210
66211         [BZ #3868]
66212         [BZ #13879]
66213         [BZ #13910]
66214         [BZ #13911]
66215         [BZ #13912]
66216         [BZ #13913]
66217         [BZ #13915]
66218         [BZ #13916]
66219         [BZ #13917]
66220         [BZ #13918]
66221         [BZ #13919]
66222         [BZ #13920]
66223         [BZ #13921]
66224         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
66225         * sysdeps/ieee754/k_standard.c: Include <float.h>.
66226         (__kernel_standard_l): New function.
66227         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
66228         __kernel_standard.
66229         * math/w_acosl.c (__acosl): Likewise.
66230         * math/w_asinl.c (__asinl): Likewise.
66231         * math/w_atan2l.c (__atan2l): Likewise.
66232         * math/w_atanhl.c (__atanhl): Likewise.
66233         * math/w_coshl.c (__coshl): Likewise.
66234         * math/w_exp10l.c (__exp10l): Likewise.
66235         * math/w_exp2l.c (__exp2l): Likewise.
66236         * math/w_fmodl.c (__fmodl): Likewise.
66237         * math/w_hypotl.c (__hypotl): Likewise.
66238         * math/w_j0l.c (__j0l, __y0l): Likewise.
66239         * math/w_j1l.c (__j1l, __y1l): Likewise.
66240         * math/w_jnl.c (__jnl, __ynl): Likewise.
66241         * math/w_lgammal.c (__lgammal): Likewise.
66242         * math/w_log10l.c (__log10l): Likewise.
66243         * math/w_log2l.c (__log2l): Likewise.
66244         * math/w_logl.c (__logl): Likewise.
66245         * math/w_powl.c (__powl): Likewise.
66246         * math/w_remainderl.c (__remainderl): Likewise.
66247         * math/w_scalbl.c (sysv_scalbl): Likewise.
66248         * math/w_sinhl.c (__sinhl): Likewise.
66249         * math/w_sqrtl.c (__sqrtl): Likewise.
66250         * math/w_tgammal.c (__tgammal): Likewise.
66251         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
66252         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
66253         * math/libm-test.inc (acos_test): Add more tests.
66254         (acosh_test): Likewise.
66255         (asin_test): Likewise.
66256         (atanh_test): Likewise.
66257         (exp_test): Likewise.
66258         (exp10_test): Likewise.
66259         (exp2_test): Likewise.
66260         (expm1_test): Likewise.
66261         (lgamma_test): Likewise.
66262         (log_test): Likewise.
66263         (log10_test): Likewise.
66264         (log1p_test): Likewise.
66265         (log2_test): Likewise.
66266         (pow_test): Do not allow some spurious overflow exceptions.
66267         (sqrt_test): Add more tests.
66268         (tgamma_test): Likewise.
66269         (y0_test): Likewise.
66270         (y1_test): Likewise.
66271         (yn_test): Likewise.
66272
66273 2012-03-27  Anton Blanchard  <anton@samba.org>
66274
66275         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
66276         MAP_HUGETLB.
66277         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
66278         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
66279         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
66280
66281 2012-03-27  David S. Miller  <davem@davemloft.net>
66282
66283         * conform/Makefile: Run run-conformtest.sh using $(BASH).
66284
66285         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
66286         have-as-vis3 check.
66287
66288 2012-03-27  Andreas Jaeger  <aj@suse.de>
66289
66290         * sysdeps/x86_64/elf/configure.in: Moved to ...
66291         * sysdeps/x86_64/configure.in: ... here.
66292         * sysdeps/x86_64/elf/start.S: Moved to ...
66293         * sysdeps/x86_64/start.S: ... here.
66294         * sysdeps/x86_64/elf/configure: Delete.
66295
66296         * sysdeps/x86_64/configure.in: Merge contents from
66297         sysdeps/i386/configure.in (without i686 check).
66298
66299         * sysdeps/i386/elf/Versions: Merge into ...
66300         * sysdeps/i386/Versions: ... this.
66301         * sysdeps/i386/elf/Versions: Delete file.
66302         * sysdeps/i386/elf/start.S: Moved to ...
66303         * sysdeps/i386/start.S: ...here.
66304         * sysdeps/i386/elf/configure.in: Merge into...
66305         * sysdeps/i386/configure.in: ...here.
66306         * sysdeps/i386/elf/configure.in: Delete file.
66307         * sysdeps/i386/elf/configure: Delete file.
66308
66309         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
66310         * debug/backtracesyms.c: ... here.
66311         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
66312         * debug/backtracesymsfd.c: ... here.
66313         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
66314         * sysdeps/generic/ifunc-sel.h: ... here.
66315
66316         * sysdeps/unix/i386/start.c: Delete file.
66317         * sysdeps/unix/sparc/start.c: Delete file.
66318         * sysdeps/unix/start.c: Delete file.
66319
66320         * sysdeps/sh/elf/configure.in: Moved to ...
66321         * sysdeps/sh/configure.in: ... here.
66322         * sysdeps/sh/elf/start.S: Moved to ...
66323         * sysdeps/sh/start.S: ... here.
66324         * sysdeps/sh/elf/configure: Delete file.
66325
66326         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
66327         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
66328         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
66329         * sysdeps/powerpc/powerpc64/entry.h: ... here.
66330         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
66331         * sysdeps/powerpc/powerpc64/start.S: here.
66332         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
66333         * sysdeps/powerpc/powerpc64/Makefile: ... this.
66334         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
66335         * sysdeps/powerpc/powerpc64/configure.in: ... this.
66336         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
66337
66338         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
66339         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
66340         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
66341         * sysdeps/powerpc/powerpc32/start.S: ... here.
66342         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
66343         * sysdeps/powerpc/powerpc32/configure.in: ... this.
66344         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
66345
66346         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
66347         * sysdeps/powerpc/ifunc-sel.h: ... here.
66348         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
66349         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
66350
66351         * sysdeps/sparc/elf/configure.in: Moved to ...
66352         * sysdeps/sparc/configure.in: ... here.
66353         * sysdeps/sparc/elf/configure: Delete file.
66354         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
66355         * sysdeps/sparc/sparc32/start.S: ... here.
66356         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
66357         * sysdeps/sparc/sparc64/start.S: ... here.
66358         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
66359         * sysdeps/sparc/sparc32/Makefile: ... this.
66360         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
66361         * sysdeps/sparc/sparc64/Makefile: ... this.
66362
66363         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
66364         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
66365         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
66366         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
66367         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
66368         * sysdeps/s390/s390-32/setjmp.S: ... here.
66369         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
66370         * sysdeps/s390/s390-32/configure.in: ... here.
66371         * sysdeps/s390/s390-32/elf/configure: Delete file.
66372         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
66373         * sysdeps/s390/s390-32/start.S: ... here.
66374
66375         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
66376         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
66377         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
66378         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
66379         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
66380         * sysdeps/s390/s390-64/setjmp.S: ... here.
66381         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
66382         * sysdeps/s390/s390-64/configure.in: ... here
66383         * sysdeps/s390/s390-64/elf/configure: Delete file.
66384         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
66385         * sysdeps/s390/s390-64/start.S: ... here.
66386         * sysdeps/s390/s390-64/elf/configure: Delete.
66387
66388         * configure.in: Remove support for elf directories in sysdeps.
66389
66390         * configure: Regenerated.
66391         * sysdeps/i386/configure: Regenerated.
66392         * sysdeps/powerpc/powerpc32/configure: Regenerated.
66393         * sysdeps/powerpc/powerpc64/configure: Regenerated.
66394         * sysdeps/s390/s390-32/configure: Regenerated.
66395         * sysdeps/s390/s390-64/configure: Regenerated.
66396         * sysdeps/sh/configure: Regenerated.
66397         * sysdeps/sparc/configure: Regenerated.
66398         * sysdeps/x86_64/configure: Regenerated.
66399
66400 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
66401
66402         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66403
66404         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
66405         denormal result into account.
66406
66407 2012-03-25  Roland McGrath  <roland@hack.frob.com>
66408
66409         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
66410         Reported by Allan McRae <allan@archlinux.org>.
66411
66412 2012-03-23  Jeff Law  <law@redhat.com>
66413
66414         * nss/getnssent.c (__nss_getent): Fix typo.
66415
66416 2012-03-23  David S. Miller  <davem@davemloft.net>
66417
66418         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66419
66420 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
66421
66422         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
66423         to pad to uint64_t for each field.
66424         (dl_tls_index): Replace unsigned long with uint64_t.
66425
66426 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
66427         Paul Pluzhnikov  <ppluzhnikov@google.com>
66428
66429         [BZ #6528]
66430         * grp/Makefile (otherlibs): Don't set it.
66431         * inet/Makefile (otherlibs): Likewise.
66432         * login/Makefile (otherlibs): Likewise.
66433         * nscd/Makefile (otherlibs): Likewise.
66434         * posix/Makefile (otherlibs): Likewise.
66435         * pwd/Makefile (otherlibs): Likewise.
66436         * rt/Makefile (otherlibs): Likewise.
66437         * sunrpc/Makefile (otherlibs): Likewise.
66438         * nss/Makefile (otherlibs): Likewise.
66439         Add libnss_files to routines and static-only-routines.
66440         ($(objpfx)getent): Remove rule.
66441         * resolv/Makefile: Add libnss_dns and libresolv to routines and
66442         static-only-routines.
66443
66444 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66445
66446         [BZ #13892]
66447         * math/s_cexp.c: Include <float.h>.
66448         (__cexp): Handle exp result overflowing not necessarily
66449         overflowing both real and imaginary parts of result.
66450         * math/s_cexpf.c: Likewise.
66451         * math/s_cexpl.c: Likewise.
66452         * math/libm-test.inc (cexp_test): Add more tests.
66453         * sysdeps/i386/fpu/libm-test-ulps: Update.
66454         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66455
66456 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66457
66458         * include/link.h (ELFW): New macro.
66459         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
66460         Replace ELF64_R_TYPE with ELFW(R_TYPE).
66461
66462 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66463
66464         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
66465         with uint64_t.
66466
66467 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66468
66469         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
66470         declaration.
66471         (struct La_x32_retval): Likewise.
66472
66473 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
66474
66475         * sysdeps/x86_64/preconfigure.in: New file.
66476         * sysdeps/x86_64/preconfigure: New generated file.
66477
66478 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
66479
66480         [BZ #13824]
66481         * math/e_exp2l.c: Include <float.h>.
66482         (__ieee754_exp2l): Handle overflow and underflow cases
66483         separately.  Only pass fractional part of argument to
66484         __ieee754_expl.
66485         * math/libm-test.inc (exp2_test): Add more tests.
66486
66487         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
66488         negating x to take absolute value.
66489         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
66490         Likewise.
66491         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
66492         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
66493         Likewise.
66494         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
66495         computing low part if x was negated.
66496         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
66497
66498 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66499
66500         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
66501         la_x32_gnu_pltexit.
66502         (pltexit): Cast int_retval to ptrdiff_t.
66503         * elf/tst-auditmod3b.c: Likewise.
66504         * elf/tst-auditmod4b.c: Likewise.
66505         * elf/tst-auditmod5b.c: Likewise.
66506         * elf/tst-auditmod6b.c: Likewise.
66507         * elf/tst-auditmod6c.c: Likewise.
66508         * elf/tst-auditmod7b.c: Likewise.
66509
66510         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
66511         and x32_gnu_pltexit.
66512
66513         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
66514         __ELF_NATIVE_CLASS.
66515         (La_x32_regs): New macro.
66516         (La_x32_retval): Likewise.
66517         (la_x32_gnu_pltenter): New function prototype.
66518         (la_x32_gnu_pltexit): Likewise.
66519
66520 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
66521
66522         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
66523         exponent.
66524
66525         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66526
66527         * configure.in (libc_cv_cc_nofma): Check for option to disable
66528         generation of FMA instructions.
66529         * configure: Regenerate.
66530         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
66531         * sysdeps/ieee754/dbl-64/Makefile: New file.
66532         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
66533         Remove brandred-fma4.
66534         (CFLAGS-brandred-fma4.c): Remove.
66535         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
66536         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
66537         define.
66538         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
66539         define.
66540
66541 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66542
66543         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
66544         LLONG_MAX != LONG_MAX.
66545         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66546         (_fitoa_word): Likewise.
66547         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
66548         LLONG_MAX != LONG_MAX.
66549         * stdio-common/_itowa.h: Include <_itoa.h>.
66550         (_itowa_word): Use _ITOA_WORD_TYPE on value.
66551         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
66552         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
66553         only if not defined.
66554         (_ITOA_WORD_TYPE): Likewise.
66555         (_itoa_word): Use _ITOA_WORD_TYPE on value.
66556         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
66557
66558 2012-03-21  David S. Miller  <davem@davemloft.net>
66559
66560         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66561
66562 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
66563
66564         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
66565         of x86_64 when setting libc_cv_slibdir, libdir and
66566         libc_cv_localedir.
66567         * sysdeps/unix/sysv/linux/configure: Regenerated.
66568
66569 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66570
66571         * manual/lang.texi (Old Varargs): Remove section.
66572         (How Variadic): Update menu.
66573         (va_start): Do not mention varargs.h.
66574
66575 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66576             Joseph Myers  <joseph@codesourcery.com>
66577
66578         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
66579         link test.
66580         * configure: Regenerated.
66581
66582 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
66583
66584         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
66585         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
66586         conformtest.pl
66587
66588 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66589
66590         * NOTES: Remove.
66591         * Makefile (files-for-dist): Remove NOTES.
66592         (NOTES): Remove rule.
66593         * README: Don't refer to NOTES.
66594         * manual/creature.texi: Don't include macros.texi.
66595         * manual/intro.texi (creature.texi): Remove comment referring to
66596         NOTES.
66597
66598         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
66599         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
66600         * configure: Regenerated.
66601         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
66602         LIBC_TRY_CC_OPTION.
66603         (libc_cv_as_i686): Likewise.
66604         (libc_cv_cc_avx): Likewise.
66605         (libc_cv_cc_sse2avx): Likewise.
66606         (libc_cv_cc_fma4): Likewise.
66607         (libc_cv_cc_novzeroupper): Likewise.
66608         * sysdeps/i386/configure: Regenerated.
66609
66610         [BZ #13883]
66611         * sysdeps/i386/fpu/s_cexp.S: Remove.
66612         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
66613         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
66614         * math/libm-test.inc (cexp_test): Add more tests.
66615         * sysdeps/i386/fpu/libm-test-ulps: Update.
66616         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66617
66618 2012-03-21  Allan McRae  <allan@archlinux.org>
66619
66620         * timezone/Makefile: Do not install iso3166.tab and zone.tab
66621
66622 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
66623
66624         [BZ #13871]
66625         * math/w_exp2.c: Do not include <float.h>.
66626         (o_threshold, u_threshold): Remove.
66627         (__exp2): Calculate result before checking finiteness and calling
66628         __kernel_standard.
66629         * math/w_exp2f.c: Likewise.
66630         * math/w_exp2l.c: Likewise.
66631         * math/libm-test.inc (exp2_test): Require overflow exception for
66632         1e6 input.
66633
66634         [BZ #3866]
66635         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
66636         range of signed 64-bit integers before using fistpll.  Remove
66637         checks for whether integers fit in mantissa bits.
66638         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
66639         the range of signed 32-bit integers before using fistpl.  Remove
66640         checks for whether integers fit in mantissa bits.
66641         * sysdeps/i386/fpu/e_powl.S (p64): New object.
66642         (__ieee754_powl): Test for y outside the range of signed 64-bit
66643         integers before using fistpll.  Reduce 64-bit values to 63-bit
66644         ones as needed.
66645         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
66646         divide-by-zero is raised for zero to large negative powers.
66647         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
66648         (__ieee754_powl): Test for y outside the range of signed 64-bit
66649         integers before using fistpll.  Reduce 64-bit values to 63-bit
66650         ones as needed.
66651         * math/libm-test.inc (pow_test): Add more tests.
66652
66653 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66654
66655         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
66656         <stdio-common/_itoa.h>.
66657         * debug/segfault.c: Likewise.
66658         * elf/dl-cache.c: Likewise.
66659         * elf/dl-minimal.c: Likewise.
66660         * elf/dl-misc.c: Likewise.
66661         * elf/dl-sysdep.c: Likewise.
66662         * elf/dl-version.c: Likewise.
66663         * elf/rtld.c: Likewise.
66664         * hurd/hurdsock.c: Likewise.
66665         * hurd/lookup-retry.c: Likewise.
66666         * malloc/malloc.c: Likewise.
66667         * malloc/mtrace.c: Likewise.
66668         * nscd/nscd_getgr_r.c: Likewise.
66669         * nscd/nscd_getpw_r.c: Likewise.
66670         * nscd/nscd_getserv_r.c: Likewise.
66671         * posix/getopt_init.c: Likewise.
66672         * posix/wordexp.c: Likewise.
66673         * stdio-common/_itoa.c: Likewise.
66674         * stdio-common/printf_fphex.c: Likewise.
66675         * stdio-common/vfprintf.c: Likewise.
66676         * string/_strerror.c: Likewise.
66677         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
66678         * sysdeps/i386/i686/hp-timing.h: Likewise.
66679         * sysdeps/mach/_strerror.c: Likewise.
66680         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
66681         * sysdeps/mach/hurd/sethostid.c: Likewise.
66682         * sysdeps/mach/hurd/xmknodat.c: Likewise.
66683         * sysdeps/mach/xpg-strerror.c: Likewise.
66684         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
66685         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
66686         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
66687         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
66688         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
66689         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
66690         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
66691         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
66692         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
66693         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
66694         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
66695         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
66696         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
66697         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
66698         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
66699         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
66700         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
66701         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
66702         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
66703         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
66704         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
66705
66706         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
66707
66708         * stdio-common/_itoa.h: Moved to ...
66709         * sysdeps/generic/_itoa.h: Here.
66710
66711         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
66712
66713         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
66714         instead of "_itoa.h" and "_itowa.h".
66715         * stdio-common/vfprintf.: Likewise.
66716
66717 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66718
66719         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
66720         <bits/wordsize.h>.
66721         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
66722         (__signbit): Likwise.
66723         (llrintf): Likwise.
66724         (llrint): Likwise.
66725
66726 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
66727
66728         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
66729         __WORDSIZE != 64.
66730
66731 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
66732
66733         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
66734         OVERFLOW_EXCEPTION_OK.
66735         * math/libm-test.inc ("Philosophy"): Update comment about
66736         exception testing.
66737         (OVERFLOW_EXCEPTION): Define.
66738         (OVERFLOW_EXCEPTION_OK): Likewise.
66739         (INVALID_EXCEPTION_OK): Renumber.
66740         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
66741         (IGNORE_ZERO_INF_SIGN): Likewise.
66742         (test_exceptions): Handle FE_OVERFLOW.
66743         (exp10_test): Expect overflow exceptions.
66744         (exp2_test): Likewise.
66745         (expm1_test): Likewise.
66746         (nextafter_test): Likewise.
66747         (pow_test): Likewise.
66748         (scalbn_test): Likewise.
66749         (scalbln_test): Likewise.
66750
66751 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66752
66753         * sysdeps/x86_64/bits/atomic.h
66754         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
66755         64bit integer.
66756         (atomic_exchange_acq): Likewise.
66757         (__arch_exchange_and_add_body): Likewise.
66758         (__arch_add_body): Likewise.
66759         (atomic_add_negative): Likewise.
66760         (atomic_add_zero): Likewise.
66761
66762 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66763
66764         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
66765         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
66766
66767 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66768
66769         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
66770         Check __x86_64__ instead of __WORDSIZE.
66771
66772 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66773
66774         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
66775
66776 2012-03-19  David S. Miller  <davem@davemloft.net>
66777
66778         * sysdeps/sparc/fpu/libm-test-ulps: Update.
66779
66780         * sysdeps/sparc/fpu/fenv_private.h: New file.
66781         * sysdeps/sparc/fpu/math_private.h: Use it.
66782         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
66783         Remove.
66784         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
66785         (libc_feholdexcept_setroundl): Remove.
66786         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
66787         Remove.
66788         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
66789         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
66790
66791 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66792
66793         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
66794         int64_t instead of long int.
66795         (INSERT_WORDS64): Likwise.
66796
66797 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
66798
66799         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
66800         _Unwind_GetCFA return to _Unwind_Ptr first.
66801
66802 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
66803
66804         [BZ #13629]
66805         * math/s_clog.c: Include <float.h>.
66806         (__clog): Scale large or subnormal inputs.
66807         * math/s_clogf.c: Likewise.
66808         * math/s_clogl.c: Likewise.
66809         * math/s_clog10.c: Include <float.h>.
66810         (M_LOG10_2): Define.
66811         (__clog10): Scale large or subnormal inputs.
66812         * math/s_clog10f.c: Likewise.
66813         * math/s_clog10l.c: Likewise.
66814         * math/libm-test.inc (clog_test): Add more tests.
66815         (clog10_test): Likewise.
66816         * sysdeps/i386/fpu/libm-test-ulps: Update.
66817         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
66818
66819         [BZ #11451]
66820         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
66821         x and y.
66822         * math/libm-test.inc (atan2_test): Add another test.
66823
66824         * Makerules (common-objdir-compile): Remove.
66825         * sysdeps/unix/Makefile (config-generated): Do not add
66826         $(unix-generated) to variable.
66827         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
66828         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
66829         Remove rule.
66830         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
66831         Likewise.
66832         [generic bits/local_lim.h] (before-compile): Do not append to
66833         variable.
66834         [generic bits/local_lim.h] (common-generated): Likewise.
66835         [generic sys/param.h] (before-compile): Do not append to variable.
66836         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
66837         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
66838         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
66839         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
66840         include.
66841         [generic sys/param.h] (sys/param.h-includes): Remove variable.
66842         [generic sys/param.h] (sys/param.h-includes): Remove rule.
66843         [generic sys/param.h] ($(addprefix
66844         $(common-objpfx),$(sys/param.h-includes))): Likewise.
66845         [generic sys/param.h] (common-generated): Do not append to
66846         variable.
66847         [generic sys/param.h] (sysdep_headers): Likewise.
66848         [generic bits/errno.h] (before-compile): Do not append to
66849         variable.
66850         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
66851         rule.
66852         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
66853         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
66854         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
66855         [generic bits/errno.h] (common-generated): Do not append to
66856         variable.
66857         [generic bits/ioctls.h] (before-compile): Do not append to
66858         variable.
66859         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
66860         rule.
66861         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
66862         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
66863         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
66864         rule.
66865         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
66866         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
66867         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
66868         [generic bits/ioctls.h] (common-generated): Do not append to
66869         variable.
66870         [generic sys/syscall.h] (syscall.h): Remove variable.
66871         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
66872         rule.
66873         [generic sys/syscall.h] (before-compile): Do not append to
66874         variable.
66875         [generic sys/syscall.h] (common-generated): Likewise.
66876         * sysdeps/unix/errnos-tmpl.c: Remove file.
66877         * sysdeps/unix/errnos.awk: Likewise.
66878         * sysdeps/unix/ioctls-tmpl.c: Likewise.
66879         * sysdeps/unix/ioctls.awk: Likewise.
66880         * sysdeps/unix/mk-local_lim.c: Likewise.
66881         * sysdeps/unix/snarf-ioctls: Likewise.
66882
66883 2012-03-19  Richard Henderson  <rth@twiddle.net>
66884
66885         * sysdeps/i386/fpu/fenv_private.h: New file.
66886         * sysdeps/i386/fpu/math_private.h: Use it.
66887         (math_opt_barrier, math_force_eval): Remove.
66888         (libc_feholdexcept_setround_53bit): Remove.
66889         (libc_feupdateenv_53bit): Remove.
66890         * sysdeps/x86_64/fpu/math_private.h: Likewise.
66891         (math_opt_barrier, math_force_eval): Remove.
66892         (libc_feholdexcept): Remove.
66893         (libc_feholdexcept_setround): Remove.
66894         (libc_fetestexcept, libc_fesetenv): Remove.
66895         (libc_feupdateenv_test): Remove.
66896         (libc_feupdateenv, libc_feholdsetround): Remove.
66897         (libc_feresetround): Remove.
66898
66899         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
66900         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
66901
66902         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
66903         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
66904         (libc_feupdateenv_testl): New.
66905         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
66906         (libc_feupdateenv_testf): New.
66907         (libc_feupdateenv): Use libc_feupdateenv_test.
66908         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
66909         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
66910
66911         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
66912         (libc_feholdsetroundf, libc_feholdsetroundl): New.
66913         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
66914         (libc_feresetround_noex): New.
66915         (libc_feresetround_noexf): New.
66916         (libc_feresetround_noexl): New.
66917         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
66918         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
66919         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
66920         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
66921         SET_RESTORE_ROUND.
66922         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
66923         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
66924         (__cos): Likewise.
66925         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
66926         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
66927         SET_RESTORE_ROUND_NOEX.
66928         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
66929         SET_RESTORE_ROUND_NOEXF.
66930         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
66931         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
66932         (libc_feholdsetroundf): New.
66933         (libc_feresetround, libc_feresetroundf): New.
66934
66935         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
66936         (libc_feholdexcept_setround_53bit): Convert from macro to function.
66937         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
66938
66939         * sysdeps/generic/math_private.h: Include <fenv.h>.
66940         (default_libc_feholdexcept): New.
66941         (default_libc_feholdexcept_setround): New.
66942         (default_libc_fesetenv, default_libc_feupdateenv): New.
66943         (libc_feholdexcept): Only define if undefined.
66944         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
66945         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
66946         (libc_feholdexcept_setroundl): Likewise.
66947         (libc_feholdexcept_setround_53bit): Likewise.
66948         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
66949         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
66950         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
66951         (libc_feupdateenv_53bit): Likewise.
66952         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
66953         (libc_feholdexcept): Convert from macro to inline function.
66954         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
66955         (libc_fesetenv, libc_feupdateenv): Likewise.
66956
66957         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
66958         not previously defined.
66959         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
66960         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
66961         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
66962         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
66963         * sysdeps/ieee754/flt-32/math_private.h: New file.
66964         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
66965         math_private.h below SET_FLOAT_WORD.
66966         (__isnan, __isinf_ns, __finite): Remove.
66967         (__isnanf, __isinf_nsf, __finitef): Remove.
66968
66969 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
66970
66971         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
66972
66973 2012-03-17  David S. Miller  <davem@davemloft.net>
66974
66975         [BZ #6471]
66976         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
66977         for 2.16.
66978
66979 2012-03-16  David S. Miller  <davem@davemloft.net>
66980
66981         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
66982         warnings.
66983
66984         [BZ #6471]
66985         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
66986         properly.
66987         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
66988         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
66989         sysdep_routines when subdir is sysvipc.
66990         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
66991         __getshmlba helper.
66992
66993         * sysdeps/sparc/fpu/libm-test/ulps: Update.
66994
66995 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
66996
66997         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
66998         [__LP64__].
66999
67000 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67001
67002         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
67003         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
67004         (__lround): Renamed to ...
67005         (__llround): This.  Replace long int with long long int.
67006         Define lround functions as aliases of llround functions.
67007         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
67008
67009 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67010
67011         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
67012         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
67013         adresses to uintptr_t.  Replace "long int" and "unsigned long
67014         int" with "greg_t" on va_arg.
67015
67016 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67017
67018         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
67019         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
67020
67021         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
67022         Move e_machine check before EI_CLASS check.  Handle x32
67023         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
67024         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
67025         SKIP_EM_IA_64 and include
67026         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
67027
67028         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
67029         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
67030         (add_system_dir): New macro.
67031
67032         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
67033         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
67034
67035 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
67036
67037         [BZ #2551]
67038         [BZ #2552]
67039         [BZ #2553]
67040         [BZ #2554]
67041         [BZ #2562]
67042         [BZ #2563]
67043         [BZ #2565]
67044         [BZ #2566]
67045         [BZ #2576]
67046         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
67047         (y0): Likewise.
67048         * math/w_j0f.c (j0f): Likewise.
67049         (y0f): Likewise.
67050         * math/w_j0l.c (__j0l): Likewise.
67051         (__y0l): Likewise.
67052         * math/w_j1.c (j1): Likewise.
67053         (y1): Likewise.
67054         * math/w_j1f.c (j1f): Likewise.
67055         (y1f): Likewise.
67056         * math/w_j1l.c (__j1l): Likewise.
67057         (__y1l): Likewise.
67058         * math/w_jn.c (jn): Likewise.
67059         (yn): Likewise.
67060         * math/w_jnf.c (jnf): Likewise.
67061         (ynf): Likewise.
67062         * math/w_jnl.c (__jnl): Likewise.
67063         (__ynl): Likewise.
67064         * math/libm-test.inc (j0_test): Add more tests.
67065         (j1_test): Likewise.
67066         (jn_test): Likewise.  Add trailing semicolon to existing test.
67067         (y0_test): Likewise.
67068         (y1_test): Likewise.
67069         * sysdeps/i386/fpu/libm-test-ulps: Update.
67070         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67071
67072         [BZ #13851]
67073         [BZ #13854]
67074         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
67075         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
67076         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
67077         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
67078         (__tanl): Set errno for infinite argument.
67079         * sysdeps/i386/fpu/mptan.c: Remove.
67080         * sysdeps/i386/fpu/s_tan.S: Likewise.
67081         * sysdeps/i386/fpu/s_tanl.S: Likewise.
67082         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
67083         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
67084         * math/libm-test.inc (tan_test): Add more tests and enable more
67085         tests for double and long double.
67086         * sysdeps/i386/fpu/libm-test-ulps: Update.
67087         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67088
67089 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
67090
67091         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
67092         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
67093
67094 2012-03-16  Roland McGrath  <roland@hack.frob.com>
67095
67096         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
67097         * configure.in: Use it for both main tree and add-ons.
67098         * configure: Regenerated.
67099
67100 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
67101
67102         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
67103
67104 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
67105
67106         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
67107         in comment.
67108
67109         [BZ #13851]
67110         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
67111         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
67112         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
67113         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
67114         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
67115         infinite argument.
67116         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
67117         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
67118         != 0 for prec == 2.
67119         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
67120         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
67121         * sysdeps/i386/fpu/s_cosl.S: Likewise.
67122         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
67123         * sysdeps/i386/fpu/s_sinl.S: Likewise.
67124         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
67125         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
67126         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
67127         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
67128         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
67129         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
67130         * math/libm-test.inc (cos_test): Add more tests and enable more
67131         tests for long double.
67132         (sin_test): Likewise.
67133         (sincos_test): Likewise.
67134         * sysdeps/i386/fpu/libm-test-ulps: Update.
67135         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67136
67137 2012-03-16  David S. Miller  <davem@davemloft.net>
67138
67139         * sysdeps/sparc/fpu/math_private.h: New file.
67140
67141 2012-03-15  David S. Miller  <davem@davemloft.net>
67142
67143         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
67144         file.
67145         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
67146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
67147         file.
67148         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
67149         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
67150         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
67151         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
67152         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
67153         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
67154         sysdep routines.
67155         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
67156
67157         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
67158         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
67159
67160         * sysdeps/sparc/sparc-ifunc.h: New file.
67161         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
67162         sparc-ifunc.h
67163         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
67164         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
67165         Likewise.
67166         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
67167         Likewise.
67168         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
67169         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
67170         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
67171         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
67172         Likewise.
67173         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
67174         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
67175         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
67176         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
67177         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
67178         Likewise.
67179         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
67180         Likewise.
67181         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
67182         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
67183         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
67184         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
67185         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
67186         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
67187         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
67188         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
67189         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
67190         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
67191         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
67192         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
67193         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
67194         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
67195         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
67196         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
67197         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
67198         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
67199         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
67200         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
67201         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
67202         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
67203         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
67204         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
67205
67206 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
67207
67208         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
67209         scaling.
67210         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67211
67212 2012-03-15  Andreas Jaeger  <aj@suse.de>
67213
67214         [BZ #13852]
67215         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
67216         ieee754/flt-32 implementation for sin, cos and sincos.
67217         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
67218         * sysdeps/i386/fpu/s_cosf.S: Likewise.
67219         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
67220         * sysdeps/i386/fpu/s_sinf.S: Likewise.
67221         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
67222         ieee754/flt-32 implementation for tan.
67223
67224         * math/libm-test.inc (cos_test): Enable some large input tests for
67225         float as well
67226         (sin_test): Likewise.
67227         (sincos_test): Likewise.
67228         (tan_test): Add tests for large input.
67229
67230         * sysdeps/i386/fpu/libm-test-ulps: Update.
67231
67232 2012-03-15  Andreas Jaeger  <aj@suse.de>
67233
67234         [BZ #13658]
67235         * math/libm-test.inc (cos_test): Add more test cases.
67236         (sin_test): Likewise.
67237         (sincos_test): Likewise.
67238
67239 2012-03-15  Andreas Jaeger  <aj@suse.de>
67240
67241         [BZ #13837]
67242         * math/libm-test.inc (cos_test): Add a test case for large input
67243         value.
67244         (sin_test): Likewise.
67245         (sincos_test): Likewise.
67246
67247 2012-03-15  Andreas Jaeger  <aj@suse.de>
67248             Joseph Myers  <joseph@codesourcery.com>
67249
67250         [BZ #13658]
67251         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
67252         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
67253         * sysdeps/i386/fpu/branred.c: Likewise.
67254         * sysdeps/i386/fpu/dosincos.c: Likewise.
67255         * sysdeps/i386/fpu/mpa.c: Likewise.
67256         * sysdeps/i386/fpu/s_cos.S: Likewise.
67257         * sysdeps/i386/fpu/s_sin.S: Likewise.
67258         * sysdeps/i386/fpu/s_sincos.S: Likewise.
67259         * sysdeps/i386/fpu/sincos32.c: Likewise.
67260
67261         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
67262         Define.
67263         (libc_feupdateenv_53bit): Define.
67264         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
67265         Define.
67266         (libc_feupdateenv_53bit): Define.
67267
67268         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
67269         53 bit (without extend i386 double precision).
67270
67271         * math/libm-test.inc (sincos_test): Add tests for large input.
67272         (sin): Likewise.
67273         (cos): Likewise.
67274
67275         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
67276
67277 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
67278
67279         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67280
67281 2012-03-15  David S. Miller  <davem@davemloft.net>
67282
67283         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
67284         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
67285         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
67286         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
67287         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
67288         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
67289         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
67290         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
67291         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
67292         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
67293         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
67294         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
67295         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
67296         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
67297         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
67298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
67299         file.
67300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
67301         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
67302         file.
67303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
67304         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
67305         file.
67306         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
67307         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
67308         file.
67309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
67310         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
67311         fmin/fmax sysdep routines.
67312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
67313
67314 2012-03-14  David S. Miller  <davem@davemloft.net>
67315
67316         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
67317         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
67318         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
67319         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
67320         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
67321         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
67322         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
67323         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
67324         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
67325         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
67326         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
67327         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
67328         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
67329         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
67330         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
67331         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
67332         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
67333         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
67334         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
67335         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
67336         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
67337         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
67338         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
67339         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
67340         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
67341         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
67342         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
67343         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
67344         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
67345         routines.
67346         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
67347         file.
67348         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
67349         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
67350         file.
67351         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
67352         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
67353         file.
67354         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
67355         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
67356         file.
67357         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
67358         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
67359         file.
67360         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
67361         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
67362         file.
67363         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
67364         file.
67365         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
67366         file.
67367         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
67368         file.
67369         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
67370         New file.
67371         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
67372         file.
67373         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
67374         file.
67375         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
67376         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
67377         file.
67378         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
67379         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
67380         file.
67381         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
67382         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
67383         file.
67384         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
67385         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
67386         VIS3 routines.
67387
67388         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
67389         New file.
67390
67391         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67392
67393         * sysdeps/sparc/configure.in: New file.
67394         * sysdeps/sparc/configure: Generate.
67395         * configure.in (libc_cv_sparc_as_vis3): Substitute.
67396         * configure: Regenerate.
67397         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
67398         * config.make.in (have-as-vis3): New.
67399         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
67400         available use -Av9d instead of -Av9a.
67401         * sysdeps/sparc/sparc64/Makefile: Likewise.
67402         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
67403         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
67404         New file.
67405         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
67406         file.
67407         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
67408         New file.
67409         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
67410         file.
67411         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
67412         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
67413         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
67414         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
67415         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
67416
67417         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
67418         fzeros/fnegs to load 0x80000000 into a float register instead of
67419         using the stack.
67420         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
67421
67422 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
67423
67424         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67425         bits/syscall.h.
67426         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
67427         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
67428         ($(inst_includedir)/bits/syscall.h): Remove rule.
67429         ($(objpfx)bits/syscall.d): Include instead of
67430         $(objpfx)syscall-list.d.
67431         (generated): Change syscall-list.h and syscall-list.d to
67432         bits/syscall.h and bits/syscall.d.
67433
67434 2012-03-14  Roland McGrath  <roland@hack.frob.com>
67435
67436         [BZ #13846]
67437         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
67438
67439 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
67440
67441         [BZ #13841]
67442         * math/s_csqrt.c: Include <float.h>.
67443         (__csqrt): Scale large or subnormal inputs.
67444         * math/s_csqrtf.c: Likewise.
67445         * math/s_csqrtl.c: Likewise.
67446         * math/libm-test.inc (csqrt_test): Add more tests.
67447         * sysdeps/i386/fpu/libm-test-ulps: Update.
67448         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
67449
67450         [BZ #13840]
67451         * math/libm-test.inc (hypot_test): Add more tests.
67452
67453 2012-03-13  David S. Miller  <davem@davemloft.net>
67454
67455         [BZ #13840]
67456         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
67457         double-precision for the calculation instead of scaling.
67458
67459 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
67460
67461         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
67462         manipulate bits before adding and subtracting TWO52[sx].
67463         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
67464         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
67465         Likewise.
67466         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
67467
67468 2012-03-13  David S. Miller  <davem@davemloft.net>
67469
67470         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
67471         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
67472         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
67473         rtld-global-offsets.h
67474         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
67475
67476         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
67477         large parameters.
67478
67479         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
67480
67481         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
67482         'err' in the ifdef scope in which it is actually used.
67483
67484         * nss/nss_db/db-init.c: Include string.h
67485
67486 2012-03-12  David S. Miller  <davem@davemloft.net>
67487
67488         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
67489         masking out of the most significant byte of random value used.
67490         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67491         Fix coding style in previous change.
67492
67493         * sysdeps/unix/sysv/linux/kernel-features.h
67494         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
67495         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
67496         expression.
67497         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
67498         later.
67499
67500 2012-03-11  David S. Miller  <davem@davemloft.net>
67501
67502         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
67503         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
67504         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
67505         for 'resultvar' otherwise things get truncated on 64-bit.
67506
67507         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
67508         Fix masking out of the most significant byte of random value used.
67509
67510         * sysdeps/sparc/fpu/libm-test-ulps: Update.
67511
67512 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
67513
67514         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
67515
67516 2012-03-09  David S. Miller  <davem@davemloft.net>
67517
67518         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
67519         variables with appropriate CPP guards.
67520         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
67521         from the frame pointer, not the stack pointer.  Correct layout
67522         comments.  Fix test on resulting framesize and the management of
67523         the outregs buffer for pltexit.  Preserve floating point return
67524         values across _dl_call_pltexit call.
67525         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
67526         framesize and the management of the outregs buffer for pltexit.
67527         Preserve floating point return values across _dl_call_pltexit
67528         call.
67529         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
67530         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
67531         (la_sparc64_gnu_pltexit): New functions.
67532         (print_exit): Fix format string for return register value.
67533
67534 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
67535
67536         * sunrpc/Makefile (others): Add rpcgen.
67537         ($(objpfx)rpcgen): Remove special build rule and dependency on
67538         libc.
67539         * sunrpc/rpcgen.c: New file.
67540
67541 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67542
67543         [BZ #13673]
67544         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
67545         * stdio-common/bug-vfprintf-nargs.c: Likewise.
67546         * sysdeps/i386/crti.S: Likewise.
67547         * sysdeps/i386/crtn.S: Likewise.
67548         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
67549         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
67550         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
67551         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
67552         * sysdeps/sh/crti.S: Likewise.
67553         * sysdeps/sh/crtn.S: Likewise.
67554         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
67555
67556         [BZ #13673]
67557         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
67558         with URL.
67559         * locale/programs/locfile-kw.gperf: Likewise.
67560         * locale/programs/charmap-kw.h: Regenerated.
67561         * locale/programs/locfile-kw.h: Likewise.
67562
67563         [BZ #13673]
67564         * intl/plural.y: Replace FSF snail mail address with URL.
67565         * intl/plural.c: Regenerated.
67566
67567 2012-03-09  Richard Henderson  <rth@twiddle.net>
67568
67569         * include/math_private.h: Remove file.
67570         * math/math_private.h: Move file ...
67571         * sysdeps/generic/math_private.h: ... here.
67572
67573         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
67574         * sysdeps/powerpc/fpu/math_private.h: Likewise.
67575         * sysdeps/x86_64/fpu/math_private.h: Likewise.
67576
67577         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
67578         and <math_private.h>.
67579         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
67580         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
67581         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
67582         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
67583         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
67584         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
67585         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
67586         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
67587         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
67588         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
67589         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
67590         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
67591         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
67592         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
67593         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
67594         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
67595         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
67596         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
67597         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
67598         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
67599         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
67600         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
67601         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
67602         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
67603         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
67604         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
67605         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
67606         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
67607         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
67608         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
67609         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
67610         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
67611         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
67612         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
67613         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
67614         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
67615         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
67616         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
67617         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
67618         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
67619         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
67620         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
67621         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
67622         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
67623         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
67624         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
67625         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
67626         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
67627         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
67628         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
67629         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
67630         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
67631         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
67632         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
67633         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
67634         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
67635         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
67636         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
67637         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
67638         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
67639         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
67640         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
67641         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
67642         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
67643         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
67644         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
67645         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
67646         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
67647         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
67648         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
67649         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
67650         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
67651         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
67652         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
67653         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
67654         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
67655         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
67656         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
67657         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
67658         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
67659         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
67660         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
67661         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
67662         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
67663         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
67664         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
67665         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
67666         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
67667         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
67668         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
67669         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
67670         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
67671         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
67672         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
67673         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
67674         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
67675         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
67676         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
67677         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
67678         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
67679         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
67680         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
67681         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
67682         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
67683         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
67684         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
67685         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
67686         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
67687         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
67688         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
67689         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
67690         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
67691         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
67692         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
67693         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
67694         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
67695         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
67696         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
67697         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
67698         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
67699         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
67700         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
67701         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
67702         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
67703         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
67704         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
67705         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
67706         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
67707         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
67708         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
67709         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
67710         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
67711         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
67712         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
67713         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
67714         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
67715         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
67716         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
67717         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
67718         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
67719         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
67720         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
67721         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
67722         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
67723         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
67724         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
67725         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
67726         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
67727         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
67728         * sysdeps/ieee754/k_standard.c: Likewise.
67729         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
67730         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
67731         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
67732         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
67733         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
67734         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
67735         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
67736         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
67737         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
67738         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
67739         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
67740         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
67741         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
67742         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
67743         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
67744         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
67745         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
67746         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
67747         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
67748         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
67749         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
67750         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
67751         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
67752         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
67753         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
67754         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
67755         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
67756         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
67757         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
67758         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
67759         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
67760         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
67761         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
67762         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
67763         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
67764         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
67765         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
67766         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
67767         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
67768         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
67769         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
67770         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
67771         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
67772         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
67773         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
67774         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
67775         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
67776         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
67777         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
67778         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
67779         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
67780         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
67781         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
67782         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
67783         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
67784         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
67785         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
67786         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
67787         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
67788         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
67789         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
67790         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
67791         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
67792         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
67793         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
67794         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
67795         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
67796         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
67797         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
67798         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
67799         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
67800         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
67801         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
67802         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
67803         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
67804         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
67805         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
67806         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
67807         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
67808         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
67809         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
67810         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
67811         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
67812         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
67813         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
67814         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
67815         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
67816         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
67817         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
67818         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
67819         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
67820         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
67821         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
67822         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
67823         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
67824         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
67825         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
67826         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
67827         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
67828         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
67829         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
67830         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
67831         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
67832         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
67833         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
67834         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
67835         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
67836         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
67837         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
67838         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
67839         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
67840         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
67841         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
67842         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
67843         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
67844         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
67845         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
67846         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
67847         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
67848         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
67849         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
67850         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
67851         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
67852         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
67853         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
67854         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
67855         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
67856         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
67857         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
67858         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
67859         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
67860         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
67861         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
67862         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
67863         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
67864         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
67865         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
67866         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
67867         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
67868         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
67869         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
67870         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
67871         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
67872         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
67873         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
67874         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
67875         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
67876         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
67877         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
67878         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
67879         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
67880         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
67881         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
67882         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
67883         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
67884         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
67885         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
67886         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
67887         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
67888         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
67889         * sysdeps/ieee754/s_lib_version.c: Likewise.
67890         * sysdeps/ieee754/s_matherr.c: Likewise.
67891         * sysdeps/ieee754/s_signgam.c: Likewise.
67892         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
67893         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
67894         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
67895         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
67896         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
67897         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
67898         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
67899         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
67900         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
67901         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
67902         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
67903         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
67904         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
67905         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
67906         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
67907         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
67908         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
67909         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
67910         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
67911         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
67912         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
67913
67914 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67915
67916         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
67917         * sunrpc/rpc_main.c: Likewise.
67918         * sunrpc/rpc_svcout.c: Likewise.
67919
67920 2012-03-09  David S. Miller  <davem@davemloft.net>
67921
67922         * include/math_private.h: New file.
67923
67924 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
67925
67926         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
67927         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
67928         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
67929         from <bits/socket_type.h>.
67930         (enum __socket_type): Don't define here.
67931         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
67932         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
67933         bits/socket_type.h.
67934
67935         [BZ #13566]
67936         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
67937         checking __USE_GNU.
67938
67939         * Makerules ($(inst_includedir)/%.h): New rule.
67940         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
67941         (install-others): Remove variable setting.
67942         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
67943
67944 2012-03-08  Richard Henderson  <rth@twiddle.net>
67945
67946         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
67947         from macro to inline function; merge with the
67948         !__LIBC_INTERNAL_MATH_INLINES version.
67949         (__ieee754_sqrtf): Likewise.
67950
67951         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
67952         to inline function.
67953         (__rintf, __floor, __floorf): Likewise.
67954
67955         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
67956         macro to inline function.
67957         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
67958
67959         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
67960         not <math/math_private.h>.
67961
67962 2012-03-08  David S. Miller  <davem@davemloft.net>
67963
67964         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
67965         copyright year.
67966         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
67967
67968 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
67969
67970         * resolv/gai_misc.c (handle_requests): Fix struct timespec
67971         normalization.
67972         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
67973         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
67974
67975 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
67976
67977         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
67978         be defined individually, they must be defined as a block.  Define
67979         S for printing a string instead of hidint the different by using a
67980         macro for adding the 'l'.
67981         * stdio-common/tst-fphex-wide.c: Adjust.
67982
67983 2012-03-07  Marek Polacek  <polacek@redhat.com>
67984
67985         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
67986
67987 2012-03-08  Marek Polacek  <polacek@redhat.com>
67988
67989         [BZ #13806]
67990         * stdio-common/Makefile (tests): Add tst-fphex-wide.
67991         * stdio-common/tst-fphex.c: Define a few macros to make the
67992         test reusable.  Use them.
67993         * stdio-common/tst-fphex-wide.c: New file.
67994
67995 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
67996
67997         [BZ #6911]
67998         * manual/macros.texi (gnusystems): New macro.
67999         (nongnusystems): Likewise.
68000         (gnulinuxhurdsystems): Likewise.
68001         (gnuhurdsystems): Likewise..
68002         (gnulinuxsystems): Likewise.
68003         * manual/charset.texi: Use new macros or @theglibc{} to refer to
68004         variants of the GNU system, not "GNU system".
68005         * manual/conf.texi: Likewise.
68006         * manual/errno.texi: Likewise.  Update example of errno macro
68007         expansion.
68008         * manual/filesys.texi: Likewise.
68009         (getumask): Document as specific to GNU/Hurd.
68010         * manual/install.texi: Likewise.  Reword some references to
68011         GNU/Linux.
68012         * manual/intro.texi: Likewise.
68013         * manual/io.texi: Likewise.
68014         (File Name Portability): Detail which constraints are inapplicable
68015         to all GNU systems and which are only inapplicable to GNU/Hurd.
68016         * manual/job.texi: Likewise.
68017         * manual/llio.texi: Likewise.
68018         (O_NOCTTY): Document as present on GNU/Linux.
68019         * manual/maint.texi: Likewise.
68020         * manual/memory.texi: Likewise.
68021         * manual/pattern.texi: Likewise.
68022         * manual/pipe.texi: Likewise.
68023         * manual/process.texi: Likewise.
68024         * manual/resource.texi: Likewise.
68025         (RUSAGE_CHILDREN): Remove statement about specifying a particular
68026         child on GNU/Hurd.
68027         * manual/setjmp.texi: Likewise.
68028         * manual/signal.texi: Likewise.
68029         * manual/startup.texi: Likewise.
68030         * manual/stdio.texi: Likewise.
68031         * manual/terminal.texi: Likewise.
68032         (ONLCR): Document as POSIX.
68033         (OXTABS): Document availability on GNU/Linux as XTABS.
68034         (ONOEOT): Document availability separately from other bits.
68035         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
68036         * manual/time.texi: Likewise.
68037         * manual/users.texi: Likewise.
68038         * INSTALL: Regenerated.
68039         * sysdeps/gnu/errlist.c: Regenerated.
68040
68041         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
68042         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
68043         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
68044         puts.
68045         * configure: Regenerated.
68046
68047 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
68048
68049         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
68050         default includes instead of AC_HEADER_CHECK.
68051         * sysdeps/i386/configure: Regenerated.
68052
68053         [BZ #10716]
68054         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
68055         * math/s_cacoshf.c (__cacoshf): Likewise.
68056         * math/s_cacoshl.c (__cacoshl): Likewise.
68057         * math/s_casinh.c (__casinh): Set signs of result from argument.
68058         * math/s_casinhf.c (__casinhf): Likewise.
68059         * math/s_casinhl.c (__casinhl): Likewise.
68060         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
68061         (casinh_test): Add more tests.
68062         * sysdeps/i386/fpu/libm-test-ulps: Update.
68063         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68064
68065 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
68066
68067         * po/zh_TW.po: Update from translation team.
68068
68069         * login/Makefile (distribute): Remove variable.
68070         * catgets/Makefile: Likewise.
68071         * mach/Makefile: Likewise.
68072         * malloc/Makefile: Likewise.
68073         * misc/Makefile: Likewise.
68074         * iconv/Makefile: Likewise.
68075         * nscd/Makefile: Likewise.
68076         * hurd/Makefile: Likewise.
68077         * manual/Makefile: Likewise.
68078         * locale/Makefile: Likewise.
68079         * intl/Makefile: Likewise.
68080         * conform/Makefile: Likewise.
68081         * nss/Makefile: Likewise.
68082         * time/Makefile: Likewise.
68083         * soft-fp/Makefile: Likewise.
68084         * dirent/Makefile: Likewise.
68085         * gmon/Makefile: Likewise.
68086         * po/Makefile: Likewise.
68087         * rt/Makefile: Likewise.
68088         * socket/Makefile: Likewise.
68089         * math/Makefile: Likewise.
68090         * signal/Makefile: Likewise.
68091         * debug/Makefile: Likewise.
68092         * elf/Makefile: Likewise.
68093         * timezone/Makefile: Likewise.
68094         * stdlib/Makefile: Likewise.
68095         * iconvdata/Makefile: Likewise.
68096         * sunrpc/Makefile: Likewise.
68097         * io/Makefile: Likewise.
68098         * argp/Makefile: Likewise.
68099         * inet/Makefile: Likewise.
68100         * hesiod/Makefile: Likewise.
68101         * grp/Makefile: Likewise.
68102         * csu/Makefile: Likewise.
68103         * wctype/Makefile: Likewise.
68104         * crypt/Makefile: Likewise.
68105         * libio/Makefile: Likewise.
68106         * string/Makefile: Likewise.
68107         * nis/Makefile: Likewise.
68108         * resolv/Makefile: Likewise.
68109         * stdio-common/Makefile: Likewise.
68110         * wcsmbs/Makefile: Likewise.
68111         * dlfcn/Makefile: Likewise.
68112         * posix/Makefile: Likewise.
68113
68114         [BZ #6959]
68115         * timezone/Makefile: Don't install timezone files, just the programs
68116         and scripts.
68117
68118 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
68119
68120         * nss/databases.def: Add missing gshadow entry.
68121
68122         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
68123
68124 2012-03-06  Marek Polacek  <polacek@redhat.com>
68125
68126         [BZ #13726]
68127         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
68128         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
68129         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
68130         * stdio-common/tst-long-dbl-fphex.c: New file.
68131
68132 2012-03-06  David S. Miller  <davem@davemloft.net>
68133
68134         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
68135         (set_obp_int): New function.
68136         (get_obp_int): New function.
68137         (__get_clockfreq_via_dev_openprom): Likewise.
68138         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
68139         Avoid unused variable warnings on 'val' and use builtin_expect.
68140         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
68141         __builtin_expect.
68142         (INLINE_CLONE_SYSCALL): Likewise.
68143
68144 2012-03-05  David S. Miller  <davem@davemloft.net>
68145
68146         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68147
68148 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
68149
68150         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68151
68152         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
68153         only for |x| >= 40.
68154         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
68155
68156 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
68157
68158         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
68159         Replace gettimeofday with __vdso_gettimeofday.
68160
68161         * sysdeps/unix/sysv/linux/x86_64/init-first.c
68162         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
68163         __vdso_clock_gettime and __vdso_getcpu.
68164
68165         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
68166         time with __vdso_time.
68167
68168 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
68169
68170         * manual/lang.texi (size_t): Note types to which size_t may be
68171         equivalent with the GNU C Library, but do not describe when
68172         differences between them are significant.
68173
68174 2012-03-05  Andreas Jaeger  <aj@suse.de>
68175
68176         * sysdeps/i386/fpu/libm-test-ulps: Update.
68177
68178 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
68179
68180         [BZ #3976]
68181         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
68182         (__ieee754_pow): Save and restore rounding mode and use
68183         round-to-nearest for main computations.
68184         * math/libm-test.inc (pow_test_tonearest): New function.
68185         (pow_test_towardzero): Likewise.
68186         (pow_test_downward): Likewise.
68187         (pow_test_upward): Likewise.
68188         (main): Call the new functions.
68189         * sysdeps/i386/fpu/libm-test-ulps: Update.
68190         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68191
68192         [BZ #3976]
68193         * math/libm-test.inc (cosh_test_tonearest): New function.
68194         (cosh_test_towardzero): Likewise.
68195         (cosh_test_downward): Likewise.
68196         (cosh_test_upward): Likewise.
68197         (sinh_test_tonearest): Likewise.
68198         (sinh_test_towardzero): Likewise.
68199         (sinh_test_downward): Likewise.
68200         (sinh_test_upward): Likewise.
68201         (main): Call the new functions.
68202         * sysdeps/i386/fpu/libm-test-ulps: Update.
68203         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68204
68205 2012-03-05  Tom de Vries  <tom@codesourcery.com>
68206
68207         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
68208         default stack guard is set in last bytes.
68209         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
68210
68211 2012-03-05  Kees Cook  <keescook@chromium.org>
68212
68213         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
68214
68215         [BZ #13656]
68216         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
68217         possibly allocate from heap instead of stack.
68218         * stdio-common/bug-vfprintf-nargs.c: New file.
68219         * stdio-common/Makefile (tests): Add nargs overflow test.
68220
68221 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
68222
68223         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
68224
68225 2012-03-03  Marek Polacek  <polacek@redhat.com>
68226
68227         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
68228         * math/math_private.h: Likewise.
68229         * stdlib/tst-strtod.c: Likewise.
68230         * sysdeps/i386/i486/bits/atomic.h: Likewise.
68231         * sysdeps/x86_64/bits/atomic.h: Likewise.
68232
68233 2012-03-02  David S. Miller  <davem@davemloft.net>
68234
68235         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
68236         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
68237         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
68238         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
68239         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
68240         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
68241         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
68242         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
68243
68244 2012-03-02  Roland McGrath  <roland@hack.frob.com>
68245
68246         [BZ #13792]
68247         * manual/examples/README: New file, says the example source files
68248         can be used under GPL>=2.
68249         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
68250         line containing just "*/".
68251         * manual/examples/add.c: Add copyright header (GPL>=2).
68252         * manual/examples/argp-ex1.c: Likewise.
68253         * manual/examples/argp-ex2.c: Likewise.
68254         * manual/examples/argp-ex3.c: Likewise.
68255         * manual/examples/argp-ex4.c: Likewise.
68256         * manual/examples/atexit.c: Likewise.
68257         * manual/examples/db.c: Likewise.
68258         * manual/examples/dir.c: Likewise.
68259         * manual/examples/dir2.c: Likewise.
68260         * manual/examples/execinfo.c: Likewise.
68261         * manual/examples/filecli.c: Likewise.
68262         * manual/examples/filesrv.c: Likewise.
68263         * manual/examples/fmtmsgexpl.c: Likewise.
68264         * manual/examples/genpass.c: Likewise.
68265         * manual/examples/inetcli.c: Likewise.
68266         * manual/examples/inetsrv.c: Likewise.
68267         * manual/examples/isockad.c: Likewise.
68268         * manual/examples/longopt.c: Likewise.
68269         * manual/examples/memopen.c: Likewise.
68270         * manual/examples/memstrm.c: Likewise.
68271         * manual/examples/mkfsock.c: Likewise.
68272         * manual/examples/mkisock.c: Likewise.
68273         * manual/examples/mygetpass.c: Likewise.
68274         * manual/examples/pipe.c: Likewise.
68275         * manual/examples/popen.c: Likewise.
68276         * manual/examples/rprintf.c: Likewise.
68277         * manual/examples/search.c: Likewise.
68278         * manual/examples/select.c: Likewise.
68279         * manual/examples/setjmp.c: Likewise.
68280         * manual/examples/sigh1.c: Likewise.
68281         * manual/examples/sigusr.c: Likewise.
68282         * manual/examples/stpcpy.c: Likewise.
68283         * manual/examples/strdupa.c: Likewise.
68284         * manual/examples/strftim.c: Likewise.
68285         * manual/examples/strncat.c: Likewise.
68286         * manual/examples/subopt.c: Likewise.
68287         * manual/examples/swapcontext.c: Likewise.
68288         * manual/examples/termios.c: Likewise.
68289         * manual/examples/testopt.c: Likewise.
68290         * manual/examples/testpass.c: Likewise.
68291         * manual/examples/timeval_subtract.c: Likewise.
68292
68293         [BZ #13792]
68294         * manual/time.texi (Elapsed Time): Move timeval_subtract example
68295         function to ...
68296         * manual/timeval_subtract.c.texi: ... here, new file.
68297
68298 2012-03-02  David S. Miller  <davem@davemloft.net>
68299
68300         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
68301
68302 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
68303
68304         [BZ #3976]
68305         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
68306         (__sin): Save and restore rounding mode and use round-to-nearest
68307         for all computations.
68308         (__cos): Save and restore rounding mode and use round-to-nearest
68309         for all computations.
68310         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
68311         <fenv.h>.
68312         (tan): Save and restore rounding mode and use round-to-nearest for
68313         all computations.
68314         * math/libm-test.inc (cos_test_tonearest): New function.
68315         (cos_test_towardzero): Likewise.
68316         (cos_test_downward): Likewise.
68317         (cos_test_upward): Likewise.
68318         (sin_test_tonearest): Likewise.
68319         (sin_test_towardzero): Likewise.
68320         (sin_test_downward): Likewise.
68321         (sin_test_upward): Likewise.
68322         (tan_test_tonearest): Likewise.
68323         (tan_test_towardzero): Likewise.
68324         (tan_test_downward): Likewise.
68325         (tan_test_upward): Likewise.
68326         (main): Call the new functions.
68327         * sysdeps/i386/fpu/libm-test-ulps: Update.
68328         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68329
68330         [BZ #10135]
68331         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
68332         small n, then large n, before computing and testing k+n.
68333         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
68334         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
68335         Likewise.
68336         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
68337         Likewise.
68338         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
68339         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
68340         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
68341         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
68342         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
68343         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
68344         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
68345         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
68346         * math/libm-test.inc (scalbn_test): Add more tests.
68347         (scalbln_test): Likewise.
68348
68349         * manual/filesys.texi (mode_t): Describe constraints on size and
68350         signedness, not exact equivalence to a particular type.
68351         (ino_t): Likewise.
68352         (ino64_t): Likewise.
68353         (dev_t): Likewise.
68354         (nlink_t): Likewise.
68355         (blkcnt_t): Likewise.
68356         (blkcnt64_t): Likewise.
68357         * manual/llio.texi (off_t): Likewise.
68358
68359         [BZ #3976]
68360         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
68361         (__ieee754_exp): Save and restore rounding mode and use
68362         round-to-nearest for all computations.
68363         * math/libm-test.inc (exp_test_tonearest): New function.
68364         (exp_test_towardzero): Likewise.
68365         (exp_test_downward): Likewise.
68366         (exp_test_upward): Likewise.
68367         (main): Call the new functions.
68368         * sysdeps/i386/fpu/libm-test-ulps: Update.
68369         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68370
68371 2012-03-01  Chris Demetriou  <cgd@google.com>
68372
68373         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
68374         have predictable order.
68375
68376 2012-03-01  David S. Miller  <davem@davemloft.net>
68377
68378         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
68379
68380         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
68381         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
68382         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
68383         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
68384
68385         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
68386         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
68387         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
68388         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
68389         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
68390         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
68391         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
68392         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
68393         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
68394
68395         * sysdeps/sparc/fpu/libm-test-ulps: Update.
68396
68397         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
68398         * sysdeps/sparc/fpu/libm-test-ulps: to here.
68399         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
68400
68401         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
68402         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
68403         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
68404         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
68405         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
68406         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
68407         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
68408         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
68409         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
68410         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
68411         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
68412         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68413         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
68414         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
68415         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
68416         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
68417         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
68418         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
68419         * sysdeps/sparc/elf/configure: Regenerated.
68420
68421 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
68422
68423         * configure.in (AS, LD): Require binutils 2.20 or later.
68424         * configure: Regenerated.
68425         * manual/install.texi (Tools for Compilation): Give binutils 2.20
68426         as required minimum version.
68427         * INSTALL: Regenerated.
68428
68429         [BZ #2541]
68430         [BZ #4108]
68431         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
68432         before squaring exponent.
68433         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
68434         bottom long double and 27 bits of top long double before squaring
68435         exponent.
68436         * math/libm-test.inc (erfc_test): Add more tests.
68437         * sysdeps/i386/fpu/libm-test-ulps: Update.
68438         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
68439         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68440
68441 2012-03-01  Kai Tietz  <ktietz@redhat.com>
68442
68443         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
68444         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
68445         containing bit-fields.
68446         * soft-fp/extended.h (_FP_UNION_E): Likewise.
68447         * soft-fp/single.h (_FP_UNION_S): Likewise.
68448         * soft-fp/double.h (_FP_UNION_D): Likewise.
68449
68450 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68451
68452         [BZ #13786]
68453         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
68454         not include ../strcmp.S.
68455         [USE_AS_STRNCASECMP_L]: Likewise.
68456         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
68457         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
68458         * sysdeps/i386/i686/multiarch/strncase_l-c.c
68459         (__strncasecmp_l_ia32): Define as alias to
68460         __strncasecmp_l_nonascii.
68461
68462         [BZ #5794]
68463         * math/libm-test.inc (expm1_test): Add test for bug 5794.
68464         * sysdeps/i386/fpu/libm-test-ulps: Update.
68465         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68466
68467         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
68468         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
68469
68470 2012-02-29  Jeff Law  <law@redhat.com>
68471
68472         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
68473         out of bounds read.
68474
68475 2012-02-29  Marek Polacek  <polacek@redhat.com>
68476
68477         [BZ #13706]
68478         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
68479         * elf/Makefile: Add rules to run tst-unused-dep.out.
68480
68481 2012-02-28  David S. Miller  <davem@davemloft.net>
68482
68483         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
68484         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
68485         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
68486         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
68487         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
68488         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
68489
68490 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
68491
68492         * math/libm-test.inc (llround_test): Move one test from
68493         lround_test.  Use TEST_f_L in moved test.
68494         (lround_test): Move misplaced test to llround_test.  Add testcase
68495         from bug 2561.
68496
68497 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
68498
68499         * sysdeps/x86_64/fpu/e_expf.S: New file.
68500         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
68501
68502 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
68503
68504         [BZ #13637]
68505         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
68506         of remain_len that may cause incomplete multi-byte character and
68507         false match.
68508         * posix/bug-regex33.c: New file.
68509         * posix/Makefile (tests): Add bug-regex33.
68510
68511 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
68512
68513         * manual/macros.texi: New file.
68514         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
68515         * manual/libc.texinfo: Include macros.texi.
68516         * manual/creatute.texi: Likewise.
68517         * manual/install.texi: Likewise.
68518         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
68519         @glibcadj{} in references to the GNU C Library.
68520         * manual/charset.texi: Likewise.
68521         * manual/conf.texi: Likewise.
68522         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
68523         when not using those macros.
68524         * manual/creature.texi: Likewise.
68525         * manual/crypt.texi: Likewise.
68526         * manual/errno.texi: Likewise.
68527         * manual/filesys.texi: Likewise.
68528         * manual/header.texi: Likewise.
68529         * manual/install.texi: Likewise.
68530         * manual/intro.texi: Likewise.
68531         * manual/io.texi: Likewise.
68532         * manual/job.texi: Likewise.
68533         * manual/lang.texi: Likewise.
68534         * manual/libc.texiinfo: Likewise.
68535         * manual/llio.texi: Likewise.
68536         * manual/locale.texi: Likewise.
68537         * manual/maint.texi: Likewise.
68538         * manual/math.texi: Likewise.
68539         * manual/memory.texi: Likewise.
68540         * manual/message.texi: Likewise.
68541         * manual/nss.texi: Likewise.
68542         * manual/pattern.texi: Likewise.
68543         * manual/process.texi: Likewise.
68544         * manual/resource.texi: Likewise.
68545         * manual/search.texi: Likewise.
68546         * manual/setjmp.texi: Likewise.
68547         * manual/signal.texi: Likewise.
68548         * manual/socket.texi: Likewise.
68549         * manual/startup.texi: Likewise.
68550         * manual/stdio.texi: Likewise.
68551         * manual/string.texi: Likewise.
68552         * manual/sysinfo.texi: Likewise.
68553         * manual/syslog.texi: Likewise.
68554         * manual/terminal.texi: Likewise.
68555         * manual/time.texi: Likewise.
68556         * manual/users.texi: Likewise.
68557         * INSTALL: Regenerated.
68558         * NOTES: Regenerated.
68559         * sysdeps/gnu/errlist.c: Regenerated.
68560
68561 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
68562
68563         * include/dirent.h: Include <dirstream.h> before
68564         <dirent/dirent.h>.
68565
68566 2012-02-28  David S. Miller  <davem@davemloft.net>
68567
68568         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
68569         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
68570         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
68571         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
68572
68573 2012-02-27  David S. Miller  <davem@davemloft.net>
68574
68575         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
68576         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
68577         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
68578         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
68579
68580         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
68581         frame pointer instead of stack pointer relative arg slot.
68582         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68583         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68584         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68585
68586 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
68587
68588         [BZ #3992]
68589         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
68590
68591 2012-02-27  David S. Miller  <davem@davemloft.net>
68592
68593         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
68594         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
68595         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
68596         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
68597         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
68598         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
68599         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
68600         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
68601
68602 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68603
68604         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
68605         later.  Allow versions 5-9.
68606         * configure: Regenerated.
68607         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
68608         required minimum version and 4.6 as recommended version.  Do not
68609         mention bugs in GCC 2.7 and 2.8.
68610         * INSTALL: Regenerated.
68611
68612 2012-02-27  David S. Miller  <davem@davemloft.net>
68613
68614         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
68615         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
68616         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
68617         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
68618         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
68619         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
68620         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
68621         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
68622
68623         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
68624         manipulate bits before adding and subtracting TWO112[sx].
68625         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
68626
68627 2012-02-27  Roland McGrath  <roland@hack.frob.com>
68628
68629         [BZ #13775]
68630         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
68631         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
68632         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
68633         being in POSIX, because they are in 1003.1-2008.
68634
68635         * rt/tst-aio.c: Include <fcntl.h>.
68636         * rt/tst-aio7.c: Likewise.
68637         * rt/tst-aio64.c: Likewise.
68638
68639         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
68640
68641 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
68642
68643         * manual/install.texi (--with-headers): Describe headers as
68644         interface headers, not private headers.
68645         (Specific advice for GNU/Linux systems): Describe use of headers
68646         from "make headers_install", not private headers from older
68647         kernels.
68648         * INSTALL: Regenerated.
68649         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
68650         Change to 2.6.19.
68651         * sysdeps/unix/sysv/linux/configure: Regenerated.
68652
68653         * manual/llio.texi (fclean): Remove documentation.
68654
68655         * manual/Makefile (libc-texi-generated): New variable.  Include
68656         version.texi.
68657         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
68658         $(libc-texi-generated), not duplicated list of files.
68659         (version.texi, stamp-version): New rules.
68660         (realclean): Remove $(libc-texi-generated), not individual files
68661         from that list.  Do not remove dir-add.texinfo.
68662         * manual/libc.texinfo: Comment out uses of edition numbers and
68663         references to printed manual.  Remove last-updated dates.
68664         (EDITION): Comment out.
68665         (ISBN): Likewise.
68666         (VERSION, UPDATED): Remove.
68667         (version.texi): Include.
68668
68669 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
68670
68671         * sysdeps/posix/spawni.c: Include <signal.h>.
68672         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
68673         * sysdeps/pthread/aio_fsync.c: Likewise.
68674
68675 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
68676
68677         * conform/Makefile (tests): Run only when not cross-compiling and
68678         when fast-check is not defined.
68679
68680         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
68681         * conform/data/limits.h-data: Fixes for POSIX2008.
68682         * conform/run-conformtest.sh: Run all tests.
68683         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
68684         headers.
68685         * include/bits/dlfcn.h: Likewise.
68686         * include/langinfo.h: Likewise.
68687         * include/monetary.h: Likewise.
68688         * include/sys/poll.h: Likewise.
68689
68690         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
68691         for __USE_GNU.
68692         * posix/spawn.h: Define __need_sigset_t.
68693         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
68694         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
68695         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
68696         to get sigevent_t only.
68697         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
68698         only for __USE_GNU.
68699         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
68700         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
68701         process_vm_writev only for __USE_GNU.
68702         * termios/termios.h: Declare tcgetsid also for POSIX2008.
68703
68704         * conform/Makefile: For now ignore errors from run-conformtest.
68705         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
68706         POSIX to avoid namespace pollution.  Don't prepend headers.
68707         * conform/data/aio.h-data: Fixes for POSIX testing.
68708         * conform/data/fcntl.h-data: Likewise.
68709         * conform/data/glob.h-data: Likewise.
68710         * conform/data/grp.h-data: Likewise.
68711         * conform/data/pthread.h-data: Likewise.
68712         * conform/data/pwd.h-data: Likewise.
68713         * conform/data/signal.h-data: Likewise.
68714         * conform/data/spawn.h-data: Likewise.
68715         * conform/data/stdio.h-data: Likewise.
68716         * conform/data/stdlib.h-data: Likewise.
68717         * conform/data/stropts.h-data: Likewise.
68718         * conform/data/sys/mman.h-data: Likewise.
68719         * conform/data/sys/stat.h-data: Likewise.
68720         * conform/data/sys/types.h-data: Likewise.
68721         * conform/data/sys/wait.h-data: Likewise.
68722         * conform/data/time.h-data: Likewise.
68723         * conform/data/unistd.h-data: Likewise.
68724         * conform/data/utime.h-data: Likewise.
68725
68726         * io/sys/stat.h: fchmod was always in POSIX.
68727         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
68728         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
68729         * rt/aio.h: Define __need_timespec before including <time.h>.
68730         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
68731         struct.  Add forward declaration of pthread_attr_t and use it in
68732         sigevent.
68733         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
68734         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
68735         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
68736         always remove CLK_TCK definition.
68737
68738 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
68739
68740         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
68741
68742 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
68743
68744         * conform/run-conformtest.sh: New file.
68745         * conform/Makefile: Run run-conformtest for tests.
68746         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
68747         support.
68748
68749         * conform/data/uchar.h-data: New file.
68750         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
68751         * conform/data/arpa/inet.h-data: Likewise.
68752         * conform/data/assert.h-data: Likewise.
68753         * conform/data/complex.h-data: Likewise.
68754         * conform/data/cpio.h-data: Likewise.
68755         * conform/data/ctype.h-data: Likewise.
68756         * conform/data/dirent.h-data: Likewise.
68757         * conform/data/dlfcn.h-data: Likewise.
68758         * conform/data/errno.h-data: Likewise.
68759         * conform/data/fcntl.h-data: Likewise.
68760         * conform/data/float.h-data: Likewise.
68761         * conform/data/fmtmsg.h-data: Likewise.
68762         * conform/data/fnmatch.h-data: Likewise.
68763         * conform/data/ftw.h-data: Likewise.
68764         * conform/data/glob.h-data: Likewise.
68765         * conform/data/grp.h-data: Likewise.
68766         * conform/data/iconv.h-data: Likewise.
68767         * conform/data/inttypes.h-data: Likewise.
68768         * conform/data/langinfo.h-data: Likewise.
68769         * conform/data/libgen.h-data: Likewise.
68770         * conform/data/limits.h-data: Likewise.
68771         * conform/data/locale.h-data: Likewise.
68772         * conform/data/math.h-data: Likewise.
68773         * conform/data/monetary.h-data: Likewise.
68774         * conform/data/mqueue.h-data: Likewise.
68775         * conform/data/ndbm.h-data: Likewise.
68776         * conform/data/net/if.h-data: Likewise.
68777         * conform/data/netdb.h-data: Likewise.
68778         * conform/data/netinet/in.h-data: Likewise.
68779         * conform/data/nl_types.h-data: Likewise.
68780         * conform/data/poll.h-data: Likewise.
68781         * conform/data/pthread.h-data: Likewise.
68782         * conform/data/pwd.h-data: Likewise.
68783         * conform/data/regex.h-data: Likewise.
68784         * conform/data/sched.h-data: Likewise.
68785         * conform/data/search.h-data: Likewise.
68786         * conform/data/semaphore.h-data: Likewise.
68787         * conform/data/setjmp.h-data: Likewise.
68788         * conform/data/signal.h-data: Likewise.
68789         * conform/data/spawn.h-data: Likewise.
68790         * conform/data/stdarg.h-data: Likewise.
68791         * conform/data/stdio.h-data: Likewise.
68792         * conform/data/stdlib.h-data: Likewise.
68793         * conform/data/string.h-data: Likewise.
68794         * conform/data/strings.h-data: Likewise.
68795         * conform/data/stropts.h-data: Likewise.
68796         * conform/data/sys/ipc.h-data: Likewise.
68797         * conform/data/sys/mman.h-data: Likewise.
68798         * conform/data/sys/msg.h-data: Likewise.
68799         * conform/data/sys/resource.h-data: Likewise.
68800         * conform/data/sys/select.h-data: Likewise.
68801         * conform/data/sys/sem.h-data: Likewise.
68802         * conform/data/sys/shm.h-data: Likewise.
68803         * conform/data/sys/socket.h-data: Likewise.
68804         * conform/data/sys/stat.h-data: Likewise.
68805         * conform/data/sys/statvfs.h-data: Likewise.
68806         * conform/data/sys/time.h-data: Likewise.
68807         * conform/data/sys/timeb.h-data: Likewise.
68808         * conform/data/sys/times.h-data: Likewise.
68809         * conform/data/sys/types.h-data: Likewise.
68810         * conform/data/sys/uio.h-data: Likewise.
68811         * conform/data/sys/un.h-data: Likewise.
68812         * conform/data/sys/utsname.h-data: Likewise.
68813         * conform/data/sys/wait.h-data: Likewise.
68814         * conform/data/syslog.h-data: Likewise.
68815         * conform/data/tar.h-data: Likewise.
68816         * conform/data/termios.h-data: Likewise.
68817         * conform/data/utime.h-data: Likewise.
68818         * conform/data/utmpx.h-data: Likewise.
68819         * conform/data/varargs.h-data: Likewise.
68820         * conform/data/wchar.h-data: Likewise.
68821         * conform/data/wctype.h-data: Likewise.
68822         * conform/data/wordexp.h-data: Likewise.
68823
68824         * include/stropts.h: New file.
68825         * include/uchar.h: New file.
68826         * include/aio.h: Changes to allow conformtest.pl to use the headers.
68827         * include/assert.h: Likewise.
68828         * include/ctype.h: Likewise.
68829         * include/dirent.h: Likewise.
68830         * include/dlfcn.h: Likewise.
68831         * include/fcntl.h: Likewise.
68832         * include/fnmatch.h: Likewise.
68833         * include/glob.h: Likewise.
68834         * include/grp.h: Likewise.
68835         * include/libio.h: Likewise.
68836         * include/locale.h: Likewise.
68837         * include/math.h: Likewise.
68838         * include/net/if.h: Likewise.
68839         * include/netdb.h: Likewise.
68840         * include/netinet/in.h: Likewise.
68841         * include/pthread.h: Likewise.
68842         * include/pwd.h: Likewise.
68843         * include/regex.h: Likewise.
68844         * include/sched.h: Likewise.
68845         * include/search.h: Likewise.
68846         * include/setjmp.h: Likewise.
68847         * include/signal.h: Likewise.
68848         * include/stdio.h: Likewise.
68849         * include/stdlib.h: Likewise.
68850         * include/string.h: Likewise.
68851         * include/sys/cdefs.h: Likewise.
68852         * include/sys/mman.h: Likewise.
68853         * include/sys/msg.h: Likewise.
68854         * include/sys/resource.h: Likewise.
68855         * include/sys/select.h: Likewise.
68856         * include/sys/socket.h: Likewise.
68857         * include/sys/stat.h: Likewise.
68858         * include/sys/statvfs.h: Likewise.
68859         * include/sys/time.h: Likewise.
68860         * include/sys/times.h: Likewise.
68861         * include/sys/uio.h: Likewise.
68862         * include/sys/utsname.h: Likewise.
68863         * include/sys/wait.h: Likewise.
68864         * include/termios.h: Likewise.
68865         * include/time.h: Likewise.
68866         * include/ulimit.h: Likewise.
68867         * include/unistd.h: Likewise.
68868         * include/utime.h: Likewise.
68869         * include/wchar.h: Likewise.
68870         * include/wctype.h: Likewise.
68871         * include/wordexp.h: Likewise.
68872
68873         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
68874
68875         * time/time.h: TIME_UTC must be a macro.
68876         Make timespec_get available for ISO C11 only as well.
68877
68878 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
68879
68880         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
68881         Reported by Peng Haitao <penght@cn.fujitsu.com>.
68882
68883 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68884
68885         * configure.in: Use -o not -a in test for unsupported multi-arch.
68886
68887 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68888
68889         * manual/texinfo.tex: Update to version 2012-01-19.16.
68890
68891 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
68892
68893         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
68894
68895 2012-02-24  Roland McGrath  <roland@hack.frob.com>
68896
68897         [BZ #13738]
68898         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
68899         * manual/fdl-1.3.texi: New file.
68900         * manual/fdl-1.1.texi: File removed.
68901
68902         [BZ #13738]
68903         * manual/libc.texinfo (FDL_VERSION): New @set.
68904         Use it for mention of FDL in cover text.
68905         (Documentation License): Use it in @include file name.
68906
68907 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68908             Roland McGrath  <roland@hack.frob.com>
68909
68910         [BZ #5461]
68911         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
68912         (not LONG_LONG_MAX and LONG_LONG_MIN.
68913         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
68914         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
68915         name.
68916         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
68917
68918 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68919
68920         [BZ #2547]
68921         [BZ #11365]
68922         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
68923         manipulate bits before adding and subtracting TWO23[sx].
68924         * math/libm-test.inc (nearbyint_test): Add more tests.
68925
68926 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68927
68928         [BZ #2548]
68929         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
68930         bits before adding and subtracting TWO23[sx].
68931         * math/libm-test.inc (rint_test): Add more tests.
68932         (rint_test_tonearest): Likewise.
68933         (rint_test_towardzero): Likewise.
68934         (rint_test_downward): Likewise.
68935         (rint_test_upward: Likewise.
68936
68937 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68938
68939         [BZ #10110]
68940         * include/stdc-predef.h: New file.  Extracted from features.h.
68941         * include/features.h: Include stdc-predef.h.
68942         * Makefile (headers): Add stdc-predef.h.
68943         * CONFORMANCE (Compiler limitations): Update.
68944
68945 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
68946
68947         * manual/libc.texinfo (VERSION, UPDATED): Revert.
68948
68949 2012-02-21  David S. Miller  <davem@davemloft.net>
68950
68951         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
68952         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
68953
68954 2012-02-20  David S. Miller  <davem@davemloft.net>
68955
68956         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
68957         using a normal save/restore sequence, rather than allocating a
68958         dummy stack frame just to store a frame pointer and restore.
68959         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68960
68961 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
68962
68963         * manual/install.texi: Fix stray word in line-wrapped comment.
68964
68965 2012-02-20  David S. Miller  <davem@davemloft.net>
68966
68967         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
68968         both binutils and gcc support GOTDATA.
68969
68970         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
68971         "rd %pc" in the PIC register setup sequences.
68972
68973         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
68974         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
68975         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
68976         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
68977         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
68978         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
68979         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
68980         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
68981         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
68982         (SYSCALL_ERROR_HANDLER): Likewise.
68983         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
68984         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
68985         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
68986         (SYSCALL_ERROR_HANDLER): Likewise.
68987
68988         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
68989         (HAVE_GCC_GOTDATA): New.
68990         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
68991         relocation support in both binutils and gcc.
68992         * sysdeps/sparc/elf/configure: Regenerate.
68993
68994         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
68995         * sysdeps/sparc/sparc32/elf/configure: Delete.
68996         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
68997         * sysdeps/sparc/sparc64/elf/configure: Delete.
68998         * sysdeps/sparc/elf/configure.in: New file.
68999         * sysdeps/sparc/elf/configure: Generate.
69000
69001         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
69002         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
69003         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
69004         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
69005         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
69006
69007 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
69008
69009         * manual/install.texi: Do not mention specific glibc version
69010         numbers.
69011         * manual/libc.texinfo (VERSION, UPDATED): Update.
69012         (@copying): Use @copyright{} and range of years.
69013
69014 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
69015
69016         [BZ #13695]
69017         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
69018         [crti.S not in sysdirs] (generated): Do not append.
69019         [crti.S not in sysdirs] (omit-deps): Likewise.
69020         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
69021         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
69022         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
69023         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
69024         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
69025         Likewise.
69026         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
69027         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
69028         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
69029         * csu/defs.awk: Remove file.
69030         * sysdeps/generic/initfini.c: Likewise.
69031         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
69032         variable.
69033         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
69034         Likewise.
69035
69036 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69037
69038         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
69039         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
69040         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
69041         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
69042         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
69043         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
69044         <bits/epoll.h>.
69045         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
69046         (__EPOLL_PACKED): Define to empty if not defined by
69047         <bits/epoll.h>.
69048         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
69049         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69050         bits/epoll.h.
69051
69052 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69053
69054         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
69055         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
69056         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
69057         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
69058         <bits/timerfd.h>.
69059         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
69060         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69061         bits/timerfd.h.
69062
69063 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
69064
69065         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
69066         in C locale.
69067         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
69068         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
69069         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
69070         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69071
69072 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
69073
69074         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
69075         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
69076
69077 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
69078
69079         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
69080         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
69081         defined.
69082         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
69083         Likewise.
69084         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
69085         entry for 2.16.
69086
69087 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
69088
69089         * math/w_acos.c: Use non-signaling floating-point comparisons.
69090         * math/w_acosf.c: Likewise.
69091         * math/w_acosh.c: Likewise.
69092         * math/w_acoshf.c: Likewise.
69093         * math/w_acoshl.c: Likewise.
69094         * math/w_acosl.c: Likewise.
69095         * math/w_asin.c: Likewise.
69096         * math/w_asinf.c: Likewise.
69097         * math/w_asinl.c: Likewise.
69098         * math/w_atanh.c: Likewise.
69099         * math/w_atanhf.c: Likewise.
69100         * math/w_atanhl.c: Likewise.
69101         * math/w_exp2.c: Likewise.
69102         * math/w_exp2f.c: Likewise.
69103         * math/w_exp2l.c: Likewise.
69104         * math/w_j0.c: Likewise.
69105         * math/w_j0f.c: Likewise.
69106         * math/w_j0l.c: Likewise.
69107         * math/w_j1.c: Likewise.
69108         * math/w_j1f.c: Likewise.
69109         * math/w_j1l.c: Likewise.
69110         * math/w_jn.c: Likewise.
69111         * math/w_jnf.c: Likewise.
69112         * math/w_log.c: Likewise.
69113         * math/w_log10.c: Likewise.
69114         * math/w_log10f.c: Likewise.
69115         * math/w_log10l.c: Likewise.
69116         * math/w_log2.c: Likewise.
69117         * math/w_log2f.c: Likewise.
69118         * math/w_log2l.c: Likewise.
69119         * math/w_logf.c: Likewise.
69120         * math/w_logl.c: Likewise.
69121         * math/w_sqrt.c: Likewise.
69122         * math/w_sqrtf.c: Likewise.
69123         * math/w_sqrtl.c: Likewise.
69124         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
69125         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
69126         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
69127         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
69128         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
69129
69130 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69131
69132         [BZ #9739]
69133         * manual/string.texi (strnlen): Use correct parameter name in
69134         equivalent expression.
69135
69136 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69137
69138         [BZ #11174]
69139         * manual/users.texi (seteuid): Consistently use neweuid for
69140         argument name.
69141
69142 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
69143
69144         [BZ #13704]
69145         * manual/nss.texi (Services in the NSS configuration): Correct
69146         list of services in example configuration file.
69147
69148 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
69149
69150         [BZ #11322]
69151         * manual/arith.texi: Remove statements about negative zero
69152         behaving identically to zero.
69153
69154 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
69155
69156         [BZ #5993]
69157         * manual/install.texi: Do not document upgrading from libc5.
69158
69159 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
69160
69161         [BZ #4596]
69162         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
69163
69164 2012-02-18  David S. Miller  <davem@davemloft.net>
69165
69166         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
69167         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
69168         %o7 across the call.
69169         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
69170         instead.
69171         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
69172         SETUP_PIC_REG_LEAF.
69173         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
69174         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
69175         * sysdeps/sparc/crtn.S: Likewise.
69176
69177 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
69178
69179         * aout/Makefile: Remove.
69180
69181 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
69182
69183         [BZ #13058]
69184         * manual/examples/argp-ex1.c (main): Format definition in GNU
69185         style.
69186         * manual/examples/argp-ex2.c (main): Likewise.
69187         * manual/examples/argp-ex3.c (main): Likewise.
69188         * manual/examples/argp-ex4.c (main): Likewise.
69189         * manual/examples/longopt.c (main): Use new-style prototype
69190         definition.
69191         * manual/examples/strncat.c (main): Specify return type and use
69192         (void) for arguments.
69193         * manual/examples/subopt.c (main): Use char **argv argument.
69194
69195 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69196
69197         [BZ #5077]
69198         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
69199         rounding modes.
69200
69201 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
69202
69203         [BZ #6907]
69204         * manual/string.texi (strchr): Change when strchrnul is
69205         recommended.
69206
69207 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
69208
69209         [BZ #174]
69210         * manual/locale.texi (setlocale): Document LOCPATH.
69211
69212 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69213
69214         [BZ #10210]
69215         * manual/process.texi (execle): Move @dots{} before last argument.
69216
69217 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
69218
69219         [BZ #12047]
69220         * manual/charset.texi (Generic Charset Conversion): Fix typo
69221         (LC_TYPE -> LC_CTYPE).
69222
69223 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
69224
69225         [BZ #5805]
69226         * manual/arith.texi (scalbn): Use @var{} on parameter names.
69227         (scalbnf): Likewise.
69228         (scalbnl): Likewise.
69229         (scalbln): Likewise.
69230         (scalblnf): Likewise.
69231         (scalblnl): Likewise.
69232         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
69233         (vwarnx): Likewise.
69234         (verr): Likewise.
69235         (verrx): Likewise.
69236         * manual/filesys.texi (telldir): Use braces around return type.
69237         * manual/llio.texi (mmap): Add space after comma.
69238         (mmap64): Likewise.
69239         * manual/math.texi (jn): Use @var{} on parameter names.
69240         (jnf): Likewise.
69241         (jnl): Likewise.
69242         (yn): Likewise.
69243         (ynf): Likewise.
69244         (ynl): Likewise.
69245         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
69246         line.
69247         * manual/resource.texi (ulimit): Use @dots{} instead of literal
69248         "...".
69249         (sched_get_priority_min): Remove semicolon on @deftypefun line.
69250         (sched_get_priority_max): Likewise.
69251         * manual/signal.texi (sigvec): Add space after comma.
69252         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
69253         names.
69254         (if_indextoname): Likewise.
69255         (if_freenameindex): Likewise.
69256         (sendto): Use ',' instead of '.' in prototype.
69257         * manual/startup.texi (syscall): Use @dots{} instead of literal
69258         "...".
69259         * manual/stdio.texi (__fpending): Separate initial words of
69260         paragraph from @deftypefun line.
69261         * manual/syslog.texi (syslog): Use @dots{} instead of literal
69262         "...".
69263         (vsyslog): Use @var{} on parameter names.
69264         * manual/terminal.texi (stty): Use @var{} on parameter names.
69265         * manual/users.texi (getutmp): Use @var{} on parameter names.
69266         (getutmpx): Likewise.
69267
69268 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69269
69270         [BZ #6884]
69271         * manual/stdio.texi (fopen): Fix typos in description of
69272         ",ccs=STRING".
69273
69274 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
69275
69276         [BZ #4026]
69277         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
69278         get clock_id definition.
69279
69280 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
69281
69282         [BZ #4822]
69283         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
69284         (madvise): Cast every argument to void on its own.
69285
69286 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69287
69288         [BZ #9902]
69289         * manual/startup.texi (Exit Status): Fix typo.
69290
69291 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
69292
69293         [BZ #10140]
69294         * manual/examples/argp-ex1.c: Include <stdlib.h>.
69295         * manual/examples/argp-ex2.c: Likewise.
69296         * manual/examples/argp-ex3.c: Likewise.
69297
69298 2012-02-16  Richard Henderson  <rth@redhat.com>
69299
69300         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
69301         * sysdeps/s390/s390-32/initfini.c: Remove.
69302         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
69303         * sysdeps/s390/s390-64/initfini.c: Remove.
69304
69305 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
69306
69307         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
69308         compiler output for sysdeps/generic/initfini.c.
69309         * sysdeps/sh/elf/initfini.c: Remove file.
69310
69311 2012-02-16  David S. Miller  <davem@davemloft.net>
69312
69313         [BZ #11494]
69314         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
69315
69316         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
69317         * sysdeps/sparc/crti.S: New file.
69318         * sysdeps/sparc/crtn.S: New file.
69319         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
69320         * sysdeps/sparc/sparc64/Makefile: Likewise.
69321
69322 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
69323
69324         [BZ #3335]
69325         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
69326
69327 2012-02-15  Roland McGrath  <roland@hack.frob.com>
69328
69329         [BZ #4822]
69330         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
69331
69332         * mach/devstream.c (cookie_io_functions_t): Macro removed.
69333         (write, read, close): Likewise.
69334         Patch by Aurelien Jarno <aurelien@aurel32.net>.
69335
69336 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
69337
69338         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
69339         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
69340         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
69341         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
69342         <bits/signalfd.h>.
69343         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
69344         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69345         bits/signalfd.h.
69346
69347 2012-02-14  Marek Polacek  <polacek@redhat.com>
69348
69349         * sysdeps/x86_64/crti.S: New file.
69350         * sysdeps/x86_64/crtn.S: New file.
69351         * sysdeps/x86_64/elf/initfini.c: Remove file.
69352
69353 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
69354
69355         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
69356         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
69357         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
69358         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
69359         <bits/inotify.h>.
69360         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
69361         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69362         bits/inotify.h.
69363
69364 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
69365
69366         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
69367         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
69368         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
69369         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
69370         <bits/eventfd.h>.
69371         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
69372         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
69373         bits/eventfd.h.
69374
69375 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
69376
69377         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
69378         __feraiseexcept instead of feraiseexcept.
69379
69380         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
69381         nanosleep invocations.
69382         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
69383         strings, and add error checking for a nanosleep invocations.
69384
69385 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
69386
69387         Replace FSF snail mail address with URLs, as per GNU coding standards.
69388         Most of the snail mail addresses were wrong anyway, and omitting
69389         them makes the source code easier to maintain.  Almost all of the
69390         changes are to license notices and to locale LC_IDENTIFICATION
69391         addresses, except for this one:
69392         * manual/libc.texinfo: In "Published by", give the FSF's URL,
69393         not its snail mail address.
69394
69395 2012-02-09  Richard Henderson  <rth@twiddle.net>
69396
69397         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
69398         of kernel-features.h.
69399
69400         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
69401
69402 2012-02-08  Marek Polacek  <polacek@redhat.com>
69403
69404         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
69405         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
69406         * sysdeps/gnu/_G_config.h: Likewise.
69407         * sysdeps/generic/_G_config.h: Likewise.
69408
69409 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
69410
69411         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
69412         tests.
69413         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
69414
69415         * sysdeps/powerpc/powerpc32/crti.S: New file.
69416         * sysdeps/powerpc/powerpc32/crtn.S: New file.
69417         * sysdeps/powerpc/powerpc64/crti.S: New file.
69418         * sysdeps/powerpc/powerpc64/crtn.S: New file.
69419
69420         * Makeconfig (have-initfini): Don't set.
69421         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
69422         * configure.in (nopic_initfini): Don't substitute.
69423         * config.h.in (HAVE_INITFINI): Don't #undef.
69424         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
69425         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
69426
69427 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
69428
69429         Support crti.S and crtn.S provided directly by architectures.
69430         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
69431         [crti.S in sysdirs] (omit-deps): Likewise.
69432         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
69433         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
69434         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
69435         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
69436         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
69437         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
69438         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
69439         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
69440         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
69441         compiler output for sysdeps/generic/initfini.c.
69442         * sysdeps/i386/elf/Makefile: Remove file.
69443         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
69444
69445 2012-02-07  Marek Polacek  <polacek@redhat.com>
69446
69447         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
69448         * sysdeps/gnu/_G_config.h: Likewise.
69449         * sysdeps/mach/hurd/_G_config.h: Likewise.
69450
69451 2012-02-07  Marek Polacek  <polacek@redhat.com>
69452
69453         * math/Makefile (tests): Add tst-CMPLX2.
69454         * math/tst-CMPLX2.c: New file.
69455
69456 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
69457
69458         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
69459
69460         * math/libm-test.inc (jn_test): Add missing L suffix.
69461
69462 2012-02-06  Marek Polacek  <polacek@redhat.com>
69463
69464         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
69465         * sysdeps/i386/fpu/e_powf.S: Likewise.
69466         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
69467         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
69468         * sysdeps/i386/fpu/e_acosh.S: Likewise.
69469         * sysdeps/i386/fpu/e_pow.S: Likewise.
69470         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
69471         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
69472         * sysdeps/i386/fpu/s_expm1.S: Likewise.
69473         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
69474         * sysdeps/i386/fpu/e_log2.S: Likewise.
69475         * sysdeps/i386/fpu/e_log2l.S: Likewise.
69476         * sysdeps/i386/fpu/e_scalb.S: Likewise.
69477         * sysdeps/i386/fpu/e_powl.S: Likewise.
69478         * sysdeps/i386/fpu/s_log1p.S: Likewise.
69479         * sysdeps/i386/fpu/e_log10f.S: Likewise.
69480         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
69481         * sysdeps/i386/fpu/e_logl.S: Likewise.
69482         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
69483         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
69484         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
69485         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
69486         * sysdeps/i386/fpu/e_log2f.S: Likewise.
69487         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
69488         * sysdeps/i386/fpu/e_log.S: Likewise.
69489         * sysdeps/i386/fpu/s_cexp.S: Likewise.
69490         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
69491         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
69492         * sysdeps/i386/fpu/e_logf.S: Likewise.
69493         * sysdeps/i386/fpu/e_log10l.S: Likewise.
69494         * sysdeps/i386/fpu/e_atanh.S: Likewise.
69495         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
69496         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
69497         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
69498         * sysdeps/i386/fpu/e_log10.S: Likewise.
69499         * sysdeps/i386/fpu/s_frexp.S: Likewise.
69500         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
69501         * sysdeps/i386/fpu/s_asinh.S: Likewise.
69502         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
69503         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
69504         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
69505         * sysdeps/i386/asm-syntax.h: Likewise.
69506         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
69507         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
69508         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
69509         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
69510         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
69511         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
69512         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
69513         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
69514         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
69515         * sysdeps/powerpc/sysdep.h: Likewise.
69516         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
69517         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
69518
69519 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69520
69521         [BZ #411]
69522         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
69523
69524 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
69525
69526         * sysdeps/i386/sysdep.h: Include <features.h>.
69527         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
69528         version.
69529
69530 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
69531
69532         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
69533         Define.
69534         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
69535         LOAD_PIC_REG_STR.
69536
69537 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69538
69539         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
69540         (SETUP_PIC_REG): Use GET_PC_THUNK.
69541         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
69542         macro.
69543
69544 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69545
69546         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
69547         for non-PIC compilation.
69548         (SETUP_PIC_REG): Add .p2align directive.
69549         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
69550         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
69551         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
69552         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
69553         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
69554         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
69555         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
69556         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
69557         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
69558         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
69559         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
69560         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
69561         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
69562         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
69563         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
69564         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
69565         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
69566         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
69567         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
69568         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
69569         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
69570         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
69571         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
69572         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
69573         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
69574         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
69575         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
69576         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
69577         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
69578         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
69579         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
69580         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
69581         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
69582         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
69583         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
69584         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
69585         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
69586         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
69587         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
69588         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
69589         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
69590
69591 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
69592
69593         * math/tst-CMPLX.c: Include <stdio.h>.
69594
69595 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
69596
69597         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
69598         float.
69599         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69600         * sysdeps/sparc/bits/mathdef.h: Likewise.
69601
69602 2012-01-31  Marek Polacek  <polacek@redhat.com>
69603
69604         * libio/libio.h: Don't define _PARAMS.
69605         * locale/programs/config.h: Don't define PARAMS.
69606         * stdlib/strtol_l.c: Likewise.
69607         (__strtol_l): Remove PARAMS from the prototype.
69608
69609 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
69610
69611         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
69612         names.  Just use the correct names.  Remove unnecessary wrapper
69613         functions.
69614         * malloc/arena.c: Likewise.
69615         * malloc/hooks.c: Likewise.
69616
69617         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
69618         ARENA_TEST says not to.  Simplify test for creation of a new arena.
69619         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
69620
69621 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
69622
69623         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
69624         into tail calls.
69625         (update_get_addr): New function.
69626         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
69627         GET_ADDR_MODULE parameter.
69628
69629 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69630
69631         * crypt/cert.c: Remove __STDC__ conditionals.
69632         * crypt/crypt-entry.c: Likewise.
69633         * crypt/crypt_util.c: Likewise.
69634         * libio/filedoalloc.c: Likewise.
69635         * libio/fileops.c: Likewise.
69636         * libio/genops.c: Likewise.
69637         * libio/iofclose.c: Likewise.
69638         * libio/iofdopen.c: Likewise.
69639         * libio/iofopen.c: Likewise.
69640         * libio/iofopen64.c: Likewise.
69641         * libio/iogetdelim.c: Likewise.
69642         * libio/iopopen.c: Likewise.
69643         * libio/obprintf.c: Likewise.
69644         * libio/oldfileops.c: Likewise.
69645         * libio/oldiofclose.c: Likewise.
69646         * libio/oldiofdopen.c: Likewise.
69647         * libio/oldiofopen.c: Likewise.
69648         * libio/oldiopopen.c: Likewise.
69649         * libio/wfiledoalloc.c: Likewise.
69650         * libio/wgenops.c: Likewise.
69651         * locale/programs/xmalloc.c: Likewise.
69652         * misc/syslog.c: Likewise.
69653         * stdio-common/xbug.c: Likewise.
69654         * string/memchr.c: Likewise.
69655         * string/memcmp.c: Likewise.
69656         * string/memrchr.c: Likewise.
69657         * string/rawmemchr.c: Likewise.
69658         * sysdeps/posix/getcwd.c: Likewise.
69659         * time/strftime_l.c: Likewise.
69660
69661 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
69662
69663         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
69664         * config.make.in (config-cflags-sse2avx): Define.
69665         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
69666         Fix typo.
69667
69668 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
69669
69670         * scripts/config.guess: Update from upstream config git repository.
69671         * scripts/config.sub: Likewise.
69672
69673 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
69674
69675         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
69676         (EM_NUM): Update.
69677         (R_TILEPRO_*, R_TILEGX_*): New macros.
69678
69679         * scripts/firstversions.awk: Fix bug in version range handling.
69680
69681         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
69682
69683         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
69684
69685         * include/sys/epoll.h: New file.
69686         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
69687         libc_hidden_def.
69688
69689 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
69690
69691         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
69692         Avoid unnecessary __WORDSIZE == 64 test.
69693         (fmaxf): Use VEX format if possible.
69694         (fmax): Likewise.
69695         (fminf): Likewise.
69696         (fmin): Likewise.
69697
69698         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
69699         * math/math_private.h: Remove libc_fegetround* and
69700         libc_fesetround*.
69701         * sysdeps/i386/configure.in: Check for -msse2avx.
69702         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
69703         also if SSE2AVX is defined.
69704         Remove libc_fegetround* and libc_fesetround*.
69705         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
69706         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
69707         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
69708         of HAS_YMM_USABLE.
69709         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69710         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69711         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69712         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69713         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69714
69715         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
69716
69717 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
69718
69719         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
69720         size is not set.
69721         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
69722
69723 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
69724
69725         [BZ #13618]
69726         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
69727         relocation.
69728         * Makeconfig (libm): Define.
69729         * elf/Makefile: Add rules to build and run tst-relsort1.
69730         * elf/tst-relsort1.c: New file.
69731         * elf/tst-relsort1mod1.c: New file.
69732         * elf/tst-relsort1mod2.c: New file.
69733
69734 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
69735
69736         * math/s_ldexp.c: Remove __STDC__ conditionals.
69737         * math/s_ldexpf.c: Likewise.
69738         * math/s_ldexpl.c: Likewise.
69739         * math/s_nextafter.c: Likewise.
69740         * math/s_nexttowardf.c: Likewise.
69741         * math/s_significand.c: Likewise.
69742         * math/s_significandf.c: Likewise.
69743         * math/s_significandl.c: Likewise.
69744         * math/w_jnl.c: Likewise.
69745         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
69746         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
69747         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
69748         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
69749         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
69750         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
69751         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
69752         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
69753         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
69754         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
69755         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
69756         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
69757         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
69758         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
69759         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
69760         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
69761         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
69762         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
69763         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
69764         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
69765         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
69766         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
69767         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
69768         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
69769         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
69770         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
69771         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
69772         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
69773         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
69774         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
69775         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
69776         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
69777         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
69778         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
69779         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
69780         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
69781         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
69782         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
69783         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
69784         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
69785         * sysdeps/ieee754/k_standard.c: Likewise.
69786         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
69787         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
69788         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
69789         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
69790         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
69791         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
69792         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
69793         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
69794         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
69795         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
69796         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
69797         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
69798         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
69799         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
69800         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
69801         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
69802         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
69803         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
69804         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
69805         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
69806         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
69807         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
69808         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
69809         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
69810         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
69811         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
69812         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
69813         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
69814         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
69815         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
69816         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
69817         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
69818         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
69819         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
69820         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
69821         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
69822         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
69823         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
69824         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
69825         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
69826         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
69827         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
69828         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
69829         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
69830         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
69831         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
69832         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
69833         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
69834         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
69835         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
69836         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
69837         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
69838         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
69839         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
69840         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
69841         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
69842         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
69843         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
69844         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
69845         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
69846         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
69847         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
69848         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
69849         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
69850         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
69851         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
69852         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
69853         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
69854         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
69855         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
69856         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
69857         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
69858         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
69859         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
69860         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
69861         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
69862         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
69863         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
69864         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
69865         * sysdeps/ieee754/s_matherr.c: Likewise.
69866         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
69867         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
69868         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
69869         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
69870
69871 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69872
69873         * crypt/md5.h: Remove __STDC__ conditionals.
69874         * libio/libioP.h: Likewise.
69875         * locale/programs/config.h: Likewise.
69876         * sysdeps/generic/sysdep.h: Likewise.
69877         * sysdeps/i386/asm-syntax.h: Likewise.
69878         * sysdeps/s390/asm-syntax.h: Likewise.
69879         * sysdeps/unix/sysdep.h: Likewise.
69880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
69881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
69882
69883 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
69884
69885         * libio/libio.h: Remove __STDC__ conditionals.
69886         * malloc/obstack.h: Likewise.
69887         * math/complex.h: Likewise.
69888         * math/math.h: Likewise.
69889         * sysdeps/generic/_G_config.h: Likewise.
69890         * sysdeps/gnu/_G_config.h: Likewise.
69891         * sysdeps/mach/hurd/_G_config.h: Likewise.
69892         * sysdeps/powerpc/bits/mathdef.h: Likewise.
69893         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
69894         * sysdeps/sparc/bits/mathdef.h: Likewise.
69895
69896 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
69897
69898         [BZ #13583]
69899         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
69900         Clean up HAS_* macros.
69901         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
69902         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
69903         possible.
69904         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
69905         HAS_AVX.
69906         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
69907         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
69908         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
69909         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
69910         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
69911
69912 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
69913
69914         * elf/tst-unique3.cc (gets): Remove declaration.
69915         * elf/tst-unique3lib.cc (gets): Likewise.
69916         * elf/tst-unique3lib2.cc (gets): Likewise.
69917         * elf/tst-unique4.cc (gets): Likewise.
69918
69919 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
69920
69921         * include/stdio.h: Add C++ protection.  Add gets declarations and
69922         definitions.
69923         * debug/tst-chk1.c: Don't declare gets here.
69924         * stdio-common/tst-gets.c: Likewise.
69925
69926 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
69927
69928         * posix/glob: Remove directory.
69929
69930 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
69931
69932         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
69933
69934 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
69935
69936         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
69937         of the non-standard EPFNOSUPPORT.
69938
69939 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
69940
69941         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
69942         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
69943         ANYWHERE set to 1 only on KERN_NO_SPACE error.
69944
69945 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
69946
69947         * wcsmbs/uchar.h: Test __STDC_VERSION__.
69948
69949 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
69950
69951         * nscd/aicache.c (addhstaiX): Do not cache negative results of
69952         transient errors.
69953         * nscd/grpcache.c (cache_addgr): Likewise.
69954         * nscd/hstcache.c (cache_addhst): Likewise.
69955         * nscd/initgrcache.c (addinitgroupsX): Likewise.
69956         * nscd/pwdcache.c (cache_addpw): Likewise.
69957         * nscd/servicescache.c (cache_addserv): Likewise.
69958
69959 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
69960
69961         * malloc/malloc.c: Various cleanups.
69962         * malloc/hooks.c: Likewise.
69963
69964         * stdlib/Makefile (tests): Add bug-fmtmsg1.
69965         * stdlib/bug-fmtmsg1.c: New file.
69966
69967         * stdlib/fmtmsg.c (init): Add missing unlock.
69968         Patch by Peng Haitao <penght@cn.fujitsu.com>.
69969
69970 2012-01-12  Marek Polacek  <polacek@redhat.com>
69971
69972         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
69973         and _GNU_SOURCE.
69974
69975 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
69976
69977         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
69978         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
69979         macro to ensure uniqueness of label name.
69980         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
69981         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
69982
69983 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
69984
69985         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
69986
69987         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
69988         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
69989         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
69990         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
69991
69992 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
69993
69994         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
69995
69996         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
69997         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
69998         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
69999
70000         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
70001
70002         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
70003         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
70004         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
70005         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
70006
70007         * math/bits/math-finite.h: Add ldexp support.
70008
70009 2012-01-10  Marek Polacek  <polacek@redhat.com>
70010
70011         * locale/programs/localedef.h (show_archive_content): Add noreturn
70012         attribute.
70013
70014 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
70015
70016         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
70017
70018 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
70019
70020         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
70021
70022         * io/Makefile (headers): Add bits/poll2.h.
70023
70024 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
70025
70026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
70027         typo #include statement.
70028
70029 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
70030
70031         * include/sys/cdefs.h: Define __attribute_alloc_size.
70032         * catgets/gencat.c: Add alloc_size attribute and apply consistently
70033         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
70034         * elf/pldd.c: Likewise.
70035         * iconv/iconv_charmap.c: Likewise.
70036         * iconv/iconvconfig.c: Likewise.
70037         * iconv/strtab.c: Likewise.
70038         * locale/programs/locale.c: Likewise.
70039         * locale/programs/localedef.h: Likewise.
70040         * locale/programs/simple-hash.c: Likewise.
70041         * nscd/nscd.h: Likewise.
70042         * nss/makedb.c: Likewise.
70043         * sysdeps/generic/ldconfig.h: Likewise.
70044         * locale/programs/localedef.c: Remove xmalloc prototype.
70045         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
70046
70047 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
70048
70049         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
70050         appropriate.
70051
70052 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
70053
70054         * math/Makefile (tests): Add tst-CMPLX.
70055         * math/tst-CMPLX.c: New file.
70056
70057         * math/complex.h (CMPLXL): Fix typo.
70058
70059         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
70060         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
70061         GLIBC_2.16.
70062         * debug/tst-chk1.c: Add poll and ppoll tests.
70063         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
70064         * include/sys/poll.h: Add hidden proto for ppoll.
70065         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
70066         * sysdeps/mach/hurd/ppoll.c: Likewise.
70067         * io/ppoll.c: Likewise.
70068         * debug/poll_chk.c: New file.
70069         * debug/ppoll_chk.c: New file.
70070         * include/bits/poll2.h: New file.
70071         * io/bits/poll2.h: New file.
70072
70073         [BZ #1350]
70074         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
70075
70076         * configure.in: static is always set to yes.  Remove.
70077         * config.make.in: Don't set build-static.
70078         * Makeconfig: Remove use of build-static.
70079         * dlfcn/Makefile: Likewise.
70080         * elf/Makefile: Likewise.
70081         * math/Makefile: Likewise.
70082         * misc/Makefile: Likewise.
70083         * nptl/Makefile: Likewise.
70084         * sysdeps/mach/hurd/Makefile: Likewise.
70085
70086         * configure.in: PWD_P is not used anymore.
70087         * config.make.in: Remove PWD_P entry.
70088
70089         * configure.in: Remove last remnants of RANLIB.
70090         No need to check for signed size_t anymore.
70091         Don't set libc_commonpagesize and libc_relro_required here for Alpha
70092         and IA-64.
70093         Remove __builtin_expect test because we require at least gcc 3.4.
70094         * aclocal.m4: Likewise.
70095
70096         * wcsmbs/mbrtoc16.c: Implement using towc function.
70097         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
70098         * wcsmbs/wcsmbsload.c: Likewise.
70099         * iconv/gconv_simple.c: Likewise.
70100         * iconv/gconv_int.h: Likewise.
70101         * iconv/gconv_builtin.h: Likewise.
70102         * iconv/iconv_prog.c: Remove CHAR16 handling.
70103
70104         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
70105
70106         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
70107
70108         * configure.in: Remove --with-elf and --enable-bounded options.
70109         Dont set base_machine for ia64.  More non-ELF conditions removed.
70110         Remove testing and setting of leading underscore information.
70111         * config.make.in (build-bounded): Set to no.
70112         * config.h.in: Remove NO_UNDERSCORES entry.
70113         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
70114         them.
70115         * csu/start.c: Remove !NO_UNDERSCORE code.
70116         * locale/localeinfo.h: Likewise.
70117         * sysdeps/generic/machine-gmon.h: Likewise.
70118         * sysdeps/generic/sysdep.h: Likewise.
70119         * sysdeps/i386/sysdep.h: Likewise.
70120         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
70121         * sysdeps/mach/sysdep.h: Likewise.
70122         * sysdeps/s390/s390-32/sysdep.h: Likewise.
70123         * sysdeps/s390/s390-64/sysdep.h: Likewise.
70124         * sysdeps/sh/sysdep.h: Likewise.
70125         * sysdeps/sparc/sparc32/alloca.S: Likewise.
70126         * sysdeps/unix/i386/sysdep.S: Likewise.
70127         * sysdeps/unix/sparc/start.c: Likewise.
70128         * sysdeps/unix/sparc/sysdep.S: Likewise.
70129         * sysdeps/unix/sparc/sysdep.h: Likewise.
70130         * sysdeps/unix/start.c: Likewise.
70131         * sysdeps/unix/x86_64/sysdep.S: Likewise.
70132         * sysdeps/x86_64/sysdep.h: Likewise.
70133
70134 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
70135
70136         [BZ #13553]
70137         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
70138         for non-gcc.
70139         * argp/argp-fmtstream.h: Use const instead __const.
70140         * argp/argp.h: Likewise.
70141         * assert/assert.h: Likewise.
70142         * bits/fenv.h: Likewise.
70143         * bits/sched.h: Likewise.
70144         * bits/sigset.h: Likewise.
70145         * bits/sigthread.h: Likewise.
70146         * catgets/nl_types.h: Likewise.
70147         * conform/data/pthread.h-data: Likewise.
70148         * crypt/crypt-private.h: Likewise.
70149         * crypt/crypt.h: Likewise.
70150         * crypt/crypt_util.c: Likewise.
70151         * ctype/ctype.h: Likewise.
70152         * debug/execinfo.h: Likewise.
70153         * debug/mbsnrtowcs_chk.c: Likewise.
70154         * debug/mbsrtowcs_chk.c: Likewise.
70155         * debug/wcsnrtombs_chk.c: Likewise.
70156         * debug/wcsrtombs_chk.c: Likewise.
70157         * debug/wcstombs_chk.c: Likewise.
70158         * dirent/dirent.h: Likewise.
70159         * dlfcn/dlfcn.h: Likewise.
70160         * elf/neededtest4.c: Likewise.
70161         * grp/grp.h: Likewise.
70162         * gshadow/gshadow.h: Likewise.
70163         * iconv/gconv.h: Likewise.
70164         * iconv/gconv_int.h: Likewise.
70165         * iconv/gconv_simple.c: Likewise.
70166         * iconv/iconv.h: Likewise.
70167         * iconv/loop.c: Likewise.
70168         * iconv/skeleton.c: Likewise.
70169         * include/aio.h: Likewise.
70170         * include/aliases.h: Likewise.
70171         * include/argz.h: Likewise.
70172         * include/arpa/inet.h: Likewise.
70173         * include/assert.h: Likewise.
70174         * include/dirent.h: Likewise.
70175         * include/dlfcn.h: Likewise.
70176         * include/execinfo.h: Likewise.
70177         * include/fcntl.h: Likewise.
70178         * include/fenv.h: Likewise.
70179         * include/glob.h: Likewise.
70180         * include/grp.h: Likewise.
70181         * include/libintl.h: Likewise.
70182         * include/mntent.h: Likewise.
70183         * include/netdb.h: Likewise.
70184         * include/pwd.h: Likewise.
70185         * include/rpc/netdb.h: Likewise.
70186         * include/sched.h: Likewise.
70187         * include/search.h: Likewise.
70188         * include/shadow.h: Likewise.
70189         * include/signal.h: Likewise.
70190         * include/stdio.h: Likewise.
70191         * include/stdlib.h: Likewise.
70192         * include/string.h: Likewise.
70193         * include/sys/socket.h: Likewise.
70194         * include/sys/stat.h: Likewise.
70195         * include/sys/statfs.h: Likewise.
70196         * include/sys/statvfs.h: Likewise.
70197         * include/sys/syslog.h: Likewise.
70198         * include/sys/time.h: Likewise.
70199         * include/sys/uio.h: Likewise.
70200         * include/time.h: Likewise.
70201         * include/unistd.h: Likewise.
70202         * include/utmp.h: Likewise.
70203         * include/wchar.h: Likewise.
70204         * include/wctype.h: Likewise.
70205         * inet/aliases.h: Likewise.
70206         * inet/arpa/inet.h: Likewise.
70207         * inet/netinet/ether.h: Likewise.
70208         * inet/netinet/in.h: Likewise.
70209         * intl/libintl.h: Likewise.
70210         * io/bits/fcntl2.h: Likewise.
70211         * io/fcntl.h: Likewise.
70212         * io/ftw.h: Likewise.
70213         * io/sys/poll.h: Likewise.
70214         * io/sys/stat.h: Likewise.
70215         * io/sys/statfs.h: Likewise.
70216         * io/sys/statvfs.h: Likewise.
70217         * io/utime.h: Likewise.
70218         * libio/bits/stdio.h: Likewise.
70219         * libio/bits/stdio2.h: Likewise.
70220         * libio/libio.h: Likewise.
70221         * libio/libioP.h: Likewise.
70222         * libio/stdio.h: Likewise.
70223         * locale/lc-ctype.c: Likewise.
70224         * locale/locale.h: Likewise.
70225         * login/utmp.h: Likewise.
70226         * malloc/arena.c: Likewise.
70227         * malloc/malloc.c: Likewise.
70228         * malloc/malloc.h: Likewise.
70229         * malloc/mcheck.c: Likewise.
70230         * malloc/mtrace.c: Likewise.
70231         * math/bits/mathcalls.h: Likewise.
70232         * math/fenv.h: Likewise.
70233         * math/math_private.h: Likewise.
70234         * misc/bits/error.h: Likewise.
70235         * misc/bits/syslog.h: Likewise.
70236         * misc/err.h: Likewise.
70237         * misc/error.h: Likewise.
70238         * misc/fstab.h: Likewise.
70239         * misc/mntent.h: Likewise.
70240         * misc/regexp.h: Likewise.
70241         * misc/search.h: Likewise.
70242         * misc/sgtty.h: Likewise.
70243         * misc/sys/mman.h: Likewise.
70244         * misc/sys/syslog.h: Likewise.
70245         * misc/sys/uio.h: Likewise.
70246         * misc/sys/xattr.h: Likewise.
70247         * misc/ttyent.h: Likewise.
70248         * nis/rpcsvc/ypclnt.h: Likewise.
70249         * nss/nss.h: Likewise.
70250         * posix/bits/unistd.h: Likewise.
70251         * posix/fnmatch.h: Likewise.
70252         * posix/glob.h: Likewise.
70253         * posix/sched.h: Likewise.
70254         * posix/spawn.h: Likewise.
70255         * posix/sys/wait.h: Likewise.
70256         * posix/unistd.h: Likewise.
70257         * posix/wordexp.h: Likewise.
70258         * pwd/pwd.h: Likewise.
70259         * resolv/netdb.h: Likewise.
70260         * resource/sys/resource.h: Likewise.
70261         * rt/aio.h: Likewise.
70262         * rt/bits/mqueue2.h: Likewise.
70263         * rt/mqueue.h: Likewise.
70264         * shadow/shadow.h: Likewise.
70265         * signal/signal.h: Likewise.
70266         * socket/send.c: Likewise.
70267         * socket/sendto.c: Likewise.
70268         * socket/sys/socket.h: Likewise.
70269         * stdio-common/printf.h: Likewise.
70270         * stdlib/bits/stdlib.h: Likewise.
70271         * stdlib/fmtmsg.h: Likewise.
70272         * stdlib/monetary.h: Likewise.
70273         * stdlib/stdlib.h: Likewise.
70274         * stdlib/ucontext.h: Likewise.
70275         * streams/stropts.h: Likewise.
70276         * string/argz.h: Likewise.
70277         * string/bits/string2.h: Likewise.
70278         * string/string.h: Likewise.
70279         * string/strings.h: Likewise.
70280         * sunrpc/rpc/auth.h: Likewise.
70281         * sunrpc/rpc/auth_des.h: Likewise.
70282         * sunrpc/rpc/clnt.h: Likewise.
70283         * sunrpc/rpc/netdb.h: Likewise.
70284         * sunrpc/rpc/pmap_clnt.h: Likewise.
70285         * sunrpc/rpc/xdr.h: Likewise.
70286         * sysdeps/generic/inttypes.h: Likewise.
70287         * sysdeps/generic/net/if.h: Likewise.
70288         * sysdeps/generic/sys/swap.h: Likewise.
70289         * sysdeps/gnu/net/if.h: Likewise.
70290         * sysdeps/gnu/utmpx.h: Likewise.
70291         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
70292         * sysdeps/i386/i486/bits/string.h: Likewise.
70293         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
70294         * sysdeps/s390/bits/string.h: Likewise.
70295         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
70296         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
70297         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
70298         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
70299         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
70300         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
70301         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
70302         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
70303         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
70304         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
70305         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
70306         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
70307         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
70308         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
70309         * sysdeps/unix/sysv/linux/readv.c: Likewise.
70310         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
70311         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
70312         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
70313         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
70314         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
70315         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70316         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
70317         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
70318         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
70319         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
70320         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
70321         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
70322         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70323         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
70324         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
70325         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
70326         * sysvipc/sys/ipc.h: Likewise.
70327         * sysvipc/sys/msg.h: Likewise.
70328         * sysvipc/sys/sem.h: Likewise.
70329         * sysvipc/sys/shm.h: Likewise.
70330         * termios/termios.h: Likewise.
70331         * time/sys/time.h: Likewise.
70332         * time/time.h: Likewise.
70333         * wcsmbs/bits/wchar2.h: Likewise.
70334         * wcsmbs/uchar.h: Likewise.
70335         * wcsmbs/wchar.h: Likewise.
70336         * wctype/wctype.h: Likewise.
70337
70338         [BZ #13551]
70339         * Makeconfig: Remove all but ELF support including AIX support.
70340         * Makerules: Likewise.
70341         * config.h.in: Likewise.
70342         * config.make.in: Likewise.
70343         * configure: Likewise.
70344         * configure.in: Likewise.
70345         * csu/Makefile: Likewise.
70346         * csu/version.c: Likewise.
70347         * debug/Makefile: Likewise.
70348         * dlfcn/Makefile: Likewise.
70349         * elf/Makefile: Likewise.
70350         * extra-lib.mk: Likewise.
70351         * iconv/Makefile: Likewise.
70352         * include/libc-symbols.h: Likewise.
70353         * include/shlib-compat.h: Likewise.
70354         * resolv/Makefile: Likewise.
70355         * resolv/res_libc.c: Likewise.
70356         * rt/Makefile: Likewise.
70357         * sysdeps/i386/asm-syntax.h: Likewise.
70358         * sysdeps/i386/sysdep.h: Likewise.
70359         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
70360         * sysdeps/mach/sysdep.h: Likewise.
70361         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
70362         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
70363         * sysdeps/s390/asm-syntax.h: Likewise.
70364         * sysdeps/s390/s390-32/sysdep.h: Likewise.
70365         * sysdeps/s390/s390-64/sysdep.h: Likewise.
70366         * sysdeps/sh/sysdep.h: Likewise.
70367         * sysdeps/unix/sparc/sysdep.h: Likewise.
70368         * sysdeps/wordsize-32/divdi3.c: Likewise.
70369         * sysdeps/x86_64/sysdep.h: Likewise.
70370
70371         * argp/Versions: Remove _argp_unlock_xxx.
70372
70373         [BZ #13559]
70374         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
70375         * abilist/libBrokenLocale.abilist: Likewise.
70376         * abilist/libanl.abilist: Likewise.
70377         * abilist/libc.abilist: Likewise.
70378         * abilist/libcrypt.abilist: Likewise.
70379         * abilist/libdl.abilist: Likewise.
70380         * abilist/libm.abilist: Likewise.
70381         * abilist/libnsl.abilist: Likewise.
70382         * abilist/libpthread.abilist: Likewise.
70383         * abilist/libresolv.abilist: Likewise.
70384         * abilist/librt.abilist: Likewise.
70385         * abilist/libthread_db.abilist: Likewise.
70386         * abilist/libutil.abilist: Likewise.
70387         * abilist/libnss_db.abilist: New file.
70388
70389         * scripts/abilist.awk: Add support for indirect functions.
70390
70391         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
70392
70393         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
70394
70395         * shlib-versions: Remove entries for ports architectures.
70396
70397         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
70398         files in ports.
70399         * elf/stackguard-macros.h: Remove support for IA-64.
70400         * elf/tst-auditmod1.c: Likewise.
70401         * sysdeps/generic/ldsodefs.h: Likewise.
70402
70403         * sysdeps/unix/sysv/linux/configure.in: Ports should define
70404         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
70405         configure files.
70406
70407         [BZ #13552]
70408         * configure.in: Remove --enable-omitfp support.
70409         * FAQ.in: Adjust.
70410         * config.make.in: Likewise.
70411         * Makeconfig: Likewise.
70412         * manual/install.texi: Likewise.
70413
70414         In case anyone cares, the IA-64 architecture could move to ports.
70415         * sysdeps/ia64/*: Removed.
70416         * sysdeps/unix/sysv/linux/ia64/*: Removed.
70417         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
70418
70419         [BZ #13555]
70420         * configure.in: Remove entries for unsupported architectures.
70421
70422         [BZ #13533]
70423         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
70424         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
70425         routines.
70426         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
70427         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
70428         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
70429         fall back to using wcrtomb.
70430         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
70431         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
70432         renaming.
70433         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
70434         * wcsmbs/tst-c16c32-1.c: New file.
70435
70436         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
70437         local variable.
70438
70439         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
70440
70441         * elf/tst-unique3.cc: Add explicit declaration of gets.
70442         * elf/tst-unique3lib.cc: Likewise.
70443         * elf/tst-unique3lib2.cc: Likewise.
70444         * elf/tst-unique4.cc: Likewise.
70445
70446         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
70447
70448 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
70449
70450         [BZ #13566]
70451         * assert/assert.h (static_assert): Don't define for C++.
70452         * libio/stdio.h (gets): Do declare for C++ <= C++11.
70453         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
70454
70455 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
70456
70457         * iconv/loop.c (single loop): Fix assertion in storing of
70458         remaining bytes.
70459
70460         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
70461
70462 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
70463
70464         * posix/getconf.c: Update copyright year.
70465         * nss/getent.c: Likewise.
70466         * nss/makedb.c: Likewise.
70467         * iconv/iconvconfig.c: Likewise.
70468         * iconv/iconv_prog.c: Likewise.
70469         * elf/ldconfig.c: Likewise.
70470         * elf/pldd.c: Likewise.
70471         * elf/sotruss.ksh: Likewise.
70472         * catgets/gencat.c: Likewise.
70473         * csu/version.c: Likewise.
70474         * elf/ldd.bash.in: Likewise.
70475         * elf/sprof.c (print_version): Likewise.
70476         * locale/programs/locale.c: Likewise.
70477         * locale/programs/localedef.c: Likewise.
70478         * login/programs/pt_chown.c: Likewise.
70479         * nscd/nscd.c (print_version): Likewise.
70480         * debug/xtrace.sh: Likewise.
70481         * malloc/memusage.sh: Likewise.
70482         * malloc/mtrace.pl: Likewise.
70483         * debug/catchsegv.sh: Likewise.
70484
70485 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
70486
70487         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
70488         pure attribute.
70489
70490 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
70491
70492         [BZ #13533]
70493         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
70494         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
70495         transformations.
70496         * iconv/gconv_int.h: Likewise.
70497         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
70498         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
70499         from libc for GLIBC_2.16.
70500         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
70501         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
70502         * wcsmbs/uchar.h: Really define mbstate_t.
70503         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
70504         * wcsmbs/c16rtomb.c: New file.
70505         * wcsmbs/mbrtoc16.c: New file.
70506         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
70507         for C/POSIX locale.
70508         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
70509         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
70510
70511         * wcsmbs/wchar.h: Add missing __restrict.
70512
70513 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70514
70515         [BZ #13532]
70516         * time/Makefile (routines): Add timespec_get.
70517         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
70518         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
70519         timespec for ISO C11.
70520         * time/timespec_get.c: New file.
70521         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
70522         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
70523
70524         [BZ #13531]
70525         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
70526         * stdlib/stdlib.h: Declare aligned_alloc.
70527         * Versions.def: Add GLIBC_2.16 for libc.
70528         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
70529
70530         [BZ 13527]
70531         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
70532         ISO C11.
70533
70534         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
70535         code.
70536
70537         [BZ #13528]
70538         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
70539
70540         [BZ #13529]
70541         * assert/assert.h (static_assert): Define.
70542
70543         * version.h: Update for 2.16 development version.
70544
70545         [BZ #13526]
70546         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
70547         _ISOC11_SOURCE.
70548
70549         * version.h (RELEASE): Bump for 2.15 release.
70550         * include/features.h (__GLIBC_MINOR__): Bump to 15.
70551
70552         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
70553         Patch by Marek Polacek <mpolacek@redhat.com>.
70554
70555         * bits/byteswap.h: Protect long long constants with __extension__.
70556         * sysdeps/i386/bits/byteswap.h: Likewise.
70557         * sysdeps/ia64/bits/byteswap.h: Likewise.
70558         * sysdeps/s390/bits/byteswap.h: Likewise.
70559         * sysdeps/x86_64/bits/byteswap.h: Likewise.
70560
70561 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70562
70563         [BZ #13540]
70564         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
70565         destination buffer.
70566         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
70567
70568 2011-12-23  Marek Polacek  <polacek@redhat.com>
70569
70570         * elf/dl-addr.c (determine_info): Add inline keyword.
70571         * elf/tst-auditmod4b.c (check_avx): Likewise.
70572         * elf/tst-auditmod6b.c (check_avx): Likewise.
70573         * elf/tst-auditmod6c.c (check_avx): Likewise.
70574         * elf/tst-auditmod7b.c (check_avx): Likewise.
70575
70576 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
70577
70578         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
70579         !__SSE_MATH__.
70580
70581 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70582
70583         [BZ #13540]
70584         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
70585         processing for last bytes.
70586
70587 2011-08-06  Bruno Haible  <bruno@clisp.org>
70588
70589         [BZ #13061]
70590         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
70591         U+0385, not to U+1FEE.
70592
70593         [BZ #13062]
70594         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
70595         entry for U+00A5 U+0301.
70596
70597 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70598
70599         [BZ #13166]
70600         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
70601         buffer for the output is too small.
70602
70603         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
70604         optimization.
70605
70606         [BZ #13185]
70607         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
70608         SSE flags if possible.
70609
70610 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70611
70612         [BZ #13540]
70613         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
70614         processing for last bytes.
70615
70616 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
70617
70618         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
70619         (syscall-list-default-options, syscall-list-default-condition)
70620         (syscall-list-includes): Define.
70621         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
70622         list of ABIs and options and #if conditions for each ABI.  Do not
70623         handle common syscalls between ABIs specially.
70624         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
70625         Remove.
70626         (syscall-list-variants, syscall-list-32bit-options)
70627         (syscall-list-32bit-condition, syscall-list-64bit-options)
70628         (syscall-list-64bit-condition): Define.
70629         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
70630         (syscall-list-variants, syscall-list-32bit-options)
70631         (syscall-list-32bit-condition, syscall-list-64bit-options)
70632         (syscall-list-64bit-condition): Define.
70633         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
70634         Remove.
70635         (syscall-list-variants, syscall-list-32bit-options)
70636         (syscall-list-32bit-condition, syscall-list-64bit-options)
70637         (syscall-list-64bit-condition): Define.
70638         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
70639         Remove.
70640         (syscall-list-variants, syscall-list-32bit-options)
70641         (syscall-list-32bit-condition, syscall-list-64bit-options)
70642         (syscall-list-64bit-condition): Define.
70643
70644 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
70645
70646         * locale/iso-639.def: Add brx entry.
70647
70648         [BZ #13328]
70649         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
70650         Proposed by Mariusz_Cukr <marcukr@op.pl>.
70651
70652         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
70653         __feraiseexcept_renamed.
70654
70655 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70656
70657         [BZ #13538]
70658         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
70659         EPOLLET with unsigned values.
70660         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
70661         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
70662
70663         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
70664         to large cancellation.
70665         * math/s_cacoshf.c: Likewise.
70666         * math/s_cacoshl.c: Likewise.
70667
70668 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
70669
70670         [BZ #13305]
70671         [BZ #12786]
70672         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
70673         * math/s_cacoshf.c: Likewise.
70674         * math/s_cacoshl.c: Likewise.
70675
70676 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
70677
70678         [BZ #13439]
70679         * iconv/gconv.h: Define __GCONV_SWAP.
70680         * iconvdata/unicode.c: The swap bit must be stored in __flags.
70681         * iconvdata/utf-16.c: Likewise.
70682         * iconvdata/utf-32.c: Likewise.
70683
70684 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
70685
70686         [BZ #13524]
70687         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
70688         numerator after shifting it by one limb.
70689
70690 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
70691
70692         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
70693         under [__USE_EXTERN_INLINES].
70694
70695 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70696
70697         [BZ #13446]
70698         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
70699
70700 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70701
70702         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
70703         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
70704         optimized code.
70705         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
70706         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
70707         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
70708         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
70709         for strncasecmp/strncasecmp_l compilation.
70710         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
70711         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
70712
70713 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
70714
70715         [BZ #13484]
70716         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
70717         of __asm__.
70718
70719 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
70720
70721         [BZ #13506]
70722         * time/tzfile.c (__tzfile_read): Check values from file header.
70723
70724 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
70725
70726         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
70727         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
70728         * powerpc/powerpc32/dl-start.S: Likewise.
70729         * powerpc/powerpc32/elf/start.S: Likewise.
70730         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
70731         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
70732         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
70733         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
70734         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
70735         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
70736         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
70737         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
70738         * powerpc/powerpc32/fpu/s_round.S: Likewise.
70739         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
70740         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
70741         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
70742         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
70743         * powerpc/powerpc32/memset.S: Likewise.
70744         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
70745         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
70746         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
70747         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
70748         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
70749         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
70750         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
70751         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
70752         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
70753         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
70754         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
70755         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
70756         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
70757
70758 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
70759
70760         * math/libm-test.inc: Added more nearbyint tests.
70761         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
70762         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
70763         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
70764         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
70765
70766 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
70767
70768         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
70769         FD_CLOEXEC.
70770
70771 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70772
70773         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
70774         Add wcscpy-ssse3 wcscpy-c.
70775         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
70776         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
70777         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
70778         * sysdeps/x86_64/wcschr.S: New file.
70779         * sysdeps/x86_64/wcsrchr.S: New file.
70780         * string/test-strcmp.c: Remove checking of wcscmp function for
70781         wrong alignments.
70782         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
70783         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
70784         wcsrchr-sse2 wcsrchr-c.
70785         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
70786         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
70787         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
70788         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
70789         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
70790         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
70791         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
70792         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
70793         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
70794         * wcsmbc/wcschr.c (WCSCHR): New macro.
70795
70796 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
70797
70798         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
70799         * wcsmbs/test-wcsrchr.c: New file.
70800         * string/test-strrchr.c: Add wcsrchr support.
70801         (WIDE): New macro.
70802         * wcsmbs/test-wcscpy.c: New file.
70803         * string/test-strcpy.c: Add wcscpy support.
70804         (WIDE): New macro.
70805
70806 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
70807
70808         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
70809         the inner loop.
70810
70811 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
70812
70813         [BZ #13472]
70814         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
70815
70816 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
70817
70818         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
70819         Minor optimizations.
70820
70821         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
70822         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
70823         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
70824
70825 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
70826
70827         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
70828         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
70829         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
70830         for gcc to avoid warnings.
70831         * inet/Makefile (tests): Add tst-checks.
70832         * inet/tst-checks.c: New file.
70833
70834         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
70835         warning.
70836
70837         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
70838         __wmemcmp_sse2.
70839
70840         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
70841         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
70842
70843         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
70844
70845 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
70846
70847         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
70848         problem.
70849
70850         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
70851
70852 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
70853
70854         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
70855         conditional on GCC version.
70856         (__arch_compare_and_exchange_val_8_acq)
70857         (__arch_compare_and_exchange_val_16_acq)
70858         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
70859         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
70860         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
70861
70862 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
70863
70864         * sysdeps/sh/backtrace.c: New file.
70865
70866 2011-12-02  Andreas Schwab  <schwab@redhat.com>
70867
70868         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
70869         parenthesis.
70870
70871 2011-12-01  Andreas Schwab  <schwab@redhat.com>
70872
70873         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
70874         falling back to utime.
70875
70876 2011-11-30  Andreas Schwab  <schwab@redhat.com>
70877
70878         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
70879         expectations for float.
70880
70881 2011-11-29  Andreas Schwab  <schwab@redhat.com>
70882
70883         * locale/weight.h (findidx): Add parameter len.
70884         * locale/weightwc.h (findidx): Likewise.
70885         * posix/fnmatch_loop.c (FCT): Adjust caller.
70886         * posix/regcomp.c (build_equiv_class): Likewise.
70887         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
70888         * posix/regexec.c (check_node_accept_bytes): Likewise.
70889         * string/strcoll_l.c (STRCOLL): Likewise.
70890         * string/strxfrm_l.c (STRXFRM): Likewise.
70891
70892 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
70893
70894         * Makefile.in: Remove CVSOPT handling.
70895         * configure.in: Remove use of AC_REVISION.
70896         * iconvdata/Makefile (distribute): No need to filter out CVS.
70897         * scripts/list-sources.sh: Remove CVS, subversion and monotone
70898         handling.
70899
70900 2011-11-16  Andreas Schwab  <schwab@redhat.com>
70901
70902         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
70903         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
70904         [USE_AS_STRNCASECMP_L]: Likewise.
70905         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
70906         NO_TLS_DIRECT_SEG_REFS.
70907         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
70908         Fix argument offsets for non-PIC.
70909         [USE_AS_STRNCASECMP_L]: Likewise.
70910         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
70911         NO_TLS_DIRECT_SEG_REFS.
70912
70913 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70914
70915         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
70916         O_CLOEXEC.
70917         * locale/loadlocale.c (_nl_load_locale): Likewise.
70918
70919 2011-11-15  Andreas Schwab  <schwab@redhat.com>
70920
70921         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
70922         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
70923         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
70924         (SYSCALL_GETTIME): Set errno on error.
70925
70926         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
70927         count references to noai6ai_cached.
70928
70929 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
70930
70931         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
70932
70933         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
70934         FD_CLOEXEC for /proc/self/maps.
70935
70936         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
70937         FD_CLOEXEC for /proc/meminfo.
70938
70939         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
70940         gai.conf.
70941
70942         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
70943         FD_CLOEXEC for given file.
70944
70945         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
70946
70947         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
70948         FD_CLOEXEC for /etc/hosts.
70949         (_gethtent): Likewise.
70950
70951         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
70952
70953         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
70954         cancellation and set FD_CLOEXEC for /etc/netgroup.
70955
70956         * nss/nss_files/files-key.c (search): Don't allow cancellation when
70957         reading /etc/publickey.
70958
70959         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
70960         allow cancellation when reading /etc/group.
70961
70962         * nss/nss_files/files-alias.c (internal_setent): Don't allow
70963         cancellation.
70964         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
70965
70966         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
70967         when using data file.
70968
70969         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
70970
70971         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
70972         (write_nis_obj): Use "c" and "e" in fopen.
70973
70974         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
70975
70976         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
70977
70978         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
70979
70980         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
70981
70982         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
70983         locale.alias.
70984
70985         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
70986
70987         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
70988
70989         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
70990
70991         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
70992         file parsing and set FD_CLOEXEC.
70993
70994 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
70995
70996         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
70997
70998 2011-11-14  Andreas Schwab  <schwab@redhat.com>
70999
71000         * malloc/arena.c (arena_get2): Don't call reused_arena when
71001         _int_new_arena failed.
71002
71003 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
71004
71005         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
71006         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
71007         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
71008         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
71009         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
71010         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
71011         to compile strcasecmp and strncasecmp.
71012         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
71013         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
71014
71015         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
71016
71017 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
71018
71019         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
71020         locale-defines.sym to gen-as-const-headers.
71021         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
71022         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
71023         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
71024         to compile strcasecmp and strncasecmp.
71025         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
71026         strcasecmp_l and strncasecmp_l.
71027         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
71028         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
71029         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
71030         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
71031         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
71032         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
71033         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
71034         * sysdeps/i386/i686/multiarch/strncase.S: New file.
71035         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
71036         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
71037         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
71038
71039 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
71040
71041         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
71042         result of SYSDEP_GETTIME_CPU to retval.
71043         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
71044         parameter list to macro.  Remove trailing semicolon.  Adjust users.
71045
71046         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
71047         variable.
71048
71049         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
71050         mantissa words.
71051         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
71052
71053         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
71054         from unused variable.
71055
71056         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
71057         DWARF definitions.
71058         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
71059         for assembling.
71060
71061         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
71062         over namespaces.
71063
71064         * sunrpc/rpc_prot.c (rejected): Fix case value.
71065
71066         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
71067         unsigned long long int to avoid warnings in shift.
71068
71069         * posix/regex_internal.c (re_string_reconstruct): Actually use result
71070         of use of trans.
71071         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
71072         variable tmp.
71073
71074         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
71075         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
71076         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
71077
71078         * nis/nis_table.c (nis_list): Use variable of correct type for
71079         result of __follow_path call.
71080
71081 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
71082
71083         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
71084         of math functions ceil, trunc, floor, round, and sqrt, when
71085         avaliable on the platform.
71086         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
71087         name clash.
71088         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
71089         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
71090         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
71091
71092 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
71093
71094         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
71095         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
71096
71097 2011-11-11  Roland McGrath  <roland@hack.frob.com>
71098
71099         * include/unistd.h: Fix __readlink return type.
71100         Reported by Chris Metcalf <cmetcalf@tilera.com>.
71101
71102 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
71103
71104         * stdlib/ucontext.h: Undo last change for makecontext.
71105
71106 2011-11-11  Andreas Schwab  <schwab@redhat.com>
71107
71108         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
71109
71110         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
71111         * setjmp/setjmp.h: Mark functions as non-leaf.
71112         * setjmp/bits/setjmp2.h: Likewise.
71113         * stdlib/ucontext.h: Likewise.
71114
71115 2011-11-10  Andreas Schwab  <schwab@redhat.com>
71116
71117         * malloc/arena.c (_int_new_arena): Don't increment narenas.
71118         (reused_arena): Don't check arena limit.
71119         (arena_get2): Atomically check arena limit.
71120
71121 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
71122
71123         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
71124         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
71125
71126         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
71127         instructions.
71128
71129 2011-11-07  Andreas Schwab  <schwab@redhat.com>
71130
71131         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
71132         handler when locking.
71133
71134         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
71135         Fix size of allocated buffer.
71136
71137 2011-11-04  Andreas Schwab  <schwab@redhat.com>
71138
71139         [BZ #10103]
71140         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
71141         declarations for long double functions.
71142         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
71143
71144         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
71145
71146 2011-11-03  Andreas Schwab  <schwab@redhat.com>
71147
71148         * nscd/nscd.c (main): Don't start AVC thread until credentials are
71149         installed.
71150
71151         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
71152         is disabled.
71153
71154 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
71155
71156         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
71157
71158 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
71159
71160         * include/alloca.h (stackinfo_alloca_round): Define.
71161         (extend_alloca): Use it.
71162         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
71163         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
71164         here.
71165
71166         * scripts/check-local-headers.sh: Ignore libaudit.h.
71167
71168         * nscd/Makefile (extra-objs): Make recursively expanded.
71169
71170 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
71171
71172         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
71173         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
71174
71175         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
71176         * posix/tst-rfc3484-2.c: Likewise.
71177         * posix/tst-rfc3484-3.c: Likewise.
71178
71179         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
71180         process_vm_writev.
71181         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
71182         process_vm_writev.
71183         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
71184         process_vm_writev from libc using GLIBC_2.15 version.
71185
71186         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
71187
71188 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
71189
71190         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
71191         stack usage.
71192
71193 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
71194
71195         [BZ #13367]
71196         * nss/getent.c (initgroups_keys): Show error message in case no group
71197         names are given.
71198
71199         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
71200         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
71201         __bump_nl_timestamp.
71202         * nscd/connections (nscd_init): When host database is served open
71203         netlink socket and request notification about configuration changes.
71204         (main_loop_poll): Track netlink file descriptor and bump timestamp
71205         in case data becomes available.
71206         (main_loop_epoll): Likewise.
71207         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
71208         (database_pers_head): Add extra_data fileds.
71209         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
71210         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
71211         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
71212         Adjust caller.
71213         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
71214         in6ai data, call __free_in6ai.
71215         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
71216         Add -DHAVE_NETLINK.
71217         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
71218         interface information.  Reuse previous data if netlink timestamp
71219         is not changed.
71220         (__bump_nl_timestamp): New function.
71221         (__free_in6ai): New function.
71222
71223 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
71224
71225         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
71226         close_not_cancel_no_status here.
71227         (__check_pf): Reorganize code a bit to not call close twice if OOM.
71228
71229 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
71230
71231         [BZ #13276]
71232         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
71233         return value.
71234
71235         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
71236         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
71237         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
71238
71239 2011-07-03  Andreas Jaeger  <aj@suse.de>
71240
71241         [BZ #10709]
71242         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
71243         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
71244         * math/libm-test.inc (sin_test): Add test case.
71245
71246 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
71247
71248         [BZ #13337]
71249         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
71250         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
71251
71252         * elf/chroot_canon.c (chroot_canon): Cleanups.
71253
71254         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
71255
71256         [BZ #13335]
71257         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
71258         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
71259
71260         * string/test-strchr.c: Make usable for strchrnul testing.
71261         * string/test-strchrnul.c: New file.
71262         * string/Makefile (strop-tests): Add strchrnul.
71263
71264         * po/it.po: Update from translation team.
71265         * po/es.po: Likewise.
71266
71267 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
71268
71269         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
71270         the three constants needed as parameters.  Drop the others.
71271         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
71272         __m128i_strloadu_tolower.
71273         Create and initialize variable zero and use it in all the places
71274         where _mm_setzero_si128 was used.
71275
71276         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
71277         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
71278         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
71279         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
71280         anymore.
71281         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
71282         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
71283         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
71284         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
71285         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
71286         __mpranred, __mptan.
71287         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
71288         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
71289         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
71290         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
71291         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
71292         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
71293         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
71294         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
71295         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
71296
71297 2011-10-28  Andreas Schwab  <schwab@redhat.com>
71298
71299         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
71300         redefine if SHARED.
71301         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
71302
71303         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
71304         wide char related routines to wcsmbs subdir.
71305
71306 2011-10-27  Andreas Schwab  <schwab@redhat.com>
71307
71308         [BZ #13344]
71309         * misc/sys/cdefs.h (__THROWNL): Define.
71310         * posix/unistd.h: Use __THREADNL instead of __THREAD
71311         for memory synchronization functions.
71312
71313 2011-10-26  Roland McGrath  <roland@hack.frob.com>
71314
71315         [BZ #13349]
71316         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
71317         doesn't exist.
71318         * manual/stdio.texi (Obstack Streams): Node removed.
71319
71320 2011-10-26  Andreas Schwab  <schwab@redhat.com>
71321
71322         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
71323         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
71324         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71325
71326         * math/math_private.h (math_force_eval): Allow non-addressable
71327         arguments.
71328         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
71329
71330 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71331
71332         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
71333         file is not needed.
71334
71335         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
71336         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
71337         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
71338         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
71339         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
71340         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
71341         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
71342         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
71343         Add AVX variants.
71344         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
71345         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
71346         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
71347         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
71348         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
71349         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
71350         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
71351         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
71352         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
71353         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
71354         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
71355         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
71356         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
71357         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
71358         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
71359         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
71360         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
71361         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
71362         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
71363
71364         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
71365         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
71366
71367         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
71368         place.  Use VEX encoding when compiling for AVX.
71369
71370 2011-10-25  Andreas Schwab  <schwab@redhat.com>
71371
71372         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
71373         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
71374
71375         * string/test-strchr.c (do_test): Don't generate NUL bytes.
71376
71377 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71378
71379         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
71380         useless if() expression.
71381         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
71382         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
71383         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
71384         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71385         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
71386         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
71387         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71388         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71389         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
71390         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
71391         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
71392         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71393         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
71394         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71395         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
71396         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
71397         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
71398         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
71399         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
71400
71401         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
71402
71403 2011-10-25  Andreas Schwab  <schwab@redhat.com>
71404
71405         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
71406         condition.
71407         * elf/dl-fini.c (_dl_sort_fini): Likewise.
71408
71409 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
71410
71411         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
71412         .text section.  Avoid duplicate constants.
71413         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
71414         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71415         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
71416         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71417         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71418         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71419         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71420         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71421         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
71422         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
71423         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
71424         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
71425         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
71426         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
71427         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
71428         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
71429         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
71430         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
71431         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
71432         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71433         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
71434         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
71435         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
71436         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
71437         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
71438         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
71439         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
71440         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
71441         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
71442         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
71443         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
71444         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
71445         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
71446         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
71447         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
71448         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
71449         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
71450         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
71451         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
71452         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
71453         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
71454         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
71455         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
71456         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
71457         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
71458
71459 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
71460
71461         * sysdeps/x86_64/dla.h: Move to ...
71462         * sysdeps/x86_64/fpu/dla.h: ...here.
71463         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
71464         situations.  Use __builtin_fma only for gcc 4.6 and up.
71465
71466         * config.make.in: Add have-mfma4 entry.
71467         * configure.in: Substitute libc_cv_cc_fma4.
71468         * math/Makefile (dbl-only-routines): Add sincostab.
71469         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
71470         Use __sincostab not sincos.
71471         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
71472         name is a macro.
71473         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71474         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71475         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71476         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
71477         using __copysign.
71478         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
71479         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
71480         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
71481         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
71482         and __inv.
71483         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
71484         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
71485         __copysign.
71486         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
71487         define aliases when function name is a macro.
71488         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
71489         sysdeps/ieee754/dbl-64/sincos.tbl.
71490         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
71491         fma4-enabled routines.
71492         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
71493         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
71494         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
71495         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
71496         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
71497         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
71498         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
71499         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
71500         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
71501         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
71502         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
71503         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
71504         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
71505         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
71506         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
71507         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
71508         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
71509         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
71510         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
71511         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
71512         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
71513         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
71514         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
71515         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
71516         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
71517         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
71518         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
71519         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
71520         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
71521         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
71522
71523         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
71524         rename.
71525         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71526         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71527         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71528         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71529         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71530         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71531         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71532         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71533
71534 2011-10-24  Andreas Schwab  <schwab@redhat.com>
71535
71536         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
71537
71538 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71539
71540         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
71541
71542         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
71543         prediction.
71544         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
71545
71546         * string/strnlen.c: Don't define STRNLEN, reverse logic.
71547         Remove unused variable magic_bits.
71548         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
71549
71550         * string/strnlen.c: Define and use STRNLEN macro.
71551         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
71552         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
71553         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
71554         * wcsmbs/wcslen.c: Define and use WCSLEN.
71555         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
71556         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
71557         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
71558         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
71559         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
71560         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
71561         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
71562
71563 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71564
71565         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
71566         strnlen-sse2-no-bsf.
71567         Rename strlen-no-bsf to strlen-sse2-no-bsf.
71568         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
71569         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
71570         Add strnlen support.
71571         (USE_AS_STRNLEN): New macro.
71572         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
71573         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
71574         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
71575         * sysdeps/x86_64/wcslen.S: New file.
71576
71577 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
71578
71579         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
71580         XMM-moves are used for copying on small sizes.
71581
71582 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71583
71584         * wcsmbs/Makefile (strop-tests): Add wcschr.
71585         * wcsmbs/test-wcschr.c: New file.
71586         * string/test-strchr.c: Update.
71587         Add wcschr support.
71588         (WIDE): New macro.
71589
71590 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71591
71592         * wcsmbs/Makefile (strop-tests): Add wcslen.
71593         * wcsmbs/test-wcslen.c: New file.
71594         * string/test-strlen.c: Update.
71595         Add wcslen support.
71596         (WIDE): New macro.
71597
71598 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71599
71600         * po/it.po: Update from translation team.
71601
71602 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71603
71604         * sysdeps/x86_64/wcscmp.S: Update.
71605         Fix wrong comparison semantics.
71606         wcscmp shall use signed comparison not unsigned.
71607         Don't use substraction to avoid overflow bug.
71608         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
71609         * wcsmbc/wcscmp.c: Likewise.
71610         * string/test-strcmp.c: Likewise.
71611         Add new tests to check cases with negative values.
71612
71613 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
71614
71615         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
71616         * sysdeps/x86_64/dla.h: ...here.  New file.
71617         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
71618         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71619         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71620         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71621         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71622         * sysdeps/ieee754/dbl-64/e_sqrt.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-23  Andreas Schwab  <schwab@linux-m68k.org>
71628
71629         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
71630         __ynl_finite aliases.
71631
71632 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71633
71634         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
71635
71636         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
71637         define DLA_FMA.
71638         [DLA_FMA] (EMULV): Use DLA_FMA.
71639         [DLA_FMA] (MUL12): Use EMULV.
71640         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
71641         that are not needed.
71642         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
71643         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
71644         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
71645         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
71646         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
71647         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
71648         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
71649
71650 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
71651
71652         * math/s_nan.c: Undef __nan.
71653         * math/s_nanf.c: Undef __nanf.
71654         * math/s_nanl.c: Undef __nanl.
71655         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
71656         "math_private.h".
71657
71658 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
71659
71660         * math/s_catan.c: Add branch predictions.
71661         * math/s_catanf.c: Likewise.
71662         * math/s_catanh.c: Likewise.
71663         * math/s_catanhf.c: Likewise.
71664         * math/s_catanhl.c: Likewise.
71665         * math/s_catanl.c: Likewise.
71666         * math/s_cexp.c: Likewise.
71667         * math/s_cexpf.c: Likewise.
71668         * math/s_cexpl.c: Likewise.
71669         * math/s_clog.c: Likewise.
71670         * math/s_clog10.c: Likewise.
71671         * math/s_clog10f.c: Likewise.
71672         * math/s_clog10l.c: Likewise.
71673         * math/s_clogf.c: Likewise.
71674         * math/s_clogl.c: Likewise.
71675         * math/s_csqrt.c: Likewise.
71676         * math/s_csqrtf.c: Likewise.
71677         * math/s_csqrtl.c: Likewise.
71678         * math/s_ctanf.c: Likewise.
71679         * math/s_ctanh.c: Likewise.
71680         * math/s_ctanhf.c: Likewise.
71681         * math/s_ctanhl.c: Likewise.
71682         * math/s_ctanl.c: Likewise.
71683
71684         * math/math_private.h: Define __nan, __nanf, __nanl.
71685         * math/s_cacosh.c: Include <math_private.h>.
71686         * math/s_cacoshl.c: Likewise.
71687         * math/s_casinh.c: Likewise.
71688         * math/s_casinhf.c: Likewise.
71689         * math/s_casinhl.c: Likewise.
71690         * math/s_ccos.c: Rely entire on ccosh.
71691         * math/s_ccosf.c: Rely entire on ccoshf.
71692         * math/s_ccosl.c: Rely entirely on ccoshl.
71693         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
71694         Remove tests for FE_INVALID.
71695         * math/s_ccoshf.c: Likewise.
71696         * math/s_ccoshl.c: Likewise.
71697         * math/s_csin.c: Likewise.
71698         * math/s_csinf.c: Likewise.
71699         * math/s_csinh.c Likewise.
71700         * math/s_csinhf.c: Likewise.
71701         * math/s_csinhl.c: Likewise.
71702         * math/s_csinl.c: Likewise.
71703         * math/s_ctan.c: Likewise.
71704         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
71705         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
71706         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
71707
71708 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
71709
71710         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
71711         compilation problems.
71712
71713         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
71714         __builtin_expect.
71715
71716 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
71717
71718         * sysdeps/i386/configure.in: Test for -mfma4 option.
71719         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
71720         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
71721         COMMON_CPUID_INDEX_80000001.
71722         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
71723         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
71724         use it if FMA3 is not supported.
71725         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
71726
71727         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
71728         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
71729
71730 2011-10-20  Andreas Schwab  <schwab@redhat.com>
71731
71732         [BZ #12892]
71733         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
71734         it would create a cycle with a link time dependency.
71735
71736 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
71737
71738         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
71739         instruction.
71740         * string/Makefile (strop-tests): Add rawmemchr.
71741         * string/test-rawmemchr.c: New file.
71742
71743         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
71744         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
71745         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
71746         when compiling str{,n}casecmp and when AVX is available.  Hook up
71747         new optimized code in initializers.
71748
71749 2011-10-19  Andreas Schwab  <schwab@redhat.com>
71750
71751         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
71752         __feraiseexcept instead of feraiseexcept.
71753
71754 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
71755
71756         * math/math_private.h: Define defaults for libc_fetestexcept and
71757         libc_feupdateenv.
71758         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
71759         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
71760         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
71761         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71762         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
71763         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71764         libc_fetestexcept and libc_feupdateenv.
71765
71766         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
71767         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
71768         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
71769         * sysdeps/x86_64/fpu/math_private.h: Define special version of
71770         libc_feholdexcept_setround.
71771
71772         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
71773         Add s_nearbyint-c and s_nearbyintf-c.
71774         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
71775         nearbyintf inlines.
71776         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
71777         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
71778         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
71779         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
71780
71781         * math/math_private.h: Define defaults for libc_fegetround,
71782         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
71783         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
71784         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
71785         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
71786         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
71787         standard functions.
71788         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
71789         Remove comments and hacks for old compiler versions.
71790         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
71791         libc_fegetround, libc_fesetround, libc_feholdexcept, and
71792         libc_feholdexceptl.
71793
71794 2011-10-18  Andreas Schwab  <schwab@redhat.com>
71795
71796         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
71797         (__feraiseexcept_renamed): Add __NTH.
71798         (feraiseexcept): Add __NTH.  Rename local variables to fix
71799         namespace violations.
71800
71801 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
71802
71803         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
71804
71805         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
71806
71807         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
71808         recently added interfaces.
71809         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
71810
71811         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
71812         about macro parameter expansion.
71813
71814         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
71815         __NO_MATH_INLINES is defined.  Cleanups.
71816
71817         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
71818         and __floorf is target has SSE4.1.
71819         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
71820         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
71821         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
71822         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
71823
71824         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
71825         name.
71826         (floorf): Likewise.
71827
71828         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
71829
71830 2011-10-17  Andreas Schwab  <schwab@redhat.com>
71831
71832         * misc/sys/cdefs.h: Fix last change.
71833
71834         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
71835         database lookup.
71836
71837 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
71838
71839         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
71840
71841         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
71842         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
71843         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
71844         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
71845         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
71846         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
71847         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
71848         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
71849         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
71850         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
71851         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
71852         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
71853         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
71854         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
71855         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
71856         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
71857         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
71858         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
71859         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
71860         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
71861         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
71862         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
71863
71864         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
71865         ceil, ceilf, floor, floorf.
71866
71867         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
71868         Perform IRELATIVE relocations last.
71869
71870         * elf/do-rel.h: Add another parameter nrelative, replacing the
71871         local variable with the same name.  Change name of the function
71872         to end in Rel or Rela (uppercase).
71873         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
71874         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
71875         elf_dynamic_do_##reloc function.
71876
71877 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71878
71879         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
71880         is sufficient, at least on modern CPUs.
71881
71882         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
71883
71884         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
71885         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
71886
71887         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
71888         __expl_finite.
71889         * math/bits/math-finite.h: Add entries for exp.
71890         * math/e_expl.c: Add __*_finite alias.
71891         * sysdeps/i386/fpu/e_exp.S: Likewise.
71892         * sysdeps/i386/fpu/e_expf.S: Likewise.
71893         * sysdeps/i386/fpu/e_expl.c: Likewise.
71894         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
71895         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
71896         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
71897         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
71898         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
71899         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
71900         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
71901
71902         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
71903         is sufficient, at least on modern CPUs.
71904
71905         * ctype/ctype-info.c (__ctype_init): Define.
71906         * include/ctype.h (__ctype_init): Declare.
71907         (__ctype_b_loc): The variable is always initialized.
71908         (__ctype_toupper_loc): Likewise.
71909         (__ctype_tolower_loc): Likewise.
71910         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
71911         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
71912
71913 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
71914
71915         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
71916
71917         * configure.in: Also look in $cxxmachine/include for C++ system
71918         headers.
71919
71920 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71921
71922         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
71923         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
71924         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
71925         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
71926         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
71927         (USE_AS_WMEMCMP): New macro.
71928         Fixing indents.
71929         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
71930         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
71931         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
71932         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
71933         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
71934         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
71935         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
71936         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
71937         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
71938         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
71939         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
71940         (USE_AS_WMEMCMP): New macro.
71941         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
71942         * sysdeps/string/test-memcmp.c: Update.
71943         Fix simple_wmemcmp.
71944         Add new tests.
71945         * wcsmbs/wmemcmp.c: Update.
71946         (WMEMCMP): New macro.
71947         Fix overflow bug.
71948
71949 2011-10-12  Andreas Jaeger  <aj@suse.de>
71950
71951         [BZ #13268]
71952         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
71953
71954 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
71955
71956         * libio/iofwide.c (do_length): Avoid warning.
71957
71958         * ctype/ctype.h (__isctype_f): Add missing __THROW.
71959
71960 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
71961
71962         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
71963
71964         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
71965         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
71966         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
71967         * sysdeps/i386/i686/fpu/e_log.S: New file.
71968         * sysdeps/i386/i686/fpu/e_logf.S: New file.
71969         * sysdeps/i386/i686/fpu/e_logl.S: New file.
71970
71971         * ctype/ctype.h: Add support for inlined isXXX functions when
71972         compiling C++ code.
71973
71974 2011-10-14  Andreas Schwab  <schwab@redhat.com>
71975
71976         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
71977
71978         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
71979
71980 2011-10-13  Roland McGrath  <roland@hack.frob.com>
71981
71982         [BZ #13291]
71983         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
71984
71985 2011-10-13  Andreas Schwab  <schwab@redhat.com>
71986
71987         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
71988         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
71989         feraiseexcept.
71990
71991         * sysdeps/x86_64/memrchr.S: Check for zero size.
71992
71993         * string/stratcliff.c: Add memrchr tests.
71994
71995 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
71996
71997         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
71998         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
71999         rawmemchr-sse2 rawmemchr-sse2-bsf.
72000         * sysdeps/i386/i686/multiarch/memchr.S: New file.
72001         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
72002         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
72003         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
72004         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
72005         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
72006         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
72007         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
72008         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
72009         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
72010         * string/memrchr.c (MEMRCHR): New macro.
72011
72012 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
72013
72014         Add integration with gcc's -ffinite-math-only and optimize wrapper
72015         functions in libm.
72016         * Versions.def: Define GLIBC_2.15 version for libm.
72017         * math/Makefile (headers): Add bits/math-finite.h.
72018         * math/bits/math-finite.h: New file.
72019         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
72020         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
72021         * math/e_acoshl.c: Add __*_finite alias.
72022         * math/e_acosl.c: Likewise.
72023         * math/e_asinl.c: Likewise.
72024         * math/e_atan2l.c: Likewise.
72025         * math/e_atanhl.c: Likewise.
72026         * math/e_coshl.c: Likewise.
72027         * math/e_exp10.c: Likewise.
72028         * math/e_exp10f.c: Likewise.
72029         * math/e_exp10l.c: Likewise.
72030         * math/e_exp2l.c: Likewise.
72031         * math/e_fmodl.c: Likewise.
72032         * math/e_gammal_r.c: Likewise.
72033         * math/e_hypotl.c: Likewise.
72034         * math/e_j0l.c: Likewise.
72035         * math/e_j1l.c: Likewise.
72036         * math/e_jnl.c: Likewise.
72037         * math/e_lgammal_r.c: Likewise.
72038         * math/e_log10l.c: Likewise.
72039         * math/e_log2l.c: Likewise.
72040         * math/e_logl.c: Likewise.
72041         * math/e_powl.c: Likewise.
72042         * math/e_sinhl.c: Likewise.
72043         * math/e_sqrtl.c: Likewise.
72044         * math/e_scalb.c: Completely rewritten and optimized.
72045         * math/e_scalbf.c: Likewise.
72046         * math/e_scalbl.c: Likewise.
72047         * math/w_acos.c: Likewise.
72048         * math/w_acosf.c: Likewise.
72049         * math/w_acosl.c: Likewise.
72050         * math/w_acosh.c: Likewise.
72051         * math/w_acoshf.c: Likewise.
72052         * math/w_acoshl.c: Likewise.
72053         * math/w_asin.c: Likewise.
72054         * math/w_asinf.c: Likewise.
72055         * math/w_asinl.c: Likewise.
72056         * math/w_atan2.c: Likewise.
72057         * math/w_atan2f.c: Likewise.
72058         * math/w_atan2l.c: Likewise.
72059         * math/w_atanh.c: Likewise.
72060         * math/w_atanhf.c: Likewise.
72061         * math/w_atanhl.c: Likewise.
72062         * math/w_exp10.c: Likewise.
72063         * math/w_exp10f.c: Likewise.
72064         * math/w_exp10l.c: Likewise.
72065         * math/w_fmod.c: Likewise.
72066         * math/w_fmodf.c: Likewise.
72067         * math/w_fmodl.c: Likewise.
72068         * math/w_j0.c: Likewise.
72069         * math/w_j0f.c: Likewise.
72070         * math/w_j0l.c: Likewise.
72071         * math/w_j1.c: Likewise.
72072         * math/w_j1f.c: Likewise.
72073         * math/w_j1l.c: Likewise.
72074         * math/w_jn.c: Likewise.
72075         * math/w_jnf.c: Likewise.
72076         * math/w_log.c: Likewise.
72077         * math/w_logf.c: Likewise.
72078         * math/w_logl.c: Likewise.
72079         * math/w_log10.c: Likewise.
72080         * math/w_log10f.c: Likewise.
72081         * math/w_log10l.c: Likewise.
72082         * math/w_log2.c: Likewise.
72083         * math/w_log2f.c: Likewise.
72084         * math/w_log2l.c: Likewise.
72085         * math/w_pow.c: Likewise.
72086         * math/w_powf.c: Likewise.
72087         * math/w_powl.c: Likewise.
72088         * math/w_remainder.c: Likewise.
72089         * math/w_remainderf.c: Likewise.
72090         * math/w_remainderl.c: Likewise.
72091         * math/w_scalb.c: Likewise.
72092         * math/w_scalbf.c: Likewise.
72093         * math/w_scalbl.c: Likewise.
72094         * math/w_sqrt.c: Likewise.
72095         * math/w_sqrtf.c: Likewise.
72096         * math/w_sqrtl.c: Likewise.
72097         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
72098         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
72099         used.
72100         * math/math_private.h: Declare __kernel_standard_f.
72101         * math/w_cosh.c: Remove cruft and optimize a bit.
72102         * math/w_coshf.c: Likewise.
72103         * math/w_coshl.c: Likewise.
72104         * math/w_exp2.c: Likewise.
72105         * math/w_exp2f.c: Likewise.
72106         * math/w_exp2l.c: Likewise.
72107         * math/w_hypot.c: Likewise.
72108         * math/w_hypotf.c: Likewise.
72109         * math/w_hypotl.c: Likewise.
72110         * math/w_lgamma.c: Likewise.
72111         * math/w_lgamma_r.c: Likewise.
72112         * math/w_lgammaf.c: Likewise.
72113         * math/w_lgammaf_r.c: Likewise.
72114         * math/w_lgammal.c: Likewise.
72115         * math/w_lgammal_r.c: Likewise.
72116         * math/w_sinh.c: Likewise.
72117         * math/w_sinhf.c: Likewise.
72118         * math/w_sinhl.c: Likewise.
72119         * math/w_tgamma.c: Likewise.
72120         * math/w_tgammaf.c: Likewise.
72121         * math/w_tgammal.c: Likewise.
72122         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
72123         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
72124         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
72125         Minor optimizations.  Pretty printing.  Remove cruft.
72126         * sysdeps/i386/fpu/e_acosf.S: Likewise.
72127         * sysdeps/i386/fpu/e_acosh.S: Likewise.
72128         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
72129         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
72130         * sysdeps/i386/fpu/e_acosl.c: Likewise.
72131         * sysdeps/i386/fpu/e_asin.S: Likewise.
72132         * sysdeps/i386/fpu/e_asinf.S: Likewise.
72133         * sysdeps/i386/fpu/e_atan2.S: Likewise.
72134         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
72135         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
72136         * sysdeps/i386/fpu/e_atanh.S: Likewise.
72137         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
72138         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
72139         * sysdeps/i386/fpu/e_exp10.S: Likewise.
72140         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
72141         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
72142         * sysdeps/i386/fpu/e_exp2.S: Likewise.
72143         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
72144         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
72145         * sysdeps/i386/fpu/e_fmod.S: Likewise.
72146         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
72147         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
72148         * sysdeps/i386/fpu/e_hypot.S: Likewise.
72149         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
72150         * sysdeps/i386/fpu/e_log.S: Likewise.
72151         * sysdeps/i386/fpu/e_log10.S: Likewise.
72152         * sysdeps/i386/fpu/e_log10f.S: Likewise.
72153         * sysdeps/i386/fpu/e_log10l.S: Likewise.
72154         * sysdeps/i386/fpu/e_log2.S: Likewise.
72155         * sysdeps/i386/fpu/e_log2f.S: Likewise.
72156         * sysdeps/i386/fpu/e_log2l.S: Likewise.
72157         * sysdeps/i386/fpu/e_logf.S: Likewise.
72158         * sysdeps/i386/fpu/e_logl.S: Likewise.
72159         * sysdeps/i386/fpu/e_pow.S: Likewise.
72160         * sysdeps/i386/fpu/e_powf.S: Likewise.
72161         * sysdeps/i386/fpu/e_powl.S: Likewise.
72162         * sysdeps/i386/fpu/e_remainder.S: Likewise.
72163         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
72164         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
72165         * sysdeps/i386/fpu/e_scalb.S: Likewise.
72166         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
72167         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
72168         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
72169         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
72170         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
72171         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
72172         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
72173         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
72174         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
72175         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
72176         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
72177         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
72178         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
72179         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
72180         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
72181         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
72182         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
72183         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
72184         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
72185         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
72186         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
72187         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
72188         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
72189         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
72190         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
72191         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
72192         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
72193         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
72194         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
72195         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
72196         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
72197         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
72198         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
72199         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
72200         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
72201         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
72202         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
72203         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
72204         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
72205         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
72206         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
72207         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
72208         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
72209         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
72210         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
72211         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
72212         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
72213         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
72214         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
72215         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
72216         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
72217         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
72218         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
72219         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
72220         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
72221         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
72222         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
72223         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
72224         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
72225         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
72226         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
72227         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
72228         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
72229         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
72230         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
72231         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
72232         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
72233         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
72234         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
72235         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
72236         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
72237         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
72238         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
72239         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
72240         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
72241         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
72242         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
72243         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
72244         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
72245         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
72246         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
72247         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
72248         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
72249         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
72250         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
72251         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
72252         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
72253         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
72254         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
72255         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
72256         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
72257         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
72258         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
72259         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
72260         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
72261         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
72262         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
72263         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
72264         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
72265         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
72266         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
72267         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
72268         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
72269         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
72270         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
72271         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
72272         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
72273         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
72274         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
72275         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
72276         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
72277         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
72278         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
72279         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
72280         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
72281         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
72282         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
72283         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
72284         (__isnanf): Likewise.
72285         (__isinf_ns): Likewise.
72286         (__isinf_nsf): Likewise.
72287         (__finite): Likewise.
72288         (__finitef): Likewise.
72289         (__ieee754_sqrt): Define as macro.
72290         (__ieee754_sqrtf): Define as macro.
72291         (__ieee754_sqrtl): Define as macro.
72292         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
72293         inlined copy.
72294         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
72295         __FINITE_MATH_ONLY__ consistent.
72296         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
72297
72298 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
72299
72300         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
72301         of rawmemchr.
72302
72303         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
72304
72305 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
72306
72307         * po/ja.po: Update from translation team.
72308
72309 2011-10-08  Roland McGrath  <roland@hack.frob.com>
72310
72311         * locale/programs/locarchive.c (prepare_address_space): New function.
72312         (create_archive, enlarge_archive, open_archive): Use it.
72313
72314         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
72315         inside [SHARED], where it is used.
72316
72317         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
72318
72319         * nss/getent.c (netgroup_keys): Remove unused variable.
72320         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
72321
72322 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
72323
72324         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
72325         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
72326         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
72327         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
72328         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
72329         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
72330         * math/Makefile (libm-calls): Add s_isinf_ns.
72331         * math/divtc3.c: Use __isinf_nsl instead of isinf.
72332         * math/multc3.c: Likewise.
72333         * math/s_casin.c: Likewise.
72334         * math/s_casinf.c: Likewise.
72335         * math/s_casinl.c: Likewise.
72336         * math/s_ccos.c: Likewise.
72337         * math/s_ccosf.c: Likewise.
72338         * math/s_ccosl.c: Likewise.
72339         * math/s_ctan.c: Likewise.
72340         * math/s_ctanf.c: Likewise.
72341         * math/s_ctanh.c: Likewise.
72342         * math/s_ctanhf.c: Likewise.
72343         * math/s_ctanhl.c: Likewise.
72344         * math/s_ctanl.c: Likewise.
72345         * math/w_fmod.c: Likewise.
72346         * math/w_fmodf.c: Likewise.
72347         * math/w_fmodl.c: Likewise.
72348         * math/w_remainder.c: Likewise.
72349         * math/w_remainderf.c: Likewise.
72350         * math/w_remainderl.c: Likewise.
72351         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
72352         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
72353         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
72354         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
72355         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
72356         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
72357         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
72358         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
72359
72360         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
72361         of the number.
72362         * stdio-common/printf_fphex.c: Likewise.
72363         * stdio-common/printf_size.c: Likewise.
72364
72365         * math/e_exp10.c: Include math_private.h using <...> not "...".
72366         * math/e_exp10f.c: Likewise.
72367         * math/e_exp10l.c: Likewise.
72368         * math/e_exp2l.c: Likewise.
72369         * math/e_j0l.c: Likewise.
72370         * math/e_j1l.c: Likewise.
72371         * math/e_jnl.c: Likewise.
72372         * math/e_lgammal_r.c: Likewise.
72373         * math/e_rem_pio2l.c: Likewise.
72374         * math/e_scalb.c: Likewise.
72375         * math/e_scalbf.c: Likewise.
72376         * math/e_scalbl.c: Likewise.
72377         * math/k_cosl.c: Likewise.
72378         * math/k_sinl.c: Likewise.
72379         * math/k_tanl.c: Likewise.
72380         * math/s_cacoshf.c: Likewise.
72381         * math/s_catan.c: Likewise.
72382         * math/s_catanf.c: Likewise.
72383         * math/s_catanh.c: Likewise.
72384         * math/s_catanhf.c: Likewise.
72385         * math/s_catanhl.c: Likewise.
72386         * math/s_catanl.c: Likewise.
72387         * math/s_ccosh.c: Likewise.
72388         * math/s_ccoshf.c: Likewise.
72389         * math/s_ccoshl.c: Likewise.
72390         * math/s_cexp.c: Likewise.
72391         * math/s_cexpf.c: Likewise.
72392         * math/s_cexpl.c: Likewise.
72393         * math/s_clog.c: Likewise.
72394         * math/s_clog10.c: Likewise.
72395         * math/s_clog10f.c: Likewise.
72396         * math/s_clog10l.c: Likewise.
72397         * math/s_clogf.c: Likewise.
72398         * math/s_clogl.c: Likewise.
72399         * math/s_csin.c: Likewise.
72400         * math/s_csinf.c: Likewise.
72401         * math/s_csinh.c: Likewise.
72402         * math/s_csinhf.c: Likewise.
72403         * math/s_csinhl.c: Likewise.
72404         * math/s_csinl.c: Likewise.
72405         * math/s_csqrt.c: Likewise.
72406         * math/s_csqrtf.c: Likewise.
72407         * math/s_csqrtl.c: Likewise.
72408         * math/s_ctan.c: Likewise.
72409         * math/s_ctanf.c: Likewise.
72410         * math/s_ctanh.c: Likewise.
72411         * math/s_ctanhf.c: Likewise.
72412         * math/s_ctanhl.c: Likewise.
72413         * math/s_ctanl.c: Likewise.
72414         * math/s_ldexp.c: Likewise.
72415         * math/s_ldexpf.c: Likewise.
72416         * math/s_ldexpl.c: Likewise.
72417         * math/s_significand.c: Likewise.
72418         * math/s_significandf.c: Likewise.
72419         * math/s_significandl.c: Likewise.
72420         * math/w_acos.c: Likewise.
72421         * math/w_acosf.c: Likewise.
72422         * math/w_acosh.c: Likewise.
72423         * math/w_acoshf.c: Likewise.
72424         * math/w_acoshl.c: Likewise.
72425         * math/w_acosl.c: Likewise.
72426         * math/w_asin.c: Likewise.
72427         * math/w_asinf.c: Likewise.
72428         * math/w_asinl.c: Likewise.
72429         * math/w_atan2.c: Likewise.
72430         * math/w_atan2f.c: Likewise.
72431         * math/w_atan2l.c: Likewise.
72432         * math/w_atanh.c: Likewise.
72433         * math/w_atanhf.c: Likewise.
72434         * math/w_atanhl.c: Likewise.
72435         * math/w_cosh.c: Likewise.
72436         * math/w_coshf.c: Likewise.
72437         * math/w_coshl.c: Likewise.
72438         * math/w_dremf.c: Likewise.
72439         * math/w_exp10.c: Likewise.
72440         * math/w_exp10f.c: Likewise.
72441         * math/w_exp10l.c: Likewise.
72442         * math/w_exp2.c: Likewise.
72443         * math/w_exp2f.c: Likewise.
72444         * math/w_fmod.c: Likewise.
72445         * math/w_fmodf.c: Likewise.
72446         * math/w_fmodl.c: Likewise.
72447         * math/w_hypot.c: Likewise.
72448         * math/w_hypotf.c: Likewise.
72449         * math/w_hypotl.c: Likewise.
72450         * math/w_j0.c: Likewise.
72451         * math/w_j0f.c: Likewise.
72452         * math/w_j0l.c: Likewise.
72453         * math/w_j1.c: Likewise.
72454         * math/w_j1f.c: Likewise.
72455         * math/w_j1l.c: Likewise.
72456         * math/w_jn.c: Likewise.
72457         * math/w_jnf.c: Likewise.
72458         * math/w_jnl.c: Likewise.
72459         * math/w_lgamma.c: Likewise.
72460         * math/w_lgamma_r.c: Likewise.
72461         * math/w_lgammaf.c: Likewise.
72462         * math/w_lgammaf_r.c: Likewise.
72463         * math/w_lgammal.c: Likewise.
72464         * math/w_lgammal_r.c: Likewise.
72465         * math/w_log.c: Likewise.
72466         * math/w_log10.c: Likewise.
72467         * math/w_log10f.c: Likewise.
72468         * math/w_log10l.c: Likewise.
72469         * math/w_log2.c: Likewise.
72470         * math/w_log2f.c: Likewise.
72471         * math/w_log2l.c: Likewise.
72472         * math/w_logf.c: Likewise.
72473         * math/w_logl.c: Likewise.
72474         * math/w_pow.c: Likewise.
72475         * math/w_powf.c: Likewise.
72476         * math/w_powl.c: Likewise.
72477         * math/w_remainder.c: Likewise.
72478         * math/w_remainderf.c: Likewise.
72479         * math/w_remainderl.c: Likewise.
72480         * math/w_scalb.c: Likewise.
72481         * math/w_scalbf.c: Likewise.
72482         * math/w_scalbl.c: Likewise.
72483         * math/w_sinh.c: Likewise.
72484         * math/w_sinhf.c: Likewise.
72485         * math/w_sinhl.c: Likewise.
72486         * math/w_sqrt.c: Likewise.
72487         * math/w_sqrtf.c: Likewise.
72488         * math/w_sqrtl.c: Likewise.
72489         * math/w_tgamma.c: Likewise.
72490         * math/w_tgammaf.c: Likewise.
72491         * math/w_tgammal.c: Likewise.
72492
72493         * po/ja.po: Update from translation team.
72494
72495 2011-09-29  Andreas Jaeger  <aj@suse.de>
72496
72497         [BZ #13179]
72498         * sunrpc/netname.c (netname2host): Fix logic.
72499
72500         [BZ #6779]
72501         [BZ #6783]
72502         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
72503         correctly.
72504         * math/w_remainder.c (__remainder): Likewise.
72505         * math/w_remainderf.c (__remainderf): Likewise.
72506         * math/libm-test.inc (remainder_test): Add test cases.
72507
72508 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
72509
72510         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
72511         sdiv_qrnnd.
72512
72513 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72514
72515         * string/test-memcmp.c: Avoid unncessary #defines.
72516         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
72517
72518 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
72519
72520         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
72521         Use new sse2 version for core i3 - i7 as it's faster
72522         than sse42 version.
72523         (bit_Prefer_PMINUB_for_stringop): New.
72524         * sysdeps/x86_64/rawmemchr.S: Update.
72525         Replace with faster SSE2 version.
72526         * sysdeps/x86_64/memrchr.S: New file.
72527         * sysdeps/x86_64/memchr.S: Update.
72528         Replace with faster SSE2 version.
72529
72530 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
72531
72532         * elf/dl-load.c (lose): Add cast to avoid warning.
72533
72534 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
72535
72536         * po/ca.po: Update from translation team.
72537
72538         * inet/getnetgrent_r.c: Hook up nscd.
72539         * nscd/Makefile (routines): Add nscd_netgroup.
72540         (nscd-modules): Add netgroupcache.
72541         (CFLAGS-netgroupcache.c): Define.
72542         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
72543         (cache_search): Add const to second parameter.
72544         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
72545         INNETGR.
72546         (dbs): Add netgrdb entry.
72547         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
72548         (verify_persistent_db): Handle netgrdb.
72549         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
72550         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
72551         GETFDNETGR.
72552         (netgroup_response_header): Define.
72553         (innetgroup_response_header): Define.
72554         (datahead): Add netgroup_response_header and innetgroup_response_header
72555         elements.
72556         * nscd/nscd.conf: Add entries for netgroup cache.
72557         * nscd/nscd.h (dbtype): Add netgrdb.
72558         (_PATH_NSCD_NETGROUP_DB): Define.
72559         (netgroup_iov_disabled): Declare.
72560         (xmalloc, xcalloc, xrealloc): Move declarations here.
72561         (cache_search): Adjust prototype.
72562         Add netgroup-related prototypes.
72563         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
72564         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
72565         (__nscd_innetgr): Declare.
72566         * nscd/selinux.c (perms): Use access_vector_t as element type and
72567         add netgroup-related initializers.
72568         * nscd/netgroupcache.c: New file.
72569         * nscd/nscd_netgroup.c: New file.
72570         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
72571         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
72572         For four parameters use innetgr.
72573         * nss/nss_files/files-init.c: Add definition and callback for netgr.
72574         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
72575         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
72576         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
72577
72578         * nscd/connections.c (register_traced_file): Don't register file
72579         for disabled databases.
72580
72581 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
72582
72583         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
72584
72585         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
72586         from tree and freeing node.
72587
72588 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
72589
72590         * nss/nsswitch.c (__nss_database_lookup): Handle
72591         nss_parse_service_list out of memory case.
72592
72593 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
72594
72595         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
72596         out of memory case.
72597
72598 2011-10-04  Andreas Schwab  <schwab@redhat.com>
72599
72600         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
72601         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
72602         pass it down.
72603         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
72604         elf_machine_rela, elf_machine_lazy_rel.
72605         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
72606         (ELF_DYNAMIC_DO_REL): Likewise.
72607         (ELF_DYNAMIC_DO_RELA): Likewise.
72608         (ELF_DYNAMIC_RELOCATE): Likewise.
72609         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
72610         to ELF_DYNAMIC_DO_REL.
72611         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
72612         (dl_main): In trace mode always set __RTLD_NOIFUNC.
72613         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
72614         elf_machine_rela.
72615         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
72616         skip_ifunc, don't call ifunc function if non-zero.
72617         (elf_machine_rela): Likewise.
72618         (elf_machine_lazy_rel): Likewise.
72619         (elf_machine_lazy_rela): Likewise.
72620         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
72621         (elf_machine_lazy_rel): Likewise.
72622         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
72623         Likewise.
72624         (elf_machine_lazy_rel): Likewise.
72625         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72626         Likewise.
72627         (elf_machine_lazy_rel): Likewise.
72628         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
72629         (elf_machine_lazy_rel): Likewise.
72630         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
72631         (elf_machine_lazy_rel): Likewise.
72632         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
72633         (elf_machine_lazy_rel): Likewise.
72634         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
72635         (elf_machine_lazy_rel): Likewise.
72636         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
72637         (elf_machine_lazy_rel): Likewise.
72638         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
72639         (elf_machine_lazy_rel): Likewise.
72640
72641 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
72642
72643         * nss/nss_files/files-init.c (_nss_files_init): Use static
72644         initialization for all the *_traced_file variables.
72645
72646 2011-09-28  Andreas Schwab  <schwab@redhat.com>
72647
72648         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72649
72650 2011-09-27  Roland McGrath  <roland@hack.frob.com>
72651
72652         [BZ #13226]
72653         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
72654
72655 2011-09-27  Andreas Schwab  <schwab@redhat.com>
72656
72657         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
72658         Reread the line before reparsing it.
72659
72660 2011-09-26  Andreas Schwab  <schwab@redhat.com>
72661
72662         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
72663
72664 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
72665             Maxim Kuvyrkov  <maxim@codesourcery.com>
72666             Joseph Myers  <joseph@codesourcery.com>
72667
72668         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
72669         if needed for __stack_chk_guard.
72670
72671 2011-09-19  Roland McGrath  <roland@hack.frob.com>
72672
72673         * sysdeps/posix/spawni.c (script_execute): Always define it.
72674         It will be optimized away if unused.
72675         (maybe_script_execute): New function.
72676         (__spawni): Call it.
72677
72678         * Makerules: Don't include tls.make.
72679         (config-tls): Always set to thread.
72680         * tls.make.c: File removed.
72681
72682 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
72683
72684         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
72685         * config.make.in (CPPFLAGS-config): New substituted variable.
72686
72687 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72688
72689         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
72690
72691         [BZ #13192]
72692         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
72693         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
72694
72695 2011-09-15  Roland McGrath  <roland@hack.frob.com>
72696
72697         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
72698         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
72699         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
72700         (CALL_FAIL): Likewise.
72701         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
72702         (CALL_FAIL): Macro removed.
72703         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
72704
72705 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
72706
72707         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
72708         for __FINITE_MATH_ONLY__ == 1.
72709
72710 2011-09-15  Andreas Schwab  <schwab@redhat.com>
72711
72712         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
72713         __ieee754_sqrt instead of sqrt.
72714         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
72715         __ieee754_sqrtf instead of sqrtf.
72716         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
72717         __floorf instead of floorf.
72718         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
72719         __floorf, __truncf instead of floorf, truncf.
72720
72721 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
72722
72723         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
72724
72725         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
72726         __extern_always_inline.
72727         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
72728         32-bit.
72729
72730 2011-09-14  Andreas Schwab  <schwab@redhat.com>
72731
72732         * elf/rtld.c (dl_main): Also relocate in dependency order when
72733         doing symbol dependency testing.
72734
72735 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
72736
72737         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
72738         Always define `refsym'.
72739
72740 2011-09-13  Andreas Schwab  <schwab@redhat.com>
72741
72742         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
72743         (__FD_ELT): Renamed from __FDELT.
72744         * misc/bits/select2.h (__FD_ELT): Likewise.
72745         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
72746         __FD_MASK instead of __FDELT, __FDMASK.
72747         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72748         Likewise.
72749         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
72750         Likewise.
72751
72752         * elf/Makefile (gen-ldd): Fix pattern.
72753
72754         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
72755         (init_tls): Likewise.
72756
72757 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
72758
72759         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
72760
72761 2011-09-12  Andreas Schwab  <schwab@redhat.com>
72762
72763         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
72764         `struct cmsghdr *' instead of `void *'.
72765         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
72766         Likewise.
72767
72768 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
72769
72770         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
72771         if non-absolute.
72772         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
72773         ldd_rewrite_script.
72774
72775 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
72776
72777         * configure.in: Remove --with-tls option.
72778         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
72779         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
72780         out in case it is missing.
72781         * sysdeps/ia64/elf/configure.in: Likewise.
72782         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
72783         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
72784         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
72785         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
72786         * sysdeps/sh/elf/configure.in: Likewise.
72787         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
72788         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
72789         * sysdeps/x86_64/elf/configure.in: Likewise.
72790         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
72791         * sysdeps/mach/hurd/tls.h: Likewise.
72792
72793         [BZ #13067]
72794         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
72795
72796         [BZ #13090]
72797         * configure.in: Fix use of AC_INIT.
72798
72799         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
72800
72801 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
72802
72803         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
72804         __set_errno.
72805         * malloc/hooks.c: Likewise.
72806
72807         [BZ #11929]
72808         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
72809         variables statically.
72810         (narenas): Initialize.
72811         (list_lock): Initialize.
72812         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
72813         initializtion of main_arena and list_lock.  Small cleanups.
72814         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
72815         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
72816         Add initializers to main_arena and mp_.
72817         (malloc_state): Remove pagesize member.  Change all users to use
72818         GLRO(dl_pagesize).
72819
72820         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
72821         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
72822         is always initialized.
72823
72824         * malloc/malloc.c: Removed unused configurations and dead code.
72825         * malloc/arena.c: Likewise.
72826         * malloc/hooks.c: Likewise.
72827         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
72828
72829         * include/tls.h: Removed.  USE___THREAD must always be defined.
72830         * bits/libc-tsd.h: Don't handle !USE___THREAD.
72831         * elf/dl-libc.c: Likewise.
72832         * elf/dl-tsd.c: Likewise.
72833         * include/errno.h: Likewise.
72834         * include/netdb.h: Likewise.
72835         * include/resolv.h: Likewise.
72836         * inet/herrno-loc.c: Likewise.
72837         * inet/herrno.c: Likewise.
72838         * malloc/arena.c: Likewise.
72839         * malloc/hooks.c: Likewise.
72840         * malloc/malloc.c: Likewise.
72841         * resolv/res-state.c: Likewise.
72842         * resolv/res_libc.c: Likewise.
72843         * sysdeps/i386/dl-machine.h: Likewise.
72844         * sysdeps/ia64/dl-machine.h: Likewise.
72845         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
72846         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
72847         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
72848         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
72849         * sysdeps/sh/dl-machine.h: Likewise.
72850         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
72851         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
72852         * sysdeps/unix/i386/sysdep.S: Likewise.
72853         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
72854         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
72855         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
72856         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
72857         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
72858         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
72859         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
72860         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
72861         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
72862         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
72863         * sysdeps/unix/x86_64/sysdep.S: Likewise.
72864         * sysdeps/x86_64/dl-machine.h: Likewise.
72865         * tls.make.c: Likewise.
72866
72867         * configure.in: Remove --with-__thread option.  Make tests for
72868         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
72869         tls_model attribute fail if no support is available.  Remove
72870         USE_IN_LIBIO.
72871         * Makeconfig: Adjust for dropped configure option.  All features are
72872         now mandatory.
72873         * Makerules: Likewise.
72874         * Versions.def: Likewise.
72875         * argp/argp-fmtstream.c: Likewise.
72876         * argp/argp-fmtstream.h: Likewise.
72877         * argp/argp-help.c: Likewise.
72878         * assert/assert.c: Likewise.
72879         * config.h.in: Likewise.
72880         * config.make.in: Likewise.
72881         * configure: Likewise.
72882         * configure.in: Likewise.
72883         * csu/Versions: Likewise.
72884         * csu/init.c: Likewise.
72885         * elf/tst-audit2.c: Likewise.
72886         * elf/tst-tls10.c: Likewise.
72887         * elf/tst-tls10.h: Likewise.
72888         * elf/tst-tls11.c: Likewise.
72889         * elf/tst-tls12.c: Likewise.
72890         * elf/tst-tls14.c: Likewise.
72891         * elf/tst-tlsmod11.c: Likewise.
72892         * elf/tst-tlsmod12.c: Likewise.
72893         * elf/tst-tlsmod13.c: Likewise.
72894         * elf/tst-tlsmod13a.c: Likewise.
72895         * elf/tst-tlsmod14a.c: Likewise.
72896         * elf/tst-tlsmod15b.c: Likewise.
72897         * elf/tst-tlsmod16a.c: Likewise.
72898         * elf/tst-tlsmod16b.c: Likewise.
72899         * elf/tst-tlsmod7.c: Likewise.
72900         * elf/tst-tlsmod8.c: Likewise.
72901         * elf/tst-tlsmod9.c: Likewise.
72902         * gmon/gmon.c: Likewise.
72903         * grp/fgetgrent_r.c: Likewise.
72904         * grp/putgrent.c: Likewise.
72905         * hurd/fopenport.c: Likewise.
72906         * include/libc-symbols.h: Likewise.
72907         * include/tls.h: Likewise.
72908         * intl/gettextP.h: Likewise.
72909         * intl/loadinfo.h: Likewise.
72910         * locale/global-locale.c: Likewise.
72911         * locale/localeinfo.h: Likewise.
72912         * mach/devstream.c: Likewise.
72913         * malloc/arena.c: Likewise.
72914         * malloc/set-freeres.c: Likewise.
72915         * misc/err.c: Likewise.
72916         * misc/getttyent.c: Likewise.
72917         * misc/mntent_r.c: Likewise.
72918         * posix/getopt.c: Likewise.
72919         * posix/wordexp.c: Likewise.
72920         * pwd/fgetpwent_r.c: Likewise.
72921         * resolv/Versions: Likewise.
72922         * resolv/res_hconf.c: Likewise.
72923         * shadow/fgetspent_r.c: Likewise.
72924         * shadow/putspent.c: Likewise.
72925         * stdio-common/printf_fphex.c: Likewise.
72926         * stdio-common/tmpfile.c: Likewise.
72927         * stdlib/abort.c: Likewise.
72928         * stdlib/fmtmsg.c: Likewise.
72929         * sunrpc/auth_unix.c: Likewise.
72930         * sunrpc/clnt_perr.c: Likewise.
72931         * sunrpc/clnt_tcp.c: Likewise.
72932         * sunrpc/clnt_udp.c: Likewise.
72933         * sunrpc/clnt_unix.c: Likewise.
72934         * sunrpc/openchild.c: Likewise.
72935         * sunrpc/svc_simple.c: Likewise.
72936         * sunrpc/svc_tcp.c: Likewise.
72937         * sunrpc/svc_udp.c: Likewise.
72938         * sunrpc/svc_unix.c: Likewise.
72939         * sunrpc/xdr.c: Likewise.
72940         * sunrpc/xdr_array.c: Likewise.
72941         * sunrpc/xdr_rec.c: Likewise.
72942         * sunrpc/xdr_ref.c: Likewise.
72943         * sunrpc/xdr_stdio.c: Likewise.
72944
72945 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72946
72947         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
72948
72949 2011-07-03  Andreas Jaeger  <aj@suse.de>
72950
72951         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
72952         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
72953         regenerate with gen-libm-tests.pl.
72954
72955 2010-05-12  Petr Baudis  <pasky@suse.cz>
72956
72957         [BZ #11589]
72958         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
72959         around j0() zero points by switching to j1().
72960         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
72961         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
72962         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
72963         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
72964
72965 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72966
72967         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
72968         instead of 0.
72969         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
72970         instead of 0.
72971         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
72972         Patch in part by Pavel Roskin <proski@gnu.org>.
72973
72974         [BZ #13138]
72975         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
72976         realloc.
72977         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
72978         Free memory block if necessary.
72979
72980         [BZ #12847]
72981         * libio/genops.c (INTDEF): For string streams the _lock pointer can
72982         be NULL.  Don't lock in this case.
72983
72984 2011-09-09  Roland McGrath  <roland@hack.frob.com>
72985
72986         * elf/elf.h (ELFOSABI_GNU): New macro.
72987         (ELFOSABI_LINUX): Define to that.
72988
72989 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
72990
72991         * string/strncat.c (strncat): Undef the symbol in case it has been
72992         defined in bits/string.h.
72993
72994 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
72995
72996         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
72997
72998         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
72999         link map.
73000
73001 2011-08-17  Andreas Jaeger  <aj@suse.de>
73002
73003         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
73004
73005 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
73006             Ian Lance Taylor  <iant@google.com>
73007
73008         * math/libm-test.inc (lround_test): New testcase.
73009         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
73010
73011 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
73012
73013         * Makefile: Remove support for automatic cvs check-ins.
73014         * Makerules: Likewise.
73015         * config.make.in: Likewise.
73016         * configure.in: Likewise.
73017         * intl/Makefile: Likewise.
73018         * locale/Makefile: Likewise.
73019         * po/Makefile: Likewise.
73020         * posix/Makefile: Likewise.
73021         * sysdeps/gnu/Makefile: Likewise.
73022         * sysdeps/mach/hurd/Makefile: Likewise.
73023         * sysdeps/sparc/sparc32/Makefile: Likewise.
73024
73025         [BZ #13118]
73026         * posix/Makefile (bug-regex32-ENV): Define.
73027         Patch by John Stanley <jpsinthemix@verizon.net>.
73028
73029         * misc/Makefile (headers): Add bits/select2.h.
73030         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
73031         * misc/bits/select2.h: New file.
73032         * include/bits/select2.h: New file.
73033         * debug/Makefile (routines): Add fdelt_chk.
73034         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
73035         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
73036         FD_ISSET.
73037         * debug/fdelt_chk.c: New file.
73038
73039         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
73040         * wcsmbs/test-wmemcmp.c: Likewise.
73041         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
73042         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
73043
73044 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73045
73046         * string/Makefile (strop-tests): Add memcmp.
73047         * string/test-wmemcmp.c: New file.
73048         * string/test-memcmp.c: Add wmemcmp support.
73049
73050 2011-09-08  Roland McGrath  <roland@hack.frob.com>
73051
73052         [BZ #13153]
73053         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
73054         2011-07-19 change.
73055
73056         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
73057         garbage value in a __mach_port_mod_refs call in the cases of the
73058         task-self and thread-self ports.
73059
73060 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
73061
73062         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
73063
73064 2011-09-08  Andreas Schwab  <schwab@redhat.com>
73065
73066         * elf/dl-load.c (lose): Check for non-null L.
73067
73068 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
73069
73070         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
73071
73072         * elf/dl-libc.c (dlerror_run): Pass back error code from
73073         dl_catch_error.
73074
73075         [BZ #13123]
73076         * elf/dl-load.c (lose): Free l_origin if it is valid.
73077
73078         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
73079         names.
73080         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
73081         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
73082         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
73083         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
73084         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
73085         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
73086
73087 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
73088
73089         * sysdeps/powerpc/fpu/e_hypot.c: New file.
73090         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
73091         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
73092         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
73093         * sysdeps/powerpc/fpu/k_cosf.c: New file.
73094         * sysdeps/powerpc/fpu/k_sinf.c: New file.
73095         * sysdeps/powerpc/fpu/s_cosf.c: New file.
73096         * sysdeps/powerpc/fpu/s_sinf.c: New file.
73097         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
73098         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
73099
73100 2011-08-15  Alan Modra  <amodra@gmail.com>
73101
73102         [BZ #13092]
73103         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
73104         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
73105         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
73106         ppc_mcount to static-only-routines.
73107         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
73108         __mcount_internal.
73109         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
73110         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
73111
73112 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
73113
73114         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
73115         for finite and infinity parameters.
73116
73117 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
73118
73119         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
73120         and add nop instructions for throughput optimization.
73121         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
73122
73123 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
73124
73125         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
73126         aligned copy for power7 with vector-scalar instructions.
73127         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
73128
73129 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
73130
73131         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
73132         AVX check.
73133
73134 2011-09-07  Andreas Schwab  <schwab@redhat.com>
73135
73136         [BZ #13144]
73137         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
73138         last change.
73139
73140 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
73141
73142         * sysdeps/unix/sysv/linux/x86_64/init-first.c
73143         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
73144         syscall wrapper around clock_gettime in __vdso_clock_gettime.
73145         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
73146         clock_gettime.
73147
73148 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
73149
73150         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
73151         Forgot to demangle the pointer.
73152
73153         * sysdeps/i386/sysdep.h: Define atom_text_section.
73154         * sysdeps/x86_64/sysdep.h: Likewise.
73155         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
73156         section with atom_text_section.
73157         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
73158         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
73159         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
73160         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73161         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
73162
73163         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
73164         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
73165         already be defined.  Change to take two parameters and don't assign
73166         result to variable.  Adjust all users.
73167         Define INTERNAL_GETTIME if not already defined.
73168         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
73169         call.
73170         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
73171         HAVE_CLOCK_GETTIME_VSYSCALL.
73172         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
73173
73174         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
73175         gettimeofday vsyscall, just use time.
73176
73177 2011-09-06  Andreas Schwab  <schwab@redhat.com>
73178
73179         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
73180         <errno.h>.
73181
73182 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
73183
73184         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
73185         syscall on x86-64.
73186         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
73187         syscall.
73188         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
73189         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
73190         syscall if possible.
73191
73192 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73193
73194         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
73195         e_ident.  Don't pass to find_mapsXX.
73196         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
73197
73198 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73199
73200         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73201         strchr-sse2-no-bsf strrchr-sse2-no-bsf
73202         * sysdeps/x86_64/multiarch/strchr.S: Update.
73203         Check bit_slow_BSF bit.
73204         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
73205         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
73206         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
73207
73208 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73209
73210         [BZ #13134]
73211         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
73212         before glibc 2.15.
73213         (tryshell): Define.
73214         (__spawni): Change last parameter to be flag.  Test
73215         SPAWN_XFLAGS_USE_PATH flag to use path or not.
73216         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
73217         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
73218         * posix/spawni.c: Likewise.
73219         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
73220         * posix/spawnp.c: Likewise.  Change normal version to use
73221         SPAWN_XFLAGS_USE_PATH.
73222         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
73223         SPAWN_XFLAGS_TRY_SHELL.
73224
73225         [BZ #13150]
73226         * posix/glob.h: Remove gcc 1.x support.
73227
73228         [BZ #13068]
73229         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
73230
73231 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73232
73233         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73234         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
73235         strrchr-sse2-bsf
73236         * sysdeps/i386/i686/multiarch/strchr.S: New file.
73237         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
73238         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
73239         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
73240         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
73241         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
73242
73243 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73244
73245         * sysdeps/x86_64/wcscmp.S: New file.
73246
73247         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
73248         wcscmp-c wcscmp-sse2
73249         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
73250         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
73251         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
73252         * wcsmbs/wcscmp.c: Allow renaming.
73253
73254 2011-09-05  David S. Miller  <davem@davemloft.net>
73255
73256         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
73257         stack slot, rather than the struct return pointer slot.
73258         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
73259         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
73260         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
73261         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
73262
73263 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
73264
73265         * po/ja.po: Update from translation team.
73266
73267         [BZ #13144]
73268         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
73269         kernel in 64-bit binaries.
73270
73271 2011-09-01  David S. Miller  <davem@davemloft.net>
73272
73273         * elf/elf.h (HWCAP_SPARC_*): Move to..
73274         * sysdeps/sparc/sysdep.h: this new file and add new values.
73275         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
73276         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
73277         _DL_HWCAP_COUNT to 24.
73278         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
73279         entries.
73280         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
73281         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
73282         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
73283         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
73284         instead of magic constants.
73285         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
73286
73287 2011-08-31  David S. Miller  <davem@davemloft.net>
73288
73289         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
73290         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
73291         Reimplement to do errno handling inline.
73292         (SYSCALL_ERROR_HANDLER): New macro.
73293         (__SYSCALL_STRING): Do not do errno handling in asm.
73294         (__CLONE_SYSCALL_STRING): Delete.
73295         (__INTERNAL_SYSCALL_STRING): Delete.
73296         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
73297         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
73298         (PSEUDO): Reimplement to do errno handling inline.
73299         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
73300         (SYSCALL_ERROR_HANDLER): New macro.
73301         (__SYSCALL_STRING): Do not do errno handling in asm.
73302         (__CLONE_SYSCALL_STRING): Delete.
73303         (__INTERNAL_SYSCALL_STRING): Delete.
73304         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
73305         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
73306         i386.
73307         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
73308         (inline_syscall*): Add 'err' argument.
73309         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
73310         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
73311         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
73312         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
73313
73314         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
73315         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
73316
73317 2011-08-30  Andreas Schwab  <schwab@redhat.com>
73318
73319         * elf/rtld.c (dl_main): Relocate objects in dependency order.
73320
73321 2011-08-29  Jiri Olsa <jolsa@redhat.com>
73322
73323         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
73324         directive.
73325
73326 2011-08-24  David S. Miller  <davem@davemloft.net>
73327
73328         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
73329
73330 2011-08-24  Andreas Schwab  <schwab@redhat.com>
73331
73332         * elf/Makefile: Add rules to build and run unload8 test.
73333         * elf/unload8.c: New file.
73334         * elf/unload8mod1.c: New file.
73335         * elf/unload8mod1x.c: New file.
73336         * elf/unload8mod2.c: New file.
73337         * elf/unload8mod3.c: New file.
73338
73339         * elf/dl-close.c (_dl_close_worker): Reset private search list if
73340         it wasn't used.
73341
73342 2011-08-23  David S. Miller  <davem@davemloft.net>
73343
73344         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
73345         subtract stack bias.
73346         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
73347         %sp not %fp in calculations.
73348         (_JMPBUF_UNWINDS_ADJ): Likewise.
73349
73350         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
73351         (aio_suspend): Call it to force an exception region around the
73352         AIO_MISC_WAIT() invocation.
73353
73354 2011-08-23  Andreas Schwab  <schwab@redhat.com>
73355
73356         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
73357         backslash.
73358
73359 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
73360
73361         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
73362         protection macro.
73363         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
73364         and <dl-machine.h>.
73365         (Elf64_FuncDesc): Remove.
73366
73367 2011-08-22  David S. Miller  <davem@davemloft.net>
73368
73369         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
73370         sigaltstack check, add missing cfi directives.
73371         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
73372         missing cfi directives, and sigaltstack handling.
73373
73374 2011-08-16  Andreas Schwab  <schwab@redhat.com>
73375
73376         [BZ #11724]
73377         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
73378         object is seen twice.
73379         * elf/dl-fini.c (_dl_sort_fini): Likewise.
73380
73381         * elf/Makefile (distribute): Add tst-initorder2.c.
73382         (tests): Add tst-initorder2.
73383         (modules-names): Add tst-initorder2a tst-initorder2b
73384         tst-initorder2c tst-initorder2d.  Add rules to build them.
73385         ($(objpfx)tst-initorder2.out): New rule.
73386         * elf/tst-initorder2.c: New file.
73387         * elf/tst-initorder2.exp: New file.
73388
73389 2011-08-22  Andreas Schwab  <schwab@redhat.com>
73390
73391         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
73392
73393         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
73394         dependencies back to end of function.
73395
73396         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
73397         $(elfobjdir)/ld.so.
73398
73399 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
73400
73401         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
73402         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
73403         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
73404         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
73405         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
73406         of __vdso_gettimeofday.
73407         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
73408         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
73409         attribute_hidden.
73410         (_libc_vdso_platform_setup): Remove initialization of
73411         __vdso_gettimeofday and __vdso_time.
73412
73413 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
73414
73415         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
73416         and fgetc_unlocked.
73417         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
73418         getc_unlocked.
73419
73420         * elf/dl-open.c (add_to_global): Report additions to the global scope
73421         for LD_DEBUG=scopes.
73422         (dl_open_worker): Also print scope of newly loaded dependencies.
73423         (_dl_show_scope): Indicate if there is no scope.
73424
73425         [BZ #13114]
73426         * stdio-common/Makefile (tests): Add bug24.
73427         * stdio-common/bug24.c: New file.
73428
73429 2011-08-19  Andreas Jaeger  <aj@suse.de>
73430
73431         [BZ #13114]
73432         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
73433         non-existant file when using close-on-exec mode.
73434
73435 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
73436
73437         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
73438         the very first instruction.
73439
73440         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
73441         the CFI state in the end.
73442         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
73443         inclusion of dl-trampoline.h.
73444         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
73445
73446 2011-08-19  Andreas Schwab  <schwab@redhat.com>
73447
73448         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
73449         expectations for long double.
73450
73451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
73452         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
73453
73454 2011-08-14  David S. Miller  <davem@davemloft.net>
73455
73456         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
73457         artificual limit depends upon the system page size.
73458
73459 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73460
73461         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
73462         * resolv/Makefile: Define CFLAGS-libresolv.
73463
73464 2011-08-17  Andreas Schwab  <schwab@redhat.com>
73465
73466         * nss/makedb.c (compute_tables): Make variables used in nested
73467         function static.
73468
73469 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
73470
73471         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
73472         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
73473         if buffer was too small.
73474
73475         * elf/pldd.c (main): Attach to all threads in the process.
73476         Rewrite /proc handling to use *at functions.
73477
73478 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
73479
73480         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
73481         specifies first scope to show.
73482         (dl_open_worker): Update callers.  Move printing scope of new
73483         object to before the relocation.
73484         * elf/rtld.c (dl_main): Update _dl_show_scope call.
73485         * sysdeps/generic/ldsodefs.h: Update declaration.
73486
73487         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
73488         string for the scope number.
73489
73490 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
73491
73492         * nscd/servicescache.c (cache_addserv): Make sure written is always
73493         initialized.
73494
73495 2011-08-14  Roland McGrath  <roland@hack.frob.com>
73496
73497         * sysdeps/i386/i486/bits/atomic.h
73498         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
73499         statement expression, so as to suppress "set but not used" warning.
73500         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
73501
73502         * string/strncat.c (STRNCAT): Use prototype definition.
73503
73504         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
73505         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
73506         -Iprograms here.
73507         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
73508         (localedef-modules): Add localedef.
73509         (locale-modules): Add locale.
73510
73511         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
73512         * elf/rtld.c (dl_main): Invert order of assignment in last change,
73513         to avoid a warning.
73514
73515 2011-08-14  David S. Miller  <davem@davemloft.net>
73516
73517         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
73518         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
73519
73520 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
73521
73522         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
73523         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
73524         * elf/rtld.c (dl_main): Set l_name of vDSO.
73525         Call _dl_show_scope when DL_DEBUG_SCOPES.
73526         (process_dl_debug): Recognize scopes flag and also set it for all.
73527         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
73528         Declare _dl_show_scope.
73529
73530         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
73531         (do_dlopen): Pass caller_dlopen to dl_open.
73532         (__libc_dlopen_mode): Initialize caller_dlopen.
73533
73534         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
73535         of libc.  Make tolower call locale-independent.  Optimize a bit by
73536         using isdigit instead of isalnum.
73537         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
73538
73539 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
73540
73541         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
73542         was a dependency or dynamically loaded.
73543
73544 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
73545
73546         * intl/l10nflist.c: Allow architecture-specific pop function.
73547         * sysdeps/x86_64/l10nflist.c: New file.
73548
73549         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
73550         classification.
73551
73552 2011-08-10  Andreas Schwab  <schwab@redhat.com>
73553
73554         * include/dirent.h: Add libc_hidden_proto for scandirat and
73555         scandirat64.  Don't declare __scandirat64.
73556         * dirent/scandirat.c: Add libc_hidden_def.
73557         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
73558         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
73559
73560 2011-08-10  David S. Miller  <davem@davemloft.net>
73561
73562         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
73563         enum.
73564         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73565         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73566         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73567
73568 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
73569
73570         * Versions.def [libc]: Add GLIBC_2.15.
73571         * dirent/Makefile (routines): Add scandirat and scandirat64.
73572         * dirent/Versions [libc]: Export scandirat and scandirat64 for
73573         GLIBC_2.15.
73574         * dirent/dirent.h: Declare scandirat and scandirat64.
73575         * dirent/scandirat.c: New file.
73576         * dirent/scandirat64.c: New file.
73577         * sysdeps/wordsize-64/scandirat.c: New file.
73578         * sysdeps/wordsize-64/scandirat64.c: New file.
73579         * dirent/opendir.c: Define opendirat.
73580         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
73581         using scandirat.
73582         * dirent/scandir64.c: Adjust for scandir.c change.
73583         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
73584         __scandirat64, and __scandir_cancel_handler.
73585         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
73586         additional parameter and use openat instead of open (outside of ld.so).
73587         Add new __opendir as wrapper around __opendirat.
73588         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
73589         here without requiring old scandirat implementation.
73590
73591 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
73592
73593         * dirent/scandir.c (cancel_handler): Renamed to
73594         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
73595         defined.  Adjust users.
73596         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
73597         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
73598
73599 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
73600
73601         * string/test-string.h (IMPL): Use __STRING to expand name and then
73602         stringify it.
73603
73604         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
73605         of cleanups.
73606
73607 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73608
73609         * string/Makefile: Update.
73610         (strop-tests): Append strncat.
73611         * string/test-wcscmp.c: New file.
73612         New comprehensive test for wcscmp.
73613         * string/test-strcmp.c: Update.
73614         (WIDE): New define.
73615
73616 2011-07-22  Andreas Schwab  <schwab@redhat.com>
73617
73618         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
73619         line.
73620
73621 2011-07-26  Andreas Schwab  <schwab@redhat.com>
73622
73623         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
73624         encoding to ACE if AI_IDN.
73625
73626 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
73627
73628         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
73629         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
73630
73631 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73632
73633         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
73634         Fix overflow bug in strncat.
73635         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
73636
73637         * string/test-strncat.c: Update.
73638         Add new tests for checking overflow bugs.
73639
73640 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73641
73642         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
73643         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
73644         * sysdeps/i386/i686/multiarch/strcat.S: New file.
73645         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
73646         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
73647         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
73648         * sysdeps/i386/i686/multiarch/strncat.S: New file.
73649         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
73650         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
73651
73652         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
73653         (USE_AS_STRCAT): Define.
73654         Add strcat and strncat support.
73655         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
73656
73657 2011-07-25  Andreas Schwab  <schwab@redhat.com>
73658
73659         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
73660         __n bigger than INT_MAX+1.
73661         (__strncmp_g): Likewise.
73662
73663 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
73664
73665         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
73666         * libio/stido.h: Likewise.
73667
73668         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
73669         (AF_NFC): Define.
73670         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
73671         (AF_NFC): Define.
73672
73673         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
73674         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
73675         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
73676         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
73677         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
73678
73679         [BZ #13021]
73680         * scripts/test-installation.pl: Don't expect libnss_test1 to be
73681         installed.
73682
73683         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
73684         typo.
73685         (_dl_x86_64_save_sse): Likewise.
73686
73687 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
73688
73689         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
73690         OSXSAVE.
73691         (_dl_x86_64_save_sse): Likewise.
73692
73693         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
73694
73695         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
73696
73697 2011-07-21  Andreas Schwab  <schwab@redhat.com>
73698
73699         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
73700         change.
73701         (_dl_x86_64_save_sse): Use correct AVX check.
73702
73703 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
73704
73705         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
73706         bug in strncpy/strncat.
73707         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
73708
73709 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
73710
73711         * string/tester.c (test_strcat): Add tests for different alignments
73712         of source and destination.
73713         (test_strncat): Likewise.
73714
73715 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73716
73717         [BZ #12852]
73718         * posix/glob.c (glob): Check passed in values before using them in
73719         expressions to avoid some overflows.
73720         (glob_in_dir): Likewise.
73721
73722         [BZ #13007]
73723         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
73724         check for AVX enablement so that we don't crash with old kernels and
73725         new hardware.
73726         * elf/tst-audit4.c: Add same checks here.
73727         * elf/tst-audit6.c: Likewise.
73728
73729         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
73730
73731 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
73732
73733         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
73734
73735 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
73736
73737         * po/cs.po: Update from translation team.
73738         * po/bg.po: Likewise.
73739
73740 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
73741
73742         * misc/sys/cdefs.h: Add support for const attribute.
73743         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
73744         to gnu_dev_{major,minor,makedev} functions.
73745
73746 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
73747
73748         * intl/dcigettext.c (get_output_charset): Add missing bracket.
73749
73750 2011-07-20  Andreas Schwab  <schwab@redhat.com>
73751
73752         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
73753         strlen results.
73754
73755 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
73756
73757         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
73758         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
73759         register in order to avoid conflicts with the soft frame pointer
73760         being held in r11 when necessary.
73761         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
73762         (INTERNAL_VSYSCALL_NCS): Likewise.
73763
73764 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
73765
73766         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
73767         * elf/dl-fini.c (_dl_fini): Adjust caller.
73768         * elf/dl-close.c (_dl_close_worker): Likewise.
73769         * sysdeps/generic/ldsodefs.h: Adjust declaration.
73770
73771 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73772
73773         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
73774         "aux_cache->nlibs < 0".
73775
73776         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
73777         in the reload-count case.
73778
73779 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
73780
73781         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
73782         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
73783         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
73784         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
73785         * sysdeps/x86_64/multiarch/strcat.S: New file.
73786         * sysdeps/x86_64/multiarch/strncat.S: New file.
73787         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
73788         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
73789         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
73790         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
73791         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
73792         (USE_AS_STRCAT): Define.
73793         Add strcat and strncat support.
73794         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
73795         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
73796         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
73797         * string/strncat.c: Update.
73798         (USE_AS_STRNCAT): Define.
73799         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
73800         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
73801         and i7.
73802         * sysdeps/x86_64/multiarch/init-arch.h
73803         (bit_Prefer_PMINUB_for_stringop): New.
73804         (index_Prefer_PMINUB_for_stringop): Likewise.
73805         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
73806         bit_Prefer_PMINUB_for_stringop.
73807
73808 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73809
73810         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
73811         buffer64.
73812         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
73813         of casting of buffer.
73814         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
73815         buffer32 and buffer64.
73816         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
73817         writes instead of casting of buffer.
73818         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
73819         buffer32.
73820         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
73821         casting of buffer.
73822
73823 2011-07-19  Andreas Schwab  <schwab@redhat.com>
73824
73825         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
73826
73827 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
73828
73829         * nscd/nscd.c (termination_handler): Don't do anything for a database
73830         if it has not yet been initialized.
73831
73832 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73833
73834         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73835
73836 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
73837
73838         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
73839
73840 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
73841
73842         * po/nl.po: Update from translation team.
73843         * po/sv.po: Likewise.
73844
73845 2011-07-16  Roland McGrath  <roland@hack.frob.com>
73846
73847         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
73848         now disallowed by GCC.
73849
73850         * configure.in (use-default-link): Default to yes if a test -shared
73851         link meets our qualifications.
73852         * configure: Regenerated.
73853
73854         * config.make.in (output-format): New variable.
73855         * configure.in: Check for ld --print-output-format support.
73856         * configure: Regenerated.
73857         * Makerules ($(common-objpfx)format.lds)
73858         [$(output-format) != unknown]: Just use $(output-format),
73859         instead of the linker-script munging.
73860
73861 2011-07-14  Roland McGrath  <roland@hack.frob.com>
73862
73863         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
73864         of $(common-objpfx)shlib.lds.
73865         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
73866
73867         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
73868         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
73869
73870         * configure.in (-z relro check): Adjust test code to add a large
73871         writable data section after it.
73872         * configure: Regenerated.
73873
73874 2011-07-11  Roland McGrath  <roland@hack.frob.com>
73875
73876         * configure.in (-z relro check): Fix test code to make the variable
73877         truly const.
73878         * configure: Regenerated.
73879
73880 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
73881
73882         * nscd/nscd.h (struct traced_file): Define.
73883         (struct database_dyn): Remove inotify_descr, reset_res, and filename
73884         elements.  Add traced_files.
73885         (inotify_fd): Declare.
73886         (register_traced_file): Declare.
73887         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
73888         (inotify_fd): Export.
73889         (resolv_conf_descr): Remove.
73890         (nscd_init): Move inotify descriptor creation to main.
73891         Don't register files for notification here.
73892         (register_traced_file): New function.
73893         (invalidate_cache): Don't use reset_res to determine whether to call
73894         res_init, go through the list of registered files.
73895         (main_loop_poll): The inotify descriptors are now stored in the
73896         structures for the traced files.
73897         (main_loop_epoll): Likewise.
73898         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
73899         to __nss_disable_nscd.
73900         * nscd/cache.c (prune_cache): There is no single inotify descriptor
73901         for a database anymore.  Check the records for all the registered
73902         files instead.
73903         * nss/Makefile (libnss_files-routines): Add files-init.
73904         (libnss_db-routines): Add db-init.
73905         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
73906         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
73907         * nss/nss_db/db-init.c: New file.
73908         * nss/nss_files/files-init.c: New file.
73909         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
73910         __nss_lookup_function.
73911         (__nss_lookup_function): Call nss_load_library.
73912         (nss_load_all_libraries): New function.
73913         (__nss_disable_nscd): Take parameter with callback function for files
73914         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
73915         used for the cached services.
73916         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
73917         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
73918         options for features to all the files in nscd.
73919
73920         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
73921
73922 2011-07-10  Roland McGrath  <roland@hack.frob.com>
73923
73924         * csu/elf-init.c (__libc_csu_init): Comment typo.
73925
73926 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
73927
73928         * po/pl.po: Update from translation team.
73929         * po/ja.po: Likewise.
73930         * po/ru.po: Likewise.
73931         * po/ko.po: Likewise.
73932         * po/fr.po: Likewise.
73933
73934 2011-07-09  Roland McGrath  <roland@hack.frob.com>
73935
73936         * configure.in (.ctors/.dtors header and trailer check):
73937         Use an empirical test on a built program.
73938         * configure: Regenerated.
73939
73940         * configure.in (-z relro check): Use an empirical test on a built DSO.
73941         Detect, but do not require, on ia64.
73942         * configure: Regenerated.
73943
73944         * configure.in (READELF): Find it with AC_CHECK_TOOL.
73945         Update tests that use readelf to use $READELF instead.
73946         * configure: Regenerated.
73947
73948 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
73949
73950         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
73951         if the result is not used.
73952
73953 2011-07-05  Andreas Jaeger  <aj@suse.de>
73954
73955         [BZ#9696]
73956         * stdlib/tst-strtod.c: Add testcase.
73957
73958 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
73959
73960         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
73961         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
73962         The latter has a higher limit.  Take additional parameter to pass to
73963         the new function.
73964         (__pathconf): Pass file to __statfs_link_max.
73965         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
73966         __statfs_link_max.
73967         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
73968         __statfs_link_max.
73969
73970         [BZ #12868]
73971         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
73972         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
73973         Handle Lustre.
73974         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
73975         (__statfs_filesize_max): Likewise.
73976         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
73977
73978 2011-07-05  Andreas Jaeger  <aj@suse.de>
73979
73980         * resolv/res_comp.c (dn_skipname): Remove unused variable.
73981
73982 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
73983
73984         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
73985         `status' variable.
73986         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
73987         Likewise.
73988
73989 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
73990
73991         * Makefile (strop-tests): Add strncat.
73992         * string/test-strncat.c: New file.
73993
73994 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
73995
73996         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
73997
73998 2011-06-21  Andreas Jaeger  <aj@suse.de>
73999
74000         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
74001         Copy rule from iconvdata/Makefile.
74002
74003 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
74004
74005         [BZ #12922]
74006         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
74007         but no long options are defined, just return 'W'.
74008
74009 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
74010
74011         [BZ #9696]
74012         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
74013
74014 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
74015
74016         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
74017         netgroups to read.
74018         (innetgr): Likewise.
74019
74020 2011-07-05  Roland McGrath  <roland@hack.frob.com>
74021
74022         * config.make.in (install_root): Default to $(DESTDIR).
74023
74024 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
74025
74026         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
74027
74028 2011-07-02  Roland McGrath  <roland@hack.frob.com>
74029
74030         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
74031
74032         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
74033         containing directory rather than embedding absolute directory names.
74034
74035         * scripts/check-local-headers.sh: Rewritten using awk.
74036         Match by word, not by line.  Print error messages for matches.
74037         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
74038
74039         * Makerules [shlib-lds-flags empty]:
74040         ($(common-objpfx)libc_pic.opts): New target.
74041         ($(common-objpfx)libc_pic.os.clean): New target.
74042         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
74043
74044         * config.make.in (OBJCOPY): New variable.
74045         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
74046         * configure: Regenerated.
74047
74048         * config.make.in (use-default-link): New variable.
74049         * configure.in (use_default_link): Grok --with-default-link to set it.
74050         * configure: Regenerated.
74051         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
74052         (shlib-lds, shlib-lds-flags): Define to empty.
74053
74054         * Makerules (shlib-lds): New variable.
74055         (shlib-lds-flags): New variable.
74056         (build-shlib, build-moduile, build-module-asneeded): Use it.
74057         ($(common-objpfx)libc.so): Use $(shlib-lds).
74058         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
74059         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
74060
74061         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
74062         DT_FLAGS/DT_FLAGS_1 with zero flags.
74063
74064         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
74065         linker script munging.
74066
74067 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
74068
74069         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
74070         as 128-bit value.
74071         * crypt/sha512.c (sha512_process_block): Perform total addition using
74072         128-bit if possible.
74073         (__sha512_finish_ctx): Likewise.
74074         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
74075         as 64-bit value.
74076         * crypt/sha256.c (SWAP64): Define.
74077         (sha256_process_block): Perform total addition using 64-bit if
74078         possible.
74079         (__sha256_finish_ctx): Likewise.
74080
74081 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
74082
74083         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
74084         * nscd/initgrcache.c (addinitgroupsX): Likewise.
74085         * nscd/hstcache.c (cache_addhst): Likewise.
74086         * nscd/grpcache.c (cache_addgr): Likewise.
74087         * nscd/aicache.c (addhstaiX): Likewise.
74088         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
74089
74090 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
74091
74092         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
74093         * nscd/initgrcache.c (addinitgroupsX): Likewise.
74094         * nscd/hstcache.c (cache_addhst): Likewise.
74095         * nscd/grpcache.c (cache_addgr): Likewise.
74096         * nscd/aicache.c (addhstaiX): Likewise.
74097
74098 2011-07-01  Andreas Schwab  <schwab@redhat.com>
74099
74100         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
74101         domain only when needed.
74102
74103 2011-06-30  Andreas Schwab  <schwab@redhat.com>
74104
74105         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
74106         is always restored.
74107
74108 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
74109
74110         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
74111         are re-adding the entry.
74112         * nscd/servicescache.c (cache_addserv): Likewise.
74113
74114 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
74115
74116         * sysdeps/generic/dl-irel.h: fix protection against multiple
74117         inclusions.
74118         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
74119
74120 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
74121
74122         [BZ #12935]
74123         * malloc/memusage.sh: Fix quoting in message.
74124         * debug/xtrace.sh: Likewise.
74125
74126         * configure.in: Remove support for --experimental-malloc option, make
74127         it the default.
74128         * config.make.in: Likewise.
74129         * malloc/Makefile: Likewise.
74130
74131 2011-06-27  Andreas Schwab  <schwab@redhat.com>
74132
74133         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
74134         two-byte characters.
74135
74136 2011-06-27  Roland McGrath  <roland@hack.frob.com>
74137
74138         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
74139         AC_CACHE_CHECK invocation.
74140         * configure: Regenerated.
74141
74142         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
74143
74144 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
74145
74146         [BZ #12350]
74147         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
74148         bit from old_res_options.
74149
74150         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
74151
74152         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
74153         value type for setfct.
74154
74155 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
74156
74157         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
74158         __gettimeofday instead of gettimeofday.
74159
74160 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
74161
74162         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
74163
74164 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
74165
74166         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
74167
74168         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
74169         info.
74170
74171 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
74172
74173         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
74174         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
74175         strcpy-sse2-unaligned strncpy-sse2-unaligned
74176         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
74177         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
74178         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
74179         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
74180         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
74181         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
74182         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
74183         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
74184         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
74185         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
74186         (STRCPY): Support SSE2 and SSSE3 versions.
74187
74188 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
74189
74190         [BZ #12874]
74191         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
74192         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
74193         kernels which artificially limit size of requests.
74194
74195 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
74196
74197         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
74198         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
74199         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
74200         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
74201         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
74202         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
74203         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
74204         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
74205         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
74206         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
74207         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
74208         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
74209         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
74210         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
74211         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
74212         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74213         Enable unaligned load optimization for Intel Core i3, i5 and i7
74214         processors.
74215         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
74216         Define.
74217         (index_Fast_Unaligned_Load): Define.
74218         (HAS_FAST_UNALIGNED_LOAD): Define.
74219
74220 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
74221
74222         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
74223
74224 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
74225
74226         [BZ #12907]
74227         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
74228         until it is clear that the information is realy needed.
74229         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
74230
74231 2011-06-22  Andreas Schwab  <schwab@redhat.com>
74232
74233         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
74234
74235 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
74236
74237         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
74238         /sys/devices/system/cpu/online if it is usable.
74239
74240         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
74241         reading the information from the /proc filesystem to once a second.
74242
74243 2011-06-21  Andreas Jaeger  <aj@suse.de>
74244
74245         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
74246         NULL after inclusion of kernel headers.
74247
74248 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
74249
74250         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
74251         calls to internal_setent.
74252
74253         [BZ #12885]
74254         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
74255         addresses using gethostbyname4_r ignore IPv4 addresses.
74256
74257         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
74258         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
74259
74260         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
74261
74262 2011-06-20  David S. Miller  <davem@davemloft.net>
74263
74264         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
74265         inclusions.
74266         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
74267
74268         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
74269         (elf_irel): Use it.
74270         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
74271         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
74272         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
74273         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
74274         * sysdeps/x86_64/dl-irel.h: Likewise.
74275
74276         * elf/dl-runtime.c: Use elf_ifunc_invoke.
74277         * elf/dl-sym.c: Likewise.
74278
74279 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
74280
74281         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
74282         need to dereference resplen2.
74283
74284 2011-06-14  Andreas Schwab  <schwab@redhat.com>
74285
74286         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
74287
74288 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
74289
74290         * Makeconfig: Define vardbdir and inst_vardbdir.
74291         * nss/Makefile: Add rules to install db-Makefile.
74292
74293         * nss/nss_db/db-XXX.c: Cleanup.
74294
74295         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
74296         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
74297         GLIBC_PRIVATE.
74298         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
74299         * nss/makedb.c: Implement -g option to specify that value strings
74300         are generated and should not be added to table iterated over for
74301         get*ent calls.
74302         * nss/nss_db/db-initgroups.c: New file.
74303
74304         * nss/getent.c: Add support for initgroups lookups through getgrouplist
74305         interface.
74306
74307         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
74308         (internal_getgrouplist): Adjust to name change.
74309         Update use_initgroups_entry if this is not the first call.
74310         * nss/databases.def: Add initgroups entry.
74311
74312         * nss/makedb.c (compute_tables): Check result of multiple hash table
74313         sizes to minimize maximum chain length.
74314
74315 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
74316
74317         * Versions.def: Add entry for libnss_db.
74318         * shlib-versions: Likewise.
74319         * nss/Makefile: Add rules to build libnss_db.
74320         * nss/Versions: Add libnss_db information.  Organize libnss_files
74321         entries better.
74322         * nss/db-Makefile: Add gshadow support.  Change rules for the new
74323         makedb progra.  Some minor improvements to generate smaller files.
74324         * nss/nss_db/nss_db.h: Move NSS database header data structures to
74325         here from...
74326         * nss/makedb.c: ...here.
74327         Improve database format to be smaller and require less memory at
74328         runtime.
74329         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
74330         db anymore.
74331         * nss/nss_db/db-netgrp.c: Likewise.
74332         * nss/nss_db/db-open.c: Likewise.
74333         * nss/nss_files/flies-XXX.x: Adjust comments.
74334         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
74335         * nss/nss_files/files-grp.c: Likewise.
74336         * nss/nss_files/files-hosts.c: Likewise.
74337         * nss/nss_files/files-network.c: Likewise.
74338         * nss/nss_files/files-proto.c: Likewise.
74339         * nss/nss_files/files-pwd.c: Likewise.
74340         * nss/nss_files/files-rpc.c: Likewise.
74341         * nss/nss_files/files-service.c: Likewise.
74342         * nss/nss_files/files-sgrp.c: Likewise.
74343         * nss/nss_files/files-spwd.c: Likewise.
74344         * nss/nss_db/db-alias.c: Removed.
74345         * nss/nss_db/dummy-db.h: Removed.
74346
74347 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
74348
74349         * nss/makedb.c: Rewritten to not use database library.
74350         * nss/Makefile: Update to build new makedb program.
74351
74352 2011-06-14  Andreas Jaeger  <aj@suse.de>
74353
74354         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
74355         memset declaration.
74356
74357 2011-06-10  Andreas Schwab  <schwab@redhat.com>
74358
74359         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
74360         tmpbuf.
74361
74362 2011-06-10  Roland McGrath  <roland@hack.frob.com>
74363
74364         * Makerules (shlib.lds): Fail if the linker script comes out empty.
74365         * elf/Makefile ($(objpfx)ld.so): Likewise.
74366
74367         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
74368         Don't list ld.so twice in dependencies.
74369
74370         * posix/bug-regex31.c: Include <stdlib.h>.
74371
74372         * nscd/hstcache.c (cache_addhst): Remove unused variable.
74373
74374         * nis/nss_compat/compat-spwd.c
74375         (getspent_next_nss_netgr): Remove unused variable.
74376         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
74377
74378         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
74379         nonmembers" output to use the right array.
74380
74381         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
74382
74383         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
74384
74385         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
74386         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
74387         * catgets/gencat.c (read_input_file): Likewise.
74388         * locale/programs/locarchive.c (enlarge_archive): Likewise.
74389
74390         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
74391         variable definition inside #if's controlling its use.
74392
74393         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
74394
74395         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
74396
74397         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
74398
74399         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
74400         unreachable code.
74401
74402         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
74403
74404         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
74405         * configure: Regenerated.
74406
74407         * Makerules: Revert last change.
74408         * elf/Makefile: Likewise.
74409
74410 2011-06-09  Roland McGrath  <roland@hack.frob.com>
74411
74412         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
74413         * elf/Makefile ($(objpfx)librtld.os): Likewise.
74414         (reloc-link): Likewise.
74415
74416 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
74417
74418         * elf/Makefile: Add rules to build pldd.
74419         * elf/pldd.c: New file.
74420         * elf/pldd-xx.c: New file.
74421
74422 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
74423
74424         * version.h: Update for 2.15 development version.
74425
74426 2011-06-07  David S. Miller  <davem@davemloft.net>
74427
74428         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
74429         ifuncs.
74430         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
74431         elf_machine_lazy_rel): Likewise.
74432         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
74433         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
74434         elf_machine_lazy_rel): Likewise.
74435         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
74436         dl_hwcap via passed in argument.
74437         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
74438         Likewise.
74439
74440 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
74441
74442         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
74443
74444 2011-06-06  Roland McGrath  <roland@hack.frob.com>
74445
74446         [BZ #12849]
74447         * manual/fdl-1.1.texi: New file, verbatim from:
74448         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
74449         * manual/lgpl-2.1.texi: New file, verbatim from:
74450         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
74451         * manual/Makefile (licenses): New variable, list those new file names.
74452         (texis): Use it.
74453         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
74454
74455         * manual/fdl.texi: File removed.
74456         * manual/lesser.texi: File removed.
74457         * manual/libc.texinfo (Copying, Documentation License):
74458         Use new @include file names, put @appendix directive before @include.
74459
74460 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
74461
74462         [BZ #12841]
74463         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
74464         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
74465         (mq_open): Add __NTH.
74466
74467 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
74468
74469         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
74470         Assume Intel Core i3/i5/i7 processor if AVX is available.
74471
74472 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74473
74474         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
74475         typo.
74476
74477 2011-05-31  Andreas Schwab  <schwab@redhat.com>
74478
74479         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
74480         memory.  Use alloca_account.  Fix memory leak when retrying.
74481
74482 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
74483
74484         * version.h (RELEASE): Bump for 2.14 release.
74485         * include/features.h (__GLIBC_MINOR__): Bump to 14.
74486
74487         * config.make.in (RANLIB): Remove entry.
74488
74489 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
74490
74491         * po/Makefile (po-sed-cmd): Add ksh to extensions.
74492         (libc.pot): Work around missing support for .ksh extension in xgettext.
74493
74494         [BZ #12684]
74495         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
74496         if both request failed.
74497         (send_dg): In case of server errors clear resplen or *resplen2.
74498
74499         [BZ #12454]
74500         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
74501         when there are multiple maps.
74502         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
74503         (_dl_fini): Remove test here.
74504
74505         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
74506
74507 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
74508
74509         [BZ #12350]
74510         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
74511         bit from old_res_options.
74512         (gaih_inet): Likewise.
74513
74514         [BZ #11099]
74515         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
74516         as signed.
74517
74518         * resolv/res_init.c (res_setoptions): Make the code more compact.
74519
74520         [BZ #11558]
74521         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
74522         set RES_USEVC.
74523
74524         [BZ #11634]
74525         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
74526
74527         * malloc/malloc.h: Mark malloc hook variables as deprecated.
74528
74529         [BZ #11781]
74530         * malloc/malloc.h: Declare malloc hook variables as volatile.
74531
74532         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
74533         in last patch.
74534
74535         [BZ #11799]
74536         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
74537         raise in the comment.
74538         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
74539         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
74540         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
74541
74542 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
74543
74544         [BZ #12811]
74545         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
74546         grow the buffers more if it already has to be sufficient.
74547         (build_wcs_upper_buffer): Likewise.
74548         * posix/regexec.c (check_matching): Likewise.
74549         (clean_state_log_if_needed): Likewise.
74550         (extend_buffers): Don't enlarge buffers beyond size of the input
74551         buffer.
74552         Patches mostly by Emil Wojak <emil@wojak.eu>.
74553         * posix/bug-regex32.c: New file.
74554         * posix/Makefile (tests): Add bug-regex32.
74555
74556         * locale/findlocale.c (_nl_find_locale): Return right away if
74557         _nl_explode_name failed.
74558         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
74559
74560         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
74561
74562         * debug/xtrace.sh: Unify messages.
74563         * malloc/memusage.sh: Likewise.
74564
74565         [BZ #12813]
74566         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
74567         time symbol from vDSO.  Substitute with vsyscall if not available.
74568         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
74569         __vdso_time.
74570
74571         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
74572         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
74573         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
74574         Add sendmmsg and internal_sendmmsg.
74575         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
74576         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
74577         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
74578
74579         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
74580         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
74581         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
74582
74583 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
74584
74585         [BZ #12813]
74586         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
74587         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
74588         available.
74589         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
74590         __vdso_getcpu.
74591
74592         [BZ #12814]
74593         * iconvdata/Makefile (tests): Add bug-iconv9.
74594         * iconvdata/bug-iconv9.c: New file.
74595
74596 2011-05-27  Andreas Schwab  <schwab@redhat.com>
74597
74598         [BZ #12814]
74599         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
74600
74601 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
74602
74603         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74604         (struct user_regs_struct): Change intcs field back to cs.
74605
74606 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
74607
74608         * po/ja.po: Update from translation team.
74609
74610 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
74611
74612         [BZ #12795]
74613         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
74614         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
74615
74616 2011-05-20  Andreas Schwab  <schwab@redhat.com>
74617
74618         * stdlib/longlong.h: Update from GCC.
74619
74620 2011-05-23  Andreas Schwab  <schwab@redhat.com>
74621
74622         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
74623         parameter name.
74624         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
74625         Add parameter name.
74626         (__sysconf): Pass it down.
74627
74628 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
74629
74630         [BZ #12671]
74631         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
74632         some situations.
74633         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
74634         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
74635         add in in __libc_use_alloca calls.  Adjust callers.
74636         (glob): Use malloc in some situations.
74637
74638         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
74639         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
74640         pltexit.
74641
74642 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
74643
74644         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
74645         and CLOCK_BOOTTIME_ALARM.
74646
74647         [BZ #12782]
74648         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
74649         is returned.
74650
74651         * string/_strerror.c (__strerror_r): Print negative errors as signed
74652         numbers.
74653
74654         [BZ #12777]
74655         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
74656         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
74657         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
74658
74659         * configure.in: Fix typo in redirection and correct removal of test
74660         files in two cases.
74661
74662         [BZ #12788]
74663         * locale/setlocale.c (new_composite_name): Fix test to check for
74664         identical name of all categories.
74665
74666         [BZ #12792]
74667         * libio/filedoalloc.c (local_isatty): New function.
74668         (_IO_file_doallocate): Use local_isatty.
74669         * stdio-common/perror.c (perror): In case a new stream is used
74670         forward the stream error.
74671         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
74672         error flag.
74673
74674 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
74675
74676         [BZ #11884]
74677         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
74678         alloca.
74679         * include/alloca.h (extend_alloca_account): Define.
74680
74681         [BZ #11857]
74682         * posix/regex.h: Fix comments with documentation of user-accessible
74683         fields after compilation and describe correct free'ing of pattern
74684         after re_compile_pattern.
74685         Patch by Reuben Thomas <rrt@sc3d.org>.
74686
74687 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
74688
74689         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
74690         and -mno-altivec to prevent the compiler from using Altivec and/or
74691         VSX instructions when the corresponding registers are not available.
74692
74693 2011-05-19  Andreas Schwab  <schwab@redhat.com>
74694
74695         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
74696
74697 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
74698
74699         * libio/freopen.c (freopen): Use __dup2, not dup2.
74700         * libio/freopen64.c (freopen64): Likewise.
74701
74702 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
74703
74704         [BZ #12775]
74705         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
74706         * math/Makefile (tests): Add test-powl.
74707         (CFLAGS-test-powl.c): Define.
74708         * math/test-powl.c: New file.
74709
74710 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
74711
74712         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
74713
74714 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
74715
74716         [BZ #11837]
74717         * iconvdata/gb18030.c: Update to GB18020-2005.
74718
74719 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
74720
74721         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
74722         RE_SYNTAX_POSIX_AWK): Update to match recent development.
74723         Patch by Aharon Robbins <arnold@skeeve.com>.
74724
74725         [BZ #11892]
74726         * stdlib/putenv.c (putenv): Don't always create copy of the variable
74727         on the stack.
74728
74729         [BZ #11895]
74730         * misc/pselect.c (__pselect): Handle timeout value errors hidden
74731         through underflows.
74732
74733         [BZ #12766]
74734         * misc/error.c (error_at_line): Ensure file_name and old_file_name
74735         point to strings before performing equality test for error_one_per_line
74736         mode.
74737
74738         [BZ #11697]
74739         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
74740
74741         [BZ #11820]
74742         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
74743         (struct user_fpregs_struct): Avoid __uint*_t types.
74744
74745         [BZ #6420]
74746         * malloc/mtrace.c (tr_where): Add additional parameter to point to
74747         symbol info.  Use it instead of calling _dl_addr locally.
74748         (lock_and_info): New function.
74749         (tr_freehook): Call lock_and_info and pass symbol info as additional
74750         parameter to tr_where.
74751         (tr_mallochook): Likewise.
74752         (tr_reallochook): Likewise.
74753         (tr_memalignhook): Likewise.
74754
74755         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
74756         used and couldn't be at all thread-safe.
74757
74758 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
74759
74760         * libio/freopen.c (freopen): Don't close old file descriptor
74761         before the new one is opened.  Instead dup the new file descriptor
74762         to the old one after the new stream is created.
74763         * libio/freopen64.c (freopen64): Likewise.
74764         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
74765         * libio/fileops.c (_IO_new_file_close_it): Handle new
74766         _IO_FLAGS2_NOCLOSE flag.
74767         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
74768         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
74769         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
74770         _IO_FLAGS2_NOCLOSE flag.
74771         * include/unistd.h: Add hidden_proto for dup3.
74772         Define __have_dup3.
74773         * io/dup3.c: Define hidden symbol.
74774         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
74775
74776         [BZ #7101]
74777         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
74778         when an incomplete long option is used.
74779         * posix/tst-getopt_long1.c: New file.
74780         * posix/Makefile (tests): Add tst-getopt_long1.
74781
74782         [BZ #10138]
74783         * scripts/config.guess: Update from autoconf-2.68.
74784         * scripts/config.sub: Likewise.
74785
74786         [BZ #10157]
74787         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
74788         tests into ...
74789         (has_cpuclock): ...this.  New function.
74790         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
74791         macro here based on has_cpuclock code.
74792
74793         [BZ #10149]
74794         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74795         First byte (not low byte) is now always NUL.
74796         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
74797
74798         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
74799         Use non-cancelable interfaces.
74800
74801         [BZ #9809]
74802         * locale/iso-639.def: Add entry for Sorani.
74803
74804         [BZ #11901]
74805         * include/stdlib.h: Move include protection to the right place.
74806         Define abort_msg_s.  Declare __abort_msg with it.
74807         * stdlib/abort.c (__abort_msg): Adjust type.
74808         * assert/assert.c (__assert_fail_base): New function.  Majority
74809         of code from __assert_fail.  Allocate memory for __abort_msg with
74810         mmap.
74811         (__assert_fail): Now call __assert_fail_base.
74812         * assert/assert-perr.c: Remove bulk of implementation.  Use
74813         __assert_fail_base.
74814         * include/assert.hL Declare __assert_fail_base.
74815         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
74816         mmap.
74817         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
74818
74819 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
74820
74821         [BZ #11952]
74822         [BZ #12453]
74823         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
74824         until all modules are registered in the DTV.
74825         * elf/Makefile: Add rules to build and run tst-tls19.
74826         * elf/tst-tls19.c: New file.
74827         * elf/tst-tls19mod1.c: New file.
74828         * elf/tst-tls19mod2.c: New file.
74829         * elf/tst-tls19mod3.c: New file.
74830         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
74831
74832         [BZ #12083]
74833         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
74834         correctly.
74835
74836         [BZ #12601]
74837         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
74838         two-byte sequence errors.
74839         * iconvdata/Makefile (tests): Add bug-iconv8.
74840         * iconvdata/bug-iconv8.c: New file.
74841
74842         [BZ #12626]
74843         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
74844         buf2 definition.
74845
74846         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
74847
74848         [BZ #12432]
74849         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
74850         (dummy_getcfa): New function.
74851         (init): Get _Unwind_GetCFA address, use dummy if not found.
74852         (backtrace_helper): In recursion check, also check whether CFA changes.
74853         (__backtrace): Completely initialize arg.
74854
74855         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
74856         storing incomplete byte sequence in state object.  Avoid testing for
74857         guaranteed too small input if we know there is enough data available.
74858
74859 2011-05-11  Andreas Schwab  <schwab@redhat.com>
74860
74861         * Makeconfig (+link-pie): Indent.
74862         * Rules (binaries-pie): Define if $(have-fpie) and
74863         $(build-shared).
74864         (binaries-shared): Also filter out $(binaries-pie).
74865         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
74866         * nscd/Makefile (others-pie): Add nscd.
74867         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
74868         ($(objpfx)nscd): Remove command override.
74869         * login/Makefile (others-pie): Add pt_chown.
74870         ($(objpfx)pt_chown): Remove command override.
74871         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
74872         remove command overrides.
74873
74874 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
74875
74876         * libio/tst_putwc.c: Fix error messages.
74877
74878         [BZ #12724]
74879         * libio/fileops.c (_IO_new_file_close_it): Always flush when
74880         currently writing and seek to current position when not.
74881         * libio/Makefile (tests): Add bug-fclose1.
74882         * libio/bug-fclose1.c: New file.
74883
74884 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
74885
74886         [BZ #12511]
74887         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
74888         don't set DF_1_NODELETE here.
74889         (do_lookup_x): When entering new entry test for copy relocation
74890         and if necessary set DF_1_NODELETE flag.
74891         * elf/tst-unique4.cc: New file.
74892         * elf/tst-unique4.h: New file.
74893         * elf/tst-unique4lib.cc: New file.
74894         * elf/Makefile: Add rules to build and run tst-unique4.
74895         Patch by Piotr Bury <pbury@goahead.com>.
74896
74897 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
74898
74899         [BZ #12052]
74900         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
74901
74902         [BZ #12625]
74903         * misc/mntent_r.c (addmntent): Flush the stream after the output
74904
74905         [BZ #12393]
74906         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
74907         (is_trusted_path_normalize): Skip initial colon.  Append slash
74908         to empty buffer.  Duplicate is_trusted_path code but allow
74909         constructed patch to be prefix.
74910         (is_dst): Allow $ORIGIN followed by /.
74911         (_dl_dst_substitute): Correct clearing of check_for_trusted.
74912         Correct testing of result of is_trusted_path_normalize
74913         (decompose_rpath): Fix warning.
74914
74915 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
74916
74917         [BZ #11257]
74918         * grp/initgroups.c (internal_getgrouplist): When we found the service
74919         list through the initgroups entry in nsswitch.conf do not always
74920         continue on a successful lookup.  Don't always use the
74921         __nss_group_database value if it is set.
74922         * nss/nsswitch.conf (initgroups): Change action for successful db
74923         lookup to continue for compatibility.
74924
74925 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
74926
74927         [BZ #11532]
74928         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
74929         and CP774 modules.
74930         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
74931         and CP774 modules.
74932         * iconvdata/tst-tables.sh: Likewise.
74933         * iconvdata/cp770.c: New file.
74934         * iconvdata/cp771.c: New file.
74935         * iconvdata/cp772.c: New file.
74936         * iconvdata/cp773.c: New file.
74937         * iconvdata/cp774.c: New file.
74938         * iconvdata/testdata/CP770: New file.
74939         * iconvdata/testdata/CP770..UTF8: New file.
74940         * iconvdata/testdata/CP771: New file.
74941         * iconvdata/testdata/CP771..UTF8: New file.
74942         * iconvdata/testdata/CP772: New file.
74943         * iconvdata/testdata/CP772..UTF8: New file.
74944         * iconvdata/testdata/CP773: New file.
74945         * iconvdata/testdata/CP773..UTF8: New file.
74946         * iconvdata/testdata/CP774: New file.
74947         * iconvdata/testdata/CP774..UTF8: New file.
74948
74949         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
74950         END CHARMAP line.
74951         * iconvdata/gen-8bit-gap.sh: Likewise.
74952         * iconvdata/gen-8bit.sh: Likewise.
74953
74954         * locale/iso-639.def: Add ary entry.
74955
74956         [BZ #11258]
74957         * locale/C-translit.h.in: Add U20A1 transliteration.
74958
74959         [BZ #12178]
74960         * locale/iso-639.def: Add wae entry.
74961         Patch by Kevin Bortis <bortis@translate-wae.ch>.
74962
74963         [BZ #12545]
74964         * locale/programs/localedef.c (construct_output_path): Use ssize_t
74965         for n.
74966
74967         [BZ #12711]
74968         * locale/C-translit.h.in: Add entry for U20B9.
74969         Patch by pravin.d.s@gmail.com.
74970
74971 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
74972
74973         [BZ #12713]
74974         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
74975         ENAMETOOLONG use generic getcwd.
74976         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
74977         in rtld.  Use *stat64.
74978         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
74979         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
74980         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
74981         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
74982         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
74983         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
74984         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
74985         __fstatat64 macros.
74986         * include/dirent.h: Add libc_hidden_proto for rewinddir.
74987         * dirent/rewinddir.c: Add libc_hidden_def.
74988         * sysdeps/mach/hurd/rewinddir.c: Likewise.
74989         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
74990
74991         * include/dirent.h (__alloc_dir): Add flags parameter.
74992         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
74993         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
74994         __alloc_dir.
74995         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
74996         from fdopendir if O_CLOEXEC is already set.
74997
74998 2011-03-15  Alan Modra  <amodra@gmail.com>
74999
75000         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
75001         l_tls_firstbyte_offset non-zero.  Save padding offset in
75002         l_tls_firstbyte_offset for later use.
75003         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
75004         freeing static tls block.
75005
75006 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
75007
75008         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
75009         where #ifdef was intended.  The intent is to prevent ARG_MAX from
75010         being defined by the kernel headers.
75011
75012 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
75013
75014         [BZ #12734]
75015         * resolv/resolv.h: Define RES_NOTLDQUERY.
75016         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
75017         no-tld-query and set RES_NOTLDQUERY.
75018         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
75019         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
75020         modern BIND to search name as TLD unless forbidden.
75021
75022 2011-05-07  Petr Baudis  <pasky@suse.cz>
75023             Ulrich Drepper  <drepper@gmail.com>
75024
75025         [BZ #12393]
75026         * elf/dl-load.c (fillin_rpath): Move trusted path check...
75027         (is_trusted_path): ...to here.
75028         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
75029         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
75030         using is_trusted_path_normalize() in setuid scripts.
75031
75032 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
75033
75034         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
75035         __BEGIN/__END_DECLS.
75036
75037 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
75038
75039         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
75040         NSS_STATUS_NOTFOUND if no record was found.
75041
75042 2011-05-05  Andreas Schwab  <schwab@redhat.com>
75043
75044         * sunrpc/Makefile (headers): Add rpc/netdb.h.
75045         (headers-not-in-tirpc): Remove rpc/netdb.h
75046         * resolv/netdb.h: Revert last change.
75047
75048 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
75049
75050         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
75051         circular dependency between libgcc.a and libc.a.
75052
75053 2011-05-05  Andreas Schwab  <schwab@redhat.com>
75054
75055         * resolv/netdb.h: Don't include <rpc/netdb.h>.
75056         * nis/Makefile: Don't install rpcsvc/*.
75057         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
75058         instead of <rpc/types.h>.
75059         (MAXHOSTNAMELEN): Define.
75060
75061 2011-05-03  Andreas Schwab  <schwab@redhat.com>
75062
75063         * elf/ldconfig.c (add_dir): Don't crash on empty path.
75064
75065 2011-04-28  Maciej Babinski  <mbabinski@google.com>
75066
75067         [BZ #12714]
75068         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
75069         gethostbyname4_r when IPv6 results are possible.
75070
75071 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
75072
75073         [BZ #12723]
75074         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
75075         _PC_PIPE_BUF handling.
75076
75077 2011-04-30  Bruno Haible  <bruno@clisp.org>
75078
75079         [BZ #12717]
75080         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
75081         * resolv/netdb.h (getnameinfo): Change type of flags parameter
75082         to 'int'.
75083         * inet/getnameinfo.c (getnameinfo): Likewise.
75084
75085 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
75086
75087         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
75088         to groups setting in database lookup.
75089         * nss/nsswitch.conf: Add initgroups entry.
75090
75091 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
75092
75093         [BZ #12685]
75094         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
75095         mode string.
75096         Patch by Eric Blake <eblake@redhat.com>.
75097
75098 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
75099
75100         * sunrpc/Makefile (need-export-routines): Add svc_run.
75101         (routines): Remove svc_run.
75102         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
75103         * sunrpc/clnt_perr.c (clnt_perrno): Export.
75104         * sunrpc/svc_run.c (svc_run): Likewise.
75105         * sunrpc/svc_udp.c (svcudp_create): Likewise.
75106
75107 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
75108
75109         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
75110         problem in reallocation in last patch.
75111
75112 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
75113
75114         * sunrpc/Makefile: Move inclusion of Rules.
75115
75116 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
75117
75118         * nss/nss_files/files-initgroups.c: New file.
75119         * nss/Makefile (libnss_files-routines): Add files-initgroups.
75120         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
75121         _nss_files_initgroups_dyn.
75122
75123 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
75124
75125         * elf/elf.h (R_ARM_IRELATIVE): Define.
75126
75127 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
75128
75129         * po/ru.po: Update from translation team.
75130
75131 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
75132
75133         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
75134         dependencies.
75135
75136 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
75137
75138         [BZ #12653]
75139         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
75140         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
75141         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
75142         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
75143         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
75144
75145 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
75146
75147         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
75148         differing bytes.
75149         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
75150         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
75151         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
75152
75153 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
75154
75155         [BZ #12420]
75156         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
75157         storing it.
75158         * stdlib/bug-getcontext.c: New file.
75159         * stdlib/Makefile: Add rules to build and run bug-getcontext.
75160
75161 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75162
75163         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
75164         instructions into .machine "z9-109".
75165         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
75166         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
75167
75168 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
75169
75170         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
75171         between environment variables and auxiliary vector.
75172
75173 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
75174
75175         * Makefile: Add rules to build linkobj/libc.so.
75176         * include/libc-symbols.h: Define libc_hidden_nolink.
75177         * include/rpc/auth.h: Mark functions which are to be hidden.
75178         * include/rpc/auth_des.h: Likewise.
75179         * include/rpc/auth_unix.h: Likewise.
75180         * include/rpc/clnt.h: Likewise.
75181         * include/rpc/des_crypt.h: Likewise.
75182         * include/rpc/key_prot.h: Likewise.
75183         * include/rpc/pmap_clnt.h: Likewise.
75184         * include/rpc/pmap_prot.h: Likewise.
75185         * include/rpc/pmap_rmt.h: Likewise.
75186         * include/rpc/rpc_msg.h: Likewise.
75187         * include/rpc/svc.h: Likewise.
75188         * include/rpc/svc_auth.h: Likewise.
75189         * include/rpc/xdr.h: Likewise.
75190         * nis/Makefile: Link all DSOs against linkobj/libc.so.
75191         * nss/Makefile: Likewise.
75192         * sunrpc/Makefile: Don't install headers.  Build library with normal
75193         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
75194         * sunrpc/auth_des.c: Hide exported symbols by default, export some
75195         for the compat linking library.  Remove use of INTDEF/INTUSE.
75196         * sunrpc/auth_none.c: Likewise.
75197         * sunrpc/auth_unix.c: Likewise.
75198         * sunrpc/authdes_prot.c: Likewise.
75199         * sunrpc/authuxprot.c: Likewise.
75200         * sunrpc/clnt_gen.c: Likewise.
75201         * sunrpc/clnt_perr.c: Likewise.
75202         * sunrpc/clnt_raw.c: Likewise.
75203         * sunrpc/clnt_simp.c: Likewise.
75204         * sunrpc/clnt_tcp.c: Likewise.
75205         * sunrpc/clnt_udp.c: Likewise.
75206         * sunrpc/clnt_unix.c: Likewise.
75207         * sunrpc/des_crypt.c: Likewise.
75208         * sunrpc/des_soft.c: Likewise.
75209         * sunrpc/get_myaddr.c: Likewise.
75210         * sunrpc/key_call.c: Likewise.
75211         * sunrpc/key_prot.c: Likewise.
75212         * sunrpc/netname.c: Likewise.
75213         * sunrpc/pm_getmaps.c: Likewise.
75214         * sunrpc/pm_getport.c: Likewise.
75215         * sunrpc/pmap_clnt.c: Likewise.
75216         * sunrpc/pmap_prot.c: Likewise.
75217         * sunrpc/pmap_prot2.c: Likewise.
75218         * sunrpc/pmap_rmt.c: Likewise.
75219         * sunrpc/publickey.c: Likewise.
75220         * sunrpc/rpc_cmsg.c: Likewise.
75221         * sunrpc/rpc_common.c: Likewise.
75222         * sunrpc/rpc_dtable.c: Likewise.
75223         * sunrpc/rpc_prot.c: Likewise.
75224         * sunrpc/rpc_thread.c: Likewise.
75225         * sunrpc/rtime.c: Likewise.
75226         * sunrpc/svc.c: Likewise.
75227         * sunrpc/svc_auth.c: Likewise.
75228         * sunrpc/svc_authux.c: Likewise.
75229         * sunrpc/svc_raw.c: Likewise.
75230         * sunrpc/svc_run.c: Likewise.
75231         * sunrpc/svc_simple.c: Likewise.
75232         * sunrpc/svc_tcp.c: Likewise.
75233         * sunrpc/svc_udp.c: Likewise.
75234         * sunrpc/svc_unix.c: Likewise.
75235         * sunrpc/svcauth_des.c: Likewise.
75236         * sunrpc/xcrypt.c: Likewise.
75237         * sunrpc/xdr.c: Likewise.
75238         * sunrpc/xdr_array.c: Likewise.
75239         * sunrpc/xdr_float.c: Likewise.
75240         * sunrpc/xdr_intXX_t.c: Likewise.
75241         * sunrpc/xdr_mem.c: Likewise.
75242         * sunrpc/xdr_rec.c: Likewise.
75243         * sunrpc/xdr_ref.c: Likewise.
75244         * sunrpc/xdr_sizeof.c: Likewise.
75245         * sunrpc/xdr_stdio.c: Likewise.
75246
75247 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
75248
75249         [BZ #12650]
75250         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
75251         * sysdeps/ia64/dl-tls.h: Likewise.
75252         * sysdeps/powerpc/dl-tls.h: Likewise.
75253         * sysdeps/s390/dl-tls.h: Likewise.
75254         * sysdeps/sh/dl-tls.h: Likewise.
75255         * sysdeps/sparc/dl-tls.h: Likewise.
75256         * sysdeps/x86_64/dl-tls.h: Likewise.
75257         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
75258
75259 2011-03-14  Andreas Schwab  <schwab@redhat.com>
75260
75261         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
75262         rpath element also skip the following colon.
75263         (expand_dynamic_string_token): Add is_path parameter and pass
75264         down to DL_DST_REQUIRED and _dl_dst_substitute.
75265         (decompose_rpath): Call expand_dynamic_string_token with
75266         non-zero is_path.  Ignore empty rpaths.
75267         (_dl_map_object_from_fd): Call expand_dynamic_string_token
75268         with zero is_path.
75269
75270 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
75271
75272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
75273         Make cancelable.
75274
75275 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
75276
75277         [BZ #12655]
75278         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
75279         Patch by Filipe David Manana <fdmanana@apache.org>.
75280
75281 2011-04-07  Andreas Schwab  <schwab@redhat.com>
75282
75283         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
75284         Maintain aligned stack.
75285         (CHECK_RSP): Remove unused macro.
75286
75287 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
75288
75289         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
75290         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
75291
75292 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
75293
75294         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
75295
75296         * include/features.h: Mention __USE_XOPEN2K8 in comment.
75297
75298 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
75299
75300         [BZ #12518]
75301         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
75302         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
75303         * sysdeps/x86_64/memmove.c: New file.
75304         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
75305         (memcpy): Renamed to ...
75306         (__new_memcpy): This.
75307         (memcpy): Provide GLIBC_2_14 memcpy.
75308         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
75309         (memcpy): Provide GLIBC_2_2_5 memcpy.
75310
75311 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75312
75313         [BZ #12631]
75314         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
75315
75316 2011-03-30  Andreas Schwab  <schwab@redhat.com>
75317
75318         * misc/syncfs.c: New file.
75319         * misc/Makefile (routines): Add syncfs.
75320         * posix/unistd.h: Declare syncfs.
75321         * sysdeps/unix/syscalls.list: Add syncfs.
75322
75323 2011-04-01  Andreas Schwab  <schwab@redhat.com>
75324
75325         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
75326         open_by_handle_at.
75327         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
75328         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75329         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75330         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75331         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75332         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
75333         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75334
75335 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75336
75337         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
75338         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75339         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
75340         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75341         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75342         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75343         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75344
75345         * io/Makefile: Compile fallocate.c, fallocate64.c, and
75346         sync_file_range.c with -fexceptions.
75347         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
75348         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
75349         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
75350         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
75351         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
75352         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
75353         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
75354         sync_file_range as cancellation point
75355         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
75356         now a wrapper around __call_sync_file_range with cancellation handling.
75357         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
75358         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
75359         function name to __call_sync_file_range.
75360         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
75361         Add call_sync_file_range.
75362
75363 2011-04-01  Andreas Schwab  <schwab@redhat.com>
75364
75365         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
75366         bits/timex.h.
75367
75368 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
75369
75370         * iconv/iconv.h: Fix typo in comment.
75371         * io/fcntl.h: Likewise.
75372         * libio/stdio.h: Likewise.
75373         * posix/spawn.h: Likewise.
75374         * posix/unistd.h: Likewise.
75375         * stdlib/stdlib.h: Likewise.
75376         * time/time.h: Likewise.
75377         * wcsmbs/wchar.h: Likewise.
75378
75379         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
75380         open_by_handle): Add.
75381         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
75382         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
75383         Augment a few comments.
75384         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
75385         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
75386         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
75387         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
75388         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
75389         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
75390         open_by_handle.
75391
75392         * io/fcntl.h (AT_EMPTY_PATH): Define.
75393
75394 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
75395
75396         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
75397         * sysdeps/unix/sysv/linux/bits/time.h: New file.
75398         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
75399         to...
75400         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
75401         * Versions.def: Add GLIBC_2.14.
75402         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
75403         Export.
75404
75405 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
75406
75407         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
75408         round counter.
75409         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
75410
75411 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
75412
75413         [BZ #12597]
75414         * string/test-strncmp.c (do_page_test): New function.
75415         (check2): Likewise.
75416         (test_main): Call check2.
75417         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
75418
75419 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
75420
75421         [BZ #12587]
75422         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
75423         Handle cache information in CPU leaf 4.
75424         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
75425
75426 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
75427
75428         [BZ #12583]
75429         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
75430         character representation.
75431         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
75432
75433 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
75434
75435         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
75436         END(__isnan) to END(__isnanf) to match function entry point/label
75437         EALIGN(__isnanf,...).
75438
75439 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
75440
75441         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
75442
75443 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
75444
75445         [BZ #12510]
75446         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
75447         copy from the symbol referenced in the relocation to initialize the
75448         used variable.
75449         Patch by Piotr Bury <pbury@goahead.com>.
75450         * elf/Makefile: Add rules to build and tst-unique3.
75451         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
75452         * elf/tst-unique3.cc: New file.
75453         * elf/tst-unique3.h: New file.
75454         * elf/tst-unique3lib.cc: New file.
75455         * elf/tst-unique3lib2.cc: New file.
75456
75457         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
75458
75459 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
75460
75461         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
75462         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
75463         to _start.
75464
75465 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
75466
75467         * elf/dl-load.c (_dl_map_object): If we are looking for the first
75468         to-be-loaded object along a path to loader is ld.so.
75469
75470 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75471             Ulrich Drepper  <drepper@gmail.com>
75472
75473         * sysdeps/x86_64/memset.S: After aligning destination, code
75474         branches to different locations depending on the value of
75475         misalignment, when multiarch is enabled. Fix this.
75476
75477 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
75478
75479         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
75480         Set _x86_64_preferred_memory_instruction for AMD processsors.
75481         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
75482         Set bit_Prefer_SSE_for_memop for AMD processors.
75483
75484 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
75485
75486         * libio/fmemopen.c (fmemopen): Optimize a bit.
75487
75488 2011-03-03  Andreas Schwab  <schwab@redhat.com>
75489
75490         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
75491
75492 2011-03-03  Roland McGrath  <roland@redhat.com>
75493
75494         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
75495
75496 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
75497
75498         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
75499         __bzero_ultra1 instead of __memset_ultra1.
75500
75501 2011-02-23  Andreas Schwab  <schwab@redhat.com>
75502             Ulrich Drepper  <drepper@gmail.com>
75503
75504         [BZ #12509]
75505         * include/link.h (struct link_map): Add l_orig_initfini.
75506         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
75507         returning unsuccessfully.
75508         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
75509         close of a file loaded at startup, restore the original l_initfini
75510         list.
75511         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
75512         list, store the pointer.
75513         * elf/Makefile ($(objpfx)noload-mem): New rule.
75514         (noload-ENV): Define.
75515         (tests): Add $(objpfx)noload-mem.
75516         * elf/noload.c: Include <memcheck.h>.
75517         (main): Call mtrace.  Close all opened handles.
75518
75519 2011-02-17  Andreas Schwab  <schwab@redhat.com>
75520
75521         [BZ #12454]
75522         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
75523         dependencies are missing.
75524
75525 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75526
75527         Fix __if_freereq crash: Unlike the generic version which uses free,
75528         Hurd needs munmap.
75529         * sysdeps/mach/hurd/ifreq.h: New file.
75530
75531 2011-01-27  Petr Baudis  <pasky@suse.cz>
75532             Ulrich Drepper  <drepper@gmail.com>
75533
75534         [BZ 12445]#
75535         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
75536         to extend_alloca().
75537         * stdio-common/bug23.c: New file.
75538         * stdio-common/Makefile (tests): Add bug23.
75539
75540 2010-09-28  Andreas Schwab  <schwab@redhat.com>
75541             Ulrich Drepper  <drepper@gmail.com>
75542
75543         [BZ #12489]
75544         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
75545         before performing relro protection.  At old place add assertion
75546         to make sure nothing changed.
75547
75548 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
75549             Glauber de Oliveira Costa  <glommer@gmail.com>
75550
75551         * elf/elf.h: Add new ARM TLS relocs.
75552
75553 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
75554
75555         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
75556         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
75557         cast from r3.
75558         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
75559         'tests' variable.
75560         * sysdeps/wordsize-64/tst-writev.c: New file.
75561
75562 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
75563
75564         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
75565         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
75566         insns in _dl_start to prevent a TOC reference before relocs are
75567         resolved.
75568
75569 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
75570
75571         [BZ #12469]
75572         * Makeconfig: Remove RANLIB definition.
75573         * Makerules: Don't use RANLIB.
75574         * aclocal.m4: Remove ranlib test.
75575         * configure.in: No need to check for ranlib.
75576         * elf/rtld-Rules: Don't use RANLIB.
75577
75578 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75579
75580         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
75581         protection macro.
75582         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
75583         inclusion protection macro.
75584
75585         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
75586         SIGRTMIN and SIGRTMAX and print information in that case only when
75587         SIGRTMIN is defined.
75588
75589 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
75590
75591         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
75592         arginfo fn returning -1.
75593
75594         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
75595         and thousands string is zero terminated.
75596
75597 2011-02-03  Andreas Schwab  <schwab@redhat.com>
75598
75599         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
75600         sysdeps/unix/sysv/linux/bits/socket.h.
75601
75602 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
75603
75604         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
75605         (__CPU_COUNT): Remove old macros.
75606         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
75607         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
75608         (__CPU_ALLOC, __CPU_FREE): Add macros.
75609         (__sched_cpualloc, __sched_cpufree): Add declarations.
75610
75611 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
75612
75613         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
75614         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
75615         * nscd/aicache.c (addhstaiX): Return timeout of added value.
75616         (readdhstai): Return value of addhstaiX call.
75617         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
75618         (addgrbyX): Return value returned by cache_addgr.
75619         (readdgrbyname): Return value returned by addgrbyX.
75620         (readdgrbygid): Likewise.
75621         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
75622         (addpwbyX): Return value returned by cache_addpw.
75623         (readdpwbyname): Return value returned by addhstbyX.
75624         (readdpwbyuid): Likewise.
75625         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
75626         (addservbyX): Return value returned by cache_addserv.
75627         (readdservbyname): Return value returned by addservbyX:
75628         (readdservbyport): Likewise.
75629         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
75630         (addhstbyX): Return value returned by cache_addhst.
75631         (readdhstbyname): Return value returned by addhstbyX.
75632         (readdhstbyaddr): Likewise.
75633         (readdhstbynamev6): Likewise.
75634         (readdhstbyaddrv6): Likewise.
75635         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
75636         (readdinitgroups): Return value returned by addinitgroupsX.
75637         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
75638         (prune_cache): Keep track of timeout value of re-added entries.
75639         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
75640         * nscd/nscd.h: Adjust prototypes of readd* functions.
75641
75642 2011-02-04  Roland McGrath  <roland@redhat.com>
75643
75644         * nis/nis_server.c (nis_servstate): Use the right name for 0.
75645         (nis_stats): Likewise.
75646         * nis/nis_modify.c (nis_modify): Likewise.
75647         * nis/nis_remove.c (nis_remove): Likewise.
75648         * nis/nis_add.c (nis_add): Likewise.
75649
75650         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
75651
75652         * posix/fnmatch_loop.c: Add some consts.
75653
75654         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
75655
75656 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
75657
75658         [BZ #12460]
75659         * config.make.in (config-cflags-novzeroupper): Define.
75660         * configure.in: Substitute libc_cv_cc_novzeroupper.
75661         * elf/Makefile (AVX-CFLAGS): Define.
75662         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
75663         (CFLAGS-tst-auditmod4a.c): Likewise.
75664         (CFLAGS-tst-auditmod4b.c): Likewise.
75665         (CFLAGS-tst-auditmod6b.c): Likewise.
75666         (CFLAGS-tst-auditmod6c.c): Likewise.
75667         (CFLAGS-tst-auditmod7b.c): Likewise.
75668         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
75669
75670 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
75671
75672         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
75673         function to the callback.
75674         Patch partly by Jiri Olsa <jolsa@redhat.com>.
75675
75676 2011-02-02  Andreas Schwab  <schwab@redhat.com>
75677
75678         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
75679         of errno.
75680
75681 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
75682
75683         [BZ #11724]
75684         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
75685         of constructors.
75686         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
75687         of destructors.
75688         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
75689
75690         [BZ #11724]
75691         * elf/Makefile: Add rules to build and run new test.
75692         * elf/tst-initorder.c: New file.
75693         * elf/tst-initorder.exp: New file.
75694         * elf/tst-initordera1.c: New file.
75695         * elf/tst-initordera2.c: New file.
75696         * elf/tst-initordera3.c: New file.
75697         * elf/tst-initordera4.c: New file.
75698         * elf/tst-initorderb1.c: New file.
75699         * elf/tst-initorderb2.c: New file.
75700         * elf/tst-order-a1.c: New file.
75701         * elf/tst-order-a2.c: New file.
75702         * elf/tst-order-a3.c: New file.
75703         * elf/tst-order-a4.c: New file.
75704         * elf/tst-order-b1.c: New file.
75705         * elf/tst-order-b2.c: New file.
75706         * elf/tst-order-main.c: New file.
75707         New test case by George Gensure <werkt0@gmail.com>.
75708
75709 2010-10-01  Andreas Schwab  <schwab@redhat.com>
75710
75711         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
75712         decoding ACE if AI_CANONIDN.
75713
75714 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
75715
75716         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
75717
75718 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
75719
75720         * version.h (RELEASE): Bump for 2.13 release.
75721         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
75722
75723         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
75724
75725         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
75726         MADV_NOHUGEPAGE.
75727         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
75728         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
75729         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
75730         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
75731         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
75732         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
75733
75734         * posix/getconf.c: Update copyright year.
75735         * catgets/gencat.c: Likewise.
75736         * csu/version.c: Likewise.
75737         * debug/catchsegv.sh: Likewise.
75738         * debug/xtrace.sh: Likewise.
75739         * elf/ldconfig.c: Likewise.
75740         * elf/ldd.bash.in: Likewise.
75741         * elf/sprof.c (print_version): Likewise.
75742         * iconv/iconv_prog.c: Likewise.
75743         * iconv/iconvconfig.c: Likewise.
75744         * locale/programs/locale.c: Likewise.
75745         * locale/programs/localedef.c: Likewise.
75746         * malloc/memusage.sh: Likewise.
75747         * malloc/mtrace.pl: Likewise.
75748         * nscd/nscd.c (print_version): Likewise.
75749         * nss/getent.c: Likewise.
75750
75751         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
75752         PF_CAIF, and PF_ALG.
75753         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
75754
75755 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
75756
75757         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
75758         (modules-names): Use them.
75759         (ifunc-test-modules, ifunc-pie-tests): Define.
75760         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
75761         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
75762         (test-extras): Likewise.
75763         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
75764         $(compile-command.c).
75765         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
75766         (all-built-dso): Define.
75767         (check-textrel.out, check-execstack.out): Depend on it.
75768
75769         * configure.in: Don't override --enable-multi-arch.
75770
75771 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
75772
75773         [BZ #6812]
75774         * nscd/hstcache.c (tryagain): Define.
75775         (cache_addhst): Return tryagain not notfound for temporary errors.
75776         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
75777         failed.
75778
75779 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
75780
75781         [BZ #10563]
75782         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
75783         to make the syscall.
75784         * sysdeps/unix/sysv/linux/setgroups.c: New file.
75785
75786         [BZ #12378]
75787         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
75788         and fall back to matching as normal character if the string ends before
75789         the matching ']' is found.  This is what POSIX requires.
75790         * posix/testfnm.c: Adjust test result.
75791         * posix/globtest.sh: Adjust test result.  Add new test.
75792         * posix/tst-fnmatch.input: Likewise.
75793         * posix/tst-fnmatch2.c: Add new test.
75794
75795 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
75796
75797         * elf/Makefile (check-execstack): Revert last change.  Depend on
75798         check-execstack.h.
75799         (check-execstack.h): New target.
75800         (generated): Add check-execstack.h.
75801         * elf/check-execstack.c: Include "check-execstack.h".
75802         (main): Revert last change.
75803         (handle_file): Return zero if GNU_STACK is absent and
75804         DEFAULT_STACK_PERMS doesn't include PF_X.
75805
75806 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
75807
75808         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
75809         in child fails because the descriptor is already closed.
75810         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
75811         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
75812         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
75813
75814         [BZ #12397]
75815         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
75816         syscall.
75817
75818         [BZ #10484]
75819         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
75820         temporary buffer used to handle multi lookups locally.
75821         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
75822
75823 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75824
75825         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
75826         loader is ld.so.
75827
75828 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
75829
75830         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
75831         alignment for SSE2.
75832
75833 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
75834
75835         [BZ #12394]
75836         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
75837         characters.  When rounding increased number of integer digits recompute
75838         number of groups.
75839         * stdio-common/tst-grouping.c: New file.
75840         * stdio-common/Makefile: Add rules to build and run tst-grouping.
75841
75842 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
75843
75844         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
75845         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
75846
75847         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
75848         void.
75849         * bits/select.h: Likewise.
75850
75851 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
75852
75853         * po/ja.po: Update from translation team.
75854
75855 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
75856
75857         [BZ #11155]
75858         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
75859         implementation just like for lxstat, fxstatat, et al.
75860
75861 2010-12-27  Jim Meyering  <meyering@redhat.com>
75862
75863         [BZ #12348]
75864         * posix/regexec.c (build_trtable): Return failure indication upon
75865         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
75866
75867 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
75868
75869         [BZ #12201]
75870         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
75871         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
75872         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
75873         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
75874
75875         [BZ #12207]
75876         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
75877
75878         [BZ #12204]
75879         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
75880         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
75881
75882 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
75883
75884         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
75885         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
75886         script has SORT_BY_INIT_PRIORITY.
75887         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
75888         NO_CTORS_DTORS_SECTIONS is defined.
75889         * elf/soinit.c: Likewise.
75890         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
75891         NO_CTORS_DTORS_SECTIONS is defined.
75892         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
75893         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
75894         * sysdeps/sh/init-first.c: Likewise.
75895         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
75896
75897 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
75898
75899         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
75900         always use the slow path.
75901
75902 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
75903
75904         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
75905         similar rule which adds the sysdep directories to the header search in
75906         order to pick up the correct platform stackinfo.h.
75907         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
75908         perform test if it is, otherwise return successfully without testing.
75909         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
75910         DEFAULT_STACK_PERMS define in stackinfo.h.
75911         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
75912         defined in stackinfo.h.
75913         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
75914         DEFAULT_STACK_PERMS defined in stackinfo.h.
75915         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
75916         * sysdeps/ia64/stackinfo.h: Likewise.
75917         * sysdeps/s390/stackinfo.h: Likewise.
75918         * sysdeps/sh/stackinfo.h: Likewise.
75919         * sysdeps/sparc/stackinfo.h: Likewise.
75920         * sysdeps/x86_64/stackinfo.h: Likewise.
75921         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
75922         PF_X for powerpc64.  Retain PF_X for powerpc32.
75923
75924 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
75925
75926         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
75927         accurately.
75928         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
75929         GETDENTS_64BIT_ALIGNED.
75930
75931 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
75932
75933         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
75934
75935 2010-12-10  Andreas Schwab  <schwab@redhat.com>
75936
75937         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
75938         _GNU_SOURCE.
75939
75940         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
75941         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
75942         Remove __restrict.
75943         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
75944         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
75945
75946 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
75947
75948         [BZ #11655]
75949         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
75950         are initialized.
75951
75952 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
75953
75954         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
75955
75956 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
75957
75958         * po/it.po: Update from translation team.
75959
75960 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
75961
75962         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
75963         unused codes.
75964
75965 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
75966
75967         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
75968
75969 2010-11-24  Andreas Schwab  <schwab@redhat.com>
75970
75971         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
75972         specially.
75973         (gaih_getanswer_slice): Likewise.
75974
75975 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
75976
75977         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
75978
75979 2010-05-31  Petr Baudis  <pasky@suse.cz>
75980
75981         [BZ #11149]
75982         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
75983         silently even in the chroot mode.
75984
75985 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
75986
75987         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
75988         last patch a bit.  Pretty printing
75989
75990 2010-05-31  Petr Baudis <pasky@suse.cz>
75991
75992         [BZ #10085]
75993         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
75994         initialization of skip_initgroups_dyn.
75995
75996 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
75997
75998         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
75999         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
76000
76001 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
76002
76003         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
76004
76005 2010-11-11  Andreas Schwab  <schwab@redhat.com>
76006
76007         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
76008         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
76009         (tst-fnmatch-ENV): Set MALLOC_TRACE.
76010         ($(objpfx)tst-fnmatch-mem): New rule.
76011         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
76012         * posix/tst-fnmatch.c (main): Call mtrace.
76013
76014 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
76015
76016         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76017         Support Intel processor model 6 and model 0x2c.
76018
76019 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
76020
76021         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
76022           signed comparison.
76023
76024 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
76025
76026         [BZ #12205]
76027         * string/test-strncasecmp.c (check_result): New function.
76028         (do_one_test): Use it.
76029         (check1): New function.
76030         (test_main): Use it.
76031         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
76032         Support strcasecmp and strncasecmp.
76033
76034 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
76035
76036         [BZ #12194]
76037         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
76038         * sysdeps/x86_64/bits/byteswap.h: Likewise.
76039
76040 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
76041
76042         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
76043         IFUNC support.
76044         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76045         memset-x86-64.
76046         * sysdeps/x86_64/multiarch/bzero.S: New file.
76047         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
76048         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
76049         * sysdeps/x86_64/multiarch/memset.S: New file.
76050         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
76051         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
76052         Set bit_Prefer_SSE_for_memop for Intel processors.
76053         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
76054         Define.
76055         (index_Prefer_SSE_for_memop): Define.
76056         (HAS_PREFER_SSE_FOR_MEMOP): Define.
76057
76058 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
76059
76060         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
76061         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
76062
76063 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
76064
76065         [BZ #12191]
76066         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
76067         (__x86_64_raw_data_cache_size_half): Likewise.
76068         (__x86_64_raw_shared_cache_size): Likewise.
76069         (__x86_64_raw_shared_cache_size_half): Likewise.
76070
76071         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
76072         (__x86_64_raw_data_cache_size_half): Likewise.
76073         (__x86_64_raw_shared_cache_size): Likewise.
76074         (__x86_64_raw_shared_cache_size_half): Likewise.
76075         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
76076         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
76077         and __x86_64_raw_shared_cache_size_half.  Round
76078         __x86_64_data_cache_size_half, __x86_64_data_cache_size
76079         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
76080         to multiple of 256 bytes.
76081
76082 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
76083
76084         [BZ #12167]
76085         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
76086         of inacessible symlinks.  Verify result of symlink before returning it.
76087         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
76088         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
76089
76090 2010-10-28  Erich Ritz  <erichritz@gmail.com>
76091
76092         * math/math.h (isinf): Fix typo in comment.
76093
76094 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
76095
76096         * po/da.po: Update from translation team.
76097
76098 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
76099
76100         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
76101         is added to the list.
76102
76103 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
76104             Ulrich Drepper  <drepper@gmail.com>
76105
76106         * elf/dl-object.c (_dl_new_object): Don't append the new object to
76107         the global list here.  Move code to...
76108         (_dl_add_to_namespace_list): ...here.  New function.
76109         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
76110         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
76111         * elf/dl-load.c (lose): Don't remove the element from the list.
76112         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
76113         (_dl_map_object): Likewise.
76114
76115 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
76116
76117         [BZ #12159]
76118         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
76119         into all bytes of SSE register.
76120         Patch by Richard Li <richardpku@gmail.com>.
76121
76122 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
76123
76124         [BZ #12140]
76125         * malloc/malloc.c (_int_free): Fill correct number of bytes when
76126         perturbing.
76127
76128 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
76129
76130         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
76131         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
76132         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
76133         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
76134         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
76135         submachine.
76136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
76137
76138 2010-10-22  Andreas Schwab  <schwab@redhat.com>
76139
76140         * include/dlfcn.h (__RTLD_SECURE): Define.
76141         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
76142         mode & __RTLD_SECURE instead.
76143         (open_path): Rename preloaded parameter to secure.
76144         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
76145         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
76146         * elf/dl-deps.c (openaux): Likewise.
76147         * elf/rtld.c (struct map_args): Remove is_preloaded.
76148         (map_doit): Don't use it.
76149         (dl_main): Likewise.
76150         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
76151         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
76152
76153 2010-09-09  Andreas Schwab  <schwab@redhat.com>
76154
76155         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
76156         (sysd-rules-targets): Remove duplicates.
76157         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
76158         rtld-%.$o dependency.
76159
76160 2010-10-18  Andreas Schwab  <schwab@redhat.com>
76161
76162         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
76163         _dl_map_object do it.
76164
76165 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
76166
76167         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
76168         fast fma builtins, define the macros in the C99 standard.
76169         (FP_FAST_FMAF): Likewise.
76170         (FP_FAST_FMAL): Likewise.
76171         * sysdeps/x86_64/bits/mathdef.h: Likewise.
76172
76173         * bits/mathdef.h: Update copyright year.
76174         * sysdeps/powerpc/bits/mathdef.h: Likewise.
76175
76176 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
76177
76178         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
76179         builtins, define the macros in the C99 standard.
76180         (FP_FAST_FMAF): Likewise.
76181         (FP_FAST_FMAL): Likewise.
76182         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
76183         multiply/add.
76184         (FP_FAST_FMAF): Likewise.
76185
76186 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
76187
76188         [BZ #3268]
76189         * math/libm-test.inc (fma_test): Some new testcases.
76190         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
76191         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
76192         y and infinite z.  Do multiplication by C already in long double.
76193         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
76194         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
76195         y and infinite z.  Do bitwise or of inexact bit into u.d.
76196         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
76197         * sysdeps/i386/fpu/s_fmaf.S: Removed.
76198         * sysdeps/i386/fpu/s_fma.S: Removed.
76199         * sysdeps/i386/fpu/s_fmal.S: Removed.
76200
76201 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
76202
76203         [BZ #3268]
76204         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
76205         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
76206         computation is not scheduled after fetestexcept.  Fix value
76207         of minimum denormal long double.
76208
76209 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
76210
76211         [BZ #3268]
76212         * math/libm-test.inc (fma_test): Add some more tests.
76213         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
76214         correctly.
76215
76216 2010-10-15  Andreas Schwab  <schwab@redhat.com>
76217
76218         * scripts/data/localplt-s390-linux-gnu.data: New file.
76219         * scripts/data/localplt-s390x-linux-gnu.data: New file.
76220
76221 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
76222
76223         [BZ #3268]
76224         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
76225         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
76226         instead of dbl-64.
76227         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
76228         inlines.
76229         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
76230         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
76231         if one of x and y is very large and the other is subnormal.
76232         * sysdeps/s390/fpu/s_fmaf.c: New file.
76233         * sysdeps/s390/fpu/s_fma.c: New file.
76234         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
76235         * sysdeps/powerpc/fpu/s_fma.S: New file.
76236         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
76237         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
76238         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
76239
76240 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
76241
76242         [BZ #3268]
76243         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
76244         fma tests.
76245         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
76246         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
76247         * sysdeps/i386/i686/multiarch/s_fma.c: Include
76248         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
76249         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
76250         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
76251         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
76252
76253 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
76254
76255         [BZ #12078]
76256         * posix/regcomp.c (parse_branch): One more memory leak plugged.
76257         * posix/bug-regex31.input: Add test case.
76258
76259 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
76260
76261         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
76262         * posix/bug-regex31.input: New file.
76263
76264         [BZ #12078]
76265         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
76266         (parse_sub_exp): Fix last change, use postorder.
76267
76268         * posix/bug-regex31.c: New file.
76269         * posix/Makefile: Add rules to build and run bug-regex31.
76270
76271         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
76272
76273         [BZ #12078]
76274         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
76275
76276         [BZ #12108]
76277         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
76278         to have entries in sys_siglist.
76279
76280         [BZ #12093]
76281         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
76282         be NULL.
76283
76284 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
76285
76286         [BZ #3268]
76287         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
76288         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
76289         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
76290         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
76291         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
76292         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
76293         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
76294         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
76295         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
76296         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
76297         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
76298         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
76299         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
76300         * math/ftestexcept.c (fetestexcept): Likewise.
76301         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
76302         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
76303         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
76304         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
76305         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
76306         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
76307         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
76308
76309 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
76310
76311         [BZ #12107]
76312         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
76313         newline.
76314
76315 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
76316
76317         * string/bug-strstr1.c: New file.
76318         * string/Makefile: Add rules to build and run bug-strstr1.
76319
76320 2010-10-05  Eric Blake  <eblake@redhat.com>
76321
76322         [BZ #12092]
76323         * string/str-two-way.h (two_way_long_needle): Always clear memory
76324         when skipping input due to the shift table.
76325
76326 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
76327
76328         [BZ #12005]
76329         * malloc/mcheck.c: Handle large requests.
76330
76331         [BZ #12077]
76332         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
76333         for strncmp and strncasecmp.
76334         * string/stratcliff.c: Add tests for strcmp and strncmp.
76335         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
76336
76337 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
76338
76339         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
76340         __set_fpscr.
76341
76342 2010-09-30  Andreas Jaeger  <aj@suse.de>
76343
76344         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
76345         (CGROUP_SUPER_MAGIC): Define.
76346         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76347         Handle btrfs and cgroup file systems.
76348         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
76349         Likewise.
76350
76351 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
76352
76353         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
76354         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
76355
76356 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
76357
76358         [BZ #12067]
76359         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
76360         trying to locate the ELF header.
76361
76362 2010-09-27  Andreas Schwab  <schwab@redhat.com>
76363
76364         [BZ #11611]
76365         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
76366         Mask out sign-bit copies when constructing f_fsid.
76367
76368 2010-09-24  Petr Baudis <pasky@suse.cz>
76369
76370         * debug/stack_chk_fail_local.c: Add missing licence exception.
76371         * debug/warning-nop.c: Likewise.
76372
76373 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
76374
76375         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
76376         implementing getdents64 using getdents syscall, set d_type if
76377         __ASSUME_GETDENTS32_D_TYPE.
76378
76379 2010-09-16  Andreas Schwab  <schwab@redhat.com>
76380
76381         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
76382         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
76383
76384 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
76385
76386         [BZ #12037]
76387         * posix/unistd.h: Undo change of feature selection for ftruncate from
76388         2010-01-11.
76389
76390 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
76391
76392         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
76393         detection.
76394
76395 2010-09-20  Andreas Schwab  <schwab@redhat.com>
76396
76397         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
76398         fanotify_mark.
76399         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76400
76401 2010-09-14  Andreas Schwab  <schwab@redhat.com>
76402
76403         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
76404         variables after CHECK_SP call.
76405         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
76406
76407 2010-09-13  Andreas Schwab  <schwab@redhat.com>
76408             Ulrich Drepper  <drepper@redhat.com>
76409
76410         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
76411         re-relocationg ld.so.
76412         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
76413         _dl_init_paths call.
76414         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
76415         here anymore.
76416
76417 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
76418
76419         * resolv/res_init.c (__res_vinit): Count the default server we added.
76420
76421 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
76422             Ulrich Drepper  <drepper@redhat.com>
76423
76424         [BZ #11968]
76425         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
76426         (____longjmp_chk): Use %ebx for saving value across system call.
76427         Add unwind info.
76428
76429 2010-09-06  Andreas Schwab  <schwab@redhat.com>
76430
76431         * manual/Makefile: Don't mix pattern rules with normal rules.
76432
76433 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
76434
76435         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
76436         operation.
76437         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
76438         * libio/iofopncook.c (_IO_cookie_init): Likewise.
76439         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
76440         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
76441         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
76442         Likewise.
76443
76444 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
76445
76446         [BZ #11979]
76447         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
76448         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
76449
76450 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
76451
76452         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
76453         * sysdeps/x86_64/addmul_1.S: Likewise.
76454         * sysdeps/x86_64/lshift.S: Likewise.
76455         * sysdeps/x86_64/mul_1.S: Likewise.
76456         * sysdeps/x86_64/rshift.S: Likewise.
76457         * sysdeps/x86_64/sub_n.S: Likewise.
76458         * sysdeps/x86_64/submul_1.S: Likewise.
76459
76460 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76461
76462         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
76463         Define __sched_param instead of SCHED_* and sched_param when
76464         <bits/sched.h> is included with __need_schedparam defined.
76465         * bits/sched.h [__need_schedparam]
76466         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
76467         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
76468         (__defined_schedparam): Define to 1.
76469         (__sched_param): New structure, identical to sched_param.
76470         (__need_schedparam): Undefine.
76471
76472 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
76473
76474         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
76475         (epoll_create1): Declare.
76476
76477         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
76478
76479 2010-08-31  Andreas Schwab  <schwab@redhat.com>
76480
76481         [BZ #7066]
76482         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
76483         shifting retval into place.
76484
76485 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
76486
76487         * nis/rpcsvc/nis.h: Update copyright notice.
76488         * nis/rpcsvc/nis.x: Likewise.
76489         * nis/rpcsvc/nis_callback.h: Likewise.
76490         * nis/rpcsvc/nis_callback.x: Likewise.
76491         * nis/rpcsvc/nis_object.x: Likewise.
76492         * nis/rpcsvc/nis_tags.h: Likewise.
76493         * nis/rpcsvc/yp.h: Likewise.
76494         * nis/rpcsvc/yp.x: Likewise.
76495         * nis/rpcsvc/ypupd.h: Likewise.
76496         * nis/yp_xdr.c: Likewise.
76497         * nis/ypupdate_xdr.c: Likewise.
76498
76499         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
76500         mainly the body of pmap_getport.  Add parameters to specify timeouts.
76501         (pmap_getport): Use __libc_rpc_getport.
76502         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
76503         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
76504         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
76505
76506 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
76507
76508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
76509         fanotify_mark.
76510
76511 2010-08-27  Roland McGrath  <roland@redhat.com>
76512
76513         * sysdeps/i386/i686/multiarch/Makefile
76514         (CFLAGS-varshift.c): New variable.
76515
76516 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
76517
76518         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
76519         * sysdeps/i386/i686/multiarch/varshift.c: New file.
76520
76521         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
76522
76523         * sysdeps/x86_64/strlen.S: Minimal code improvement.
76524
76525 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
76526
76527         * sysdeps/x86_64/strlen.S: Unroll the loop.
76528         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
76529         strlen-sse2 strlen-sse2-bsf.
76530         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
76531         __strlen_no_bsf if bit_Slow_BSF is set.
76532         (__strlen_sse42): Removed.
76533         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
76534         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
76535
76536 2010-08-25  Roland McGrath  <roland@redhat.com>
76537
76538         * sysdeps/x86_64/multiarch/varshift.S: File removed.
76539         * sysdeps/x86_64/multiarch/varshift.c: New file.
76540         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
76541         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
76542         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
76543         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
76544
76545 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
76546
76547         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76548         strlen-sse2 strlen-sse2-bsf.
76549         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
76550         __strlen_sse2_bsf if bit_Slow_BSF is unset.
76551         (__strlen_sse2): Removed.
76552         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
76553         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
76554         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
76555         bit_Slow_BSF for Atom.
76556         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
76557         (index_Slow_BSF): Define.
76558         (HAS_SLOW_BSF): Define.
76559
76560 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
76561
76562         [BZ #10851]
76563         * resolv/res_init.c (__res_vinit): When no server address at all
76564         is given default to loopback.
76565
76566 2010-08-24  Roland McGrath  <roland@redhat.com>
76567
76568         * configure.in: Remove config-name.h generation.
76569         * configure: Regenerated.
76570         * config-name.in: File removed.
76571         * scripts/config-uname.sh: New file.
76572         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
76573         ($(objdir)config-name.h): New target.
76574
76575         * sunrpc/rpc_parse.h: Avoid nested comment.
76576
76577 2010-08-24  Richard Henderson  <rth@redhat.com>
76578             Ulrich Drepper  <drepper@redhat.com>
76579             H.J. Lu  <hongjiu.lu@intel.com>
76580
76581         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
76582         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
76583         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
76584         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
76585         _mm_alignr_epi8 with _mm_loadu_si128.
76586         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
76587         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
76588         (__m128i_shift_right): Removed.
76589         * sysdeps/i386/i686/multiarch/varshift.h: New file.
76590         * sysdeps/i386/i686/multiarch/varshift.S: New file.
76591         * sysdeps/x86_64/multiarch/varshift.h: New file.
76592         * sysdeps/x86_64/multiarch/varshift.S: New file.
76593
76594 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
76595
76596         * configure.in: Move assembler checks to before sysdep dir checking.
76597
76598 2010-08-20  Petr Baudis  <pasky@suse.cz>
76599
76600         * LICENSES: Sync the sunrpc license.
76601
76602 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
76603
76604         * sunrpc/auth_des.c: Update copyright notice once again.
76605         * sunrpc/auth_none.c: Likewise.
76606         * sunrpc/auth_unix.c: Likewise.
76607         * sunrpc/authdes_prot.c: Likewise.
76608         * sunrpc/authuxprot.c: Likewise.
76609         * sunrpc/bindrsvprt.c: Likewise.
76610         * sunrpc/clnt_gen.c: Likewise.
76611         * sunrpc/clnt_perr.c: Likewise.
76612         * sunrpc/clnt_raw.c: Likewise.
76613         * sunrpc/clnt_simp.c: Likewise.
76614         * sunrpc/clnt_tcp.c: Likewise.
76615         * sunrpc/clnt_udp.c: Likewise.
76616         * sunrpc/clnt_unix.c: Likewise.
76617         * sunrpc/des_crypt.c: Likewise.
76618         * sunrpc/des_soft.c: Likewise.
76619         * sunrpc/get_myaddr.c: Likewise.
76620         * sunrpc/getrpcport.c: Likewise.
76621         * sunrpc/key_call.c: Likewise.
76622         * sunrpc/key_prot.c: Likewise.
76623         * sunrpc/openchild.c: Likewise.
76624         * sunrpc/pm_getmaps.c: Likewise.
76625         * sunrpc/pm_getport.c: Likewise.
76626         * sunrpc/pmap_clnt.c: Likewise.
76627         * sunrpc/pmap_prot.c: Likewise.
76628         * sunrpc/pmap_prot2.c: Likewise.
76629         * sunrpc/pmap_rmt.c: Likewise.
76630         * sunrpc/rpc/auth.h: Likewise.
76631         * sunrpc/rpc/auth_unix.h: Likewise.
76632         * sunrpc/rpc/clnt.h: Likewise.
76633         * sunrpc/rpc/des_crypt.h: Likewise.
76634         * sunrpc/rpc/key_prot.h: Likewise.
76635         * sunrpc/rpc/netdb.h: Likewise.
76636         * sunrpc/rpc/pmap_clnt.h: Likewise.
76637         * sunrpc/rpc/pmap_prot.h: Likewise.
76638         * sunrpc/rpc/pmap_rmt.h: Likewise.
76639         * sunrpc/rpc/rpc.h: Likewise.
76640         * sunrpc/rpc/rpc_des.h: Likewise.
76641         * sunrpc/rpc/rpc_msg.h: Likewise.
76642         * sunrpc/rpc/svc.h: Likewise.
76643         * sunrpc/rpc/svc_auth.h: Likewise.
76644         * sunrpc/rpc/types.h: Likewise.
76645         * sunrpc/rpc/xdr.h: Likewise.
76646         * sunrpc/rpc_clntout.c: Likewise.
76647         * sunrpc/rpc_cmsg.c: Likewise.
76648         * sunrpc/rpc_common.c: Likewise.
76649         * sunrpc/rpc_cout.c: Likewise.
76650         * sunrpc/rpc_dtable.c: Likewise.
76651         * sunrpc/rpc_hout.c: Likewise.
76652         * sunrpc/rpc_main.c: Likewise.
76653         * sunrpc/rpc_parse.c: Likewise.
76654         * sunrpc/rpc_parse.h: Likewise.
76655         * sunrpc/rpc_prot.c: Likewise.
76656         * sunrpc/rpc_sample.c: Likewise.
76657         * sunrpc/rpc_scan.c: Likewise.
76658         * sunrpc/rpc_scan.h: Likewise.
76659         * sunrpc/rpc_svcout.c: Likewise.
76660         * sunrpc/rpc_tblout.c: Likewise.
76661         * sunrpc/rpc_util.c: Likewise.
76662         * sunrpc/rpc_util.h: Likewise.
76663         * sunrpc/rpcinfo.c: Likewise.
76664         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
76665         * sunrpc/rpcsvc/key_prot.x: Likewise.
76666         * sunrpc/rpcsvc/klm_prot.x: Likewise.
76667         * sunrpc/rpcsvc/mount.x: Likewise.
76668         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
76669         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
76670         * sunrpc/rpcsvc/rex.x: Likewise.
76671         * sunrpc/rpcsvc/rstat.x: Likewise.
76672         * sunrpc/rpcsvc/rusers.x: Likewise.
76673         * sunrpc/rpcsvc/sm_inter.x: Likewise.
76674         * sunrpc/rpcsvc/spray.x: Likewise.
76675         * sunrpc/rpcsvc/yppasswd.x: Likewise.
76676         * sunrpc/rtime.c: Likewise.
76677         * sunrpc/svc.c: Likewise.
76678         * sunrpc/svc_auth.c: Likewise.
76679         * sunrpc/svc_authux.c: Likewise.
76680         * sunrpc/svc_raw.c: Likewise.
76681         * sunrpc/svc_run.c: Likewise.
76682         * sunrpc/svc_simple.c: Likewise.
76683         * sunrpc/svc_tcp.c: Likewise.
76684         * sunrpc/svc_udp.c: Likewise.
76685         * sunrpc/svc_unix.c: Likewise.
76686         * sunrpc/svcauth_des.c: Likewise.
76687         * sunrpc/xcrypt.c: Likewise.
76688         * sunrpc/xdr.c: Likewise.
76689         * sunrpc/xdr_array.c: Likewise.
76690         * sunrpc/xdr_float.c: Likewise.
76691         * sunrpc/xdr_mem.c: Likewise.
76692         * sunrpc/xdr_rec.c: Likewise.
76693         * sunrpc/xdr_ref.c: Likewise.
76694         * sunrpc/xdr_sizeof.c: Likewise.
76695         * sunrpc/xdr_stdio.c: Likewise.
76696
76697         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
76698         handling.
76699
76700 2010-08-19  Andreas Schwab  <schwab@redhat.com>
76701
76702         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
76703
76704 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
76705
76706         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
76707         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
76708         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
76709         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
76710         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
76711         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
76712         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
76713         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
76714         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
76715         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
76716         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
76717         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
76718         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
76719         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
76720
76721 2010-07-26  Anton Blanchard  <anton@samba.org>
76722
76723         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
76724         * malloc/arena.c (heap_trim): Likewise.
76725
76726 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
76727
76728         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
76729         here.  Not...
76730         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
76731         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
76732
76733 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
76734
76735         * sysdeps/i386/elf/Makefile: New file.
76736
76737 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76738
76739         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
76740         from fanotify_init.
76741         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
76742         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76743
76744 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
76745
76746         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
76747         of strncasecmp_l.
76748         * sysdeps/multiarch/strcmp.S: Likewise.
76749
76750 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
76751
76752         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76753         strncase_l-nonascii.
76754         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76755         Add strncase_l-ssse3.
76756         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
76757         * sysdeps/x86_64/strcmp.S: Likewise.
76758         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
76759         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
76760         * sysdeps/x86_64/strncase.S: New file.
76761         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
76762         * sysdeps/x86_64/strncase_l.S: New file.
76763         * string/Makefile (strop-tests): Add strncasecmp.
76764         * string/test-strncasecmp.c: New file.
76765
76766         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
76767         warning.
76768
76769         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
76770         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
76771
76772 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
76773
76774         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
76775
76776 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
76777
76778         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
76779         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
76780         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
76781
76782 2010-05-01  Alan Modra  <amodra@gmail.com>
76783
76784         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
76785         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
76786         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
76787         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
76788         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
76789         tidying.  Don't tail-call __sigjmp_save for static lib.
76790         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
76791         save location.
76792         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
76793         (CALL_MCOUNT): Add eh info, and nop after bl.
76794         (TAIL_CALL_SYSCALL_ERROR): New macro.
76795         (PSEUDO_RET): Use it.
76796         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
76797         Correct save location of integer regs and cr.
76798         (_dl_profile_resolve): Correct cr save location.  Delete nops
76799         after bl when SHARED.  Reduce cfi size a little by better
76800         placement of cfi directives.
76801         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
76802         make a stack frame.  Instead use parm save area as a temp.
76803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
76804         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
76805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
76806         Don't make a stack frame for parent, use parm save area.
76807         Increase child stack frame to 112 bytes.  Don't save unused reg,
76808         and adjust reg usage.  Set up cfi on error recovery and
76809         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
76810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
76811         (__makecontext): Add dummy nop after jump to exit.
76812         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
76813         Use correct parm save area and cr save, reduce stack frame.
76814         Correct cfi for possible PSEUDO_RET frame setup.
76815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
76816         Branch to local label emitted by PSEUDO_RET rather than
76817         __syscall_error.
76818
76819 2010-08-12  Andreas Schwab  <schwab@redhat.com>
76820
76821         [BZ #11904]
76822         * locale/programs/locale.c (print_assignment): New function.
76823         (show_locale_vars): Use it.
76824
76825 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
76826
76827         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
76828         field.
76829         (struct statfs64): Likewise.
76830         (_STATFS_F_FLAGS): Define.
76831         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
76832         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
76833         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
76834         (ST_VALID): Define locally.
76835         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
76836         __statvfs_getflags, use the provided value.
76837         * sysdeps/unix/sysv/linux/kernel-features.h: Define
76838         __ASSUME_STATFS_F_FLAGS.
76839
76840         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
76841
76842         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
76843         Add sys/fanotify.h.
76844         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
76845         fanotify_mask for GLIBC_2.13.
76846         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
76847         fanotify_init and fanotify_mark.
76848         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
76849         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
76850
76851         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
76852         Add prlimit.
76853         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
76854         prlimit64 for GLIBC_2.13.
76855         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
76856         prlimit64.
76857         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
76858         syscall.
76859         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
76860         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
76861         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
76862         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
76863         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
76864         add prlimit alias.
76865         * sysdeps/unix/sysv/linux/prlimit.c: New file.
76866
76867         [BZ #11903]
76868         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
76869         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
76870
76871         * nss/Makefile: Add rules to build and run tst-nss-test1.
76872         * shlib-versions: Add entry for libnss_test1.
76873         * nss/nss_test1.c: New file.
76874         * nss/tst-nss-test1.c: New file.
76875
76876         * nss/nsswitch.c (__nss_database_custom): Define new variable.
76877         (__nss_configure_lookup): Set appropriate entry in
76878         __nss_configure_lookup to true.
76879         * nss/nsswitch.h: Define enum with indeces of databases in
76880         databases and __nss_database_custom arrays.  Declare
76881         __nss_database_custom.
76882         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
76883         to avoid using nscd when custom rules are installed.
76884         * nss/getXXbyYY_r.c: Likewise.
76885         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
76886
76887         * nss/nss_files/files-parse.c: Whitespace fixes.
76888
76889 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
76890
76891         [BZ #11883]
76892         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
76893         * posix/fnmatch_loop.c: Likewise.
76894
76895 2010-07-17  Andi Kleen  <ak@linux.intel.com>
76896
76897         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
76898         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
76899         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
76900         * Versions.def [GLIBC_2.13]: Add.
76901
76902 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
76903
76904         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
76905         Also fail if tpwd after pwuid call is NULL.
76906
76907 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76908
76909         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
76910         when converting to ms.
76911
76912 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
76913
76914         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
76915         EOPNOTSUPP errors with ENOTTY.
76916         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
76917         EOPNOTSUPP errors with ENOTTY.
76918
76919 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
76920
76921         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
76922         Add strcasecmp_l-ssse3.
76923         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
76924         strcasecmp.
76925         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
76926         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
76927         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
76928
76929 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
76930
76931         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
76932
76933         * string/Makefile (strop-tests): Add strcasecmp.
76934         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
76935         strcasecmp_l-nonascii.
76936         (gen-as-const-headers): Add locale-defines.sym.
76937         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
76938         * sysdeps/x86_64/strcasecmp.S: New file.
76939         * sysdeps/x86_64/strcasecmp_l.S: New file.
76940         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
76941         * sysdeps/x86_64/locale-defines.sym: New file.
76942         * string/test-strcasecmp.c: New file.
76943
76944         * string/test-strcasestr.c: Test both ends of the range of characters.
76945         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
76946
76947 2010-07-29  Roland McGrath  <roland@redhat.com>
76948
76949         [BZ #11856]
76950         * manual/locale.texi (Yes-or-No Questions): Fix example code.
76951
76952 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
76953
76954         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
76955         for ld.so.
76956
76957 2010-07-27  Andreas Schwab  <schwab@redhat.com>
76958
76959         * manual/memory.texi (Malloc Tunable Parameters): Document
76960         M_PERTURB.
76961
76962 2010-07-26  Roland McGrath  <roland@redhat.com>
76963
76964         [BZ #11840]
76965         * configure.in (-fgnu89-inline check): Set and substitute
76966         gnu89_inline, not libc_cv_gnu89_inline.
76967         * configure: Regenerated.
76968         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
76969
76970 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
76971
76972         * string/test-strnlen.c: New file.
76973         * string/Makefile (strop-tests): Add strnlen.
76974         * string/tester.c (test_strnlen): Add a few more test cases.
76975         * string/tst-strlen.c: Better error reporting.
76976
76977         * sysdeps/x86_64/strnlen.S: New file.
76978
76979 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
76980
76981         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
76982         lower-latency instructions.
76983
76984 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
76985
76986         * string/test-strcasestr.c: New file.
76987         * string/test-strstr.c: New file.
76988         * string/Makefile (strop-tests): Add strstr and strcasestr.
76989         * string/str-two-way.h: Don't undefine MAX.
76990         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
76991
76992 2010-07-21  Andreas Schwab  <schwab@redhat.com>
76993
76994         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
76995         strcasestr-nonascii.
76996         (CFLAGS-strcasestr-nonascii.c): Define.
76997         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
76998         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
76999         Remove unused attribute.
77000
77001 2010-07-20  Roland McGrath  <roland@redhat.com>
77002
77003         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
77004         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
77005         ld.so.cache was broken.  With it, there is no way to disable dsocaps
77006         like LD_HWCAP_MASK can disable hwcaps.
77007
77008 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
77009
77010         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
77011
77012 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
77013
77014         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
77015         call in strcasestr.
77016         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
77017         __strcasestr_sse42_nonascii.
77018         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
77019         strcasestr-nonascii.c.
77020         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
77021
77022 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
77023
77024         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
77025         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
77026         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
77027         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
77028
77029 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
77030
77031         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
77032         fcntl.
77033
77034 2010-07-06  Andreas Schwab  <schwab@redhat.com>
77035
77036         [BZ #11577]
77037         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
77038         dl_signal_cerror.
77039
77040 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
77041
77042         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
77043         _PC_PIPE_BUF using F_GETPIPE_SZ.
77044
77045 2010-07-05  Roland McGrath  <roland@redhat.com>
77046
77047         * manual/arith.texi (Rounding Functions): Fix rint description
77048         implicit in round description.
77049
77050 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
77051
77052         * elf/Makefile: Fix linking for a few tests to make recent linker
77053         happy.
77054
77055 2010-06-30  Andreas Schwab  <schwab@redhat.com>
77056
77057         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
77058         $(common-objpfx)libc_nonshared.a.
77059
77060 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
77061
77062         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
77063         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
77064         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
77065         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
77066         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
77067         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
77068         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
77069         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
77070         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
77071         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
77072         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
77073         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
77074         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
77075         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
77076         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
77077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
77078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
77079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
77080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
77081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
77082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
77083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
77084         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
77085         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
77086         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
77087         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
77088         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
77089         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
77090         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
77091         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
77092         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
77093         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
77094         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
77095         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
77096         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
77097         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
77098         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
77099         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
77100         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
77101         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
77102         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
77103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
77104         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
77105         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
77106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
77107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
77108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
77109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
77110
77111 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
77112
77113         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
77114         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
77115         * string/memmove.c (memmove): Renamed to ...
77116         (MEMMOVE): ...this.  Default to memmove.
77117         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
77118         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
77119         (END_CHK): Define.
77120         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
77121         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
77122         mempcpy-ssse3-back memmove-ssse3-back.
77123         * sysdeps/x86_64/multiarch/bcopy.S: New file .
77124         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
77125         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
77126         * sysdeps/x86_64/multiarch/memcpy.S: New file.
77127         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
77128         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
77129         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
77130         * sysdeps/x86_64/multiarch/memmove.c: New file.
77131         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
77132         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
77133         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
77134         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
77135         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
77136         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
77137         Define.
77138         (index_Fast_Copy_Backward): Define.
77139         (HAS_ARCH_FEATURE): Define.
77140         (HAS_FAST_REP_STRING): Define.
77141         (HAS_FAST_COPY_BACKWARD): Define.
77142
77143 2010-06-21  Andreas Schwab  <schwab@redhat.com>
77144
77145         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
77146         Restore proper fallback handling.
77147
77148 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
77149
77150         [BZ #11701]
77151         * posix/group_member.c (__group_member): Correct checking loop.
77152
77153         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
77154         OOM in getpwuid_r correctly.  Return error number when the caller
77155         should return, otherwise -1.
77156         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
77157         call returning > 0 value.
77158         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
77159
77160 2010-06-07  Andreas Schwab  <schwab@redhat.com>
77161
77162         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
77163         libc_nonshared.a from targets in modules-names.
77164
77165 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
77166
77167         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
77168         requires it.
77169
77170 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
77171
77172         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
77173         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
77174         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
77175         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
77176
77177 2010-06-02  Andreas Schwab  <schwab@redhat.com>
77178
77179         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
77180
77181 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
77182
77183         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
77184         and F_GETPIPE_SZ.
77185         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
77186         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
77187         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
77188         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
77189         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
77190         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
77191
77192 2010-06-14  Roland McGrath  <roland@redhat.com>
77193
77194         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
77195
77196 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
77197
77198         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
77199         __REDIRECT followed by __THROW.
77200         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
77201         * posix/getopt.h (getopt): Likewise.
77202
77203 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
77204
77205         * hurd/lookup-at.c (__file_name_lookup_at): Accept
77206         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
77207         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
77208         in AT_FLAGS.
77209         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
77210         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
77211
77212 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
77213
77214         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
77215
77216 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
77217
77218         [BZ #11640]
77219         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
77220         Properly check family and model.
77221
77222 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
77223
77224         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
77225
77226 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
77227
77228         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
77229
77230 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
77231
77232         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
77233         symbol reference.
77234
77235 2010-05-19  Andreas Schwab  <schwab@redhat.com>
77236
77237         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
77238         symbol reference.
77239
77240 2010-05-21  Andreas Schwab  <schwab@redhat.com>
77241
77242         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
77243         and internal_recvmmsg.
77244         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
77245         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
77246         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
77247         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
77248
77249         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
77250         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
77251         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
77252
77253 2010-05-20  Andreas Schwab  <schwab@redhat.com>
77254
77255         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
77256
77257 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
77258
77259         POWER7 optimizations.
77260         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
77261         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
77262
77263 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
77264
77265         * version.h: Update for 2.13 development version.
77266
77267 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
77268
77269         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
77270         exceptions.  Return 0.
77271
77272 2010-05-07  Roland McGrath  <roland@redhat.com>
77273
77274         * elf/ldconfig.c (main): Add a const.
77275
77276 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
77277
77278         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
77279         (args_options): Add no-idn option.
77280         (ahosts_keys_int): Add idn_flags to ai_flags.
77281         (parse_option): Handle 'i' option to clear idn_flags.
77282
77283         * malloc/malloc.c (_int_free): Possible race in the most recently
77284         added check.  Only act on the data if no current modification
77285         happened.
77286
77287 See ChangeLog.17 for earlier changes.